:root {
  --bg: #fdfeff;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0ea5e9;      /* Sky blue - data/tech */
  --secondary: #8b5cf6;   /* Violet - AI/ML */
  --warm: #f59e0b;        /* Amber for highlights */
  --navH:64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navH);
}

body {
  margin:0;
  font-family:'Inter', system-ui, sans-serif;
  line-height:1.6;
  background:var(--bg);
  color:var(--text);
  scroll-snap-type: y proximity;
}

h1,h2,h3 { 
  margin: 0 0 .5em; 
}

/* Fluid typography for better scaling */
h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  line-height: 1.3;
}

p {
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1.6;
}

/* Sections as “pages” */
section {
  max-width:960px;
  margin:auto;
  padding:60px 20px;
  min-height:calc(100vh - var(--navH));
  scroll-snap-align:start;
  scroll-margin-top:var(--navH);
}

/* Navbar */
.navbar {
  display:flex;justify-content:space-between;align-items:center;
  padding:12px 20px;
  position:sticky;top:0;
  background:rgba(255,255,255,0.95);backdrop-filter:blur(10px);border-bottom:1px solid var(--line);
  height:var(--navH);z-index:10;
}
.navbar .brand { 
  font-weight:700; 
  font-size:1.2rem;
  color:var(--text);
  text-decoration:none;
  transition:.2s;
}
.navbar .brand:hover { 
  color:var(--accent);
}
.navbar nav {
  display: flex;
  align-items: center;
}
.navbar nav a {
  margin:0 10px;text-decoration:none;color:var(--text);
  padding:8px 6px;border-radius:6px;transition:.2s;
}
.navbar nav a:hover { background:rgba(15,23,42,.08); }
.navbar nav a.active { background:#0f172a;color:#fff;font-weight:700; }

/* Mobile menu toggle (hidden by default) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(15, 23, 42, 0.08);
}

.mobile-menu-toggle:active {
  transform: scale(0.95);
}

/* Mobile menu styles */
.navbar nav {
  transition: all 0.3s ease;
}

/* Hide mobile navigation by default on small screens */
@media (max-width: 768px) {
  .navbar nav {
    position: fixed;
    top: var(--navH);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
  }
  
  .navbar nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .navbar nav a {
    padding: 16px 20px;
    margin: 4px 0;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s ease;
  }
  
  .navbar nav a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

.hero { text-align:center;padding:100px 20px; }
.hero h1 { 
  font-size: clamp(2rem, 5vw, 2.5rem); 
  line-height: 1.1;
}
.hero h2 { 
  font-size: clamp(1.2rem, 3vw, 1.5rem); 
  margin-bottom: 1rem; 
  line-height: 1.3;
}
.hero p { 
  max-width: 600px; 
  margin: 0 auto 2rem; 
  font-size: clamp(1rem, 2.5vw, 1.1rem); 
  line-height: 1.6;
}

.btn {
  display:inline-block;padding:6px 12px;margin:6px;
  border-radius:8px;text-decoration:none;
  background:var(--accent);color:#fff;font-weight:600;
  transition:.2s;
}
.btn i {
  margin-right: 6px;
}
.btn:hover { opacity:.9; }
.btn.ghost { background:#fff;border:1px solid #000;color:#000; }
.btn.ghost:hover { background:#000;color:#fff; }
.btn.secondary { background:var(--secondary);border:1px solid var(--secondary);color:#fff; }
.btn.secondary:hover { background:#7c3aed; }
.btn.warm { background:var(--warm);border:1px solid var(--warm);color:#fff; }
.btn.warm:hover { background:#d97706; }

.skills-grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; 
}
.skill { margin:10px 0; }
.bar { background:var(--line);height:8px;border-radius:6px;overflow:hidden; }
.bar i { display:block;height:100%;background:var(--accent); }

.grid { 
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; 
}
.card { background:#fff;padding:20px;border:1px solid var(--line);border-radius:12px; }

footer {
  text-align:center;padding:20px;border-top:1px solid var(--line);
  margin-top:40px;color:var(--muted);font-size:.9rem;
}

/* ===== Contact layout ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
  align-content: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-cards { 
  display: grid; 
  gap: 14px; 
  justify-items: center;
  align-content: start;
}

/* Info cards on the left */
.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 16px -4px rgba(0, 0, 0, 0.08),
    0 4px 8px -2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.contact-card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  font-size: 20px;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--accent);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.contact-card:hover .icon {
  transform: translateY(-1px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.contact-card .icon i {
  font-size: 18px;
}
.contact-card .label { font-weight: 700; }
.contact-card .value { color: var(--muted); }
.contact-card .value a { color: inherit; text-decoration: none; }
.contact-card .value a:hover { text-decoration: underline; }

.contact-notes { 
  padding: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-top: 16px;
}

.contact-notes h4 { margin: 12px 0 8px; }
.contact-notes ul { margin: 0; padding-left: 18px; color: var(--muted); }

/* Form on the right */
.contact-form { 
  border-radius: 16px;
  position: relative;
  padding: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(148, 163, 184, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.1);
  backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: start;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.02) 0%, rgba(139, 92, 246, 0.02) 100%);
  border-radius: 16px;
  pointer-events: none;
  z-index: -1;
}

.contact-form:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 
    0 32px 64px -12px rgba(0, 0, 0, 0.12),
    0 25px 50px -12px rgba(14, 165, 233, 0.08),
    0 0 0 1px rgba(14, 165, 233, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.form-row { 
  display: grid; 
  gap: 12px; 
  margin-bottom: 16px; 
  width: 100%;
  box-sizing: border-box;
}
.form-row.two { 
  grid-template-columns: 1fr 1fr; 
}
.form-field { 
  width: 100%;
  box-sizing: border-box;
}
.form-field label { 
  display: block; 
  font-weight: 700; 
  margin-bottom: 8px; 
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  padding: 14px 16px;
  border-radius: 12px;
  font: inherit;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
  /* Touch-friendly minimum sizes */
  min-height: 44px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  max-width: 100%;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(14, 165, 233, 0.5);
  background: #ffffff;
  box-shadow: 
    0 4px 12px rgba(14, 165, 233, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 0 0 3px rgba(14, 165, 233, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Contact form button enhancements */
.contact-form .btn {
  position: relative;
  padding: 16px 24px;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: 
    0 8px 16px -4px rgba(14, 165, 233, 0.3),
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.contact-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 16px 32px -8px rgba(14, 165, 233, 0.4),
    0 8px 16px -4px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
}

.form-field input:invalid:not(:focus):not(:placeholder-shown),
.form-field textarea:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
}

.error-message {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 4px;
  min-height: 1.2rem;
}

.form-status {
  margin-top: 10px;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.success-message {
  color: #166534;
}

.btn.dark {
  background: #0f172a; /* deep slate */
  color: #fff;
}
.btn.full { width: 100%; }

/* Enhanced contact layout responsiveness */
@media (max-width: 1024px) {
  .contact-wrap { 
    grid-template-columns: 280px 1fr; 
    gap: 16px;
    padding: 0 16px;
  }
}

@media (max-width: 900px) {
  .contact-wrap { 
    grid-template-columns: 1fr; 
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
  }
  
  .contact-form {
    max-width: 100%;
    padding: 20px;
  }
}

@media (max-width: 860px) {
  .contact-wrap { 
    grid-template-columns: 1fr; 
    gap: 24px;
    max-width: 100%;
    margin: 0 auto;
  }
  .form-row.two { 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  
  /* Stack contact cards and form consistently */
  .contact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 100%;
  }
  
  .contact-form {
    max-width: 100%;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .contact-wrap {
    gap: 20px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .contact-card {
    padding: 14px;
    gap: 10px;
    max-width: 100%;
    width: 100%;
  }
  
  .contact-form {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  
  .form-field input,
  .form-field textarea {
    padding: 12px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form .btn {
    padding: 14px 20px;
    width: 100%;
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  .form-row.two {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .contact-card {
    padding: 12px;
    gap: 8px;
    max-width: 100%;
  }
  
  .contact-card .icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .contact-form {
    padding: 16px;
    max-width: 100%;
  }
  
  .form-field input,
  .form-field textarea {
    padding: 10px 12px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form .btn {
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .form-row {
    margin-bottom: 14px;
  }
  
  .contact-notes {
    padding: 14px 16px;
    max-width: 100%;
  }
}

.contact-notes {
  background: #f1f5f9;        /* subtle light background */
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 12px;
  width: 100%;
  max-width: 320px;
  justify-self: center;
}

.contact-notes h4 {
  margin: 0 0 8px;
  color: var(--accent);       /* emerald green accent */
  font-weight: 700;
}

.contact-notes p {
  margin: 0 0 10px;
  color: var(--text);         /* darker than muted */
  font-size: 0.95rem;
}

.contact-notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.5;
}

.contact-notes ul li {
  margin-bottom: 6px;
}

/* ===== Make all form elements same width as .btn.full ===== */
.contact-form {
  width: 100%;
  max-width: 600px;           /* optional: limit max width */
  margin: 0 auto;             /* center the form */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row,
.form-row.two,
.form-field,
.form-field input,
.form-field textarea,
.btn.full {
  width: 100%;
  box-sizing: border-box;
}

/* Keep two-input row aligned evenly */
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== Site Footer ===== */
.site-footer {
  background: #f9fafb;
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding-top: 30px;
  color: var(--text);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.footer-col h3, .footer-col h4 {
  margin-bottom: 12px;
  font-weight: 700;
}

.footer-col p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.socials a {
  font-size: 1.2rem;
  margin-right: 12px;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s;
}
.socials a:hover {
  color: var(--accent);
}
.socials a i {
  font-size: 20px;
}

.footer-bottom {
  text-align: center;
  padding: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Experience section ===== */
.xp-section .xp-toggle{
  max-width:640px;margin:12px auto 18px;display:grid;
  grid-template-columns:1fr 1fr;gap:8px;
  background: linear-gradient(145deg, #eaeef5 0%, #d1d5db 100%);
  border:1px solid rgba(148, 163, 184, 0.3);border-radius:999px;padding:6px;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05);
}
.xp-section .seg{
  border:0;background:transparent;padding:10px 12px;border-radius:999px;
  font-weight:700;color:#334155;cursor:pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.xp-section .seg.active{ 
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); 
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.xp-section .seg:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.xp-list{ display:grid; gap:18px; }
.hidden{ display:none; }

.xp-card{ 
  border-radius:14px;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.xp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 50%,
    rgba(245, 158, 11, 0.02) 100%);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

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

.xp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 
    0 12px 24px -4px rgba(0, 0, 0, 0.08),
    0 6px 12px -2px rgba(14, 165, 233, 0.1),
    0 0 0 1px rgba(14, 165, 233, 0.15),
    0 0 0 3px rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.xp-card:hover::before {
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.04) 0%, 
    rgba(139, 92, 246, 0.04) 50%,
    rgba(245, 158, 11, 0.04) 100%);
}
.xp-head{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.xp-head h3{ margin:0 0 4px; }
.xp-head .org{ color:var(--muted); font-weight:600; }

.xp-meta{ text-align:right; color:#475569; font-size:.92rem; }
.xp-meta .time{ font-weight:700; }
.xp-meta .place{ color:#64748b; }

.xp-desc{ margin:10px 0 8px; }
.xp-subtitle{ font-weight:700; margin-top:6px; margin-bottom:6px; }

.xp-bullets{ margin:0 0 8px 18px; }
.xp-bullets li{ margin-bottom:6px; }

.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips span{
  font-size:.85rem; 
  padding:6px 10px; 
  border:1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius:999px;
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  position: relative;
}

.chips span:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 
    0 2px 4px rgba(14, 165, 233, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (max-width:720px){
  .xp-head{ flex-direction:column; align-items:flex-start; }
  .xp-meta{ text-align:left; }
}

/* ===== Skills — Cards + Bars ===== */
.skills-section { padding-top: 20px; }
.skill-cols{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-top:14px;
}
.skill-card{ 
  border-radius:14px;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 50%,
    rgba(245, 158, 11, 0.02) 100%);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

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

.skill-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 
    0 12px 24px -4px rgba(0, 0, 0, 0.08),
    0 6px 12px -2px rgba(14, 165, 233, 0.1),
    0 0 0 1px rgba(14, 165, 233, 0.15),
    0 0 0 3px rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.skill-card:hover::before {
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.04) 0%, 
    rgba(139, 92, 246, 0.04) 50%,
    rgba(245, 158, 11, 0.04) 100%);
}

.skill-card h3{
  margin-bottom:10px;
  font-weight:800;
  font-size:1.02rem;
}

.skill-bars{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.skill-bars li{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:8px;
}
.skill-bars li > span{ font-weight:600; }
.skill-bars li > b{ color:#64748b; font-weight:700; font-size:.9rem; }

.meter{
  grid-column:1 / -1;
  height:10px; border-radius:999px;
  background: linear-gradient(145deg, #e5e7eb 0%, #d1d5db 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow:hidden;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}
.meter i{
  display:block; height:100%;
  width:var(--p, 0%);
  background: linear-gradient(90deg, var(--accent) 0%, #0284c7 100%);
  border-radius:999px;
  transition:width .5s ease;
  box-shadow: 
    0 1px 3px rgba(14, 165, 233, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.meter i::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    rgba(255, 255, 255, 0.1) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  border-radius: 999px;
  pointer-events: none;
}

/* Quick stats row */
.skill-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  justify-items:center;
  text-align:center;
  padding:34px 12px 6px;
  margin-top: 20px;
  background: linear-gradient(145deg, rgba(248, 250, 252, 0.5) 0%, rgba(241, 245, 249, 0.5) 100%);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.skill-stats strong{
  display:block;
  font-size:1.6rem;
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
.skill-stats span{
  color:var(--muted);
  font-size:.92rem;
  font-weight: 600;
}

/* Enhanced responsive grid breakpoints */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 1024px){
  .skill-cols{ 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
  }
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .skill-cols{ 
    grid-template-columns: repeat(2, 1fr); 
    gap: 14px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px){
  .skill-cols{ 
    grid-template-columns: 1fr; 
    gap: 12px;
  }
  .skill-stats{ 
    grid-template-columns: 1fr; 
    gap: 10px; 
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== About section ===== */
.about-section { padding-top: 20px; }

.about-grid{
  display:grid;
  grid-template-columns: 1.1fr 1fr; /* left text, right cards */
  gap: 24px;
  align-items:start;
}

.about-left p{ margin:0 0 12px; }
.about-left .chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.about-left .chips span{
  font-size:.85rem; padding:6px 10px; border:1px solid var(--line);
  background:#f8fafc; border-radius:999px;
}

/* feature cards on the right */
.about-right{ display:grid; gap:14px; }
.about-card{
  display:grid; grid-template-columns:46px 1fr; gap:12px; align-items:flex-start;
  border-radius:14px;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 18px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 50%,
    rgba(245, 158, 11, 0.02) 100%);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

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

.about-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 
    0 12px 24px -4px rgba(0, 0, 0, 0.08),
    0 6px 12px -2px rgba(14, 165, 233, 0.1),
    0 0 0 1px rgba(14, 165, 233, 0.15),
    0 0 0 3px rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.about-card:hover::before {
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.04) 0%, 
    rgba(139, 92, 246, 0.04) 50%,
    rgba(245, 158, 11, 0.04) 100%);
}
.about-ico{
  width:46px;height:46px; display:grid;place-items:center;
  border: 1px solid rgba(148, 163, 184, 0.2); 
  border-radius:12px; 
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%); 
  font-size:20px;
  color: var(--accent);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.about-card:hover .about-ico {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 
    0 4px 8px rgba(14, 165, 233, 0.15),
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.about-ico i {
  font-size: 20px;
}
.about-card h3{ margin:0 0 6px; font-size:1.02rem; }
.about-card p{ margin:0; color:var(--muted); }

/* Enhanced about section responsive */
@media (max-width: 1024px) {
  .about-grid{ 
    grid-template-columns: 1fr; 
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .about-left .chips{ 
    gap: 6px; 
  }
  .about-left .chips span{
    font-size: 0.8rem; 
    padding: 4px 8px; 
  }
  .about-card {
    padding: 14px;
    gap: 10px;
  }
  .about-card h3 { 
    font-size: 0.95rem; 
  }
}

/* ===== Projects ===== */
.projects-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:24px;
  margin-top:20px;
}

.project-card{
  overflow:hidden;
  border-radius:14px;
  padding:0;
  display:flex;
  flex-direction:column;
  position: relative;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.02) 0%, 
    rgba(139, 92, 246, 0.02) 50%,
    rgba(245, 158, 11, 0.02) 100%);
  border-radius: 14px;
  pointer-events: none;
  z-index: 0;
}

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

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 
    0 16px 32px -8px rgba(0, 0, 0, 0.1),
    0 8px 16px -4px rgba(14, 165, 233, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.15),
    0 0 0 3px rgba(255, 255, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.project-card:hover::before {
  background: linear-gradient(145deg, 
    rgba(14, 165, 233, 0.04) 0%, 
    rgba(139, 92, 246, 0.04) 50%,
    rgba(245, 158, 11, 0.04) 100%);
}
.project-card img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-bottom:1px solid rgba(148, 163, 184, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.project-card:hover img {
  transform: scale(1.02);
}
.project-body{ 
  padding:18px; 
  display:flex; 
  flex-direction:column; 
  gap:10px; 
  flex:1; 
  position: relative;
  z-index: 2;
}

.project-body h3{ margin:0; font-size:1.1rem; }
.project-body p{ margin:0; color:var(--muted); }

.tags{ display:flex; flex-wrap:wrap; gap:6px; }
.tags span{
  font-size:.8rem; 
  padding:4px 8px; 
  border:1px solid rgba(148, 163, 184, 0.2);
  border-radius:999px; 
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
  position: relative;
  z-index: 2;
}

.tags span:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, 0.3);
  background: linear-gradient(145deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 
    0 2px 4px rgba(14, 165, 233, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.bullets{ margin:0; padding-left:18px; font-size:.9rem; color:#334155; }
.bullets li{ margin-bottom:4px; }

.buttons{ margin-top:auto; display:flex; gap:8px; }
.buttons .btn {
  flex: 1;
  text-align: center;
  margin: 0;
}

/* Center the hero button row */
.buttons-center{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.buttons-center .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  text-align: center;
  white-space: nowrap;
}

/* PDF-specific styles */
.html2pdf__page-break { 
  page-break-before: always; 
  break-before: page; 
}

/* Improve PDF generation and print styles */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .navbar {
    position: static !important;
    border-bottom: 1px solid #ddd !important;
    background: white !important;
  }
  
  section {
    padding: 20px !important;
    page-break-inside: avoid;
  }
  
  .hero {
    padding: 30px 20px !important;
  }
  
  .btn {
    border: 1px solid var(--accent) !important;
    background: var(--accent) !important;
    color: white !important;
  }
  
  .btn.ghost {
    background: transparent !important;
    color: var(--accent) !important;
  }
  
  .card {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }
  
  .grid {
    page-break-inside: avoid;
  }
  
  .timeline .item {
    page-break-inside: avoid;
  }
}

/* ===== Enhanced Featured Project Card ===== */
.featured-project-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.featured-project-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    transparent 30%, 
    rgba(14, 165, 233, 0.1) 50%, 
    transparent 70%);
  transform: rotate(-45deg) translate(-100%, -100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.featured-project-card:hover::before {
  transform: rotate(-45deg) translate(100%, 100%);
}

.featured-project-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, 
    rgba(14, 165, 233, 0.05) 0%, 
    rgba(139, 92, 246, 0.03) 40%, 
    transparent 70%);
  border-radius: 16px;
  pointer-events: none;
  z-index: 0;
}

.featured-project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 32px 64px -12px rgba(14, 165, 233, 0.25),
    0 20px 40px -8px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(14, 165, 233, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(14, 165, 233, 0.4);
}

.featured-project-grid {
  position: relative;
  z-index: 2;
}

.featured-project-image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.featured-project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(14, 165, 233, 0.1) 0%, 
    transparent 50%);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.featured-project-card:hover .featured-project-image::before {
  opacity: 1;
}

.featured-project-image img {
  transition: transform 0.4s ease;
  position: relative;
  z-index: 0;
}

.featured-project-card:hover .featured-project-image img {
  transform: scale(1.05);
}

.featured-project-content {
  position: relative;
  z-index: 2;
}

/* Enhanced buttons for featured project */
.featured-project-buttons .btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.featured-project-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.5s ease;
}

.featured-project-buttons .btn:hover::before {
  left: 100%;
}

.featured-project-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(14, 165, 233, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animated spotlight effect */
@keyframes spotlight {
  0% { transform: rotate(-45deg) translate(-200%, -200%); }
  100% { transform: rotate(-45deg) translate(200%, 200%); }
}

.featured-project-card:hover::before {
  animation: spotlight 2s ease-in-out;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First - Base styles above are for mobile */

/* Small tablets and large phones (576px and up) */
@media (max-width: 768px) {
  /* Navbar responsive */
  .navbar {
    padding: 10px 16px;
    flex-wrap: wrap;
  }
  
  .navbar nav {
    order: 3;
    width: 100%;
    display: none;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    border-top: 1px solid var(--line);
    padding: 16px 0;
    margin-top: 12px;
  }
  
  .navbar nav.active {
    display: flex;
  }
  
  .navbar nav a {
    margin: 4px 0;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Hero section */
  .hero {
    padding: 60px 16px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero h2 {
    font-size: 1.3rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Sections */
  section {
    padding: 40px 16px;
    min-height: auto;
  }
  
  /* Buttons */
  .buttons-center {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .buttons-center .btn {
    padding: 12px 20px;
    margin: 0;
    text-align: center;
    min-width: 200px;
    width: auto;
    max-width: 280px;
  }
}

/* Medium tablets (768px and up) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .navbar nav a {
    margin: 0 6px;
    padding: 6px 4px;
    font-size: 0.9rem;
  }
}

/* Large tablets and small desktops (1024px and up) */
@media (min-width: 1024px) {
  .hero {
    padding: 120px 20px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  section {
    padding: 80px 20px;
  }
}

/* Extra responsive utilities */
@media (max-width: 480px) {
  /* Very small phones */
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero h2 {
    font-size: 1.1rem;
  }
  
  .hero {
    padding: 40px 12px;
  }
  
  section {
    padding: 30px 12px;
  }
  
  .btn {
    font-size: 0.9rem;
  }
  
  /* Make cards full width on very small screens */
  .card {
    padding: 16px;
  }
  
  /* Project cards stack nicely */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Contact form adjustments */
  .contact-wrap {
    gap: 16px;
  }
  
  .form-row.two {
    grid-template-columns: 1fr;
  }
}

/* Featured Project Responsive Styles */
@media (max-width: 768px) {
  /* Stack featured project on tablets and mobile */
  .featured-project-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 20px !important;
  }
  
  .featured-project-card {
    border-width: 2px !important;
  }
  
  .featured-project-content h3 {
    font-size: 20px !important;
  }
  
  .featured-project-content p {
    font-size: 15px !important;
  }
  
  .featured-project-content h4 {
    font-size: 15px !important;
  }
  
  .featured-project-content ul {
    font-size: 13px !important;
  }
  
  .featured-project-buttons {
    flex-direction: column !important;
  }
  
  .featured-project-buttons a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Extra small screens - further adjustments */
  .featured-project-grid {
    padding: 16px !important;
    gap: 16px !important;
  }
  
  .featured-project-content h3 {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  .featured-project-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
  }
  
  .featured-project-content .tags {
    margin-bottom: 16px !important;
  }
  
  .featured-project-content .tags span {
    font-size: 11px;
    padding: 4px 10px;
  }
  
  .featured-project-content h4 {
    font-size: 14px !important;
    margin-bottom: 10px !important;
  }
  
  .featured-project-content ul li {
    margin-bottom: 6px !important;
    font-size: 12px !important;
  }
}

/* Enhanced Hero Section Styles */
.hero-enhanced {
  position: relative;
  background: linear-gradient(135deg, #fdfeff 0%, #f8fafc 50%, #f1f5f9 100%);
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(14, 165, 233, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(14, 165, 233, 0.02) 50%, transparent 70%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.01"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.01"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.005"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-enhanced h1 {
  background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 50%, #1e293b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
}

.hero-enhanced h1:hover {
  transform: translateY(-2px);
  text-shadow: 0 4px 8px rgba(14, 165, 233, 0.15);
}

.hero-enhanced h2 {
  color: #475569;
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  line-height: 1.3;
}

.hero-enhanced h2:hover {
  color: #334155;
  transform: translateY(-1px);
}

.hero-enhanced p {
  color: #64748b;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

.hero-enhanced p:hover {
  color: #475569;
  transform: translateY(-1px);
}

/* Premium Button Styles */
.btn-premium {
  position: relative;
  padding: 16px 32px !important;
  font-weight: 600;
  letter-spacing: 0.025em;
  border-radius: 12px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 0 1px rgba(14, 165, 233, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-premium:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.btn-premium.dark {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border-color: rgba(148, 163, 184, 0.2);
}

.btn-premium.dark:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(14, 165, 233, 0.3);
  color: #ffffff;
}

/* Enhanced buttons container */
.hero-enhanced .buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-enhanced .buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  text-align: center;
  white-space: nowrap;
}

/* Subtle animation for the entire hero content */
.hero-content {
  animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced responsive design for hero */
@media (max-width: 768px) {
  .hero-content {
    padding: 60px 16px;
  }
  
  .hero-enhanced h1 {
    font-size: 2.2rem;
  }
  
  .hero-enhanced h2 {
    font-size: 1.3rem;
  }
  
  .hero-enhanced p {
    font-size: 1rem;
  }
  
  .btn-premium {
    padding: 14px 24px !important;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 50px 12px;
  }
  
  .hero-enhanced .buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .hero-enhanced .buttons .btn-premium {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    padding: 16px 24px !important;
    text-align: center;
  }
}

/* ===== Additional Responsive Utilities ===== */

/* Image responsiveness */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive spacing utilities */
.container-fluid {
  max-width: 100%;
  padding: 0 clamp(16px, 4vw, 24px);
}

.section-spacing {
  padding: clamp(40px, 8vw, 80px) 0;
}

.card-spacing {
  padding: clamp(16px, 3vw, 24px);
}

/* Additional breakpoints for fine-tuning */
@media (max-width: 375px) {
  /* Extra small phones */
  .navbar {
    padding: 8px 12px;
  }
  
  section {
    padding: 30px 12px;
  }
  
  .hero { 
    padding: 60px 12px; 
  }
  
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  .skill-card,
  .contact-card,
  .about-card {
    padding: 12px;
  }
}

@media (max-width: 320px) {
  /* Very small phones */
  .navbar {
    padding: 6px 8px;
  }
  
  .navbar .brand {
    font-size: 1rem;
  }
  
  section {
    padding: 24px 8px;
  }
  
  .hero {
    padding: 40px 8px;
  }
}

/* Large screens optimizations */
@media (min-width: 1400px) {
  section {
    max-width: 1200px;
    padding: 80px 24px;
  }
  
  .contact-wrap {
    grid-template-columns: 400px 1fr;
    gap: 32px;
  }
  
  .skill-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Print styles */
@media print {
  .navbar,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }
  
  section {
    padding: 20px 0;
    page-break-inside: avoid;
  }
  
  .hero {
    padding: 40px 0;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .card,
  .skill-card,
  .contact-card,
  .about-card {
    border: 2px solid var(--text);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}
