:root {
  --bg-primary: #0A0D14;
  --bg-surface: #10141E;
  --bg-elevated: #161C2A;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --text-sub: #64748B;
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.2);
  --accent-blue: #3B82F6;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(50% 50% at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.site-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 18px;
}
.brand-monogram {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
}
.brand-name .dot {
  color: var(--accent-emerald);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-item:hover {
  color: var(--text-main);
}
.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  transition: var(--transition);
}
.mobile-toggle:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
}
.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}
.btn-emerald:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-primary);
}
.btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}
.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

/* Hero */
.hero-section {
  padding: 90px 0 70px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 20px;
}
.code-tag {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}
.hero-headline {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.highlight-name {
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-chip {
  padding: 6px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.social-chip:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

/* Profile Card */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.avatar-wrapper {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-initials {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-emerald);
}
.profile-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-title {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.profile-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.badge {
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.p-stat .val {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}
.p-stat .lbl {
  font-size: 11px;
  color: var(--text-sub);
  text-transform: uppercase;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 90px 0;
}
.bg-dim {
  background: #080A10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  margin-bottom: 48px;
}
.sec-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-emerald);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.sec-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.text-gradient {
  background: linear-gradient(135deg, #10B981, #3B82F6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-center {
  text-align: center;
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
}
.about-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.box-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.about-box h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.about-box p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
}
.timeline-dot {
  position: absolute;
  left: -35px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-emerald);
  margin-bottom: 6px;
}
.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.role-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 700px;
}
.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.timeline-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-sub);
  border: 1px solid var(--border);
}

/* Projects List */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.project-entry {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  align-items: center;
  transition: var(--transition);
}
.project-entry:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}
.pe-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-emerald);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.pe-meta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pe-meta p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.pe-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pe-tech span {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg-elevated);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-sub);
}
.link-btn {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.link-btn:hover {
  color: var(--accent-emerald);
  transform: translateX(4px);
}
.pe-visual {
  height: 180px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.visual-gold {
  background: linear-gradient(135deg, #241b12 0%, #15110d 100%);
  border-color: rgba(197, 160, 89, 0.3);
}
.visual-indigo {
  background: linear-gradient(135deg, #13172e 0%, #0d0f1c 100%);
  border-color: rgba(99, 102, 241, 0.3);
}
.visual-cyan {
  background: linear-gradient(135deg, #0d1e2b 0%, #081119 100%);
  border-color: rgba(0, 242, 254, 0.3);
}
.visual-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #fff;
  opacity: 0.6;
  margin-bottom: 8px;
}
.visual-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
}

/* Skills Columns */
.skills-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.skill-category {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.skill-category h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Contact Box */
.contact-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.contact-heading {
  font-size: 36px;
  font-weight: 800;
  margin: 12px 0 16px;
  letter-spacing: -1px;
}
.contact-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-sub);
}
.f-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.f-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.f-links a:hover {
  color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .container {
    padding: 0 18px;
  }
  
  .nav-bar {
    height: 66px;
  }
  
  .nav-action-btn {
    display: none;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  /* Slide-down Glass Mobile Menu */
  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 24px;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 998;
    max-height: calc(100vh - 66px);
    overflow-y: auto;
  }
  
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-item {
    font-size: 15.5px;
    font-weight: 600;
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main);
  }
  
  .nav-item:hover,
  .nav-item:active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
  }
  
  .nav-item::after {
    content: "→";
    color: var(--accent-emerald);
    font-size: 14px;
    opacity: 0.7;
  }

  /* Hero Mobile */
  .hero-section {
    padding: 40px 0 50px;
  }
  
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero-eyebrow {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .hero-headline {
    font-size: clamp(28px, 7.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
  }
  
  .hero-tagline {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 28px;
  }
  
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14.5px;
  }
  
  .social-row {
    gap: 8px;
  }
  
  .social-chip {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Profile Card Mobile */
  .profile-card {
    padding: 24px 18px;
  }
  
  .avatar-wrapper {
    width: 76px;
    height: 76px;
    margin-bottom: 16px;
  }
  
  .avatar-initials {
    font-size: 26px;
  }
  
  .profile-name {
    font-size: 20px;
  }
  
  .profile-title {
    font-size: 13px;
    margin-bottom: 16px;
  }
  
  .profile-stats {
    gap: 8px;
    padding-top: 16px;
  }
  
  .p-stat .val {
    font-size: 18px;
  }
  
  .p-stat .lbl {
    font-size: 10px;
  }

  /* Section Spacing */
  .section {
    padding: 55px 0;
  }
  
  .section-header {
    margin-bottom: 32px;
  }
  
  .sec-subtitle {
    font-size: 11px;
    margin-bottom: 6px;
  }
  
  .sec-title {
    font-size: clamp(22px, 6.2vw, 30px);
    letter-spacing: -0.5px;
  }

  /* About Grid Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .about-box {
    padding: 22px 18px;
  }
  
  .box-icon {
    font-size: 24px;
    margin-bottom: 12px;
  }
  
  .about-box h3 {
    font-size: 17px;
  }

  /* Timeline Mobile */
  .timeline {
    padding-left: 20px;
    gap: 26px;
  }
  
  .timeline-dot {
    left: -27px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-content h3 {
    font-size: 17px;
  }
  
  .role-desc {
    font-size: 13.5px;
  }

  /* Projects Mobile */
  .projects-list {
    gap: 20px;
  }
  
  .project-entry {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 20px;
  }
  
  .pe-meta h3 {
    font-size: 19px;
  }
  
  .pe-meta p {
    font-size: 13.5px;
  }
  
  .pe-visual {
    height: 140px;
  }
  
  .visual-text {
    font-size: 18px;
  }

  /* Skills Columns Mobile */
  .skills-columns {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .skill-category {
    padding: 20px 16px;
  }
  
  .s-tag {
    font-size: 12.5px;
    padding: 7px 10px;
  }

  /* Contact Box Mobile */
  .contact-box {
    padding: 36px 18px;
    border-radius: var(--radius-md);
  }
  
  .contact-heading {
    font-size: clamp(24px, 6.8vw, 32px);
    letter-spacing: -0.5px;
  }
  
  .contact-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }
  
  .contact-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    font-size: 14.5px;
  }

  /* Footer Mobile */
  .site-footer {
    padding: 32px 0 24px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  
  .f-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

/* Very Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-name {
    font-size: 16px;
  }
  .brand-monogram {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .profile-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .p-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
  }
}
