/* ---------- TECH SKILLS GRID ---------- */
.tech-skills-section {
  margin-top: 2.5rem;
}
.tech-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.tech-skill-group {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(2,8,23,.07);
  border: 1px solid rgba(148,163,184,.13);
  padding: 1.5rem 1.2rem 1.2rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  transition: box-shadow .25s, transform .25s;
  position: relative;
  overflow: hidden;
}
.tech-skill-group:hover {
  box-shadow: 0 12px 36px rgba(37,99,235,.13);
  transform: translateY(-3px) scale(1.012);
  border-color: var(--primary);
}
.skill-group-icon {
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(37,99,235,.13);
  margin-top: 0.1rem;
  transition: transform .25s;
}
.tech-skill-group:hover .skill-group-icon {
  transform: scale(1.08) rotate(-6deg);
}
.tech-skill-group h4 {
  margin: 0 0 .35rem 0;
  font-size: 1.08rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.tech-skill-group ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.7;
}
.tech-skill-group ul li {
  position: relative;
  padding-left: .7rem;
}
.tech-skill-group ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1em;
  top: 0.1em;
}
@media (max-width: 700px) {
  .tech-skills-grid {
    grid-template-columns: 1fr;
  }
  .skill-group-icon {
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    font-size: 1.1rem;
  }
}

/* Animate tech skills on scroll */
.animate-skill {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.animate-skill.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* ---------- EXPERIENCE TIMELINE ---------- */
.experience-section {
  padding-bottom: 0;
}
.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  position: relative;
  margin-top: 1.5rem;
}
.experience-timeline::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--primary), var(--accent));
  border-radius: 2px;
  opacity: 0.13;
  z-index: 0;
}
.experience-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(2,8,23,.07);
  border: 1px solid rgba(148,163,184,.15);
  padding: 2rem 2rem 1.5rem 4.5rem;
  position: relative;
  transition: box-shadow .25s, transform .25s;
  z-index: 1;
  opacity: 1;
}
.experience-card:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,.13);
  transform: translateY(-3px) scale(1.012);
  border-color: var(--primary);
}
.exp-header {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1rem;
}
.exp-icon {
  position: absolute;
  left: -8px;
  top: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(37,99,235,.13);
  z-index: 2;
  transition: transform .25s;
}
.experience-card:hover .exp-icon {
  transform: scale(1.08) rotate(-6deg);
}
.exp-header h3 {
  margin: 0 0 0.15rem 0;
  font-size: 1.15rem;
  color: var(--heading);
  font-family: 'Poppins', sans-serif;
}
.exp-role {
  display: block;
  font-size: .98rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .1rem;
}
.exp-dates {
  margin-left: auto;
  color: var(--muted);
  font-size: .97rem;
  font-weight: 500;
  white-space: nowrap;
}
.exp-list {
  margin: 0 0 0.5rem 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.exp-list li {
  position: relative;
  padding-left: .7rem;
}
.exp-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 1.1em;
  top: 0.1em;
}
@media (max-width: 700px) {
  .experience-card {
    padding: 1.5rem 1rem 1.2rem 3.2rem;
  }
  .experience-timeline::before {
    left: 18px;
  }
  .exp-icon {
    left: -16px;
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    top: 1.5rem;
  }
}

/* Animate on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- THEME TOKENS ---------- */
:root{
  --primary:#2563eb; --secondary:#3b82f6; --accent:#60a5fa;
  --bg:#f8fafc; --card:#ffffff; --text:#334155; --heading:#0f172a; --muted:#64748b;
  --ring:0 0 0 3px rgba(37,99,235,.25);
  color-scheme: light;
}
:root[data-theme="dark"]{
  --bg:#0b1220; --card:#0f172a; --text:#cbd5e1; --heading:#e2e8f0; --muted:#94a3b8; --accent:#60a5fa;
  color-scheme: dark;
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}
.container{max-width:1200px;margin:0 auto;padding:0 1.25rem}

