@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Base Body & Background Styles */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    position: relative;
    color: #ccd6f6;
    background-color: #050912;
    --hero-glow-1: rgba(0, 242, 161, 0.4);
    --hero-glow-2: rgba(0, 242, 161, 0.75);
}

body.theme-light {
    color: #1f2a44;
    background:
        radial-gradient(520px circle at var(--x) var(--y), rgba(118, 197, 255, 0.35), transparent 65%),
        radial-gradient(900px circle at 20% 18%, rgba(203, 233, 255, 0.8), transparent 70%),
        radial-gradient(700px circle at 78% 22%, rgba(134, 225, 255, 0.75), transparent 65%),
        radial-gradient(860px circle at 35% 82%, rgba(200, 220, 255, 0.65), transparent 70%),
        linear-gradient(145deg, #f6f9ff 0%, #eef5ff 45%, #f8fdff 100%);
}

body.theme-light::before {
    content: '';
    position: fixed;
    top: -15vh;
    left: -15vw;
    width: 130vw;
    height: 130vh;
    z-index: -2;
    background: radial-gradient(circle at 15% 30%, rgba(108, 202, 255, 0.22), transparent 60%), radial-gradient(circle at 85% 70%, rgba(92, 209, 255, 0.25), transparent 62%), radial-gradient(circle at 60% 10%, rgba(240, 245, 255, 0.80), transparent 60%);
    animation: floatGlow 28s ease-in-out infinite alternate;
}

body.theme-light::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400" fill="none"%3E%3Cg opacity="0.35"%3E%3Ccircle cx="90" cy="110" r="70" fill="url(%23a)"/%3E%3Ccircle cx="330" cy="80" r="55" fill="url(%23b)"/%3E%3Cellipse cx="230" cy="280" rx="140" ry="75" fill="url(%23c)"/%3E%3Ccircle cx="80" cy="310" r="45" fill="url(%23d)"/%3E%3Ccircle cx="350" cy="310" r="68" fill="url(%23e)"/%3E%3Cdefs%3E%3CradialGradient id="a" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(90 110) rotate(90) scale(70)"%3E%3Cstop stop-color="%23bfe7ff"/%3E%3Cstop offset="1" stop-color="%23e8f5ff" stop-opacity="0"/%3E%3C/radialGradient%3E%3CradialGradient id="b" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(330 80) rotate(90) scale(55)"%3E%3Cstop stop-color="%23a0d4ff"/%3E%3Cstop offset="1" stop-color="%23e5f3ff" stop-opacity="0"/%3E%3C/radialGradient%3E%3CradialGradient id="c" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(230 280) rotate(90) scale(75 140)"%3E%3Cstop stop-color="%23ffffff" stop-opacity="0.8"/%3E%3Cstop offset="1" stop-color="%23f1f7ff" stop-opacity="0"/%3E%3C/radialGradient%3E%3CradialGradient id="d" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(80 310) rotate(90) scale(45)"%3E%3Cstop stop-color="%23aee3ff"/%3E%3Cstop offset="1" stop-color="%23f0f7ff" stop-opacity="0"/%3E%3C/radialGradient%3E%3CradialGradient id="e" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(350 310) rotate(90) scale(68)"%3E%3Cstop stop-color="%239dd7ff"/%3E%3Cstop offset="1" stop-color="%23f0f8ff" stop-opacity="0"/%3E%3C/radialGradient%3E%3C/defs%3E%3C/g%3E%3C/svg%3E') repeat;
    background-size: 720px 720px;
    opacity: 0.45;
}

