/* ================================================================
   K. SURYA PRASANTH — PORTFOLIO CSS
   style.css — Main Stylesheet

/* Certifications section — hidden by default, shown via nav click only */
.cert-hidden {
  display: none !important;
}

/* ================================================================
   
   TABLE OF CONTENTS:
   1. CSS Custom Properties (Tokens)
   2. Reset & Base
   3. Utility Classes
   4. Navbar
   5. Hero Section
   6. About Section
   7. Education Section
   8. Skills Section
   9. Projects Section
   10. Certifications Section
   11. Contact Section
   12. Footer
   13. Modals
   14. Back to Top
   15. Scroll Reveal Animations
   16. Responsive — Tablet (max 768px)
   17. Responsive — Mobile (max 480px)
   ================================================================ */

/* ────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ──────────────────────────────────────────── */
:root {
  /* ── DARK THEME (default) ── */
  --bg-primary:      #0a0a0f;
  --bg-secondary:    #111118;
  --bg-card:         #16161f;
  --bg-card-hover:   #1c1c28;
  --bg-glass:        rgba(22, 22, 31, 0.7);

  --text-primary:    #f0f0ff;
  --text-secondary:  #a0a0b8;
  --text-muted:      #6060780;
  --text-accent:     #8b5cf6;

  --accent-primary:  #6c63ff;   /* Indigo-violet */
  --accent-secondary: #a78bfa;  /* Soft purple */
  --accent-green:    #10b981;
  --accent-amber:    #f59e0b;
  --accent-pink:     #ec4899;

  --border-color:    rgba(255, 255, 255, 0.07);
  --border-hover:    rgba(108, 99, 255, 0.4);

  --shadow-sm:       0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:       0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:       0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow:     0 0 40px rgba(108, 99, 255, 0.25);
  --shadow-card:     0 4px 24px rgba(0,0,0,0.4);

  --navbar-bg:       rgba(10, 10, 15, 0.85);
  --navbar-border:   rgba(255,255,255,0.06);

  --gradient-hero:   linear-gradient(135deg, #0a0a0f 0%, #0d0d1a 50%, #0a0a0f 100%);
  --gradient-accent: linear-gradient(135deg, #6c63ff, #a78bfa);
  --gradient-green:  linear-gradient(135deg, #10b981, #34d399);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-primary: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg-primary:      #f7f7ff;
  --bg-secondary:    #eeeefa;
  --bg-card:         #ffffff;
  --bg-card-hover:   #f3f3ff;
  --bg-glass:        rgba(255, 255, 255, 0.75);

  --text-primary:    #12121f;
  --text-secondary:  #4a4a6a;
  --text-accent:     #5046e5;

  --border-color:    rgba(0, 0, 0, 0.08);
  --border-hover:    rgba(108, 99, 255, 0.35);

  --shadow-sm:       0 2px 8px rgba(100, 100, 200, 0.10);
  --shadow-md:       0 8px 32px rgba(100, 100, 200, 0.15);
  --shadow-lg:       0 20px 60px rgba(100, 100, 200, 0.18);
  --shadow-glow:     0 0 40px rgba(108, 99, 255, 0.15);
  --shadow-card:     0 4px 24px rgba(100, 100, 200, 0.12);

  --navbar-bg:       rgba(247, 247, 255, 0.88);
  --navbar-border:   rgba(0,0,0,0.06);

  --gradient-hero:   linear-gradient(135deg, #f7f7ff 0%, #ede9fe 50%, #f7f7ff 100%);
}

/* ────────────────────────────────────────────
   2. RESET & BASE
   ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 10px; }

/* ────────────────────────────────────────────
   3. UTILITY CLASSES
   ──────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.section-line {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-accent);
  margin: 0 auto 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
  background: rgba(108, 99, 255, 0.06);
}

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

/* ────────────────────────────────────────────
   4. NAVBAR
   ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--navbar-border);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: var(--transition);
}
.nav-logo:hover { color: var(--accent-primary); }
.logo-bracket { color: var(--accent-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.1);
}
.nav-link.active { color: var(--accent-primary); }

.nav-resume-btn {
  background: var(--gradient-accent) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  padding: 0.4rem 1rem !important;
  font-size: 0.82rem;
  box-shadow: 0 2px 12px rgba(108,99,255,0.3);
}
.nav-resume-btn:hover {
  box-shadow: 0 4px 20px rgba(108,99,255,0.5);
  transform: translateY(-1px);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.theme-toggle:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: rotate(20deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ────────────────────────────────────────────
   5. HERO SECTION
   ──────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 1.5rem 60px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Ambient glow */
.hero-bg-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowPulse 5s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%,-50%) scale(1.08); }
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5rem;
  position: relative;
  z-index: 1;
}

/* Profile photo */
.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero-photo-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 4px;
  background: var(--gradient-accent);
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.35), var(--shadow-lg);
  animation: floatUpDown 4s ease-in-out infinite;
}
@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--bg-primary);
  background: var(--bg-card);
}