/* ---------- NAV ---------- */
.header{position:fixed;top:0;left:0;width:100%;z-index:1200;background:var(--card);box-shadow:0 2px 5px rgba(0,0,0,.06);--header-height:52px}
.nav{max-width:1200px;margin:0 auto;padding:0.6rem 0.75rem;display:flex;align-items:center;gap:0.75rem}
.nav-list{list-style:none;display:flex;gap:1.25rem;margin-left:auto}
.nav a{text-decoration:none;color:var(--text);font-weight:500}
.nav a:hover{color:var(--primary)}
.brand{color:var(--text);text-decoration:none}
.theme-toggle{border:0;background:transparent;cursor:pointer;font-size:1.1rem;color:var(--text);padding:.45rem .6rem;border-radius:999px}
.theme-toggle:focus-visible{box-shadow:var(--ring)}

/* Hamburger (mobile) */
.nav-toggle{display:none;background:none;border:0;cursor:pointer;padding:.5rem;margin-right:.5rem}
.hamburger{display:block;width:26px;height:3px;background:var(--primary);position:relative}
.hamburger::before,.hamburger::after{content:'';position:absolute;left:0;width:26px;height:3px;background:var(--primary)}
.hamburger::before{top:-8px}.hamburger::after{top:8px}
@media (max-width:768px){
  .nav-toggle{display:block}
  .nav{position:relative}
  .nav-list{position:absolute;top:100%;left:50%;transform:translateX(-50%);width:90%;max-width:400px;background:rgba(255,255,255,.97);backdrop-filter:saturate(180%) blur(6px);opacity:0;visibility:hidden;flex-direction:column;align-items:center;gap:1rem;padding:1rem;border-radius:12px;box-shadow:0 4px 20px rgba(0,0,0,0.1);border:1px solid rgba(148,163,184,.25);z-index:999;transition:all 0.3s ease-in-out;transform-origin:top}
  :root[data-theme="dark"] .nav-list{background:rgba(15,23,42,.96)}
  .nav-list.open{opacity:1;visibility:visible;transform:translateX(-50%) scale(1)}
}

/* ---------- HERO ---------- */
.hero{position:relative;background:url('../../img/resume.png') center/cover no-repeat;background-attachment:scroll;min-height:52vh;padding:3rem 1.5rem 2rem;display:grid;place-items:center;text-align:center;color:#fff;overflow:hidden;isolation:isolate;transform:translateZ(0);margin-top:var(--header-height,52px)}
.hero h1{margin-top:0.25rem}
.hero h2{margin-top:0.5rem}
.hero.small{min-height:18vh}
.hero-overlay{position:absolute;inset:0;background:
  radial-gradient(60% 60% at 50% 40%, rgba(37,99,235,.35) 0%, transparent 60%),
  linear-gradient(to bottom, rgba(2,8,23,.55), rgba(2,8,23,.65));z-index:0}
.hero h1,.hero h2,.hero .hero-cta{position:relative;z-index:1}
.hero h1{font-family:'Poppins',sans-serif;font-weight:700;font-size:clamp(2rem,4vw + 1rem,3.6rem);letter-spacing:.3px;margin:0}
.hero h2{font-weight:500;font-size:clamp(1rem,1.4vw + .8rem,1.4rem);color:#e2e8f0;margin-top:.35rem;opacity:.95}
.hero-cta{display:flex;gap:1rem;margin-top:1.5rem}
.cta-button{padding:.85rem 1.3rem;border-radius:999px;font-weight:600;text-decoration:none;border:2px solid transparent;transition:.25s ease;will-change:transform}
.cta-button.primary{background:var(--primary);color:white}
.cta-button.primary:hover{transform:translateY(-2px);filter:brightness(1.07)}
.cta-button.secondary{background:transparent;color:white;border-color:rgba(255,255,255,.9)}
.cta-button.secondary:hover{background:white;color:var(--primary)}
.hero-scrollhint{position:absolute;bottom:1rem;left:50%;translate:-50% 0;opacity:.75}
.hero-scrollhint .chev{display:block;width:24px;height:24px;border-bottom:2px solid #fff;border-right:2px solid #fff;rotate:45deg;animation:floaty 1.6s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}

/* keep main content below fixed header */
.main-content{padding-top:var(--header-height)}

/* ---------- SECTIONS ---------- */
section{max-width:1200px;margin:3rem auto;padding:0 1rem}
section h2{font-family:'Poppins',sans-serif;color:var(--heading);margin-bottom:1.25rem;font-size:clamp(1.5rem,2vw + 1rem,2.2rem)}
.about-content p{margin-bottom:1rem;color:var(--text)}

/* Skills */
.skills-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;margin-top:1rem}
.skill-category{background:var(--card);padding:1.5rem;border-radius:16px;box-shadow:0 8px 30px rgba(2,8,23,.06);border:1px solid rgba(148,163,184,.18);transition:transform .2s ease, box-shadow .2s ease}
.skill-category:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(2,8,23,.08)}
.skill-category h3{color:var(--primary);margin-top:0}
.skill-category ul{list-style:none;padding:0;margin:0}
.skill-category li{display:flex;align-items:center;gap:.6rem;margin:.55rem 0}
.skill-category i{color:var(--accent)}

/* Projects */
.project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.25rem}
.project-card{background:var(--card);padding:1.5rem;border-radius:16px;box-shadow:0 8px 30px rgba(2,8,23,.06);border:1px solid rgba(148,163,184,.18);transition:transform .2s ease, box-shadow .2s ease}
.project-card:hover{transform:translateY(-4px);box-shadow:0 14px 40px rgba(2,8,23,.08)}
.project-card h3{margin-top:0;color:var(--heading)}
.project-link{color:var(--primary);text-decoration:none;display:inline-flex;align-items:center;gap:.45rem;font-weight:600}

