/* ===== DESIGN SYSTEM ===== */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Tokens */
:root {
  /* Colors */
  --bg-primary: #0a192f;
  --bg-secondary: #112240;
  --bg-tertiary: #1a2f4a;
  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.1);
  --accent-hover: rgba(100, 255, 218, 0.15);
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-bright: #e6f1ff;
  --white: #ffffff;
  --card-bg: rgba(17, 34, 64, 0.7);
  --card-border: rgba(100, 255, 218, 0.1);
  --card-border-hover: rgba(100, 255, 218, 0.3);
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --gradient-accent: linear-gradient(135deg, #64ffda 0%, #48c9b0 100%);
  --gradient-hero: linear-gradient(180deg, #0a192f 0%, #112240 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-hero: clamp(2.5rem, 6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;
  --lh-body: 1.7;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-section: 8rem;
  --max-width: 1100px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-slow: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
  opacity: 0.8;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-bright);
  font-weight: 700;
}

/* ===== UTILITIES ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.05);
  transition: var(--transition);
}

.navbar.scrolled {
  padding: var(--space-xs) 0;
  box-shadow: var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  opacity: 1;
}

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

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  color: var(--accent) !important;
  font-size: var(--fs-small) !important;
}

.nav-cta:hover {
  background: var(--accent-dim) !important;
}

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

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  display: block;
}

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

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

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.03) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-greeting {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
}

.hero-name {
  font-size: var(--fs-hero);
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-heading);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  min-height: 2.5rem;
}

.hero-tagline .cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--accent);
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(100, 255, 218, 0.3);
  color: var(--bg-primary);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  transform: translateY(-2px);
  color: var(--accent);
  opacity: 1;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.headshot-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
}

.headshot-wrapper::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.6;
}

.headshot-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-primary);
}

.headshot {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-primary);
}

/* ===== ABOUT ===== */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-2xl);
  align-items: start;
}

.about-text p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

.about-text p strong {
  color: var(--text-bright);
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.highlight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.highlight-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.highlight-card .label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.highlight-card .value {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--text-bright);
}

.highlight-card .detail {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  margin-top: 2px;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-slow);
}

.project-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.project-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-xs);
}

.project-role {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.project-description {
  color: var(--text-secondary);
  font-size: var(--fs-small);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tag {
  font-size: var(--fs-xs);
  padding: 4px 12px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-weight: 500;
}

/* ===== EXPERIENCE ===== */
.timeline {
  position: relative;
  padding-left: var(--space-xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--bg-tertiary);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-xl) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
}

.timeline-item.current::before {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(100, 255, 218, 0.4);
}

.timeline-date {
  font-size: var(--fs-small);
  color: var(--accent);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.timeline-title {
  font-size: var(--fs-h3);
  margin-bottom: 2px;
}

.timeline-company {
  font-size: var(--fs-body);
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.timeline-bullets {
  list-style: none;
  padding: 0;
}

.timeline-bullets li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: var(--fs-small);
  line-height: 1.7;
}

.timeline-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--card-border-hover);
}

.skill-category h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.skill-category h3 span {
  font-size: 1.25rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pill {
  font-size: var(--fs-small);
  padding: 6px 16px;
  background: var(--accent-dim);
  color: var(--text-primary);
  border-radius: 100px;
  font-weight: 400;
  transition: var(--transition);
}

.pill:hover {
  background: var(--accent-hover);
  color: var(--accent);
}

/* ===== CERTIFICATIONS ===== */
.certs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.cert-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: var(--transition);
}

.cert-item:hover {
  border-color: var(--card-border-hover);
}

.cert-item .cert-icon {
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cert-item .cert-source {
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ===== CONTACT ===== */
.contact {
  text-align: center;
}

.contact .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.contact-description {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  font-size: var(--fs-body);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-small);
  transition: var(--transition);
  background: var(--card-bg);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  opacity: 1;
}

.contact-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-email {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--text-bright);
  margin-bottom: var(--space-xl);
  display: inline-block;
}

.contact-email:hover {
  color: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--card-border);
}

.footer p {
  font-size: var(--fs-small);
  color: var(--text-secondary);
}

.footer .built-by {
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  opacity: 0.6;
}

.footer .built-by a {
  color: var(--accent);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transition: right 0.4s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
  }

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

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .headshot-wrapper {
    width: 220px;
    height: 220px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

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

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

  .section {
    padding: var(--space-2xl) 0;
  }
}

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

  .headshot-wrapper {
    width: 180px;
    height: 180px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .certs-list {
    grid-template-columns: 1fr;
  }
}

/* Overlay when mobile menu is open */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 25, 47, 0.7);
  z-index: 999;
}

.nav-overlay.open {
  display: block;
}