.hero-status-badge {
  position: absolute;
  bottom: 16px;
  right: -16px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: statusPulse 2s ease infinite;
}
@keyframes statusPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* Hero Text */
.hero-text { flex: 1; }

.hero-greeting {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-wrap {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 1.2rem;
  min-height: 2rem;
}

.typed-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

.hero-about {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

/* Scroll down hint */
.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint span {
  display: block;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid var(--text-secondary);
  border-right:  2px solid var(--text-secondary);
  transform: rotate(45deg);
  opacity: 0.5;
}
.scroll-hint span:nth-child(2) { opacity: 0.3; }
@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ────────────────────────────────────────────
   6. ABOUT SECTION
   ──────────────────────────────────────────── */
.about-section { background: var(--bg-secondary); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: visible;
}

.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: var(--transition-slow);
}
.about-photo:hover { transform: scale(1.02); }

.about-photo-deco {
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(108, 99, 255, 0.25);
  z-index: -1;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.about-text {
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  font-size: 0.97rem;
  line-height: 1.8;
}
.about-text strong { color: var(--text-primary); font-weight: 600; }

.about-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-info-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  transition: var(--transition);
}
.about-info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.about-info-card > i {
  color: var(--accent-primary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.info-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.info-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
}

/* ────────────────────────────────────────────
   7. EDUCATION SECTION
   ──────────────────────────────────────────── */
.education-section { background: var(--bg-primary); }

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-accent);
  opacity: 0.4;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(108,99,255,0.15);
  z-index: 1;
  position: relative;
}

.timeline-content {
  flex: 1;
}

.education-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.education-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

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