/* Resume page helpers */
.skills-inline{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none;padding:0}
.skills-inline li{padding:.45rem .7rem;border:1px solid rgba(148,163,184,.35);border-radius:999px;background:transparent}

/* Contact page */
.page-title{font-family:'Poppins',sans-serif;color:var(--heading);margin:2rem 0 0}
.page-intro{color:var(--muted)}
.contact-grid{display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));margin:1.25rem 0 3rem}
.contact-card{background:var(--card);border-radius:16px;padding:1.25rem 1.25rem 1.1rem;box-shadow:0 8px 30px rgba(2,8,23,.06);border:1px solid rgba(148,163,184,.18)}
.contact-card h2{margin:0 0 .75rem;display:flex;align-items:center;gap:.6rem}
.contact-list{list-style:none;padding:0;display:grid;gap:.65rem}
.contact-list a{color:var(--primary);text-decoration:none}
.copy-btn{margin-left:.5rem;padding:.35rem .6rem;font-size:.75rem;border-radius:8px;border:1px solid rgba(148,163,184,.5);background:transparent;color:var(--text);cursor:pointer}
.copy-btn:hover{border-color:var(--primary);color:var(--primary)}
.contact-form label{display:grid;gap:.4rem;margin:.6rem 0}
.contact-form input,.contact-form textarea{padding:.75rem .85rem;border-radius:10px;border:1px solid rgba(148,163,184,.45);background:transparent;color:var(--text)}
.contact-form input:focus,.contact-form textarea:focus{outline:none;box-shadow:var(--ring)}
.form-note{color:var(--muted);margin-top:.6rem}

