/* ==========================================================================
   Gbenga Abiodun - Premium Developer Portfolio Design System
   Style Sheet: style.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES / DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --primary: #008838;
  --primary-hover: #00a644;
  --primary-light: #00b74a;
  --primary-glow: #3cff9c;
  --primary-subtle: rgba(0, 136, 56, 0.15);
  --primary-border: rgba(0, 255, 120, 0.25);

  /* Gradients */
  --grad-primary: linear-gradient(
    135deg,
    #008838 0%,
    #00b74a 50%,
    #3cff9c 100%
  );
  --grad-dark-surface: linear-gradient(145deg, #1b1b1c 0%, #2d2d2f 100%);
  --grad-glow: radial-gradient(
    circle at center,
    rgba(60, 255, 156, 0.15) 0%,
    transparent 70%
  );

  /* Typography */
  --font-main:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --font-heading: "Space Grotesk", var(--font-main);

  /* Dark Theme Default Variables */
  --bg-body: #1b1b1c;
  --bg-card: rgba(45, 45, 47, 0.6);
  --bg-card-hover: rgba(55, 55, 60, 0.85);
  --bg-nav: rgba(27, 27, 28, 0.85);
  --bg-input: rgba(35, 35, 38, 0.8);

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-inverse: #0f172a;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 255, 120, 0.4);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(0, 255, 120, 0.25);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1240px;
}

#form-status {
  margin-top: 1rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

#submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Light Theme Overrides */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-input: rgba(241, 245, 249, 0.98);

  --text-main: #0f172a;
  --text-muted: #334155;
  --text-inverse: #ffffff;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 136, 56, 0.5);
  --primary-glow: #0e7a3b;
  --primary-subtle: rgba(0, 136, 56, 0.12);
  --primary-border: rgba(0, 136, 56, 0.2);

  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 136, 56, 0.08);
  --shadow-glow: 0 0 30px rgba(0, 136, 56, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color var(--transition-normal),
    color var(--transition-normal);
  position: relative;
}

[data-theme="light"] .hero-subtitle-wrapper,
[data-theme="light"] .hero-tagline,
[data-theme="light"] .section-description,
[data-theme="light"] .about-card p,
[data-theme="light"] .service-desc,
[data-theme="light"] .timeline-desc,
[data-theme="light"] .project-desc,
[data-theme="light"] .contact-info-label,
[data-theme="light"] .footer-copy,
[data-theme="light"] .form-label {
  color: var(--text-muted);
}

[data-theme="light"] .name-gradient,
[data-theme="light"] .nav-logo-text,
[data-theme="light"] .preloader-logo,
[data-theme="light"] .stat-number {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
}

/* Selection */
::selection {
  background: var(--primary);
  color: #ffffff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 136, 56, 0.4);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --------------------------------------------------------------------------
   3. MOUSE SPOTLIGHT & AMBIENT GLOW
   -------------------------------------------------------------------------- */
#mouse-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  margin-top: -300px;
  margin-left: -300px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 120, 0.08) 0%,
    rgba(0, 136, 56, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  transition: transform 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   4. PRELOADER & SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  background-color: #1b1b1c;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition:
    opacity var(--transition-slow) ease,
    visibility var(--transition-slow) ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.preloader-bar-bg {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Scroll Progress Top Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 1001;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: width 0.1s linear;
}

/* --------------------------------------------------------------------------
   5. NAVIGATION BAR
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  transition:
    padding var(--transition-normal),
    background-color var(--transition-normal),
    backdrop-filter var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.8rem 0;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
  animation: pulseGlow 2s infinite ease-in-out;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--primary-glow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Switch Toggle */
.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-subtle);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.4s ease;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Floating Gradient Blobs */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: blobFloat 12s infinite alternate ease-in-out;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: #008838;
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: #00b74a;
  bottom: 0px;
  left: -150px;
  animation-delay: -6s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: #3cff9c;
  top: 40%;
  right: 20%;
  opacity: 0.15;
}

/* Hero Content Grid */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero-text-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-glow);
  border-radius: 50%;
  animation: pulseGlow 1.5s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.name-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-wrapper {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  flex-wrap: wrap;
}

