

/* Metric-adjusted fallback fonts (Fix 3 — CLS from font swap)
   These @font-face blocks make Arial/Georgia occupy the same line-box dimensions
   as Inter/Playfair Display, so zero layout shift occurs when custom fonts load.
   Values derived from font UPM metrics + size-adjust calibration. */
@font-face {
     font-family: 'Inter Fallback';
     src: local('Arial');
     ascent-override: 90.20%;
     descent-override: 22.48%;
     line-gap-override: 0.00%;
     size-adjust: 107.40%;
}

@font-face {
     font-family: 'Playfair Display Fallback';
     src: local('Georgia');
     ascent-override: 96.74%;
     descent-override: 23.55%;
     line-gap-override: 0.00%;
     size-adjust: 97.62%;
}


/* IBM Plex Mono — Metric-adjusted fallback (Courier New) eliminates
   CLS from the previous Google Fonts @import in livecircuit.css */
@font-face {
     font-family: 'IBM Plex Mono Fallback';
     src: local('Courier New');
     ascent-override: 84.00%;
     descent-override: 23.00%;
     line-gap-override: 0.00%;
     size-adjust: 104.76%;
}

@font-face {
     font-family: 'IBM Plex Mono';
     src: url('../assets/fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2');
     font-weight: 400;
     font-style: normal;
     font-display: optional;
}

@font-face {
     font-family: 'IBM Plex Mono';
     src: url('../assets/fonts/ibm-plex-mono-v20-latin-500.woff2') format('woff2');
     font-weight: 500;
     font-style: normal;
     font-display: optional;
}

@font-face {
     font-family: 'IBM Plex Mono';
     src: url('../assets/fonts/ibm-plex-mono-v20-latin-600.woff2') format('woff2');
     font-weight: 600;
     font-style: normal;
     font-display: optional;
}


/* Inter */
@font-face {
     font-family: 'Inter';
     src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
     font-weight: 400;
     font-style: normal;
     font-display: optional;
}

@font-face {
     font-family: 'Inter';
     src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2');
     font-weight: 700;
     font-style: normal;
     font-display: optional;
}

/* Playfair Display */
@font-face {
     font-family: 'Playfair Display';
     src: url('../assets/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
     font-weight: 400;
     font-style: normal;
     font-display: optional;
}

@font-face {
     font-family: 'Playfair Display';
     src: url('../assets/fonts/playfair-display-v40-latin-500.woff2') format('woff2');
     font-weight: 500;
     font-style: normal;
     font-display: optional;
}

@font-face {
     font-family: 'Playfair Display';
     src: url('../assets/fonts/playfair-display-v40-latin-700.woff2') format('woff2');
     font-weight: 700;
     font-style: normal;
     font-display: optional;
}


/* =========================
    CSS Variables & Reset
========================= */
:root {
     --primary: #6366f1;
     --secondary: #818cf8;
     --accent: #2962ff; /* Royal Blue */
     --accent-bright: #448aff;
     --dark: #0f172a;
     --dark-lighter: #1e293b;
     --light: #f8fafc;
     --gray: #94a3b8;
     --gray-light: #e2e8f0;
     --red-error: #f43f5e;
     --font-size: 16px;
     --font-heading: 'Playfair Display', 'Playfair Display Fallback', serif;
     --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

html {
     scroll-behavior: smooth;
     font-size: var(--font-size);
}

body {
     font-family: var(--font-body);
     background: var(--dark);
     color: var(--light);
     overflow-x: hidden;
     line-height: 1.8;
     transition: background-color 0.5s, color 0.5s;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
}

/* =========================
    Typography
========================= */
h1,
h2,
h3,
.section-title,
.logo,
.hero h1,
.cert-title,
.education-level {
     font-family: var(--font-heading);
     font-weight: 700;
     letter-spacing: -0.02em;
}

p {
     text-shadow: none;
     color: #cbd5e1;
}

/* =========================
    Accessibility
========================= */


body.accessibility-highlight-links a {
     background: rgb(223, 223, 13) !important;
     color: rgb(0, 0, 0) !important;
     border-radius: 3px;
     padding: 2px 4px;
}

#reading-guide {
     position: fixed;
     width: 100%;
     height: 5px;
     background: rgba(6, 182, 212, 0.5); /* Translucent Electric Cyan (#06B6D4) */
     z-index: 9999;
     pointer-events: none;
     display: none;
     border-radius: 5px;
     box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

body.accessibility-reading-guide #reading-guide {
     display: block;
}

/* --- Focus Visible --- */
:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 3px;
}

/* =========================
    No-Script Warning
========================= */
.noscript-warning {
     background: #ffc107;
     color: #333;
     text-align: center;
     padding: 1rem;
     font-weight: 500;
     border-bottom: 3px solid #e0a800;
     position: sticky;
     top: 0;
     z-index: 99999;
}

/* =========================
    Hacker Loading Splash Screen
========================= */
#loading-splash {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: #0a0a0a;
     z-index: 99999;
     display: flex;
     align-items: center;
     justify-content: center;
     overflow: hidden;
     transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loading-splash.hidden {
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
}

#matrix-canvas {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0.6;
}

.loading-content {
     position: relative;
     z-index: 2;
     text-align: center;
     animation: loadingPulse 2s ease-in-out infinite;
     will-change: transform;
}

@keyframes loadingPulse {
     0%, 100% {
          transform: scale(1);
          opacity: 1;
     }
     50% {
          transform: scale(1.02);
          opacity: 0.9;
     }
}

.loading-text {
     font-family: 'IBM Plex Mono', 'IBM Plex Mono Fallback', 'Courier New', monospace;
     font-size: clamp(1.5rem, 4vw, 2.5rem);
     color: #00ff41;
     text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
     margin-bottom: 2rem;
     letter-spacing: 0.3em;
}

.loading-bracket {
     color: #008f11;
     text-shadow: 0 0 5px #008f11;
}

.loading-word {
     animation: glitchText 0.5s infinite;
}

@keyframes glitchText {
     0%, 90%, 100% {
          transform: translateX(0);
     }
     92% {
          transform: translateX(-2px);
     }
     94% {
          transform: translateX(2px);
     }
     96% {
          transform: translateX(-1px);
     }
     98% {
          transform: translateX(1px);
     }
}

.loading-digits {
     display: flex;
     justify-content: center;
     gap: 0.5rem;
     margin-bottom: 2rem;
}

.digit {
     font-family: 'IBM Plex Mono', monospace;
     font-size: clamp(1.2rem, 3vw, 2rem);
     color: #00ff41;
     text-shadow: 0 0 8px #00ff41;
     animation: digitSurf 0.8s ease-in-out infinite;
     font-weight: 700;
}

.digit:nth-child(1) { animation-delay: 0s; }
.digit:nth-child(2) { animation-delay: 0.1s; }
.digit:nth-child(3) { animation-delay: 0.2s; }
.digit:nth-child(4) { animation-delay: 0.3s; }
.digit:nth-child(5) { animation-delay: 0.4s; }
.digit:nth-child(6) { animation-delay: 0.5s; }
.digit:nth-child(7) { animation-delay: 0.6s; }
.digit:nth-child(8) { animation-delay: 0.7s; }

@keyframes digitSurf {
     0%, 100% {
          transform: translateY(0);
          opacity: 1;
     }
     25% {
          transform: translateY(-10px);
          opacity: 0.7;
     }
     50% {
          transform: translateY(0);
          opacity: 1;
     }
     75% {
          transform: translateY(10px);
          opacity: 0.7;
     }
}

.loading-progress {
     width: 300px;
     max-width: 80vw;
     height: 4px;
     background: rgba(0, 255, 65, 0.1);
     border-radius: 2px;
     overflow: hidden;
     position: relative;
}

.progress-bar {
     height: 100%;
     background: linear-gradient(90deg, #00ff41, #008f11, #00ff41);
     background-size: 200% 100%;
     animation: progressFlow 1.5s ease-in-out infinite;
     border-radius: 2px;
     box-shadow: 0 0 10px #00ff41;
}

@keyframes progressFlow {
     0% {
          width: 0%;
          background-position: 0% 50%;
     }
     50% {
          width: 70%;
          background-position: 100% 50%;
     }
     100% {
          width: 100%;
          background-position: 0% 50%;
     }
}

/* =========================
    Vibrant Animated Background
========================= */
#canvas-background {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 1;
     pointer-events: none;
}