/* Footer */
.footer{background:var(--heading);color:#fff;padding:2rem 0;margin-top:3rem}
.footer-content{display:flex;flex-direction:column;align-items:center;gap:1.25rem}
.footer-social{display:flex;gap:1.25rem}
.footer-social a{color:#fff;font-size:1.4rem}
.footer-social a:hover{color:var(--accent)}
.footer-text{text-align:center;margin:0}

/* ---------- RESUME PAGE ---------- */
.resume-container{
  max-width:1200px;
  margin:2rem auto 3rem;
  padding:0 1.25rem;
}

.resume-header-actions{
  display:flex;
  gap:1rem;
  justify-content:center;
  margin-bottom:2rem;
  flex-wrap:wrap;
}

.btn-resume{
  padding:.85rem 1.5rem;
  border-radius:12px;
  font-weight:600;
  font-size:.95rem;
  text-decoration:none;
  border:2px solid transparent;
  transition:all .25s ease;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-family:'Inter',sans-serif;
}

.btn-primary{
  background:var(--primary);
  color:white;
  border-color:var(--primary);
}

.btn-primary:hover{
  background:var(--secondary);
  border-color:var(--secondary);
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(37,99,235,.3);
}

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

.btn-secondary:hover{
  background:var(--primary);
  color:white;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(37,99,235,.2);
}

.resume-body{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:2rem;
  align-items:start;
}

@media (max-width:968px){
  .resume-body{
    grid-template-columns:1fr;
  }
}

.resume-main{
  display:flex;
  flex-direction:column;
  gap:2rem;
}

.resume-section{
  background:var(--card);
  padding:2rem;
  border-radius:16px;
  box-shadow:0 8px 30px rgba(2,8,23,.06);
  border:1px solid rgba(148,163,184,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}

.resume-section:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(2,8,23,.1);
}

.resume-section h2{
  font-family:'Poppins',sans-serif;
  color:var(--primary);
  font-size:1.5rem;
  margin:0 0 1rem;
  display:flex;
  align-items:center;
  gap:.6rem;
  padding-bottom:.75rem;
  border-bottom:2px solid rgba(37,99,235,.15);
}

.resume-section h2 i{
  font-size:1.3rem;
}

.section-content{
  color:var(--text);
  line-height:1.7;
}

.section-content p{
  margin:.75rem 0;
}

.resume-side{
  display:flex;
  flex-direction:column;
  gap:1.5rem;
  position:sticky;
  top:calc(var(--header-height) + 1rem);
}

.card{
  background:var(--card);
  padding:1.5rem;
  border-radius:16px;
  box-shadow:0 8px 30px rgba(2,8,23,.06);
  border:1px solid rgba(148,163,184,.18);
  transition:transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 40px rgba(2,8,23,.1);
}

.card h3{
  font-family:'Poppins',sans-serif;
  color:var(--primary);
  font-size:1.2rem;
  margin:0 0 1.25rem;
  display:flex;
  align-items:center;
  gap:.5rem;
  padding-bottom:.75rem;
  border-bottom:2px solid rgba(37,99,235,.15);
}

.contact-item{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  margin-bottom:1.25rem;
  padding-bottom:1rem;
  border-bottom:1px solid rgba(148,163,184,.12);
}

.contact-item:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

.contact-item i{
  font-size:1.3rem;
  color:var(--accent);
  margin-top:.25rem;
  min-width:1.3rem;
}

.contact-item strong{
  display:block;
  color:var(--heading);
  font-size:.9rem;
  margin-bottom:.25rem;
}

.contact-item p{
  margin:0;
  font-size:.9rem;
  color:var(--text);
}

.contact-item a{
  color:var(--primary);
  text-decoration:none;
  word-break:break-word;
}

.contact-item a:hover{
  text-decoration:underline;
}

.education-item{
  margin-bottom:1.5rem;
  padding-bottom:1.25rem;
  border-bottom:1px solid rgba(148,163,184,.12);
}

.education-item:last-child{
  margin-bottom:0;
  padding-bottom:0;
  border-bottom:none;
}

.education-item h4{
  color:var(--heading);
  font-size:1.05rem;
  margin:0 0 .5rem;
  font-weight:600;
}

.education-item .degree{
  color:var(--text);
  margin:.25rem 0;
  font-weight:500;
}

.education-item .date{
  color:var(--muted);
  font-size:.85rem;
  margin:.25rem 0 0;
  display:flex;
  align-items:center;
  gap:.4rem;
}

.skills-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.75rem;
}

.skills-list li{
  display:flex;
  align-items:center;
  gap:.75rem;
  padding:.65rem .85rem;
  background:rgba(37,99,235,.05);
  border-radius:10px;
  color:var(--text);
  font-weight:500;
  transition:all .2s ease;
  border:1px solid rgba(37,99,235,.1);
}

.skills-list li:hover{
  background:rgba(37,99,235,.1);
  transform:translateX(5px);
  border-color:rgba(37,99,235,.2);
}

.skills-list li i{
  color:var(--primary);
  font-size:1.1rem;
  min-width:1.1rem;
}

/* Print styles for resume */
@media print{
  .header, .footer, .resume-header-actions, .theme-toggle{
    display:none !important;
  }
  
  .hero{
    min-height:auto;
    padding:1rem;
    margin-top:0;
  }
  
  .resume-body{
    grid-template-columns:1fr;
    gap:1rem;
  }
  
  .resume-section, .card{
    box-shadow:none;
    border:1px solid #ddd;
    page-break-inside:avoid;
  }
  
  body{
    background:white;
    color:black;
  }
}

  /* ---------- CONTACT PAGE ---------- */
  .contact-main-container{
    max-width:1400px;
    margin:0 auto;
    padding:2rem 1.25rem 3rem;
  }

  .contact-intro{
    text-align:center;
    margin-bottom:3rem;
  }

  .intro-text{
    font-size:1.15rem;
    color:var(--text);
    max-width:700px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.75rem;
    line-height:1.7;
  }

  .intro-text i{
    color:var(--primary);
    font-size:1.5rem;
    flex-shrink:0;
  }

  .contact-grid{
    display:grid;
    grid-template-columns:1fr 1.2fr;
    gap:2rem;
    align-items:start;
  }

  @media (max-width:968px){
    .contact-grid{
      grid-template-columns:1fr;
    }
  }

  .contact-info-section{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:1.5rem;
  }

  @media (max-width:968px){
    .contact-info-section{
      grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    }
  }

  .contact-card-modern{
    background:var(--card);
    padding:2rem 1.5rem;
    border-radius:16px;
    box-shadow:0 8px 30px rgba(2,8,23,.06);
    border:1px solid rgba(148,163,184,.18);
    transition:all .3s ease;
    text-align:center;
    position:relative;
    overflow:hidden;
  }

  .contact-card-modern::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,var(--primary),var(--accent));
    transform:scaleX(0);
    transition:transform .3s ease;
  }

  .contact-card-modern:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 40px rgba(2,8,23,.12);
    border-color:rgba(37,99,235,.3);
  }

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

  .card-icon{
    width:60px;
    height:60px;
    margin:0 auto 1rem;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:white;
    font-size:1.5rem;
    box-shadow:0 4px 15px rgba(37,99,235,.3);
    transition:all .3s ease;
  }

  .contact-card-modern:hover .card-icon{
    transform:scale(1.1) rotate(5deg);
    box-shadow:0 6px 20px rgba(37,99,235,.4);
  }

  .contact-card-modern h3{
    font-family:'Poppins',sans-serif;
    color:var(--heading);
    font-size:1.1rem;
    margin:0 0 .75rem;
    font-weight:600;
  }

  .contact-card-modern p{
    color:var(--text);
    margin:.5rem 0;
    font-size:.95rem;
    line-height:1.6;
  }

  .contact-card-modern a{
    color:var(--primary);
    text-decoration:none;
    font-weight:500;
    word-break:break-word;
  }

  .contact-card-modern a:hover{
    text-decoration:underline;
  }

  .card-subtext{
    font-size:.85rem !important;
    color:var(--muted) !important;
    font-style:italic;
  }

  .copy-btn-modern{
    margin-top:.75rem;
    padding:.5rem 1rem;
    background:transparent;
    border:2px solid var(--primary);
    border-radius:8px;
    color:var(--primary);
    font-size:.85rem;
    font-weight:600;
    cursor:pointer;
    transition:all .25s ease;
    display:inline-flex;
    align-items:center;
    gap:.4rem;
    font-family:'Inter',sans-serif;
  }

  .copy-btn-modern:hover{
    background:var(--primary);
    color:white;
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(37,99,235,.3);
  }

  .copy-btn-modern i{
    font-size:.9rem;
  }

  .social-links-card{
    grid-column:span 2;
  }

  @media (max-width:600px){
    .social-links-card{
      grid-column:span 1;
    }
  }

  .social-links{
    display:flex;
    gap:1rem;
    justify-content:center;
    margin-top:1rem;
  }

  .social-link{
    display:flex;
    align-items:center;
    gap:.5rem;
    padding:.75rem 1.25rem;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;
    transition:all .25s ease;
    border:2px solid transparent;
  }

  .social-link.linkedin{
    background:rgba(10,102,194,.1);
    color:#0a66c2;
    border-color:rgba(10,102,194,.2);
  }

  .social-link.linkedin:hover{
    background:#0a66c2;
    color:white;
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(10,102,194,.3);
  }

  .social-link.github{
    background:rgba(36,41,47,.1);
    color:#24292f;
    border-color:rgba(36,41,47,.2);
  }

  :root[data-theme="dark"] .social-link.github{
    color:#f0f6fc;
  }

  .social-link.github:hover{
    background:#24292f;
    color:white;
    transform:translateY(-2px);
    box-shadow:0 4px 12px rgba(36,41,47,.3);
  }

  .social-link i{
    font-size:1.2rem;
  }

  /* Contact Form */
  .contact-form-section{
    position:sticky;
    top:calc(var(--header-height) + 1rem);
  }

  .contact-form-modern{
    background:var(--card);
    padding:2.5rem;
    border-radius:20px;
    box-shadow:0 10px 40px rgba(2,8,23,.08);
    border:1px solid rgba(148,163,184,.18);
  }

  .form-header{
    text-align:center;
    margin-bottom:2rem;
    padding-bottom:1.5rem;
    border-bottom:2px solid rgba(148,163,184,.12);
  }

  .form-header i{
    font-size:2.5rem;
    color:var(--primary);
    margin-bottom:.75rem;
    display:block;
  }

  .form-header h2{
    font-family:'Poppins',sans-serif;
    color:var(--heading);
    font-size:1.6rem;
    margin:0 0 .5rem;
  }

  .form-header p{
    color:var(--muted);
    font-size:.95rem;
    margin:0;
  }

  .form-group{
    margin-bottom:1.5rem;
  }

  .form-group label{
    display:flex;
    align-items:center;
    gap:.5rem;
    color:var(--heading);
    font-weight:600;
    margin-bottom:.5rem;
    font-size:.95rem;
  }

  .form-group label i{
    color:var(--primary);
    font-size:1rem;
  }

  .form-group input,
  .form-group textarea{
    width:100%;
    padding:.85rem 1rem;
    border:2px solid rgba(148,163,184,.25);
    border-radius:10px;
    background:var(--bg);
    color:var(--text);
    font-size:.95rem;
    font-family:'Inter',sans-serif;
    transition:all .25s ease;
  }

  .form-group input:focus,
  .form-group textarea:focus{
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(37,99,235,.1);
    transform:translateY(-1px);
  }

  .form-group textarea{
    resize:vertical;
    min-height:120px;
    line-height:1.6;
  }

  .submit-btn{
    width:100%;
    padding:1rem 1.5rem;
    background:linear-gradient(135deg,var(--primary),var(--accent));
    color:white;
    border:none;
    border-radius:12px;
    font-size:1rem;
    font-weight:600;
    font-family:'Inter',sans-serif;
    cursor:pointer;
    transition:all .3s ease;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    box-shadow:0 4px 15px rgba(37,99,235,.3);
  }

  .submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(37,99,235,.4);
  }

  .submit-btn:active{
    transform:translateY(0);
  }

  .submit-btn i{
    font-size:1.1rem;
    transition:transform .3s ease;
  }

  .submit-btn:hover i{
    transform:translateX(3px);
  }

  .contact-form-modern .form-note{
    text-align:center;
    color:var(--muted);
    font-size:.85rem;
    margin-top:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
    line-height:1.5;
  }

  .contact-form-modern .form-note i{
    color:var(--accent);
    font-size:.9rem;
  }

  /* Success/Error Messages */
  .form-message{
    padding:1rem;
    border-radius:10px;
    margin-bottom:1.5rem;
    display:flex;
    align-items:center;
    gap:.75rem;
    font-weight:500;
  }

  .form-message.success{
    background:rgba(34,197,94,.1);
    color:#16a34a;
    border:1px solid rgba(34,197,94,.3);
  }

  .form-message.error{
    background:rgba(239,68,68,.1);
    color:#dc2626;
    border:1px solid rgba(239,68,68,.3);
  }

  .form-message i{
    font-size:1.2rem;
  }