body.theme-dark { color: #ccd6f6; }

body.developer-surface {
    background:
        radial-gradient(720px circle at 15% 18%, rgba(0, 242, 161, 0.14), transparent 60%),
        radial-gradient(640px circle at 82% 12%, rgba(0, 173, 255, 0.18), transparent 58%),
        radial-gradient(780px circle at 48% 82%, rgba(0, 102, 255, 0.12), transparent 62%),
        #050912;
}

body.developer-surface::before {
    content: '';
    position: fixed;
    inset: -12% -8%;
    z-index: -2;
    background:
        conic-gradient(from 90deg at 20% 25%, rgba(0, 242, 161, 0.45), transparent 55%),
        radial-gradient(circle at 78% 40%, rgba(0, 173, 255, 0.3), transparent 60%);
    filter: blur(90px);
    opacity: 0.85;
    pointer-events: none;
    animation: developerPulse 18s ease-in-out infinite alternate;
}

body.developer-surface::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, rgba(0, 247, 160, 0.12) 0px, rgba(0, 247, 160, 0.12) 1px, transparent 1px, transparent 78px),
        repeating-linear-gradient(0deg, rgba(0, 173, 255, 0.1) 0px, rgba(0, 173, 255, 0.1) 1px, transparent 1px, transparent 54px),
        linear-gradient(120deg, rgba(0, 23, 46, 0.55), rgba(0, 17, 36, 0.25)),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cstyle%3Etext%7Bfont-family:'Fira%20Code',monospace;font-size:18px;letter-spacing:1px;%7D%3C/style%3E%3Cg fill='%2300f2a1' fill-opacity='0.22'%3E%3Ctext x='16' y='56'%3Econst%20deploy%20=%20()%20=%3E%20%7B%3C/text%3E%3Ctext x='16' y='92'%3E%20%20return%20azure.pipeline()%3C/text%3E%3Ctext x='16' y='128'%3E%7D%3C/text%3E%3C/g%3E%3Cg fill='%2300c6ff' fill-opacity='0.2'%3E%3Ctext x='16' y='174'%3E//%20automated%20cloud%3C/text%3E%3Ctext x='16' y='210'%3Ekubectl%20apply%20-f%3C/text%3E%3Ctext x='16' y='246'%3Eterraform%20plan%3C/text%3E%3C/g%3E%3C/svg%3E");
    background-size: 180px 180px, 220px 220px, cover, 480px 480px;
    mix-blend-mode: screen;
    opacity: 0.55;
    animation: codeBackdrop 26s linear infinite;
}


@keyframes floatGlow {
    0% { transform: translate3d(-4%, -3%, 0) scale(1); }
    50% { transform: translate3d(2%, 4%, 0) scale(1.02); }
    100% { transform: translate3d(-3%, 3%, 0) scale(1.01); }
}

@keyframes developerPulse {
    0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: 0.6; }
    50% { transform: translate3d(1%, 2%, 0) scale(1.05); opacity: 0.9; }
    100% { transform: translate3d(-1%, 3%, 0) scale(1.02); opacity: 0.65; }
}

@keyframes codeBackdrop {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 0 720px, 360px 0, 0 0, 0 960px; }
}

@keyframes headerShimmer {
    0% { background-position: 0% 50%; opacity: 0.45; }
    50% { background-position: 100% 50%; opacity: 0.75; }
    100% { background-position: 0% 50%; opacity: 0.45; }
}