/* =========================
    Header & Navigation
========================= */
header {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     z-index: 1000;
     padding: 1rem 2rem;
     backdrop-filter: blur(20px);
     background: rgba(15, 23, 42, 0.85);
     border-bottom: 1px solid rgba(79, 70, 229, 0.2);
     transition: all 0.3s;
}

header.scrolled {
     background: rgba(15, 23, 42, 0.95);
     box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav {
     display: flex;
     justify-content: space-between;
     align-items: center;
     max-width: 1200px;
     margin: 0 auto;
}

.logo {
     font-size: 1.5rem;
     font-weight: 700;
     background: linear-gradient(45deg, #448aff, #2962ff); /* Royal Blue Gradient */
     background-clip: text;
     color: transparent;
     cursor: pointer;
     transition: transform 0.3s;
     z-index: 1011;
}

.logo:hover {
     transform: scale(1.05) rotate(-3deg);
}

a {
     color: var(--secondary);
}

a:hover {
     color: var(--primary);
}

/* --- Navigation Links --- */
.nav-links {
     display: flex;
     gap: 1.5rem;
     list-style: none;
     margin: 0 2rem 0 auto;
}

.nav-links a {
     color: var(--light);
     text-decoration: none;
     padding: 0.5rem 0;
     font-weight: 500;
     position: relative;
     transition: color 0.3s;
}

.nav-links a::after {
     content: '';
     position: absolute;
     bottom: -4px;
     left: 0;
     width: 100%;
     height: 3px;
     background: linear-gradient(90deg, var(--primary), var(--accent));
     transform: scaleX(0);
     transform-origin: left;
     transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     border-radius: 2px;
}

.nav-links a:hover {
     color: var(--accent-bright);
}

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

/* --- Submenu --- */
.nav-links .more-menu-item {
     position: relative;
}

.nav-links .submenu {
     display: none;
     position: absolute;
     top: 100%;
     left: 0;
     background-color: var(--header-bg-color, #1a202c);
     box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
     min-width: 160px;
     z-index: 1000;
     list-style: none;
     padding: 10px 0;
     margin: 0;
     border-radius: 5px;
}

.nav-links .submenu li a {
     color: var(--nav-link-color, #f8fafc);
     padding: 10px 15px;
     text-decoration: none;
     display: block;
     white-space: nowrap;
}

.nav-links .submenu li a:hover {
     background-color: var(--nav-link-hover-bg, #2d3748);
}

.nav-links .submenu.active {
     display: block;
}

/* --- Header Actions --- */
.header-actions {
     display: flex;
     align-items: center;
     gap: 0.5rem;
}

#search-toggle-btn {
     background: none;
     border: none;
     color: var(--light);
     font-size: 1.2rem;
     cursor: pointer;
     padding: 0.5rem;
     transition: color 0.3s;
}

#search-toggle-btn:hover {
     color: var(--accent);
}

/* --- Hamburger Menu --- */
.menu-toggle {
     display: none;
     z-index: 1011;
     cursor: pointer;
     background: none;
     border: none;
     padding: 0.5rem;
}

.hamburger,
.hamburger::before,
.hamburger::after {
     width: 25px;
     height: 2px;
     background: var(--light);
     transition: all 0.3s;
}

.hamburger {
     position: relative;
     display: block;
}

.hamburger::before,
.hamburger::after {
     content: '';
     position: absolute;
}

.hamburger::before {
     transform: translateY(-8px);
}

.hamburger::after {
     transform: translateY(8px);
}

body.nav-open .hamburger {
     background: transparent;
}

body.nav-open .hamburger::before {
     transform: rotate(45deg);
}

body.nav-open .hamburger::after {
     transform: rotate(-45deg);
}

/* --- Mobile Navigation --- */
.mobile-nav {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: rgba(15, 23, 42, 0.98);
     backdrop-filter: blur(10px);
     z-index: 1010;
     display: flex;
     flex-direction: column;
     justify-content: center;
     align-items: center;
     opacity: 0;
     visibility: hidden;
     transform: translateY(-20px);
     transition: opacity 0.4s, visibility 0.4s, transform 0.4s;
}

.mobile-nav.open {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
}

.mobile-close-btn,
#search-close-btn {
     position: absolute;
     top: 2rem;
     right: 2rem;
     font-size: 3rem;
     color: var(--light);
     background: none;
     border: none;
     cursor: pointer;
     z-index: 1011;
     transition: color 0.3s, transform 0.3s;
}

.mobile-close-btn:hover,
#search-close-btn:hover {
     color: var(--accent);
     transform: rotate(90deg);
}

.mobile-nav-links {
     list-style: none;
     text-align: center;
}

.mobile-nav-links li {
     margin: 2rem 0;
}

.mobile-nav-links a {
     color: var(--light);
     text-decoration: none;
     font-size: 2rem;
     font-weight: 700;
     transition: color 0.3s;
}

.mobile-nav-links a:hover {
     color: var(--accent);
}

/* =========================
    Search Overlay (Terminal Palette)
========================= */
.search-container {
     position: fixed;
     inset: 0;
     background: rgba(10, 15, 30, 0.95);
     backdrop-filter: blur(10px);
     z-index: 1020;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: flex-start;
     padding: 12vh 2rem 2rem;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.3s, visibility 0.3s;
     font-family: 'IBM Plex Mono', monospace;
}

.search-container.active {
     opacity: 1;
     visibility: visible;
}

.search-container #search-box {
     width: 100%;
     max-width: 650px;
     font-size: 1.25rem;
     padding: 1rem 1.5rem;
     background: var(--dark-lighter);
     border: 1px solid rgba(41, 98, 255, 0.5);
     border-bottom: none;
     border-radius: 8px 8px 0 0;
     color: var(--accent-bright);
     font-family: 'IBM Plex Mono', monospace;
     transition: all 0.3s;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.search-container #search-box::placeholder {
     color: rgba(41, 98, 255, 0.4);
}

.search-container #search-box:focus {
     outline: none;
     border-color: var(--accent);
     background: #1e293b;
}

.search-container #search-results {
     width: 100%;
     max-width: 650px;
     max-height: 60vh;
     overflow-y: auto;
     background: rgba(15, 23, 42, 0.95);
     border: 1px solid rgba(41, 98, 255, 0.5);
     border-top: 1px solid rgba(41, 98, 255, 0.2);
     border-radius: 0 0 8px 8px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
     padding: 1rem;
}

.search-container #search-results:empty {
     display: none;
}

.search-container #search-results::-webkit-scrollbar {
     width: 8px;
}

.search-container #search-results::-webkit-scrollbar-track {
     background: rgba(10, 15, 30, 0.5);
}

.search-container #search-results::-webkit-scrollbar-thumb {
     background: rgba(41, 98, 255, 0.3);
     border-radius: 4px;
}

.search-container #search-results::-webkit-scrollbar-thumb:hover {
     background: rgba(41, 98, 255, 0.6);
}

.terminal-results-wrapper {
     display: flex;
     flex-direction: column;
     gap: 0.25rem;
}

.search-result-item.terminal-item {
     padding: 0.5rem;
     color: var(--light);
     text-decoration: none;
     display: flex;
     align-items: flex-start;
     gap: 0.75rem;
     border-bottom: none;
     transition: background 0.15s;
     border-radius: 4px;
     font-size: 0.95rem;
}

.search-result-item.terminal-item:hover,
.search-result-item.terminal-item.focused {
     background: rgba(41, 98, 255, 0.15);
     color: #fff;
}

.terminal-prefix {
     color: var(--gray);
     font-family: inherit;
     opacity: 0.7;
}

.search-result-item.terminal-item:hover .terminal-prefix,
.search-result-item.terminal-item.focused .terminal-prefix {
     color: var(--accent);
     opacity: 1;
}

.search-result-text {
     flex: 1;
     min-width: 0;
     display: flex;
     flex-direction: column;
}