/* ---------- BLOG PAGE ---------- */
.blog-main{
  padding-top:calc(var(--header-height) + 1rem);
}

.page-hero{
  background:linear-gradient(135deg,rgba(37,99,235,.05),rgba(96,165,250,.05));
  padding:3rem 1.5rem 2.5rem;
  text-align:center;
  border-radius:20px;
  margin-bottom:2rem;
  border:1px solid rgba(148,163,184,.12);
}

.page-hero h1{
  font-family:'Poppins',sans-serif;
  color:var(--heading);
  font-size:clamp(2rem,4vw,3rem);
  margin:0 0 .75rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
}

.page-hero h1 i{
  color:var(--primary);
}

.page-subtitle{
  color:var(--text);
  font-size:1.1rem;
  max-width:700px;
  margin:0 auto;
}

.blog-section{
  max-width:1200px;
  margin:0 auto 3rem;
  padding:0 1.25rem;
}

.blog-filters{
  display:flex;
  gap:1rem;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:2.5rem;
}

.filter-btn{
  padding:.75rem 1.5rem;
  background:var(--card);
  border:2px solid rgba(148,163,184,.2);
  border-radius:999px;
  color:var(--text);
  font-weight:600;
  font-size:.95rem;
  cursor:pointer;
  transition:all .25s ease;
  font-family:'Inter',sans-serif;
}

