/* Variables & Reset */
:root {
  --bg-color: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #252525;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-tertiary: #808080;
  --accent-primary: #00d9ff;
  --accent-secondary: #00a8cc;
  --accent-tertiary: #ff6b35;
  --border-color: #2a2a2a;
  --font-main: "Inter", sans-serif;
  --container-width: 1200px;
  --nav-height: 60px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 120px 0;
}

.bg-darker {
  background-color: var(--bg-secondary);
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 3.5rem;
  letter-spacing: -0.5px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  width: 24px;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(12px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-12px);
}

/* Hero Section - Fixed Background with Overlay Content */
.hero-section {
  position: relative;
  min-height: 200vh;
  /* Extends to allow scroll */
  overflow: visible;
}

/* Fixed Background Container */
.hero-bg-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay on background */
.hero-bg-fixed::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.5) 0%, rgba(15, 15, 15, 0.7) 100%);
  z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: scrollFloat 2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-text {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  font-weight: 600;
}

.scroll-arrow {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow svg {
  filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.5));
}

@keyframes scrollFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* Overlay Content Container */
.hero-overlay-content {
  position: relative;
  min-height: 200vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 10vh;
  z-index: 5;
}

/* Hero Content */
.hero-content {
  max-width: 700px;
  width: 100%;
  position: relative;
  text-align: left;
  padding: 3rem 2rem;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(0, 217, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: var(--bg-color);
  box-shadow: 0 4px 16px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 217, 255, 0.5);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--accent-primary);
}

.btn-secondary:hover {
  background-color: rgba(0, 217, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.2);
  transform: translateY(-2px);
}

.quick-facts {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.fact-value {
  font-weight: 600;
  color: var(--accent-primary);
}

/* Focus Section */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.focus-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.focus-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  background: rgba(0, 217, 255, 0.02);
}

.focus-card:hover::before {
  opacity: 1;
}

.focus-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  position: relative;
  z-index: 1;
}

.focus-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  line-height: 1.7;
}

/* Projects Section */
.project-case-study {
  margin-bottom: 5rem;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.project-case-study:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  margin-bottom: 2rem;
}

.project-header h3 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-pitch {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tech-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.8rem;
  padding: 6px 12px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--accent-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.badge:hover {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--accent-primary);
}

/* Add GitHub link styling */
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 16px;
  background: rgba(0, 217, 255, 0.1);
  border: 1.5px solid var(--accent-primary);
  border-radius: 6px;
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-github:hover {
  background: rgba(0, 217, 255, 0.2);
  box-shadow: 0 0 16px rgba(0, 217, 255, 0.3);
  transform: translateY(-2px);
}

.btn-github svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.project-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-section h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.project-section p,
.project-section li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.project-section ul {
  list-style: none;
  padding-left: 0;
}

.project-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.project-section li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Fundamentals Section */
.fundamentals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.fund-item h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.fund-item p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.fund-item ul {
  list-style: none;
}

.fund-item li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.fund-item li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

/* Journey Section */
.journey-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.journey-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.journey-text strong {
  color: var(--accent-primary);
}

.timeline {
  border-left: 2px solid var(--border-color);
  padding-left: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.5);
}

.timeline-item .date {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline-item .content {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* Tech Stack */
.stack-group {
  margin-bottom: 3rem;
}

.stack-group h3 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.badge-lg {
  padding: 8px 16px;
  background: rgba(0, 217, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.badge-lg:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.15);
  color: var(--accent-primary);
}

.stack-note {
  margin-top: 2.5rem;
  color: var(--text-tertiary);
  font-style: italic;
  font-size: 0.9rem;
}

/* Achievements */
.achievements-list {
  list-style: none;
}

.achievements-list li {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.7;
}

.achievements-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.achievements-list strong {
  color: var(--text-primary);
}

/* Contact */
.contact-text {
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: rgba(0, 217, 255, 0.08);
  color: var(--accent-primary);
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

/* Mobile Menu */
.nav-links.mobile-active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem;
  gap: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-bg-fixed {
    background-attachment: scroll;
    background-size: cover;
  }

  .scroll-indicator {
    bottom: 2rem;
  }

  .scroll-text {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }

  .hero-overlay-content {
    padding-bottom: 5vh;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .quick-facts {
    flex-direction: column;
    gap: 1.5rem;
  }

  .fundamentals-grid,
  .journey-content {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section-padding {
    padding: 80px 0;
  }

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

  .project-header h3 {
    font-size: 1.6rem;
  }

  .contact-links {
    gap: 0.75rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta {
    gap: 0.5rem;
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .quick-facts {
    padding-top: 1.5rem;
    gap: 1rem;
  }

  .fact-label {
    font-size: 0.7rem;
  }

  .fact-value {
    font-size: 0.9rem;
  }

  .project-header h3 {
    font-size: 1.4rem;
  }

  .project-pitch {
    font-size: 0.95rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    justify-content: center;
  }
}

/* Contact Form Styles */
.contact-form-container {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.1);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  min-height: 1.5rem;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #ef4444;
}