.search-result-title {
     display: block;
     font-weight: 400;
     color: var(--accent-bright);
}

.search-result-item mark {
     background: transparent;
     color: #fff;
     font-weight: 700;
     text-decoration: underline;
     text-decoration-color: var(--accent);
}

.terminal-desc {
     color: var(--gray);
     font-size: 0.8rem;
     margin-top: 0.1rem;
}

.search-no-results {
     padding: 1.5rem 1rem;
     color: var(--red-error);
     font-size: 0.95rem;
}

.search-hint {
     display: block;
     max-width: 650px;
     width: 100%;
     margin-top: 0.5rem;
     text-align: left;
     font-size: 0.8rem;
     color: var(--gray);
     opacity: 0.8;
}

/* =========================
    Digital Circuit Dividers
========================= */
.circuit-divider {
     width: 100%;
     height: 40px;
     display: flex;
     justify-content: center;
     align-items: center;
     margin: 1rem 0;
     color: var(--accent);
     opacity: 0.7;
}

.circuit-svg {
     width: 100%;
     max-width: 1200px;
     height: 100%;
     margin: 0 auto;
     overflow: visible;
}

.circuit-path {
     stroke-dasharray: 1200;
     stroke-dashoffset: 1200;
     transition: stroke-dashoffset 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.circuit-divider.drawn .circuit-path {
     stroke-dashoffset: 0;
}

/* =========================
    Hero Section
========================= */
.hero {
     position: relative;
     z-index: 5;
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     text-align: center;
     padding: 8rem 1rem 2rem;
     background: transparent;
}

.hero-content {
     max-width: 900px;
     animation: fadeInPuff 1s ease-out forwards;
}

@keyframes fadeInPuff {
     from {
          opacity: 0;
          transform: scale(0.9);
          filter: blur(10px);
     }

     to {
          opacity: 1;
          transform: scale(1);
          filter: blur(0);
     }
}

.hero-avatar {
     width: 150px;
     height: 150px;
     border-radius: 50%;
     border: 4px solid var(--accent);
     box-shadow: 0 0 40px rgba(41, 98, 255, 0.5), 0 0 80px rgba(79, 70, 229, 0.3);
     margin: 0 auto 2rem;
     transition: all 0.4s;
     animation: avatarFloat 4s ease-in-out infinite;
}

.hero-avatar:hover {
     transform: scale(1.05);
     box-shadow: 0 0 60px rgba(41, 98, 255, 0.7), 0 0 100px rgba(79, 70, 229, 0.5);
}

@keyframes avatarFloat {

     0%,
     100% {
          transform: translateY(0);
     }

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

.hero h1 {
     font-size: clamp(2.5rem, 8vw, 4.5rem);
     font-weight: 700;
     margin-bottom: 1.5rem;
     background: linear-gradient(135deg, var(--light) 0%, var(--accent-bright) 50%, #fff 100%);
     background-clip: text;
     color: transparent;
     line-height: 1.1;
     text-shadow: 0 0 20px rgba(41, 98, 255, 0.2);
}

.hero p {
     font-size: clamp(1rem, 2.5vw, 1.3rem);
     color: var(--gray-light);
     margin-bottom: 3rem;
     max-width: 700px;
     margin-inline: auto;
}

.cta-buttons {
     display: flex;
     gap: 1.5rem;
     justify-content: center;
     flex-wrap: wrap;
}

.btn {
     padding: 1rem 2rem;
     border: 2px solid transparent;
     border-radius: 50px;
     font-size: clamp(0.9rem, 2vw, 1.1rem);
     font-weight: 600;
     cursor: pointer;
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 0.7rem;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     overflow: hidden;
}

.btn-primary {
     background: linear-gradient(135deg, var(--primary), var(--secondary));
     color: white;
     box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3), inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
     transform: translateY(-5px) scale(1.05);
     box-shadow: 0 18px 40px rgba(79, 70, 229, 0.4), inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
     background: transparent;
     color: var(--light);
     border: 2px solid var(--accent);
     box-shadow: 0 8px 20px rgba(41, 98, 255, 0.1);
}

.btn-secondary:hover {
     background: var(--accent);
     color: var(--dark);
     transform: translateY(-5px) scale(1.05);
     box-shadow: 0 15px 35px rgba(41, 98, 255, 0.3);
}

/* =========================
    Section Styling
========================= */

  /* Establish perspective for child section 3D transforms */
  #main-content {
  position: relative;
  z-index: 4;
  perspective: 1400px;
  perspective-origin: 50% 40%;
  }

section {
     position: relative;
     z-index: 5;
     padding: 6rem 1rem;
     background: transparent;
}

.container {
     max-width: 1200px;
     margin: 0 auto;
     padding: 0 1rem;
}

.section-title {
     font-size: clamp(2rem, 5vw, 3.2rem);
     margin-bottom: 4rem;
     background: linear-gradient(135deg, var(--light) 0%, var(--accent-bright) 100%);
     background-clip: text;
     color: transparent;
     font-weight: 700;
     position: relative;
}

.section-title::after {
     content: '';
     position: absolute;
     bottom: -15px;
     left: 50%;
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, var(--primary), var(--accent));
     transform: translateX(-50%);
     border-radius: 2px;
     filter: blur(2px);
}

.fade-in-up {
     opacity: 0;
     transform: translateY(40px);
     transition: opacity 0.8s, transform 0.8s;
}

.fade-in-up.visible {
     opacity: 1;
     transform: translateY(0);
}

/* =========================
    Projects Section
========================= */
.projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 2.5rem;
}

.project-card {
     background: rgba(30, 41, 59, 0.7);
     backdrop-filter: blur(15px);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 20px;
     padding: 2.5rem;
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     position: relative;
     overflow: hidden;
     cursor: pointer;
}

.project-card .glow {
     position: absolute;
     width: 150px;
     height: 150px;
     background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
     border-radius: 50%;
     filter: blur(40px);
     opacity: 0;
     transition: opacity 0.4s;
     pointer-events: none;
}

.project-card:hover {
     transform: translateY(-8px) scale(1.03);
     border-color: var(--accent);
     box-shadow: 0 25px 50px -12px rgba(41, 98, 255, 0.25);
}

.project-card:hover .glow {
     opacity: 0.2;
}

.project-icon {
     font-size: 2.5rem;
     margin-bottom: 1.2rem;
     transition: transform 0.4s;
}

.project-card:hover .project-icon {
     transform: scale(1.15) rotate(8deg);
}

.project-card h3 {
     font-size: 1.4rem;
     margin-bottom: 1rem;
     color: var(--light);
     font-weight: 700;
}

.project-card p {
     color: var(--gray-light);
     font-size: 1rem;
}

.project-badge {
     position: absolute;
     top: 12px;
     right: 12px;
     padding: 0.25rem 0.7rem;
     border-radius: 50px;
     font-size: 0.7rem;
     font-weight: 600;
     letter-spacing: 0.3px;
     text-transform: uppercase;
     pointer-events: none;
}

.project-badge.open-source {
     background: rgba(41, 98, 255, 0.15);
     color: var(--accent-bright);
     border: 1px solid rgba(41, 98, 255, 0.4);
}

.project-badge.commercial {
     background: rgba(79, 70, 229, 0.15);
     color: #a5b4fc;
     border: 1px solid rgba(79, 70, 229, 0.4);
}

/* =========================
    Certifications Section
========================= */
.certifications-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
     gap: 2rem;
}

.certification-card {
     background: var(--dark);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 15px;
     padding: 2rem;
     display: flex;
     flex-direction: column;
     transition: all 0.3s;
}