.filter-btn:hover{
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(37,99,235,.15);
}

.filter-btn.active{
  background:var(--primary);
  color:white;
  border-color:var(--primary);
  box-shadow:0 4px 15px rgba(37,99,235,.3);
}

.blog-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
  gap:2rem;
  margin-bottom:3rem;
}

@media (max-width:700px){
  .blog-grid{
    grid-template-columns:1fr;
  }
}

.blog-card{
  background:var(--card);
  border-radius:16px;
  padding:1.75rem;
  box-shadow:0 8px 30px rgba(2,8,23,.06);
  border:1px solid rgba(148,163,184,.15);
  transition:all .3s ease;
  display:flex;
  flex-direction:column;
  opacity:1;
}

.blog-card:hover{
  transform:translateY(-5px);
  box-shadow:0 12px 40px rgba(2,8,23,.12);
  border-color:rgba(37,99,235,.3);
}

.blog-card-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:1rem;
  gap:.75rem;
  flex-wrap:wrap;
}

.blog-category{
  display:inline-block;
  padding:.4rem .9rem;
  border-radius:999px;
  font-size:.8rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.blog-category.cloud{
  background:rgba(37,99,235,.1);
  color:#2563eb;
}

.blog-category.devops{
  background:rgba(139,92,246,.1);
  color:#8b5cf6;
}

.blog-category.sysadmin{
  background:rgba(34,197,94,.1);
  color:#22c55e;
}

.blog-category.webdev{
  background:rgba(249,115,22,.1);
  color:#f97316;
}

.blog-date{
  color:var(--muted);
  font-size:.85rem;
  display:flex;
  align-items:center;
  gap:.4rem;
}

.blog-card h3{
  font-family:'Poppins',sans-serif;
  color:var(--heading);
  font-size:1.3rem;
  margin:0 0 1rem;
  line-height:1.4;
}

.blog-card p{
  color:var(--text);
  font-size:.95rem;
  line-height:1.7;
  margin:0 0 1.5rem;
  flex-grow:1;
}

.blog-card-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:1rem;
  border-top:1px solid rgba(148,163,184,.12);
}