.typing-text {
  color: var(--primary-glow);
  font-family: var(--font-heading);
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.3em;
  background-color: var(--primary-glow);
  animation: blink 0.8s infinite;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 136, 56, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 255, 120, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  box-shadow: 0 0 20px var(--primary-subtle);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary-border);
  color: var(--primary-glow);
}

.btn-outline:hover {
  background: var(--primary-subtle);
  transform: translateY(-2px);
}

/* Social Icons Row */
.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  backdrop-filter: blur(10px);
}

.social-icon-btn:hover {
  color: var(--primary-glow);
  border-color: var(--primary-light);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 0 20px var(--primary-subtle);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hero Image Side */
.hero-image-side {
  display: flex;
  justify-content: center;
  position: relative;
}

.profile-card-glow {
  position: relative;
  width: 320px;
  height: 380px;
  border-radius: var(--radius-lg);
  padding: 8px;
  background: linear-gradient(
    135deg,
    rgba(0, 136, 56, 0.6) 0%,
    rgba(27, 27, 28, 0.4) 50%,
    rgba(60, 255, 156, 0.8) 100%
  );
  box-shadow: var(--shadow-glow);
  animation: floatImage 6s ease-in-out infinite alternate;
}

.profile-card-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 4px);
  overflow: hidden;
  position: relative;
  background: var(--bg-card);
}

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

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

/* --------------------------------------------------------------------------
   7. SECTION HEADINGS & DIVIDERS
   -------------------------------------------------------------------------- */
.section {
  padding: 5.5rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem auto;
}

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

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   8. ABOUT SECTION
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.about-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.2rem;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.stat-box:hover {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-subtle);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. SERVICES SECTION
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. SKILLS & ANIMATED PROGRESS RINGS
   -------------------------------------------------------------------------- */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.2rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.3rem 0.8rem;
  text-align: center;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: var(--primary-light);
  box-shadow: 0 0 25px var(--primary-subtle);
}

.skill-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Circular Progress Rings Grid */
.progress-rings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  justify-items: center;
}

.progress-ring-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  width: 100%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.progress-ring-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-subtle);
  transform: translateY(-4px);
}

.ring-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 0.8rem;
}

.ring-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ring-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
}

[data-theme="light"] .ring-circle-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

.ring-circle-val {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.ring-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. FEATURED TECHNOLOGIES (GENTLY FLOATING LOGOS)
   -------------------------------------------------------------------------- */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(16px);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  animation: floatSoft 4s ease-in-out infinite alternate;
}

.tech-badge:nth-child(even) {
  animation-delay: -2s;
}

.tech-badge:hover {
  transform: scale(1.08) translateY(-4px);
  border-color: var(--primary-glow);
  box-shadow: 0 0 20px var(--primary-subtle);
  color: var(--text-main);
}

.tech-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.github-icon {
  fill: var(--text-main);
}

/* --------------------------------------------------------------------------
   12. PROJECTS SECTION
   -------------------------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(16px);
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-glow);
}

.project-img-wrapper {
  width: 100%;
  height: 210px;
  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(27, 27, 28, 0.9) 100%
  );
}

.project-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  line-height: 1.6;
  flex-grow: 1;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  color: var(--primary-glow);
  border: 1px solid var(--primary-border);
}

.project-actions {
  display: flex;
  gap: 0.8rem;
}

/* --------------------------------------------------------------------------
   13. EXPERIENCE TIMELINE
   -------------------------------------------------------------------------- */
.experience-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.6rem;
  align-items: start;
}

.experience-card,
.certification-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.experience-card::before,
.certification-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 136, 56, 0.08), transparent 55%);
  pointer-events: none;
}

.experience-card-header {
  margin-bottom: 1.3rem;
}

.experience-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-item {
  position: relative;
  padding-left: 1.1rem;
  border-left: 2px solid rgba(0, 136, 56, 0.25);
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.3rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-glow);
  box-shadow: 0 0 12px var(--primary-glow);
}

.experience-time {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-glow);
  margin-bottom: 0.35rem;
}

.experience-role {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.experience-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.certification-list {
  display: grid;
  gap: 0.9rem;
}

.certification-item {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.certification-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-subtle);
}