.certification-card:hover {
     transform: translateY(-8px);
     border-color: var(--accent);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cert-header {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 1.5rem;
     padding-bottom: 1rem;
     border-bottom: 1px solid rgba(79, 70, 229, 0.2);
}

.cert-logo {
     width: 40px;
     height: 40px;
     object-fit: contain;
     border-radius: 5px;
     background: white;
     padding: 4px;
}

.cert-issuer {
     font-weight: 600;
     color: var(--gray-light);
}

.cert-title {
     font-size: 1.1rem;
     font-weight: 400;
     color: var(--light);
     line-height: 1.4;
     margin-bottom: 1rem;
}

.cert-date {
     font-size: 0.9rem;
     color: var(--gray);
     margin-bottom: 1.5rem;
}

.cert-verify-btn {
     margin-top: auto;
     padding: 0.8rem 1.5rem;
     border-radius: 8px;
     font-size: 0.9rem;
     font-weight: 600;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     gap: 0.5rem;
     background: transparent;
     border: 2px solid var(--accent);
     color: var(--accent);
     transition: all 0.3s;
}

.cert-verify-btn:hover {
     background: var(--accent);
     color: var(--dark);
}

.view-all-container {
     display: flex;
     justify-content: center;
     margin-top: 3rem;
}

.view-all-btn {
     padding: 1.2rem 2.5rem;
     border-radius: 50px;
     font-size: 1.1rem;
     font-weight: 700;
     text-decoration: none;
     display: inline-flex;
     align-items: center;
     gap: 0.75rem;
     background: rgba(79, 70, 229, 0.1);
     border: 2px solid var(--accent);
     color: var(--accent);
     transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.view-all-btn:hover {
     background: var(--accent);
     color: var(--dark);
     transform: scale(1.05);
     box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

.view-all-btn i {
     font-size: 0.9rem;
     transition: transform 0.3s;
}

.view-all-btn:hover i {
     transform: translateX(3px) translateY(-3px);
}

/* =========================
    Education Section
========================= */
.education-container {
     max-width: 800px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     gap: 2rem;
}

.education-item {
     display: flex;
     align-items: center;
     gap: 1.5rem;
     background: var(--dark-lighter);
     padding: 1.5rem;
     border-radius: 15px;
     border-left: 5px solid var(--primary);
}

.education-progress {
     display: flex;
     gap: 0.5rem;
     align-items: center;
}

.dot {
     width: 18px;
     height: 18px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     transition: all 0.4s;
}

.dot.ticked {
     background: var(--accent);
     box-shadow: 0 0 10px var(--accent);
}

.dot.ticked::before {
     content: '✔';
     font-size: 12px;
     font-weight: bold;
}

.dot.dimming {
     background: rgba(13, 109, 244, 0.886);
     animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

     0%,
     100% {
          opacity: 0.4;
     }

     50% {
          opacity: 0.8;
     }
}

.education-level {
     font-size: 1.2rem;
     font-weight: 400;
     color: var(--light);
}

.education-institution {
     font-size: 1rem;
     color: var(--accent-bright);
     font-style: italic;
     margin-top: 0.25rem;
}

.education-meta {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-top: 0.2rem;
     flex-wrap: wrap;
}

.education-years {
     font-size: 0.9rem;
     color: var(--gray);
}

.education-gpa {
     font-size: 0.85rem;
     color: var(--gray);
}

.education-tags {
     display: flex;
     gap: 0.4rem;
     flex-wrap: wrap;
     margin-top: 0.5rem;
}

.education-tag {
     font-size: 0.75rem;
     color: var(--gray);
     border: 1px solid rgba(148, 163, 184, 0.25);
     border-radius: 4px;
     padding: 0.15rem 0.5rem;
     background: rgba(148, 163, 184, 0.05);
}

.nctb-note {
     text-align: center;
     margin-top: 3rem;
     color: var(--gray);
     font-size: 0.9rem;
     font-style: italic;
}

/* =========================
    Testimonials Section
========================= */
.testimonial-slideshow-container {
     max-width: 800px;
     margin: 0 auto;
     position: relative;
     overflow: hidden;
     border-radius: 15px;
     background: var(--dark-lighter);
     padding: 2rem;
}

.testimonial-slides-wrapper {
     display: flex;
     transition: transform 0.5s;
}

.testimonial-slide {
     flex: 1 0 100%;
     padding: 1rem 2rem;
     text-align: center;
     opacity: 0;
     transition: opacity 0.5s;
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     visibility: hidden;
}

.testimonial-slide.active {
     opacity: 1;
     position: relative;
     visibility: visible;
}

.testimonial-slide blockquote {
     font-size: 1.25rem;
     font-style: italic;
     color: var(--gray-light);
     margin-bottom: 2rem;
     border-left: 4px solid var(--accent);
     padding-left: 1.5rem;
     text-align: left;
}

.testimonial-author {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 1rem;
}

.testimonial-media img {
     max-width: 500px;
     width: 100%;
     height: auto;
     display: block;
     margin: 0 auto 1rem;
     border-radius: 8px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.testimonial-doc-link {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.6rem 1.2rem;
     background: var(--primary);
     color: white;
     text-decoration: none;
     border-radius: 8px;
     font-weight: 600;
     transition: background 0.3s;
}

.testimonial-doc-link:hover {
     background: var(--accent);
}

.testimonial-author-info .name {
     font-weight: 700;
     color: var(--light);
     font-size: 1.1rem;
}

.testimonial-author-info .title {
     color: var(--accent-bright);
     font-size: 0.9rem;
}

.testimonial-nav-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: rgba(30, 41, 59, 0.5);
     border: 1px solid rgba(79, 70, 229, 0.3);
     color: var(--light);
     width: 40px;
     height: 40px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 1.2rem;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.3s;
}

.testimonial-nav-btn:hover {
     background: var(--primary);
     border-color: var(--accent);
}

.testimonial-nav-btn.prev {
     left: 15px;
}

.testimonial-nav-btn.next {
     right: 15px;
}

.testimonial-nav-svg {
     width: 16px;
     height: 16px;
     fill: var(--light);
     flex-shrink: 0;
     transition: fill 0.3s;
}

.testimonial-nav-btn:hover .testimonial-nav-svg {
     fill: #fff;
}

.testimonial-dots {
     display: flex;
     justify-content: center;
     gap: 0.75rem;
     margin-top: 2rem;
}

.testimonial-dot {
     width: 12px;
     height: 12px;
     border-radius: 50%;
     background: var(--gray);
     cursor: pointer;
     transition: background 0.3s, transform 0.3s;
}

.testimonial-dot:hover {
     background: var(--accent);
     transform: scale(1.2);
}

.testimonial-dot.active {
     background: var(--primary);
}

/* =========================
    Footer
========================= */
footer {
     position: relative;
     z-index: 5;
     border-top: 1px solid rgba(99, 102, 241, 0.25);
     background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 100%);
     overflow: hidden;
}

footer::before {
     content: '';
     position: absolute;
     top: 0;
     left: 50%;
     transform: translateX(-50%);
     width: 600px;
     height: 1px;
     background: linear-gradient(90deg, transparent, var(--primary), transparent);
     opacity: 0.6;
}

/* ---- Footer Top (Grid) ---- */
.footer-top {
     padding: 4.5rem 2rem 3rem;
     max-width: 1200px;
     margin: 0 auto;
}

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

/* ---- Brand Column ---- */
.footer-col {
     display: flex;
     flex-direction: column;
     gap: 0.5rem;
}

.footer-logo {
     font-family: var(--font-heading);
     font-size: 1.6rem;
     font-weight: 700;
     background: linear-gradient(135deg, var(--primary) 0%, var(--accent-bright) 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     margin-bottom: 0.25rem;
     letter-spacing: -0.5px;
}

.footer-tagline {
     font-size: 0.8rem;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     color: var(--secondary);
     margin-bottom: 0.75rem;
}

.footer-bio {
     color: var(--gray);
     font-size: 0.9rem;
     line-height: 1.75;
     max-width: 300px;
     margin-bottom: 1.25rem;
}

.footer-status {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     background: rgba(99, 102, 241, 0.08);
     border: 1px solid rgba(99, 102, 241, 0.2);
     border-radius: 50px;
     padding: 0.35rem 0.85rem;
     width: fit-content;
}

.status-dot {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     background: #22c55e;
     box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
     animation: pulse-dot 2s ease-in-out infinite;
     flex-shrink: 0;
}

@keyframes pulse-dot {
     0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.7); }
     50% { opacity: 0.7; box-shadow: 0 0 16px rgba(34, 197, 94, 0.4); }
}

.status-text {
     font-size: 0.78rem;
     color: #4ade80;
     font-weight: 500;
}

/* ---- Column Titles ---- */
.footer-col-title {
     font-family: var(--font-body);
     font-size: 0.72rem;
     font-weight: 700;
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--secondary);
     margin-bottom: 1rem;
     padding-bottom: 0.5rem;
     border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

/* ---- Nav Link Lists ---- */
.footer-links {
     list-style: none;
     display: flex;
     flex-direction: column;
     gap: 0.4rem;
}

.footer-links a {
     display: flex;
     align-items: center;
     gap: 0.55rem;
     color: var(--gray);
     font-size: 0.88rem;
     text-decoration: none;
     padding: 0.3rem 0;
     border-radius: 6px;
     transition: color 0.25s, transform 0.25s, padding-left 0.25s;
}

.footer-links a i {
     font-size: 0.75rem;
     color: var(--primary);
     width: 14px;
     text-align: center;
     opacity: 0.7;
     transition: opacity 0.25s, color 0.25s;
}

.footer-links a:hover {
     color: var(--light);
     padding-left: 4px;
}

.footer-links a:hover i {
     opacity: 1;
     color: var(--accent-bright);
}

/* ---- Social Links (footer variant) ---- */
.footer-socials {
     display: flex;
     flex-wrap: wrap;
     gap: 0.65rem;
     margin-bottom: 1.25rem;
}

.footer-socials a {
     width: 38px;
     height: 38px;
     border-radius: 10px;
     background: rgba(99, 102, 241, 0.08);
     border: 1px solid rgba(99, 102, 241, 0.2);
     display: flex;
     align-items: center;
     justify-content: center;
     color: var(--gray);
     font-size: 0.9rem;
     text-decoration: none;
     transition: all 0.3s;
}

.footer-socials a:hover {
     background: rgba(41, 98, 255, 0.15);
     border-color: var(--accent);
     color: var(--accent-bright);
     transform: translateY(-3px);
     box-shadow: 0 6px 20px rgba(41, 98, 255, 0.25);
}

.footer-socials a svg, .footer-socials a img.social-svg-icon {
     width: 1rem;
     height: 1rem;
     display: block;
}
.footer-socials a svg {
     fill: currentColor;
}
.footer-socials a img.social-svg-icon {
     filter: invert(70%) sepia(8%) saturate(769%) hue-rotate(182deg) brightness(88%) contrast(88%);
     transition: filter 0.3s;
}
.footer-socials a:hover img.social-svg-icon {
     filter: invert(34%) sepia(88%) saturate(3025%) hue-rotate(218deg) brightness(101%) contrast(106%);
}

/* ---- Music Button ---- */
.footer-music-wrap {
     margin-bottom: 1.25rem;
}

.footer-music-btn {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     padding: 0.45rem 1rem;
     background: transparent;
     color: var(--gray);
     border: 1px solid rgba(99, 102, 241, 0.25);
     border-radius: 50px;
     cursor: pointer;
     font-size: 0.82rem;
     font-family: inherit;
     transition: all 0.3s;
}

.footer-music-btn:hover {
     color: var(--accent-bright);
     border-color: var(--accent);
     background: rgba(41, 98, 255, 0.08);
}

.footer-music-btn.active {
     color: var(--accent-bright);
     border-color: var(--accent);
     background: rgba(41, 98, 255, 0.1);
}

/* ---- Email CTA ---- */
.footer-email-label {
     font-size: 0.78rem;
     color: var(--gray);
     margin-bottom: 0.5rem;
}

.footer-email-cta {
     display: inline-flex;
     align-items: center;
     gap: 0.45rem;
     background: linear-gradient(135deg, var(--primary), var(--accent));
     color: white;
     font-size: 0.85rem;
     font-weight: 600;
     padding: 0.55rem 1.2rem;
     border-radius: 50px;
     text-decoration: none;
     transition: all 0.3s;
     box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.footer-email-cta:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
     gap: 0.7rem;
}

.footer-email-cta i {
     font-size: 0.75rem;
     transition: transform 0.3s;
}

.footer-email-cta:hover i {
     transform: translateX(3px);
}

/* ---- Divider ---- */
.footer-divider {
     max-width: 1200px;
     margin: 0 auto;
     height: 1px;
     background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3) 30%, rgba(41, 98, 255, 0.3) 70%, transparent);
}

