* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --border: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #888888;
  --accent: #ffffff;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Grid Background */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
      linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
  pointer-events: none;
}

/* Spotlight Effect */
.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 100px;
}

.hero-content h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 2rem;
}

.hero-content h1 .highlight {
  font-weight: 600;
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* Buttons */
.btn-premium {
  padding: 1rem 2rem;
  background: var(--text-primary);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-premium:hover {
  background: var(--text-secondary);
  color: var(--text-primary);
}

.btn-outline {
  padding: 1rem 2rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-block;
  border: 1px solid var(--border);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--text-primary);
}

/* Section Styling */
section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.section-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -2px;
  margin-bottom: 4rem;
}

/* About Section */
.about-content {
  max-width: 950px;
}

.about-text {
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.skill-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.skill-item:hover {
  border-color: var(--text-secondary);
  background: var(--bg-secondary);
}

.skill-item h4 {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.skill-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.project-card {
  background: var(--bg-card);
  padding: 3rem;
  transition: all 0.5s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  transform: translateY(100%);
  transition: transform 0.5s;
}

.project-card:hover::before {
  transform: translateY(0);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-number {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.project-tags {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.project-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: 2rem;
}

.project-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.project-link:hover {
  color: var(--text-secondary);
}

/* Blog Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.blog-card:hover {
  border-color: var(--text-secondary);
  background: var(--bg-secondary);
}

.blog-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.blog-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.read-more {
  color: var(--text-primary);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Section */
.contact-content {
  max-width: 600px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group select {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 0.8rem;
  border-radius: 4px;
  appearance: none; /* removes default arrow styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

/* Dropdown arrow indicator (custom) */
.form-group select::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  pointer-events: none;
}

/* Dropdown options styling */
.form-group select option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s;
    font-size: 1.5rem;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}