.cert-item-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.cert-logo {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-glow));
  box-shadow: 0 8px 18px rgba(0, 183, 74, 0.18);
}

.cert-logo-hp {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.cert-logo-simplilearn {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
}

.cert-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary-glow);
}

.cert-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.cert-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--primary) 0%,
    var(--primary-glow) 50%,
    rgba(0, 136, 56, 0.1) 100%
  );
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  width: 50%;
  padding: 0 2.2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 4px solid var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-glow);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  border-color: var(--primary);
  box-shadow: 0 0 25px var(--primary-subtle);
  transform: translateY(-4px);
}

.timeline-role {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-glow);
  margin-bottom: 0.8rem;
}

.timeline-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   14. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-subtle);
  transform: translateX(6px);
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-subtle);
  border: 1px solid var(--primary-border);
  color: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-info-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

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

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px var(--primary-subtle);
}

textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* --------------------------------------------------------------------------
   15. FOOTER & SCROLL TO TOP
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  background: var(--bg-nav);
  position: relative;
  z-index: 2;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}

.footer-copy {
  font-size: 0.88rem;
  color: var(--text-muted);
}

#scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 20px rgba(0, 136, 56, 0.5);
}

#scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

#scroll-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(0, 255, 120, 0.6);
}

#scroll-to-top svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   16. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes blobFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -60px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 40px) scale(0.95);
  }
}

@keyframes floatImage {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-15px);
  }
}

@keyframes floatSoft {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
  opacity: 1 !important;
  transform: translate(0, 0) scale(1) !important;
}

/* --------------------------------------------------------------------------
   17. ENHANCED RESPONSIVE MOBILE & TABLET BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text-side {
    align-items: center;
  }

  .hero-subtitle-wrapper {
    justify-content: center;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  /* Stack experience and certifications for better mobile readability */
  .experience-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .experience-card,
  .certification-card {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .container {
    padding: 0 1.2rem;
  }

  .hero {
    padding-top: 5rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtitle-wrapper {
    font-size: 1.05rem;
    min-height: 2.8rem;
  }

  .about-card,
  .contact-form {
    padding: 1.5rem 1.2rem;
  }

  .service-card,
  .contact-info-card {
    padding: 1.3rem 1.1rem;
  }

  .project-body {
    padding: 1.3rem 1.1rem;
  }

  .stat-box {
    padding: 1.2rem 0.8rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
  }

  .skill-card {
    padding: 1rem 0.6rem;
  }

  .progress-rings-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .progress-ring-card {
    padding: 1.2rem 0.8rem;
    max-width: 100%;
  }

  .ring-wrapper {
    width: 90px;
    height: 90px;
  }

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

  .timeline::before {
    left: 16px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 42px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 7px;
    width: 18px;
    height: 18px;
  }

  .timeline-content {
    padding: 1.2rem 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-body);
    border-left: 1px solid var(--border-color);
    flex-direction: column;
    justify-content: center;
    gap: 1.8rem;
    transition: right 0.4s ease;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .profile-card-glow {
    width: 250px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }

  .btn {
    width: 100%;
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
  }

  .profile-card-glow {
    width: 220px;
    height: 260px;
  }

  .stat-box {
    padding: 1rem 0.5rem;
  }

  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

/* Additional targeted mobile tweaks to improve layout spacing and nav UX */
@media (max-width: 900px) {
  .nav-links {
    width: calc(100% - 1rem);
    max-width: 360px;
    padding: 0.6rem;
    background: var(--bg-nav);
  }

  .nav-links li {
    padding: 0.45rem 0.6rem;
  }

  .hero-tagline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-card-glow {
    width: 220px;
    height: 260px;
  }

  .hero-content {
    gap: 1.2rem;
  }

  .hero-text-side {
    padding: 0 0.25rem;
  }
}

@media (max-width: 420px) {
  .nav-links {
    width: calc(100% - 0.5rem);
    border-radius: 10px;
  }

  .hero-buttons .btn {
    padding: 0.55rem 0.95rem;
    font-size: 0.9rem;
  }

  .profile-card-glow {
    width: 190px;
    height: 220px;
  }

  .hero-title {
    line-height: 1.05;
  }
}