.edu-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-primary);
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.edu-duration {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.edu-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.edu-degree {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.edu-college {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.edu-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.edu-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.edu-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

/* ────────────────────────────────────────────
   8. SKILLS SECTION
   ──────────────────────────────────────────── */
.skills-section { background: var(--bg-secondary); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.skill-category:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.skill-cat-header > i {
  font-size: 1.2rem;
  color: var(--accent-primary);
  width: 36px;
  height: 36px;
  background: rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.skill-cat-header h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: default;
}
.skill-pill img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.skill-pill:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ────────────────────────────────────────────
   9. PROJECTS SECTION
   ──────────────────────────────────────────── */
.projects-section { background: var(--bg-primary); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-thumbnail {
  height: 200px;
  background: linear-gradient(135deg, var(--thumb-color, #6c63ff) 0%, color-mix(in srgb, var(--thumb-color, #6c63ff) 60%, #000) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12) 0%, transparent 60%);
}
.project-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-thumb-icon {
  font-size: 3.5rem;
  color: rgba(255,255,255,0.3);
  position: relative;
  z-index: 1;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(108, 99, 255, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-footer {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.btn-view-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.btn-view-project:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

/* ────────────────────────────────────────────
   10. CERTIFICATIONS SECTION
   ──────────────────────────────────────────── */
.certifications-section { background: var(--bg-secondary); }

.cert-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.cert-img-wrap {
  height: 160px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.cert-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-primary);
  background: linear-gradient(135deg, rgba(108,99,255,0.08) 0%, rgba(167,139,250,0.08) 100%);
  border-bottom: 1px solid var(--border-color);
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.cert-card:hover .cert-img-wrap img { transform: scale(1.05); }

.cert-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.cert-issuer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.cert-issuer i { color: var(--accent-amber); }

.btn-view-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.25);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
  align-self: flex-start;
}
.btn-view-cert:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ────────────────────────────────────────────
   11. CONTACT SECTION
   ──────────────────────────────────────────── */
.contact-section { background: var(--bg-primary); }

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

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: var(--transition);
}
.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(from var(--icon-color) r g b / 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--icon-color);
  flex-shrink: 0;
  border: 1px solid rgba(from var(--icon-color) r g b / 0.2);
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  transition: var(--transition);
}
a.contact-value:hover { color: var(--accent-primary); }

.contact-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
}
.contact-social-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4);
}

/* Contact Form */
.contact-form-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-secondary); opacity: 0.7; }

.form-note {
  font-size: 0.82rem;
  color: var(--accent-green);
  text-align: center;
  min-height: 1.2em;
}

/* ────────────────────────────────────────────
   12. FOOTER
   ──────────────────────────────────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem 2rem;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--accent-primary); }

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-socials a:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
/* Platform-specific hover colors */
#footer-github:hover    { background: #24292e; border-color: #24292e; }
#footer-linkedin:hover  { background: #0a66c2; border-color: #0a66c2; }
#footer-email:hover     { background: var(--accent-primary); border-color: var(--accent-primary); }
#footer-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: #e1306c; }
#footer-facebook:hover  { background: #1877f2; border-color: #1877f2; }
#footer-discord:hover   { background: #5865f2; border-color: #5865f2; }
#footer-twitter:hover   { background: #000000; border-color: #000000; }
#footer-youtube:hover   { background: #ff0000; border-color: #ff0000; }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ────────────────────────────────────────────
   13. MODALS
   ──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}
.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* Coming Soon Modal */
.coming-soon-icon { font-size: 3.5rem; margin-bottom: 0.75rem; }

.coming-soon-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.coming-soon-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.coming-soon-divider {
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  margin: 0 auto 1.25rem;
}

.coming-soon-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}
.coming-soon-hint a { color: var(--accent-primary); font-weight: 600; }
.coming-soon-hint a:hover { text-decoration: underline; }

/* Certificate Modal */
.cert-modal-box { max-width: 680px; }
.cert-modal-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}
.cert-modal-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-color);
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
}
.cert-modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  padding: 3rem;
}
.cert-modal-placeholder i { font-size: 3rem; color: var(--accent-primary); }
.cert-modal-img { width: 100%; height: auto; display: block; }

/* ────────────────────────────────────────────
   14. BACK TO TOP
   ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gradient-accent);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 900;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.6);
}

/* ────────────────────────────────────────────
   15. SCROLL REVEAL ANIMATIONS
   ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ────────────────────────────────────────────
   16. RESPONSIVE — TABLET (max 900px)
   ──────────────────────────────────────────── */
@media (max-width: 900px) {

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--navbar-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
  }
  .nav-resume-btn {
    width: auto !important;
    margin-top: 0.25rem;
  }
  .hamburger { display: flex; }

  .hero-container { flex-direction: column-reverse; gap: 2.5rem; text-align: center; }
  .hero-photo-ring { width: 220px; height: 220px; }
  .hero-status-badge { right: 0; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo-col { max-width: 400px; margin: 0 auto; }

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

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

  .cert-gallery { grid-template-columns: repeat(2, 1fr); }

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

/* ────────────────────────────────────────────
   17. RESPONSIVE — MOBILE (max 480px)
   ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .section { padding: 70px 0; }

  .hero-photo-ring { width: 180px; height: 180px; }
  .hero-name { font-size: 2rem; }

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

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

  .cert-gallery { grid-template-columns: 1fr; }

  .contact-form-col { padding: 1.5rem; }

  .btn { padding: 0.65rem 1.2rem; font-size: 0.85rem; }

  .back-to-top { bottom: 1.25rem; right: 1.25rem; }
}