/* ---- Bottom Bar ---- */
.footer-bottom {
     max-width: 1200px;
     margin: 0 auto;
     padding: 1.5rem 2rem 2.5rem;
     display: flex;
     flex-wrap: wrap;
     align-items: center;
     justify-content: space-between;
     gap: 0.5rem;
}

.footer-text {
     color: var(--gray);
     font-size: 0.85rem;
}

.trademark-disclaimer {
     font-size: 0.8rem;
     color: rgba(148, 163, 184, 0.6);
}

.footer-built-with {
     font-size: 0.82rem;
     color: var(--gray);
     display: flex;
     align-items: center;
     gap: 0.3rem;
}

.footer-heart {
     color: var(--accent-bright);
     animation: heartbeat 1.5s ease-in-out infinite;
}

.footer-coffee {
     color: #f59e0b;
     animation: wobble 3s ease-in-out infinite;
}


@keyframes wobble {
     0%, 100% { transform: rotate(0deg); }
     20% { transform: rotate(-8deg); }
     40% { transform: rotate(8deg); }
     60% { transform: rotate(-4deg); }
     80% { transform: rotate(4deg); }
}



@keyframes heartbeat {
     0%, 100% { transform: scale(1); }
     14% { transform: scale(1.3); }
     28% { transform: scale(1); }
     42% { transform: scale(1.2); }
     70% { transform: scale(1); }
}

/* =========================
    Accessibility Panel
========================= */
#accessibility-settings-btn {
     position: fixed;
     bottom: 20px;
     left: 20px;
     z-index: 1001;
     background: var(--primary);
     color: white;
     width: 60px;
     height: 60px;
     border-radius: 50%;
     border: none;
     font-size: 1.5rem;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
     transition: transform 0.3s, background 0.3s;
}

#accessibility-settings-btn:hover {
     transform: scale(1.1) rotate(45deg);
     background: var(--accent);
}

#accessibility-panel {
     position: fixed;
     left: 20px;
     bottom: 100px;
     z-index: 1000;
     background: var(--dark-lighter);
     border-radius: 15px;
     padding: 1rem;
     width: 300px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
     transform: translateY(20px) scale(0.95);
     opacity: 0;
     visibility: hidden;
     transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

#accessibility-panel.visible {
     transform: translateY(0) scale(1);
     opacity: 1;
     visibility: visible;
}

.access-group {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 0.5rem;
     margin-bottom: 1rem;
}

.access-item,
.access-list-item {
     background: #34495e;
     color: var(--light);
     border: 1px solid transparent;
     border-radius: 8px;
     padding: 0.5rem;
     cursor: pointer;
     transition: background 0.2s, border-color 0.2s;
}

.access-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     font-size: 0.7rem;
     text-align: center;
}

.access-list-item {
     display: flex;
     align-items: center;
     gap: 1rem;
     margin-bottom: 0.5rem;
}

.access-item:hover,
.access-list-item:hover {
     background: #4a637e;
}

.access-item.active,
.access-list-item.active {
     background: var(--primary);
     border-color: var(--accent);
}

.access-item i {
     font-size: 1.2rem;
     margin-bottom: 0.3rem;
}

.access-list-item i {
     font-size: 1.2rem;
     width: 25px;
     text-align: center;
     color: var(--accent-bright);
}

/* =========================
    Other Sections
========================= */
.about-content {
     text-align: center;
     max-width: 800px;
     margin: 0 auto;
     color: var(--gray-light);
     font-size: 1.2rem;
     line-height: 1.8;
     background: rgba(30, 41, 59, 0.5);
     padding: 2rem;
     border-radius: 15px;
     backdrop-filter: blur(10px);
}

.github-stats-dashboard {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
     gap: 1.5rem;
     margin-top: 3rem;
}

.stat-card {
     background: rgba(30, 41, 59, 0.7);
     backdrop-filter: blur(15px);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 20px;
     padding: 2rem 1.5rem;
     text-align: center;
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     position: relative;
     overflow: hidden;
}