@keyframes headerSweep {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Global Smooth Scrolling */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Typography palettes */
body.theme-light .text-white,
body.theme-light .text-gray-100,
body.theme-light .text-gray-200 { color: #10243e !important; }
body.theme-light .text-gray-300 { color: #1f324c !important; }
body.theme-light .text-gray-400 { color: #314864 !important; }
body.theme-light .text-gray-500 { color: #4b5f78 !important; }
body.theme-light .text-gray-600 { color: #5c728d !important; }
body.theme-light .text-gray-700 { color: #677892 !important; }
body.theme-light .text-gray-800 { color: #1a2c44 !important; }
body.theme-light .text-gray-900 { color: #0f2037 !important; }
body.theme-light .text-[#0a192f],
body.theme-light .text-[#0A192F],
body.theme-light .text-[#0a192f]/90 { color: #0f2037 !important; }
body.theme-light a { color: #0b9fe3; }
body.theme-light a:hover { color: #0984c9; }
body.theme-light .nav-link { color: #123355; }
body.theme-light .nav-link:hover { color: #0b9fe3; }
body.theme-light .mobile-blog-icon:hover { color: #0b9fe3; }
body.theme-light .mobile-blog-icon i { background-color: rgba(255, 255, 255, 0.8); color: #0b2c4f; }
body.theme-light .mobile-blog-icon { color: #0f2d4d; }
body.theme-light .brand-mark { color: #0f2037 !important; }
body.theme-light .brand-mark .brand-dot { color: #00f2a1 !important; text-shadow: 0 6px 16px rgba(0, 242, 161, 0.25); }
body.theme-light .gradient-cta { color: #053053 !important; text-shadow: 0 4px 12px rgba(15, 45, 77, 0.25); box-shadow: 0 20px 30px rgba(73, 156, 220, 0.22); }
body.theme-light .gradient-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}

body.theme-dark a { color: #00f2a1; }
body.theme-dark a:hover { color: #00c6ff; }
body.theme-dark .nav-link { color: #ccd6f6; }
body.theme-dark .nav-link:hover { color: #00f2a1; }
body.theme-dark .mobile-blog-icon:hover { color: #00f2a1; }
body.theme-dark .mobile-blog-icon i { background-color: #0a192f; color: #ccd6f6; }
body.theme-dark .mobile-blog-icon { color: #ccd6f6; }

body.theme-dark .text-white,
body.theme-dark .text-gray-100,
body.theme-dark .text-gray-200 {
    color: #f7fbff !important;
    text-shadow: 0 0 18px rgba(0, 242, 161, 0.18), 0 0 32px rgba(0, 173, 255, 0.12);
}

#home h1 {
    color: #ffffff;
    text-shadow: 0 0 18px rgba(12, 232, 242, 0.32);
}

#home h2 {
    background-image: linear-gradient(90deg, #19ffd9, #00d2ff);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 28px rgba(0, 210, 255, 0.35);
}
#home h3 {
    color: #d7f8ff;
    text-shadow: 0 0 18px rgba(0, 210, 255, 0.45);
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
    color: #f9fcff;
    text-shadow: 0 0 22px rgba(0, 242, 161, 0.2);
}
body.theme-dark .text-gray-300 { color: #e0e8ff !important; }
body.theme-dark .brand-mark {
    color: #f9fdff !important;
    text-shadow: 0 0 20px rgba(0, 242, 161, 0.28);
}
body.theme-dark .brand-mark .brand-dot { color: #00f2a1 !important; text-shadow: 0 0 20px rgba(0, 242, 161, 0.55); }
body.theme-dark .gradient-cta { color: #0a192f !important; text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45); box-shadow: 0 16px 28px rgba(0, 0, 0, 0.5); }
body.theme-dark .gradient-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

/* Reusable Components */
/* General glassmorphism surface */
.glass-effect {
    position: relative;
    overflow: hidden;
}

body.theme-light .glass-effect {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(213, 235, 255, 0.48));
    border: 1px solid rgba(176, 214, 255, 0.45);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 18px 38px rgba(64, 116, 173, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.theme-dark .glass-effect {
    background: rgba(13, 31, 58, 0.5);
    border: 1px solid rgba(0, 242, 161, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.reflection-effect { position: relative; overflow: hidden; }
.reflection-effect::after { content: ''; position: absolute; top: 0; left: 0; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%); transform: skewX(-25deg) translateX(-150%); transition: transform 1s ease; }
.reflection-effect:hover::after { transform: skewX(-25deg) translateX(250%); }

/* Header glass bar (stronger glassmorphism) */
.glass-header {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    min-height: 76px;
}

body.theme-light .glass-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(197, 229, 255, 0.6));
    border: 1.5px solid rgba(140, 205, 255, 0.6);
    backdrop-filter: saturate(190%) blur(22px);
    -webkit-backdrop-filter: saturate(190%) blur(22px);
    box-shadow: 0 32px 55px rgba(71, 134, 198, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-light .glass-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    opacity: 0.85;
}

body.theme-light .glass-header::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 140%;
    top: -60%;
    left: -10%;
    background: radial-gradient(circle at 18% 20%, rgba(117, 206, 255, 0.6), transparent 58%), radial-gradient(circle at 72% 10%, rgba(186, 134, 255, 0.4), transparent 60%), radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.35), transparent 65%);
    opacity: 0.68;
    filter: blur(35px);
    pointer-events: none;
}

body.theme-dark .glass-header {
    background: linear-gradient(145deg, rgba(8, 20, 36, 0.82), rgba(6, 32, 56, 0.55));
    border: 1.5px solid rgba(0, 242, 201, 0.28);
    backdrop-filter: saturate(220%) blur(22px);
    -webkit-backdrop-filter: saturate(220%) blur(22px);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-dark .glass-header::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, 0.12), rgba(0, 242, 161, 0.18), rgba(0, 173, 255, 0.08));
    opacity: 0.55;
    background-size: 220% 220%;
    animation: headerShimmer 12s ease-in-out infinite;
}

body.theme-dark .glass-header::after {
    content: '';
    position: absolute;
    width: 130%;
    height: 150%;
    top: -70%;
    left: -15%;
    background: conic-gradient(from 180deg at 50% 50%, rgba(0, 242, 161, 0.35), transparent 65%);
    filter: blur(32px);
    opacity: 0.5;
    pointer-events: none;
    animation: headerSweep 18s linear infinite;
}

#home {
    padding-top: clamp(7.5rem, 14vw, 11rem);
}

@media (max-width: 640px) {
    #home { padding-top: 8.5rem; }
}

/* Header adjustments for mobile */
@media (max-width: 767px) {
    header .container {
        justify-content: space-between;
        align-items: center;
    }
    #home h2 {
        text-align: center;
        word-break: break-word;
        padding: 0 1rem;
        font-size: 2.5rem;
        line-height: 1.2;
    }
     #home h3 {
        padding: 0 1rem;
     }
}

.mobile-blog-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 2px;
    border-radius: 50%;
    color: #ccd6f6;
    transition: color 0.3s ease;
    text-decoration: none;
    animation: rotate-gemini-glow 2.5s linear infinite, pulse-glow-small 2s ease-in-out infinite;
    background: conic-gradient(from var(--angle), #89b3f8, #a389f4, #f889f4, #f8a389, #f4f889, #89f88e, #89f4f8, #89b3f8);
}

.mobile-blog-icon:hover {
    color: inherit;
}

.mobile-blog-icon i {
    font-size: 16px;
    padding: 6px;
    border-radius: 50%;
    line-height: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.gradient-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}
.gradient-cta:hover { transform: translateY(-2px); }

.brand-mark { transition: color 0.3s ease; }
.brand-mark .brand-dot { transition: color 0.3s ease, text-shadow 0.3s ease; }

/* A more subtle glow for the small icon */
@keyframes pulse-glow-small {
  0%, 100% {
    filter: drop-shadow(0 0 3px #a389f4);
  }
  50% {
    filter: drop-shadow(0 0 7px #89f88e);
  }
}
/* === Mobile Header Icon END === */


/* Profile Picture Styles */
.gemini-glow-circle {
    position: relative;
    padding: 14px;
    border-radius: 50%;
    overflow: visible;
    background:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.75) 48%, transparent 68%),
        conic-gradient(from var(--angle), rgba(0, 242, 161, 0.35), rgba(0, 173, 255, 0.4), rgba(0, 242, 161, 0.35));
    animation: rotate-gemini-glow 6s linear infinite, pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 242, 161, 0.18), 0 0 120px rgba(0, 173, 255, 0.16);
}

.gemini-glow-circle::before {
    content: '';
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #000 0%, #050912 62%, rgba(0, 19, 46, 0.7) 100%);
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.85);
    z-index: 0;
}

.gemini-glow-circle::after {
    content: '';
    position: absolute;
    inset: -12%;
    border-radius: 50%;
    background:
        conic-gradient(from var(--angle), rgba(0, 242, 161, 0) 0%, rgba(0, 242, 161, 0.45) 35%, rgba(0, 173, 255, 0.35) 55%, rgba(0, 242, 161, 0) 85%);
    opacity: 0.5;
    filter: blur(12px);
    z-index: -1;
    pointer-events: none;
    animation: orbitGlow 18s linear infinite;
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(0, 242, 161, 0.28);
    position: relative;
    z-index: 1;
    background-color: #000;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.75);
}

#home .gemini-glow-circle {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

@keyframes rotate-gemini-glow {
    to {
        --angle: 360deg;
    }
}

@keyframes pulse-glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px #a389f4) drop-shadow(0 0 12px #89b3f8);
  }
  50% {
    filter: drop-shadow(0 0 16px #f889f4) drop-shadow(0 0 24px #89f88e);
  }
}

@keyframes orbitGlow {
  0% { transform: rotate(0deg) scale(1); opacity: 0.45; }
  50% { opacity: 0.7; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.45; }
}

@keyframes footerCrystal {
  0% { transform: rotate(0deg) scale(1); opacity: 0.65; }
  50% { transform: rotate(180deg) scale(1.05); opacity: 0.85; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.65; }
}

#hero-subtitle {
    position: relative;
    display: inline-block;
    color: #fdfdff;
    padding: 0.15rem 0;
    letter-spacing: 0.02em;
    text-shadow:
        0 0 14px rgba(0, 255, 191, 0.55),
        0 0 24px rgba(0, 173, 255, 0.45),
        0 0 32px rgba(154, 102, 255, 0.35);
    animation: geminiRainbowGlow 6s ease-in-out infinite;
}

body.theme-light #hero-subtitle { color: #f5f8ff; }

body.theme-dark #hero-subtitle:hover,
body.theme-light #hero-subtitle:hover {
    text-shadow:
        0 0 20px rgba(0, 255, 191, 0.75),
        0 0 32px rgba(0, 173, 255, 0.6),
        0 0 44px rgba(154, 102, 255, 0.5);
}

@keyframes geminiRainbowGlow {
    0% {
        text-shadow:
            0 0 14px rgba(0, 255, 191, 0.6),
            0 0 28px rgba(0, 173, 255, 0.5),
            0 0 42px rgba(154, 102, 255, 0.4);
    }
    25% {
        text-shadow:
            0 0 14px rgba(0, 173, 255, 0.6),
            0 0 28px rgba(0, 102, 255, 0.5),
            0 0 42px rgba(0, 247, 255, 0.4);
    }
    50% {
        text-shadow:
            0 0 14px rgba(154, 102, 255, 0.6),
            0 0 28px rgba(229, 102, 255, 0.5),
            0 0 42px rgba(0, 255, 191, 0.4);
    }
    75% {
        text-shadow:
            0 0 14px rgba(229, 102, 255, 0.6),
            0 0 28px rgba(0, 255, 191, 0.5),
            0 0 42px rgba(0, 173, 255, 0.4);
    }
    100% {
        text-shadow:
            0 0 14px rgba(0, 255, 191, 0.6),
            0 0 28px rgba(0, 173, 255, 0.5),
            0 0 42px rgba(154, 102, 255, 0.4);
    }
}


/* Skills & Certs Cards */
.skill-card, .cert-card { transition: all 0.3s ease; }
.skill-card:hover, .cert-card:hover { transform: translateY(-5px); }
.skill-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}
.skill-card::after { transition-duration: 0.6s; }
.skill-card i { font-size: 2.5rem; }

body.theme-light .skill-card {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.88), rgba(214, 238, 255, 0.52));
    backdrop-filter: blur(18px) saturate(160%);
    border: 1.2px solid rgba(140, 205, 255, 0.5);
    box-shadow: 0 24px 38px rgba(69, 123, 198, 0.22);
}

body.theme-light .skill-card::before {
    content: '';
    position: absolute;
    inset: -40% -45% 50% -45%;
    background: radial-gradient(circle at center, rgba(108, 205, 255, 0.45), transparent 65%);
    opacity: 0.75;
    filter: blur(25px);
    pointer-events: none;
}

body.theme-light .skill-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
    opacity: 0.45;
    pointer-events: none;
}

body.theme-light .skill-card:hover { border-color: rgba(11, 159, 227, 0.6); box-shadow: 0 32px 52px rgba(69, 123, 198, 0.28); }
body.theme-light .skill-card i { color: #0b9fe3; }

body.theme-dark .skill-card {
    background: rgba(13, 31, 58, 0.5);
    border: 1px solid rgba(0, 242, 161, 0.1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.theme-dark .skill-card:hover { border-color: #00f2a1; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45); }
body.theme-dark .skill-card i { color: #00f2a1; }

.cert-card {
    position: relative;
    padding: 1.1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
}
.cert-card .cert-icon { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }

body.theme-light .cert-card {
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(215, 241, 255, 0.55));
    backdrop-filter: blur(18px) saturate(160%);
    border: 1.2px solid rgba(236, 201, 116, 0.4);
    box-shadow: 0 22px 36px rgba(69, 123, 198, 0.2);
}

body.theme-light .cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.55);
    opacity: 0.45;
    pointer-events: none;
}

body.theme-light .cert-card::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 120%;
    top: -70%;
    left: -20%;
    background: radial-gradient(circle at 40% 40%, rgba(108, 205, 255, 0.45), transparent 65%), radial-gradient(circle at 80% 60%, rgba(238, 205, 122, 0.35), transparent 60%);
    opacity: 0.55;
    filter: blur(25px);
    pointer-events: none;
}

body.theme-light .cert-card:hover { border-color: rgba(236, 201, 116, 0.55); box-shadow: 0 32px 48px rgba(69, 123, 198, 0.26); }

body.theme-dark .cert-card {
    background: rgba(13, 31, 58, 0.5);
    border: 1px solid rgba(251, 191, 36, 0.2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

body.theme-dark .cert-card:hover { border-color: #FBBF24; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45); }

/* Remove pseudo icon and use PNGs */
body.theme-dark .cert-card::before { content: none; }

/* Experience Accordion */
.timeline-trigger i {
    transition: transform 0.4s ease-in-out;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 242, 161, 0.35);
}
.timeline-content { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.5s ease-in-out, opacity 0.3s ease-in-out 0.2s; }
.timeline-content > div { overflow: hidden; }
.timeline-item.is-open .timeline-trigger i { transform: rotate(180deg); }
.timeline-item.is-open .timeline-content { grid-template-rows: 1fr; opacity: 1; }

/* Project Card Layout (glass) */
.project-card {
    border-radius: 0.75rem;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.project-card-content { display: flex; flex-direction: column; flex-grow: 1; }
.project-card .p-6 { display: flex; flex-direction: column; flex-grow: 1; }
.project-card-image { width: 100%; height: 12rem; object-fit: cover; flex-shrink: 0; }
.project-card-title { font-size: 1.25rem; font-weight: bold; margin-bottom: 0.5rem; }
.project-card-desc { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.project-card:hover { transform: translateY(-5px) scale(1.03); }

body.theme-light .project-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(219, 240, 255, 0.52));
    border: 1px solid rgba(176, 214, 255, 0.42);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 16px 36px rgba(64, 116, 173, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

body.theme-light .project-card-title { color: #10243e; }
body.theme-light .project-card-desc { color: #4f5f7b; }
body.theme-light .project-card:hover { box-shadow: 0 22px 44px rgba(64, 116, 173, 0.28); border-color: rgba(11, 159, 227, 0.45); }

body.theme-dark .project-card {
    background-color: #0d1b33;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

body.theme-dark .project-card-title { color: #ffffff; }
body.theme-dark .project-card-desc { color: #cbd5e1; }
body.theme-dark .project-card:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45); border-color: rgba(0, 242, 161, 0.35); }

/* Project Modal */
.project-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 100; display: flex; align-items: center; justify-content: center; background-color: rgba(238, 247, 255, 0.85); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.3s ease-in-out; }
.project-modal:not(.hidden) { opacity: 1; }
.project-modal-content { position: relative; width: 90%; max-width: 1000px; height: 90vh; max-height: 700px; border-radius: 0.75rem; display: flex; flex-direction: column; transform: scale(0.95) translateY(-20px); transition: transform 0.3s ease-in-out; overflow: hidden; }
@media (min-width: 768px) { .project-modal-content { flex-direction: row; } }
.project-modal:not(.hidden) .project-modal-content { transform: scale(1) translateY(0); }
.modal-image-container { flex-shrink: 0; background-color: rgba(255, 255, 255, 0.85); }
@media (min-width: 768px) { .modal-image-container { width: 55%; } }
#modal-image { width: 100%; height: 100%; object-fit: contain; }
.modal-text-container { padding: 1.5rem; display: flex; flex-direction: column; overflow: hidden; flex-grow: 1; }
@media (min-width: 768px) { .modal-text-container { padding: 2rem; } }
#modal-description { flex-grow: 1; overflow-y: auto; }
.modal-close-btn { position: absolute; top: 0.75rem; right: 1rem; font-size: 2.5rem; line-height: 1; color: #5c748d; background: none; border: none; cursor: pointer; z-index: 110; transition: all 0.2s ease; }
.modal-close-btn:hover { color: #0b9fe3; transform: rotate(90deg); }
.modal-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: linear-gradient(135deg, rgba(13, 31, 58, 0.6), rgba(13, 31, 58, 0.35)); color: white; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; width: 2.5rem; height: 2.5rem; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease-in-out; z-index: 120; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
@media (min-width: 768px) { .modal-nav-btn { width: 3.5rem; height: 3.5rem; font-size: 1.5rem; } }
.modal-nav-btn:hover { background: rgba(11, 159, 227, 0.85); color: #ffffff; border-color: transparent; }
.modal-nav-btn:disabled { opacity: 0.2; cursor: not-allowed; }

body.theme-dark .project-modal { background-color: rgba(10, 25, 47, 0.85); }
body.theme-dark .modal-image-container { background-color: #0a192f; }
body.theme-dark .modal-close-btn { color: #9ca3af; }
body.theme-dark .modal-close-btn:hover { color: #ffffff; }
body.theme-dark .modal-nav-btn { background: rgba(13, 31, 58, 0.5); }
body.theme-dark .modal-nav-btn:hover { background: rgba(0, 242, 161, 0.8); color: #0a192f; border-color: transparent; }

/* Footer */
.footer-credit-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(140deg, rgba(6, 28, 44, 0.85), rgba(8, 42, 62, 0.52));
    border: 1px solid rgba(0, 242, 161, 0.18);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 1;
}

.footer-credit-wrapper::before {
    content: '';
    position: absolute;
    inset: -140% -40% 55%;
    background: radial-gradient(circle at 35% 60%, rgba(0, 242, 161, 0.28), transparent 70%), radial-gradient(circle at 75% 30%, rgba(0, 173, 255, 0.22), transparent 68%);
    opacity: 0.75;
    filter: blur(48px);
    animation: footerCrystal 18s linear infinite;
}

.footer-credit-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    opacity: 0.4;
}

.footer-credit {
    position: relative;
    color: #d9f9ff;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 18px rgba(0, 242, 161, 0.2), 0 0 30px rgba(0, 173, 255, 0.18);
}

.footer-credit:hover {
    color: #f7fbff;
    text-shadow: 0 0 20px rgba(0, 242, 161, 0.35);
}

footer .text-xl {
    color: #00f2a1;
    text-shadow: 0 0 16px rgba(0, 242, 161, 0.25);
}

footer .text-xl:hover {
    color: #3cdcff;
}

footer {
    position: relative;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(0, 242, 161, 0.08), transparent 65%);
    opacity: 0.65;
}

/* Utility & Scrollbar */
.fade-in-section { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

body.theme-light ::-webkit-scrollbar { width: 8px; }
body.theme-light ::-webkit-scrollbar-track { background: #e4efff; }
body.theme-light ::-webkit-scrollbar-thumb { background: #7ccffd; border-radius: 10px; }
body.theme-light ::-webkit-scrollbar-thumb:hover { background: #51b8f6; }
body.theme-light #modal-description::-webkit-scrollbar { width: 6px; }
body.theme-light #modal-description::-webkit-scrollbar-track { background: transparent; }
body.theme-light #modal-description::-webkit-scrollbar-thumb { background: #7ccffd; border-radius: 10px; }

body.theme-dark ::-webkit-scrollbar { width: 8px; }
body.theme-dark ::-webkit-scrollbar-track { background: #0a192f; }
body.theme-dark ::-webkit-scrollbar-thumb { background: #00f2a1; border-radius: 10px; }
body.theme-dark ::-webkit-scrollbar-thumb:hover { background: #00c6ff; }
body.theme-dark #modal-description::-webkit-scrollbar { width: 6px; }
body.theme-dark #modal-description::-webkit-scrollbar-track { background: transparent; }
body.theme-dark #modal-description::-webkit-scrollbar-thumb { background: #00f2a1; border-radius: 10px; }

body.theme-light .bg-\[\#0a192f\], body.theme-light .bg-\[\#0A192F\] { background-color: transparent !important; }
body.theme-light .text-\[\#0a192f\], body.theme-light .text-\[\#0A192F\] { color: #0f2037 !important; }
body.theme-light .bg-\[\#0a192f\]/90 { background-color: rgba(255,255,255,0.75) !important; }
body.theme-light .text-\[\#00f2a1\], body.theme-light .text-\[\#00F2A1\] { color: #0b9fe3 !important; }
body.theme-light .hover\:text-\[\#00f2a1\]:hover { color: #0984c9 !important; }
body.theme-light .bg-\[\#00f2a1\], body.theme-light .bg-\[\#00F2A1\] { background-color: #70dcff !important; color: #0f2037 !important; }