.read-time{
  color:var(--muted);
  font-size:.85rem;
  display:flex;
  align-items:center;
  gap:.4rem;
}

.read-more{
  color:var(--primary);
  text-decoration:none;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:.4rem;
  transition:all .25s ease;
}

.read-more:hover{
  gap:.7rem;
  color:var(--accent);
}

.read-more i{
  transition:transform .25s ease;
}

.read-more:hover i{
  transform:translateX(3px);
}

.blog-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:2rem;
  margin-top:3rem;
}

.pagination-btn{
  padding:.75rem 1.5rem;
  background:var(--card);
  border:2px solid rgba(148,163,184,.2);
  border-radius:10px;
  color:var(--text);
  font-weight:600;
  cursor:pointer;
  transition:all .25s ease;
  display:flex;
  align-items:center;
  gap:.5rem;
  font-family:'Inter',sans-serif;
}

.pagination-btn:hover:not(:disabled){
  border-color:var(--primary);
  color:var(--primary);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(37,99,235,.15);
}

.pagination-btn:disabled{
  opacity:.4;
  cursor:not-allowed;
}

.pagination-info{
  color:var(--text);
  font-weight:500;
}

/* Reading progress bar for blog posts */
.reading-progress{
  position:fixed;
  top:var(--header-height,52px);
  left:0;
  width:100%;
  height:4px;
  background:rgba(148,163,184,.15);
  z-index:1000;
}