.stat-card:hover {
     transform: translateY(-8px);
     border-color: var(--accent);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.stat-card-icon {
     font-size: 2.2rem;
     margin-bottom: 1rem;
     color: var(--primary);
     background: linear-gradient(135deg, var(--primary), var(--accent));
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     transition: transform 0.4s;
}

.stat-card:hover .stat-card-icon {
     transform: scale(1.15) rotate(5deg);
}

.stat-card-number {
     font-size: 2.5rem;
     font-weight: 700;
     font-family: 'IBM Plex Mono', monospace;
     background: linear-gradient(135deg, var(--light), var(--accent-bright));
     background-clip: text;
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     margin-bottom: 0.5rem;
}

.stat-card-label {
     font-size: 0.95rem;
     color: var(--gray-light);
     text-transform: uppercase;
     letter-spacing: 1px;
     font-weight: 600;
}

.stat-skeleton {
     height: 180px;
     background: linear-gradient(90deg, rgba(30,41,59,0.7) 25%, rgba(51,65,85,0.7) 50%, rgba(30,41,59,0.7) 75%);
     background-size: 200% 100%;
     animation: skeletonLoading 1.5s infinite;
     border-radius: 20px;
     border: 1px solid rgba(79, 70, 229, 0.1);
}

@keyframes skeletonLoading {
     0% { background-position: 200% 0; }
     100% { background-position: -200% 0; }
}

.github-heatmap-grid::-webkit-scrollbar {
     height: 6px;
}

.github-heatmap-grid::-webkit-scrollbar-track {
     background: rgba(10, 15, 30, 0.3);
     border-radius: 4px;
}

.github-heatmap-grid::-webkit-scrollbar-thumb {
     background: rgba(41, 98, 255, 0.4);
     border-radius: 4px;
}

.github-heatmap-grid::-webkit-scrollbar-thumb:hover {
     background: rgba(41, 98, 255, 0.7);
}

.contact-description {
     text-align: center;
     max-width: 700px;
     margin: -3rem auto 2.5rem;
     color: var(--gray-light);
     font-size: 1.1rem;
     line-height: 1.6;
}

.contact-form-wrapper {
     position: relative;
     max-width: 700px;
     margin: 2rem auto;
     min-height: 420px;
}

.contact-form {
     width: 100%;
     display: grid;
     gap: 1.5rem;
     transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
     will-change: opacity, transform;
}

.contact-form.form-hiding {
     opacity: 0;
     transform: translateY(20px) scale(0.97);
     pointer-events: none;
}

.form-group {
     position: relative;
}

.form-group input,
.form-group textarea {
     width: 100%;
     padding: 1.2rem 1.2rem 1.2rem 1.5rem;
     border: 2px solid rgba(79, 70, 229, 0.3);
     border-radius: 14px;
     background: rgba(15, 23, 42, 0.75);
     color: var(--light);
     font-size: 1.05rem;
     font-family: var(--font-body);
     transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
     backdrop-filter: blur(8px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
     color: rgba(148, 163, 184, 0.55);
     transition: opacity 0.3s;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
     opacity: 0.3;
}

.form-group input:focus,
.form-group textarea:focus {
     outline: none;
     border-color: var(--accent);
     background: rgba(15, 23, 42, 0.95);
     box-shadow: 0 0 0 4px rgba(41, 98, 255, 0.15), 0 4px 20px rgba(41, 98, 255, 0.08);
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown) {
     border-color: rgba(20, 184, 166, 0.55);
}

.consent-group {
     display: flex;
     align-items: center;
     gap: 0.8rem;
     justify-content: center;
}

/* ===========================
   Contact Submit Button States
=========================== */
#contact-submit-btn {
     position: relative;
     overflow: hidden;
}

#contact-submit-btn .btn-text {
     display: inline-flex;
     align-items: center;
     gap: 0.55rem;
     transition: opacity 0.25s, transform 0.25s;
}

#contact-submit-btn .btn-spinner {
     display: none;
     width: 18px;
     height: 18px;
     border: 2px solid rgba(255,255,255,0.3);
     border-top-color: #fff;
     border-radius: 50%;
     animation: btnSpin 0.7s linear infinite;
     position: absolute;
     left: 50%;
     top: 50%;
     transform: translate(-50%, -50%);
}

#contact-submit-btn.is-loading .btn-text {
     opacity: 0;
     transform: scale(0.85);
}

#contact-submit-btn.is-loading .btn-spinner {
     display: block;
}

