/* ==========================================================================
   DESIGN SYSTEM & VARIABLES (Sleek Emerald Theme)
   ========================================================================== */
:root {
  color-scheme: light dark;

  /* Global Typography */
  --font-primary: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Transition Speeds */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Color Scheme Adaptive Tokens */
  --bg-color: light-dark(#f8fafc, #090d16);
  --text-primary: light-dark(#0f172a, #f8fafc);
  --text-secondary: light-dark(#475569, #94a3b8);
  
  --brand-primary: light-dark(#059669, #34d399);
  --brand-hover: light-dark(#047857, #10b981);
  --brand-glow: light-dark(rgba(5, 150, 105, 0.12), rgba(52, 211, 153, 0.12));
  
  --card-bg: light-dark(rgba(255, 255, 255, 0.65), rgba(17, 24, 39, 0.65));
  --card-border: light-dark(rgba(226, 232, 240, 0.7), rgba(31, 41, 55, 0.7));
  --card-shadow: light-dark(0 8px 32px rgba(0, 0, 0, 0.03), 0 8px 32px rgba(0, 0, 0, 0.25));
  --card-divider: light-dark(#e2e8f0, #1f2937);
  
  --nav-bg: light-dark(rgba(248, 250, 252, 0.8), rgba(9, 13, 22, 0.8));
  --badge-bg: light-dark(rgba(5, 150, 105, 0.08), rgba(52, 211, 153, 0.08));
  --input-bg: light-dark(rgba(255, 255, 255, 0.8), rgba(31, 41, 55, 0.4));
  
  --selection-bg: light-dark(#a7f3d0, #064e3b);
  --selection-text: light-dark(#064e3b, #a7f3d0);

  /* Fallback for older browsers without light-dark() support */
  @media (prefers-color-scheme: dark) {
    --bg-color: #090d16;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --brand-primary: #34d399;
    --brand-hover: #10b981;
    --brand-glow: rgba(52, 211, 153, 0.12);
    --card-bg: rgba(17, 24, 39, 0.65);
    --card-border: rgba(31, 41, 55, 0.7);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --card-divider: #1f2937;
    --nav-bg: rgba(9, 13, 22, 0.8);
    --badge-bg: rgba(52, 211, 153, 0.08);
    --input-bg: rgba(31, 41, 55, 0.4);
    --selection-bg: #064e3b;
    --selection-text: #a7f3d0;
  }
}

/* Explicit data-theme overrides for manual theme toggling */
html[data-theme="light"] {
  color-scheme: light;
  --bg-color: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --brand-primary: #059669;
  --brand-hover: #047857;
  --brand-glow: rgba(5, 150, 105, 0.12);
  --card-bg: rgba(255, 255, 255, 0.65);
  --card-border: rgba(226, 232, 240, 0.7);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.03);
  --card-divider: #e2e8f0;
  --nav-bg: rgba(248, 250, 252, 0.8);
  --badge-bg: rgba(5, 150, 105, 0.08);
  --input-bg: rgba(255, 255, 255, 0.8);
  --selection-bg: #a7f3d0;
  --selection-text: #064e3b;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-color: #090d16;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --brand-primary: #34d399;
  --brand-hover: #10b981;
  --brand-glow: rgba(52, 211, 153, 0.12);
  --card-bg: rgba(17, 24, 39, 0.65);
  --card-border: rgba(31, 41, 55, 0.7);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --card-divider: #1f2937;
  --nav-bg: rgba(9, 13, 22, 0.8);
  --badge-bg: rgba(52, 211, 153, 0.08);
  --input-bg: rgba(31, 41, 55, 0.4);
  --selection-bg: #064e3b;
  --selection-text: #a7f3d0;
}

/* ==========================================================================
   RESET & GLOBAL BASICS
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-primary);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

::selection {
  background-color: var(--selection-bg);
  color: var(--selection-text);
}

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

li {
  list-style: none;
}

/* Focus styles for keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 4px;
}

/* ==========================================================================
   SCROLLBAR STYLES (Standard & Fallback)
   ========================================================================== */
:root {
  scrollbar-color: var(--brand-primary) var(--bg-color);
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 10px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-color);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-color);
  }
}

/* ==========================================================================
   REUSABLE COMPONENTS & UTILITIES
   ========================================================================== */
.grid-container {
  display: grid;
  gap: 32px;
  width: 100%;
}

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

/* Glassmorphism Cards */
.card {
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-divider {
  border: 0;
  height: 1px;
  background-color: var(--card-divider);
  margin: 24px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #090d16; /* Always dark text on neon emerald button for strong contrast */
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  box-shadow: 0 4px 20px var(--brand-glow);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline:hover {
  background-color: var(--brand-glow);
  border-color: var(--brand-hover);
  color: var(--brand-hover);
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background-color: var(--badge-bg);
  color: var(--brand-primary);
  border: 1px solid var(--card-border);
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* Headings & Texts */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--brand-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
}

/* Loading state */
.loading-state {
  color: var(--text-secondary);
  font-style: italic;
  padding: 20px 0;
}

/* Custom background blur effects (Orbs) */
body::before {
  content: '';
  position: absolute;
  top: 5%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid var(--card-border);
  background-color: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: height var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.header-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 10px var(--brand-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brand-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--text-primary);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Switcher Button */
.theme-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.theme-btn:hover {
  background-color: var(--card-bg);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Show/hide moon and sun based on active theme setting */
html[data-theme="light"] .moon-icon { display: block; }
html[data-theme="light"] .sun-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: none; }
html[data-theme="dark"] .sun-icon { display: block; }

/* System preferences handling (when no manual override attribute is set) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .moon-icon { display: none; }
  html:not([data-theme]) .sun-icon { display: block; }
}
@media (prefers-color-scheme: light) {
  html:not([data-theme]) .moon-icon { display: block; }
  html:not([data-theme]) .sun-icon { display: none; }
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.menu-bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Mobile Nav Toggle states */
.mobile-menu-btn[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.badge-status-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--badge-bg);
  border: 1px solid var(--card-border);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.profile-frame {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Blob organic shape */
  border: 2px solid var(--card-border);
  overflow: hidden;
  box-shadow: var(--card-shadow), 0 20px 40px rgba(0, 0, 0, 0.05);
  animation: morph-profile 8s ease-in-out infinite alternate;
  background-color: var(--card-bg);
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-primary), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes morph-profile {
  0% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  50% {
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  }
  100% {
    border-radius: 40% 60% 40% 60% / 50% 40% 60% 50%;
  }
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.profile-frame:hover .profile-img {
  transform: scale(1.05);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.about-section .card {
  padding: 40px;
}

/* ==========================================================================
   EDUCATION SECTION (Timeline style)
   ========================================================================== */
.education-timeline-container {
  position: relative;
  padding-left: 32px;
}

.education-timeline-container::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--card-divider);
}

.education-card {
  position: relative;
  padding: 32px;
  margin-bottom: 24px;
}

.education-card:last-child {
  margin-bottom: 0;
}

.education-marker {
  position: absolute;
  left: -32px;
  top: 36px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-color);
  border: 4px solid var(--brand-primary);
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
  z-index: 2;
}

.education-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.education-header h3 {
  font-size: 1.35rem;
}

.education-gpa {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.education-school {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

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

.education-details {
  margin-top: 16px;
}

.education-detail-item {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

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

.education-detail-item strong {
  color: var(--text-primary);
}

.education-detail-item p {
  color: var(--text-secondary);
  display: inline;
}

/* ==========================================================================
   EXPERIENCE SECTION (Pengalaman & Kontribusi)
   ========================================================================== */
.experience-grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.experience-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.experience-type-tag {
  position: absolute;
  top: 24px;
  right: 24px;
}

.experience-header {
  margin-bottom: 20px;
}

.experience-header h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.experience-org {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-primary);
}

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

.experience-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.experience-bullets {
  padding-left: 20px;
}

.experience-bullets li {
  list-style-type: disc;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.experience-bullets li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   PROJECTS SECTION (Case-Study Style)
   ========================================================================== */
.projects-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr;
  padding: 40px;
  gap: 32px;
  position: relative;
}

.project-details h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.project-context {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-attributes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px;
  background-color: var(--badge-bg);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--card-border);
}

.project-attribute {
  display: flex;
  flex-direction: column;
}

.attribute-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 4px;
}

.attribute-val {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.project-outcome-box {
  margin-bottom: 24px;
  border-left: 4px solid var(--brand-primary);
  padding-left: 16px;
}

.project-outcome-box strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--brand-primary);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.project-outcome-box p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.project-tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.project-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.project-links .btn svg {
  transition: transform var(--transition-fast);
}

.project-links .btn:hover svg {
  transform: translateX(2px);
}

/* ==========================================================================
   SKILLS SECTION (Categorized Panels)
   ========================================================================== */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skills-panel {
  padding: 32px;
}

.skills-panel h3 {
  font-size: 1.25rem;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.skills-panel h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--brand-primary);
  border-radius: var(--radius-full);
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  flex-shrink: 0;
}

.skill-text {
  font-size: 1rem;
  font-weight: 550;
  color: var(--text-primary);
}

/* ==========================================================================
   CERTIFICATIONS & ACHIEVEMENTS
   ========================================================================== */
.certifications-grid,
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.cert-card,
.achievement-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cert-header h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cert-issuer {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 4px;
}

.cert-year {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cert-footer {
  margin-top: 24px;
}

.achievement-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.achievement-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: var(--badge-bg);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
}

.achievement-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.contact-card {
  padding: 32px;
}

.contact-card h3,
.contact-form h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background-color: var(--input-bg);
  border: 1px solid var(--card-border);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.contact-link-item:hover:not(.disabled-link) {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
}

.disabled-link {
  cursor: default;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--badge-bg);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-text {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.contact-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
}

.social-channels {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background-color: var(--input-bg);
  transition: transform var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* Contact Form */
.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background-color: var(--input-bg);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

textarea.form-control {
  resize: vertical;
}

/* Bottom PDF Download Card */
.bottom-pdf-cta {
  margin-top: 56px;
}

.flex-cta-card {
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cta-card-content p {
  color: var(--text-secondary);
  max-width: 600px;
  font-size: 1rem;
}

.bottom-pdf-cta .btn {
  flex-shrink: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  border-top: 1px solid var(--card-border);
  padding: 40px 24px;
  background-color: var(--nav-bg);
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-attribution {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-primary);
}

/* ==========================================================================
   TOAST NOTIFICATION (Simple feedback UI)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  background-color: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(20px);
  opacity: 0;
  animation: toast-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast.toast-fadeout {
  animation: toast-out 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toast-out {
  to {
    transform: translateY(-20px);
    opacity: 0;
  }
}

/* ==========================================================================
   MICRO-INTERACTIONS & HOVER TRANSITIONS
   ========================================================================== */
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 40px var(--brand-glow), var(--card-shadow);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (Scroll-Driven / Fallbacks)
   ========================================================================== */
/* If browser supports standard scroll-driven animations, use native animations */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal {
      from {
        opacity: 0.2;
        transform: translateY(40px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .scroll-reveal {
      animation: reveal both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }
  }
}

/* Fallback styles for IntersectionObserver (non-supporting browsers) */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
  }
  
  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .profile-frame {
    animation: none !important;
    border-radius: var(--radius-md) !important;
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile First)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image-wrapper {
    order: 1;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .flex-cta-card {
    flex-direction: column;
    text-align: center;
  }
  
  .flex-cta-card .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 56px 20px;
  }
  
  .hero-section {
    padding-top: 120px;
    padding-bottom: 56px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  /* Mobile Menu navigation override */
  .mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    z-index: 99;
    border-top: 1px solid var(--card-border);
  }
  
  .nav-links.open {
    transform: translateX(0);
  }
  
  .nav-links a {
    font-size: 1.25rem;
  }
  
  .education-timeline-container {
    padding-left: 20px;
  }
  
  .education-card {
    padding: 24px;
  }
  
  .education-marker {
    left: -20px;
    top: 28px;
    width: 12px;
    height: 12px;
    border-width: 3px;
  }
  
  .project-card {
    padding: 24px;
  }
  
  .project-details h3 {
    font-size: 1.35rem;
  }
  
  .contact-card,
  .contact-form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-ctas .btn {
    width: 100%;
  }
  
  .profile-frame {
    width: 240px;
    height: 240px;
  }
}