.reading-progress-bar{
  height:100%;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  width:0;
  transition:width .1s ease;
}

/* Animation for blog cards */
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ---------- SERVICES SECTION ---------- */
.services-section {
  margin: 3rem auto;
  padding: 0 1.25rem;
  max-width: 1200px;
}
.services-section h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(2,8,23,.06);
  border: 1px solid rgba(148,163,184,.15);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,.13);
  transform: translateY(-3px) scale(1.012);
  border-color: var(--primary);
}
.service-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.service-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.7;
}
.service-card ul li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: .7rem;
}
.service-card ul li:last-child {
  margin-bottom: 0;
}
.service-card ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1.1em;
  top: 0.1em;
}
.service-card em {
  color: var(--muted);
  font-size: .95em;
  font-style: italic;
  display: block;
  margin-top: .3em;
}
@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 1.2rem .7rem 1rem .7rem;
  }
}

/* ---------- SIMPLE SERVICES SECTION ---------- */
.services-section {
  margin: 3rem auto;
  padding: 0 1.25rem;
  max-width: 1200px;
}
.services-section h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  justify-content: center;
}
.services-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}
.service-simple-card {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(37,99,235,.08);
  border: 1px solid rgba(148,163,184,.13);
  padding: 2.2rem 1.2rem 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
  min-height: 260px;
}
.service-simple-card:hover {
  box-shadow: 0 16px 48px rgba(37,99,235,.13);
  transform: translateY(-4px) scale(1.03);
  border-color: var(--primary);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 16px rgba(37,99,235,.13);
  transition: transform .25s;
}
.service-simple-card:hover .service-icon {
  transform: scale(1.12) rotate(-8deg);
}
.service-simple-card h3 {
  margin: 0 0 .7rem 0;
  font-size: 1.15rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}
.service-simple-card p {
  color: var(--text);
  font-size: .98rem;
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 700px) {
  .services-simple-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .service-simple-card {
    padding: 1.2rem .7rem 1rem .7rem;
    min-height: 180px;
  }
  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin-bottom: .7rem;
  }
}