@keyframes btnSpin {
     to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===========================
   Inline Success State
=========================== */
.contact-success-state {
     position: absolute;
     inset: 0;
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     text-align: center;
     padding: 2rem 1rem;
     opacity: 0;
     transform: translateY(-18px) scale(0.96);
     pointer-events: none;
     transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
     will-change: opacity, transform;
}

.contact-success-state.is-visible {
     opacity: 1;
     transform: translateY(0) scale(1);
     pointer-events: auto;
}

/* Animated check circle */
.success-check-svg {
     width: 80px;
     height: 80px;
     margin-bottom: 1.5rem;
     filter: drop-shadow(0 0 16px rgba(20, 184, 166, 0.55));
}

.success-check-svg .check-circle {
     stroke: #14b8a6;
     stroke-width: 2;
     fill: none;
     stroke-dasharray: 63;
     stroke-dashoffset: 63;
     transform-origin: center;
}

.success-check-svg .check-tick {
     stroke: #14b8a6;
     stroke-width: 2.2;
     fill: none;
     stroke-linecap: round;
     stroke-linejoin: round;
     stroke-dasharray: 20;
     stroke-dashoffset: 20;
}

.contact-success-state.is-visible .check-circle {
     animation: drawCheckCycle 2.5s cubic-bezier(0.65, 0, 0.45, 1) infinite;
}

.contact-success-state.is-visible .check-tick {
     animation: drawTickCycle 2.5s cubic-bezier(0.65, 0, 0.45, 1) infinite;
}

@keyframes drawCheckCycle {
     0%   { stroke-dashoffset: 63; opacity: 0.4; }
     15%  { stroke-dashoffset: 0;  opacity: 1; }
     85%  { stroke-dashoffset: 0;  opacity: 1; }
     95%  { stroke-dashoffset: 63; opacity: 0.4; }
     100% { stroke-dashoffset: 63; opacity: 0.4; }
}

@keyframes drawTickCycle {
     0%   { stroke-dashoffset: 20; opacity: 0; }
     10%  { stroke-dashoffset: 20; opacity: 0; }
     25%  { stroke-dashoffset: 0;  opacity: 1; }
     85%  { stroke-dashoffset: 0;  opacity: 1; }
     95%  { stroke-dashoffset: 20; opacity: 0; }
     100% { stroke-dashoffset: 20; opacity: 0; }
}

/* Ripple pulse around check */
.success-ripple {
     position: absolute;
     width: 80px;
     height: 80px;
     border-radius: 50%;
     border: 2px solid rgba(20, 184, 166, 0.35);
     animation: none;
}

.contact-success-state.is-visible .success-ripple {
     animation: successRipple 1.2s ease-out 0.85s infinite;
}

@keyframes successRipple {
     0%   { transform: scale(1); opacity: 0.6; }
     100% { transform: scale(2.2); opacity: 0; }
}

.success-headline {
     font-family: var(--font-heading);
     font-size: clamp(1.5rem, 4vw, 2rem);
     font-weight: 700;
     color: var(--light);
     margin-bottom: 0.75rem;
     letter-spacing: -0.02em;
}

.success-tracking-id {
     font-size: 0.82rem;
     font-weight: 600;
     letter-spacing: 0.08em;
     text-transform: uppercase;
     color: var(--accent-bright);
     background: rgba(20, 184, 166, 0.1);
     border: 1px solid rgba(20, 184, 166, 0.25);
     border-radius: 6px;
     padding: 0.3rem 0.85rem;
     margin-bottom: 1rem;
     display: inline-block;
}

.success-message {
     font-size: 1rem;
     color: var(--gray);
     line-height: 1.7;
     margin: 0;
}

/* Progress bar counting down */
.success-countdown-bar {
     width: 100%;
     max-width: 320px;
     height: 3px;
     background: rgba(148, 163, 184, 0.12);
     border-radius: 3px;
     margin-top: 2rem;
     overflow: hidden;
}

.success-countdown-bar-inner {
     height: 100%;
     width: 100%;
     background: linear-gradient(90deg, #14b8a6, #6366f1);
     border-radius: 3px;
     transform-origin: left;
     transform: scaleX(1);
}

.contact-success-state.is-visible .success-countdown-bar-inner {
     animation: countdownShrink 5.5s linear 0.3s forwards;
}

@keyframes countdownShrink {
     from { transform: scaleX(1); }
     to   { transform: scaleX(0); }
}

.footer-text {
     color: var(--gray);
     font-size: 1rem;
     margin-top: 2rem;
}

.trademark-disclaimer {
     font-size: 0.8rem;
     margin-top: 0.5rem;
     color: var(--gray);
}

/* =========================
    Hero Badges
========================= */
.hero-badges {
     display: flex;
     flex-wrap: wrap;
     gap: 0.75rem;
     justify-content: center;
     margin-bottom: 2.5rem;
}

.badge {
     background: rgba(30, 41, 59, 0.8);
     border: 1px solid rgba(79, 70, 229, 0.4);
     border-radius: 50px;
     padding: 0.45rem 1.1rem;
     font-size: 0.85rem;
     color: var(--gray-light);
     backdrop-filter: blur(8px);
     transition: all 0.3s;
     white-space: nowrap;
}

.badge:hover {
     border-color: var(--accent);
     color: var(--accent-bright);
     box-shadow: 0 0 12px rgba(41, 98, 255, 0.2);
}

/* =========================
    Skills Section
========================= */
.skills-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
     gap: 2rem;
}

.skill-group {
     background: rgba(30, 41, 59, 0.6);
     border: 1px solid rgba(79, 70, 229, 0.25);
     border-radius: 16px;
     padding: 1.75rem;
     backdrop-filter: blur(10px);
     transition: border-color 0.3s, box-shadow 0.3s;
}

.skill-group:hover {
     border-color: var(--accent);
     box-shadow: 0 12px 30px rgba(41, 98, 255, 0.1);
}

.skill-group-header {
     display: flex;
     align-items: center;
     gap: 0.75rem;
     margin-bottom: 1.25rem;
     font-weight: 600;
     color: var(--accent-bright);
     font-size: 1rem;
}

.skill-group-header i {
     font-size: 1.1rem;
     color: var(--primary);
}

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

.skill-tag {
     background: rgba(79, 70, 229, 0.12);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 50px;
     padding: 0.35rem 0.9rem;
     font-size: 0.85rem;
     color: var(--gray-light);
     cursor: default;
     transition: all 0.25s;
     position: relative;
}

.skill-tag:hover {
     background: rgba(41, 98, 255, 0.15);
     border-color: var(--accent);
     color: var(--accent-bright);
     transform: translateY(-2px);
}

/* =========================
    Education Enhancements
========================= */
.education-years {
     font-size: 0.85rem;
     color: var(--gray);
     margin-top: 0.25rem;
}

.education-note {
     font-size: 0.85rem;
     color: var(--accent-bright);
     margin-top: 0.3rem;
     font-style: italic;
}

/* =========================
    Goals Section
========================= */
.goals-container {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
     gap: 2rem;
     max-width: 900px;
     margin: 0 auto;
}

.goal-card {
     background: rgba(30, 41, 59, 0.6);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 20px;
     padding: 2.5rem 2rem;
     backdrop-filter: blur(10px);
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     position: relative;
     overflow: hidden;
}

.goal-card::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 3px;
     background: linear-gradient(90deg, var(--primary), var(--accent));
     border-radius: 20px 20px 0 0;
}

.goal-card:hover {
     transform: translateY(-6px);
     border-color: var(--accent);
     box-shadow: 0 20px 40px rgba(41, 98, 255, 0.15);
}

.goal-icon {
     width: 52px;
     height: 52px;
     border-radius: 50%;
     background: linear-gradient(135deg, var(--primary), var(--secondary));
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 1.3rem;
     color: white;
     margin-bottom: 1.25rem;
     box-shadow: 0 6px 18px rgba(79, 70, 229, 0.3);
}

.goal-card h3 {
     font-size: 1.1rem;
     color: var(--light);
     margin-bottom: 0.85rem;
     font-weight: 400;
}

.goal-card p {
     color: var(--gray-light);
     font-size: 0.97rem;
     line-height: 1.75;
}

/* =========================
    Responsive Design
========================= */
/* --- Desktop/Mobile Nav --- */
@media (max-width: 992px) {
     .nav-links {
          display: none;
     }

     .menu-toggle {
          display: block;
     }
}

@media (max-width: 767px) {
     .nav-links .more-menu-item {
          display: none;
     }
}

@media (min-width: 768px) {
     .nav-links {
          display: flex;
     }
}

/* --- General Responsive --- */
@media (max-width: 768px) {
     header {
          padding: 1rem;
     }

     .cta-buttons {
          flex-direction: column;
          align-items: center;
          gap: 1rem;
     }

     .btn {
          width: 100%;
          max-width: 350px;
     }

     #accessibility-settings-btn {
          width: 50px;
          height: 50px;
          font-size: 1.2rem;
          bottom: 15px;
          left: 15px;
     }

     #accessibility-panel {
          width: calc(100vw - 30px);
          left: 15px;
          bottom: 80px;
     }

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

/* --- Mobile Font Adjustments --- */
@media (max-width: 768px) {
     :root {
          --font-size: 14px;
     }

     h1,
     .hero h1,
     .section-title {
          font-size: clamp(1.8rem, 6vw, 2.5rem);
     }

     h2,
     h3 {
          font-size: clamp(1.4rem, 5vw, 1.8rem);
     }

     p,
     li,
     .btn {
          font-size: clamp(0.9rem, 4vw, 1rem);
     }

     .btn {
          padding: 0.8rem 1.5rem;
     }
}

@media (max-width: 480px) {
     :root {
          --font-size: 13px;
     }

     .hero h1,
     .section-title {
          font-size: clamp(1.4rem, 7vw, 1.8rem);
     }

     h2,
     h3 {
          font-size: clamp(1.2rem, 6vw, 1.5rem);
     }

     p,
     li,
     .btn {
          font-size: clamp(0.85rem, 4vw, 0.95rem);
     }

     .btn {
          padding: 0.7rem 1.2rem;
     }

     .project-card,
     .certification-card,
     .publication-card {
          padding: 1.5rem;
     }

     .footer-grid {
          grid-template-columns: 1fr 1fr 1fr;
          gap: 2rem;
     }

     .footer-brand {
          grid-column: 1 / -1;
     }

     .footer-bottom {
          flex-direction: column;
          text-align: center;
          gap: 0.4rem;
          padding: 1.25rem 1rem 2rem;
     }

     .footer-top {
          padding: 3rem 1.25rem 2rem;
     }

     .footer-text,
     .trademark-disclaimer,
     .footer-built-with {
          font-size: 0.82rem;
     }

     .testimonial-slide blockquote {
          font-size: 1.1rem;
     }

     .testimonial-nav-btn {
          width: 35px;
          height: 35px;
          font-size: 1rem;
     }
}

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

     .footer-brand {
          grid-column: auto;
     }
}

/* =========================
    Cursor Trail Canvas
========================= */
#cursor-trail-canvas {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 2;
     pointer-events: none;
     opacity: 0.6;
}

/* =========================
    Text Scramble Animation
========================= */
.scramble-char {
     display: inline-block;
     transition: opacity 0.15s;
}

.scramble-char.cipher {
     color: var(--accent);
     opacity: 0.7;
     font-family: 'IBM Plex Mono', monospace;
}

.scramble-char.revealed {
     color: inherit;
     opacity: 1;
}

/* =========================
    Parallax Hero Layers
========================= */
.hero {
     perspective: 1px;
     overflow: visible;
}

.hero-content {
     will-change: transform;
}

.hero-content .hero-avatar {
     will-change: transform;
}

/* =========================
    Matrix Rain Overlay
========================= */
#matrix-rain-canvas {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: 9998;
     pointer-events: none;
     opacity: 0;
     transition: opacity 0.5s ease-in;
}

#matrix-rain-canvas.active {
     opacity: 1;
}

#matrix-rain-canvas.fading {
     opacity: 0;
     transition: opacity 1.5s ease-out;
}

/* Matrix hint tooltip */
.matrix-hint {
     position: fixed;
     bottom: 20px;
     right: 20px;
     z-index: 5;
     background: rgba(30, 41, 59, 0.8);
     border: 1px solid rgba(41, 98, 255, 0.3);
     border-radius: 8px;
     padding: 0.4rem 0.8rem;
     font-size: 0.7rem;
     color: var(--gray);
     font-family: 'IBM Plex Mono', monospace;
     opacity: 0;
     transform: translateY(10px);
     transition: opacity 0.6s, transform 0.6s;
     pointer-events: none;
}

.matrix-hint.visible {
     opacity: 0.5;
     transform: translateY(0);
}

/* =========================
    Publications Section
========================= */
.publications-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 2.5rem;
}

@media (min-width: 640px) {
     .publications-grid {
          grid-template-columns: repeat(2, 1fr);
     }
}

@media (min-width: 1024px) {
     .publications-grid {
          grid-template-columns: repeat(3, 1fr);
     }
}

.publication-card {
     background: rgba(30, 41, 59, 0.7);
     backdrop-filter: blur(15px);
     -webkit-backdrop-filter: blur(15px);
     border: 1px solid rgba(79, 70, 229, 0.3);
     border-radius: 20px;
     padding: 2.5rem;
     transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
     position: relative;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     justify-content: space-between;
}

.publication-card:hover {
     transform: translateY(-8px) scale(1.03);
     border-color: var(--accent);
     box-shadow: 0 25px 50px -12px rgba(41, 98, 255, 0.25);
}

.pub-badge {
     align-self: flex-start;
     background: rgba(41, 98, 255, 0.15);
     color: var(--accent-bright);
     padding: 0.3rem 0.8rem;
     border-radius: 50px;
     font-size: 0.75rem;
     font-weight: 600;
     margin-bottom: 1.5rem;
     letter-spacing: 0.5px;
     text-transform: uppercase;
     border: 1px solid rgba(41, 98, 255, 0.3);
}

.pub-title {
     font-family: var(--font-heading);
     font-size: 1.3rem;
     font-weight: 700;
     color: var(--light);
     margin-bottom: 0.5rem;
     line-height: 1.4;
}

.pub-meta {
     color: var(--gray);
     font-size: 0.85rem;
     font-weight: 500;
     margin-bottom: 1.2rem;
}

.pub-desc {
     color: var(--gray-light);
     font-size: 0.95rem;
     line-height: 1.6;
     margin-bottom: 2rem;
     flex-grow: 1;
}

.pub-links {
     display: flex;
     flex-wrap: wrap;
     gap: 0.75rem;
     margin-top: auto;
}

.pub-link {
     display: inline-flex;
     align-items: center;
     gap: 0.5rem;
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--light);
     text-decoration: none;
     background: rgba(79, 70, 229, 0.2);
     border: 1px solid rgba(79, 70, 229, 0.4);
     padding: 0.5rem 1rem;
     border-radius: 8px;
     transition: all 0.3s ease;
}

.pub-link:hover {
     background: var(--primary);
     border-color: var(--primary);
     color: #fff;
     transform: translateY(-2px);
     box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pub-link i {
     font-size: 0.9rem;
}

.isbn-badge {
     display: inline-block;
     font-family: 'IBM Plex Mono', monospace;
     font-size: 0.8rem;
     color: var(--accent-bright);
     background: rgba(15, 23, 42, 0.6);
     border: 1px solid rgba(41, 98, 255, 0.3);
     padding: 0.4rem 0.8rem;
     border-radius: 6px;
     letter-spacing: 0.5px;
}

/* =========================
    WCAG: Reduced Motion
========================= */
@media (prefers-reduced-motion: reduce) {

     *,
     *::before,
     *::after {
          animation-duration: 0.01ms !important;
          animation-iteration-count: 1 !important;
          transition-duration: 0.01ms !important;
          scroll-behavior: auto !important;
     }
}

/* =========================
    WCAG: High Contrast
========================= */
@media (prefers-contrast: more) {
     :root {
          --dark: #000;
          --dark-lighter: #111;
          --light: #fff;
          --gray-light: #ddd;
     }

     .project-card,
     .certification-card,
     .skill-group,
     .goal-card,
     .publication-card {
          border-width: 2px;
     }

     a {
          text-decoration: underline;
     }
}

/* =========================
    Translation & Subtitle Styles
========================= */
.translation-title {
     display: block;
     font-size: 0.85em;
     font-weight: normal;
     color: var(--gray-light);
     margin-top: 6px;
     font-style: italic;
     opacity: 0.85;
}

/* =========================
    Photography Section (Flickr)
========================= */
.photography {
     padding: 6rem 0;
     position: relative;
     z-index: 2;
     background: linear-gradient(180deg, transparent, rgba(30, 41, 59, 0.2), transparent);
}

.photography .container {
     max-width: 800px;
     margin: 0 auto;
     text-align: center;
}

.photography-tagline {
     font-family: var(--font-serif);
     font-size: 1.5rem;
     color: var(--accent-bright);
     margin-bottom: 1.5rem;
     font-style: italic;
}

.photography-desc {
     font-size: 1.1rem;
     line-height: 1.8;
     color: var(--gray-light);
     margin-bottom: 2.5rem;
}

.flickr-btn {
     display: inline-flex;
     align-items: center;
     gap: 0.75rem;
     padding: 1rem 2rem;
     background: #0063db !important; /* Flickr Blue */
     border: 1px solid #0063db !important;
     color: #fff !important;
     font-weight: 600;
     border-radius: 8px;
     text-decoration: none;
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flickr-btn:hover {
     background: #ff0084 !important; /* Flickr Pink/Magenta */
     border-color: #ff0084 !important;
     transform: translateY(-2px);
     box-shadow: 0 10px 20px rgba(255, 0, 132, 0.3);
}

.flickr-btn i {
     font-size: 1.1rem;
}

/* ---- Utility classes for inline SVGs ---- */
.nav-svg-icon, .btn-svg-icon, .goal-svg-icon, .social-svg-icon {
     width: 1em;
     height: 1em;
     vertical-align: -0.1em;
     display: inline-block;
     filter: invert(100%);
     transition: filter 0.3s;
}

/* Hover effects for SVG icons inside links/buttons */
a:hover .nav-svg-icon, button:hover .nav-svg-icon,
a:hover .btn-svg-icon, button:hover .btn-svg-icon,
a:hover .social-svg-icon {
     filter: invert(34%) sepia(88%) saturate(3025%) hue-rotate(218deg) brightness(101%) contrast(106%);
}

.footer-heart-svg {
     width: 1.2em;
     height: 1.2em;
     vertical-align: middle;
     display: inline-block;
}

.footer-coffee-svg {
     width: 1.2em;
     height: 1.2em;
     vertical-align: middle;
     display: inline-block;
     filter: invert(40%) sepia(80%) saturate(600%) hue-rotate(340deg) brightness(95%) contrast(90%); /* Brownish tint */
}


.access-main-svg {
     width: 1.5rem;
     height: 1.5rem;
     display: block;
     filter: invert(100%);
}

.success-svg-icon {
     width: 40px;
     height: 40px;
     display: block;
     filter: invert(53%) sepia(61%) saturate(415%) hue-rotate(125deg) brightness(96%) contrast(89%); /* Matches #14b8a6 */
}

/* ---- External link indicator icon ---- */
.external-link-icon {
    width: 0.75em;
    height: 0.75em;
    margin-left: 0.3em;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.75;
    flex-shrink: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    filter: invert(100%);
}

a:hover .external-link-icon {
    opacity: 1;
    transform: translate(1px, -1px);
    filter: invert(34%) sepia(88%) saturate(3025%) hue-rotate(218deg) brightness(101%) contrast(106%);
}

