/* ===================================
   PROFESSIONAL PORTFOLIO STYLESHEET
   Responsive, Dark Mode, Animations
   =================================== */

/* Root Variables */
:root {
    /* Light Mode Colors - Clean Tech Blue */
    --primary-color: #2563EB;
    --secondary-color: #1D4ED8;
    --success-color: #1db954;
    --danger-color: #ff6b6b;
    --warning-color: #ffa500;
    
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #EFF6FF;
    
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6B7280;
    
    --border-color: #E5E7EB;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Glassmorphism Effects for Light Mode */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: 12px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Original Colors for Social Icons (non-themed) */
    --social-primary: #0066ff;
    --social-secondary: #00d4ff;
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Transitions — smooth deceleration curve throughout */
    --transition-fast:   200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 380ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow:   560ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== PARTICLE CANVAS STYLING ===== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: transparent;
}

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

/* Dark Mode Variables — AMOLED */
body.dark-mode {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #0d1021;
    
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-tertiary: #606060;
    
    --border-color: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.85);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 600ms ease, visibility 600ms ease;
    overflow: hidden;
}

/* ===== LIQUID BLOBS ===== */
.ll-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.ll-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.72;
}

/* Dark mode blobs */
.ll-blob:nth-child(1) {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.75) 0%, transparent 70%);
    top: -140px; left: -100px;
    animation: ll-blob-1 13s ease-in-out infinite;
}
.ll-blob:nth-child(2) {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.65) 0%, transparent 70%);
    bottom: -100px; right: -80px;
    animation: ll-blob-2 16s ease-in-out infinite;
}
.ll-blob:nth-child(3) {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.50) 0%, transparent 70%);
    top: 38%; left: 62%;
    animation: ll-blob-3 11s ease-in-out infinite;
}
.ll-blob:nth-child(4) {
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.55) 0%, transparent 70%);
    bottom: 22%; left: 8%;
    animation: ll-blob-4 14s ease-in-out infinite;
}

/* Light mode overrides */
.loading-screen.light {
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 50%, #ede9fe 100%);
}
.loading-screen.light .ll-blob { opacity: 0.55; }
.loading-screen.light .ll-blob:nth-child(1) {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45) 0%, transparent 70%);
}
.loading-screen.light .ll-blob:nth-child(2) {
    background: radial-gradient(circle, rgba(0, 200, 255, 0.38) 0%, transparent 70%);
}
.loading-screen.light .ll-blob:nth-child(3) {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.32) 0%, transparent 70%);
}
.loading-screen.light .ll-blob:nth-child(4) {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.38) 0%, transparent 70%);
}

.loading-screen.light .loader-text   { color: rgba(17, 24, 39, 0.75); }
.loading-screen.light .loader-bar-wrap { background: rgba(37, 99, 235, 0.14); }
.loading-screen.light .ll-core {
    box-shadow:
        0 0 0 1.5px rgba(255, 255, 255, 0.40),
        0 0 14px rgba(0, 102, 255, 0.55),
        0 0 28px rgba(0, 212, 255, 0.30);
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== LOADER CONTENT — no card, elements float freely ===== */
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

/* Blob float keyframes */
@keyframes ll-blob-1 {
    0%, 100% { transform: translate(0, 0)       scale(1);    }
    33%       { transform: translate(50px, 35px)  scale(1.10); }
    66%       { transform: translate(-25px, 55px) scale(0.94); }
}
@keyframes ll-blob-2 {
    0%, 100% { transform: translate(0, 0)        scale(1);    }
    33%       { transform: translate(-55px, -35px) scale(1.12); }
    66%       { transform: translate(25px, -55px)  scale(0.92); }
}
@keyframes ll-blob-3 {
    0%, 100% { transform: translate(0, 0)        scale(1);    }
    50%       { transform: translate(-45px, 35px) scale(1.14); }
}
@keyframes ll-blob-4 {
    0%, 100% { transform: translate(0, 0)       scale(1);    }
    50%       { transform: translate(35px, -45px) scale(1.08); }
}

/* ===== LOADER LOGO — Startup monogram ===== */
.loader-logo {
    position: relative;
    width: 190px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ll-entry 700ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Core gradient glass circle */
.ll-core {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0055ff 0%, #0088ff 45%, #00ccff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow:
        0 0 0 1.5px rgba(255, 255, 255, 0.18),
        0 0 28px rgba(0, 102, 255, 0.75),
        0 0 65px rgba(0, 212, 255, 0.40),
        0 0 120px rgba(0, 102, 255, 0.18);
    animation: ll-pulse 2.2s ease-in-out infinite;
}

/* Glass sheen highlight */
.ll-core::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.38) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    pointer-events: none;
}

/* Conic spinning outer glow ring */
.ll-core::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(0, 212, 255, 0.55) 0deg,
        rgba(0, 102, 255, 0.25) 90deg,
        transparent 180deg,
        transparent 360deg
    );
    z-index: -1;
    animation: loader-spin 3.5s linear infinite;
}

.ll-monogram {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}

/* Ripple rings expanding outward from the V icon */
.ll-ripple {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.75);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    animation: ll-ripple-wave 2.4s ease-out infinite;
}

.ll-ripple--2 { animation-delay: 0.8s; }
.ll-ripple--3 { animation-delay: 1.6s; }

.loading-screen.light .ll-ripple {
    border-color: rgba(0, 102, 255, 0.60);
}

@keyframes ll-ripple-wave {
    0%   { transform: translate(-50%, -50%) scale(1);    opacity: 0.85; }
    100% { transform: translate(-50%, -50%) scale(1.88); opacity: 0;    }
}

@keyframes ll-entry {
    from { transform: scale(0.3) rotate(-20deg); opacity: 0; }
    to   { transform: scale(1)   rotate(0deg);   opacity: 1; }
}

@keyframes ll-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 1.5px rgba(255, 255, 255, 0.18),
            0 0 28px rgba(0, 102, 255, 0.75),
            0 0 65px rgba(0, 212, 255, 0.40),
            0 0 120px rgba(0, 102, 255, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 1.5px rgba(255, 255, 255, 0.25),
            0 0 38px rgba(0, 102, 255, 0.95),
            0 0 90px rgba(0, 212, 255, 0.60),
            0 0 160px rgba(0, 102, 255, 0.28);
    }
}

/* Progress bar */
.loader-bar-wrap {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0066ff, #00d4ff);
    border-radius: 4px;
    animation: loader-progress 4300ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* Text */
.loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    margin: 0;
    transition: opacity 350ms ease, transform 350ms ease;
}

.loader-text.swap-out {
    opacity: 0;
    transform: translateY(-8px);
}

.loader-text.swap-in {
    opacity: 0;
    transform: translateY(8px);
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes loader-progress {
    0%   { width: 0%; }
    30%  { width: 35%; }
    60%  { width: 65%; }
    85%  { width: 88%; }
    100% { width: 100%; }
}

@keyframes loader-dot-blink {
    0%, 100% { opacity: 0.2; transform: translateY(0);   animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95); }
    40%       { opacity: 1;   transform: translateY(-4px); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    70%       { opacity: 0.6; transform: translateY(-1px); }
}

/* ===== 3D LOADING CANVAS ===== */
.loading-canvas-3d {
    pointer-events: none;
    z-index: 1;
}

/* Ensure 3D content is beneath loader text */
.loading-canvas-3d ~ .loader-content {
    position: relative;
    z-index: 10;
}

/* Loader content always visible on top */
.loading-screen .loader-content {
    position: relative;
    z-index: 10;
}

/* ===== THEME SWITCH TOAST ===== */
.theme-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 32px;
    border-radius: 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 350ms ease;
    /* Glass light */
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(37, 99, 235, 0.18), 0 2px 8px rgba(0,0,0,0.08);
    color: #1D4ED8;
}

body.dark-mode .theme-toast {
    background: rgba(10, 10, 20, 0.82);
    border: 1px solid rgba(0, 212, 255, 0.22);
    box-shadow: 0 2px 8px rgba(0,0,0,0.50);
    color: #00d4ff;
}

.theme-toast.show {
    opacity: 1;
    animation: toastPop 120ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes toastPop {
    from { transform: translateX(-50%) scale(0.88); opacity: 0; }
    to   { transform: translateX(-50%) scale(1);    opacity: 1; }
}

.theme-toast-icon {
    font-size: 1.2rem;
}

/* ===== THEME RIPPLE TRANSITION (View Transitions API) ===== */
::view-transition-old(root) {
    animation: none;
    z-index: 1;
}
::view-transition-new(root) {
    animation: theme-circle-wipe 550ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

@keyframes theme-circle-wipe {
    from { clip-path: circle(0%   at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
    to   { clip-path: circle(150% at var(--ripple-x, 50%) var(--ripple-y, 50%)); }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none; }
}

/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.header-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: var(--spacing-md) auto;
    border-radius: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast),
                border-color var(--transition-fast),
                color var(--transition-fast);
    font-family: var(--font-primary);
    text-decoration: none;
    will-change: transform, box-shadow;
}

/* 🔵 Primary — View Projects: strong filled blue gradient */
.btn-primary {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 60%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55);
}

/* 🔷 CV — lighter blue gradient */
.btn-cv {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55) 0%, rgba(59, 130, 246, 0.65) 100%);
    color: #ffffff;
    border: 1px solid rgba(96, 165, 250, 0.70);
    box-shadow: 0 3px 16px rgba(37, 99, 235, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-cv:hover {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.72) 0%, rgba(37, 99, 235, 0.80) 100%);
    border-color: rgba(147, 197, 253, 0.85);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 22px rgba(37, 99, 235, 0.50);
}

body.dark-mode .btn-cv {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.45) 0%, rgba(59, 130, 246, 0.55) 100%);
    color: #e0effe;
    border-color: rgba(96, 165, 250, 0.60);
    box-shadow: 0 3px 16px rgba(37, 99, 235, 0.30);
}

body.dark-mode .btn-cv:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.62) 0%, rgba(59, 130, 246, 0.72) 100%);
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.80);
    box-shadow: 0 5px 22px rgba(37, 99, 235, 0.45);
}

/* ⚪ Contact — transparent with blue border */
.btn-contact-outline {
    background: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
    box-shadow: none;
}

.btn-contact-outline:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.18);
}

body.dark-mode .btn-contact-outline {
    color: #60a5fa;
    border-color: #60a5fa;
}

body.dark-mode .btn-contact-outline:hover {
    background: rgba(96, 165, 250, 0.10);
    color: #93c5fd;
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(96, 165, 250, 0.18);
}

/* Legacy btn-secondary (used elsewhere) */
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ===== NAVBAR — LIQUID GLASS ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;

    /* Liquid glass background */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(224, 238, 255, 0.58) 50%,
        rgba(255, 255, 255, 0.68) 100%
    );
    backdrop-filter: blur(28px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08);

    /* Glass border + layered depth */
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 20px rgba(37, 99, 235, 0.09),
        0 8px 40px rgba(0, 0, 0, 0.07);

    transition: background var(--transition-fast),
                box-shadow var(--transition-fast),
                backdrop-filter var(--transition-fast);
}

/* Liquid shimmer sweep — animated glare across the glass */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        108deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.54) 48%,
        rgba(200, 225, 255, 0.32) 55%,
        transparent 70%
    );
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
    z-index: 0;
    animation: liquidShimmer 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

/* Prismatic top-edge highlight */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.95) 20%,
        rgba(180, 210, 255, 0.88) 50%,
        rgba(255, 255, 255, 0.95) 80%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

@keyframes liquidShimmer {
    0%   { transform: translateX(-120%) skewX(-20deg); opacity: 0;   }
    10%  { opacity: 1; }
    60%  { transform: translateX(220%) skewX(-20deg);  opacity: 0.6; }
    100% { transform: translateX(220%) skewX(-20deg);  opacity: 0;   }
}

body.dark-mode .navbar {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 38, 0.62) 0%,
        rgba(10, 10, 28, 0.52) 50%,
        rgba(16, 16, 36, 0.60) 100%
    );
    backdrop-filter: blur(28px) saturate(180%) brightness(0.88);
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 2px 20px rgba(0, 102, 255, 0.13),
        0 8px 40px rgba(0, 0, 0, 0.45);
}

/* Dark shimmer — subtle blue-cyan tint */
body.dark-mode .navbar::before {
    background: linear-gradient(
        108deg,
        transparent 0%,
        rgba(0, 102, 255, 0.0) 30%,
        rgba(80, 160, 255, 0.11) 48%,
        rgba(0, 212, 255, 0.07) 55%,
        transparent 70%
    );
}

/* Dark top edge — neon blue-cyan line */
body.dark-mode .navbar::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 102, 255, 0.55) 20%,
        rgba(0, 212, 255, 0.45) 50%,
        rgba(0, 102, 255, 0.55) 80%,
        transparent 100%
    );
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
    z-index: 2;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-fast);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

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

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    border: none;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-left: 18px;
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.theme-toggle .theme-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    white-space: nowrap;
    user-select: none;
}

.theme-toggle:hover .theme-label {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .theme-toggle .theme-label { display: none; }
    .theme-toggle { width: 40px; padding: 0; border-radius: 50%; }
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    animation: slideInLeft 800ms ease;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    align-items: flex-start;
}

.hero-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
}

/* contact chooser removed */

/* ===== CV DROPDOWN SPLIT BUTTON ===== */
.cv-dropdown {
    position: relative;
    display: inline-flex;
}

.cv-main-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cv-chevron {
    font-size: 0.72rem;
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 2px;
}

.cv-dropdown.open .cv-chevron {
    transform: rotate(180deg);
}

.cv-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-radius: 14px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition:
        opacity 240ms ease,
        transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 240ms ease;

    /* Liquid glass */
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(224, 238, 255, 0.65) 50%,
        rgba(255, 255, 255, 0.72) 100%
    );
    backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 4px 24px rgba(37, 99, 235, 0.12),
        0 12px 40px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.cv-dropdown.open .cv-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* Arrow caret pointing up */
.cv-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 2px 0 0 0;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.cv-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition:
        background 200ms ease,
        transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 200ms ease;
}

.cv-option:hover {
    background: rgba(37, 99, 235, 0.10);
    transform: translateX(4px);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.cv-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(29, 78, 216, 0.1));
    color: var(--primary-color);
    transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cv-option-icon.view {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.1));
    color: #10b981;
}

.cv-option:hover .cv-option-icon {
    transform: scale(1.15) rotate(-6deg);
}

.cv-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cv-option-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.cv-option-desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    line-height: 1.2;
}

/* --- Dark mode dropdown --- */
body.dark-mode .cv-dropdown-menu {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 38, 0.82) 0%,
        rgba(10, 10, 28, 0.72) 50%,
        rgba(16, 16, 36, 0.78) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 24px rgba(0, 102, 255, 0.18),
        0 12px 40px rgba(0, 0, 0, 0.5);
}

body.dark-mode .cv-dropdown-menu::before {
    background: rgba(20, 20, 38, 0.85);
    border-color: rgba(255, 255, 255, 0.09);
}

body.dark-mode .cv-option:hover {
    background: rgba(0, 102, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 102, 255, 0.22);
}

body.dark-mode .cv-option-icon {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.22), rgba(0, 102, 255, 0.12));
    color: var(--primary-color);
}

body.dark-mode .cv-option-icon.view {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.12));
    color: #34d399;
}

.hero-social {
    display: flex;
    gap: var(--spacing-lg);
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--social-primary);
    transition: all var(--transition-fast);
    text-decoration: none;
    border: 2px solid transparent;
}

.social-icon:hover {
    background-color: var(--social-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.skill-item i {
    font-size: 1.6rem;
    min-width: 34px;
    text-align: center;
    transition: transform var(--transition-fast), color var(--transition-fast);
}
.skill-item:hover i {
    transform: scale(1.01);
}

.skill-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

.profile-circle {
    position: relative;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4px;
    animation: float 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite, profile-glow-pulse 3.5s ease-in-out infinite;
    will-change: transform, box-shadow;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12),
        0 0 22px rgba(0, 102, 255, 0.42),
        0 0 48px rgba(0, 212, 255, 0.22),
        0 8px 32px rgba(0, 0, 0, 0.18);
}

.profile-circle::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    right: -24px;
    bottom: -24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--success-color));
    border-radius: 50%;
    opacity: 0.22;
    filter: blur(28px);
    z-index: -1;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ===== CONTACT BUTTON & MODAL ===== */
.contact-btn {
    position: relative;
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-normal);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.contact-modal.active {
    display: flex;
    opacity: 1;
}

/* Light mode — frosted white glass card */
.contact-modal-content {
    background: rgba(255, 255, 255, 0.60);
    backdrop-filter: blur(36px) saturate(200%) brightness(1.08);
    -webkit-backdrop-filter: blur(36px) saturate(200%) brightness(1.08);
    border-radius: 22px;
    padding: var(--spacing-xl);
    max-width: 430px;
    width: 90%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow:
        0 8px 48px rgba(37, 99, 235, 0.16),
        0 2px 0 rgba(255, 255, 255, 0.90) inset,
        0 -1px 0 rgba(0, 102, 255, 0.06) inset;
    animation: modalGlassIn 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Top sheen highlight */
.contact-modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 48%;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.55) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Liquid colour blob inside card */
.contact-modal-content::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    bottom: -80px; right: -60px;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: ll-blob-2 16s ease-in-out infinite;
}

@keyframes modalGlassIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.contact-modal-content h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.contact-modal-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.contact-modal-close:hover {
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary-color);
    transform: rotate(90deg);
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.50);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.65);
    cursor: pointer;
    will-change: transform;
}

.contact-option:hover {
    transform: translateX(6px) translateY(-1px);
    border-color: rgba(37, 99, 235, 0.40);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.14);
}

.contact-option i {
    font-size: 1.75rem;
    color: var(--social-primary);
    min-width: 48px;
    text-align: center;
}

.contact-option div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.option-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.option-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.about-text p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.about-info {
    display: grid;
    gap: var(--spacing-lg);
}

.info-item {
    padding: var(--spacing-lg);
    background-color: var(--bg-primary);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-normal);
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.info-item h3 {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.info-item p {
    margin-bottom: var(--spacing-xs);
}

.info-item .small {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
}

.skill-category {
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: all var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.skill-category h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--bg-primary);
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.skill-item i {
    font-size: 1.6rem;
    min-width: 34px;
    text-align: center;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.skill-item:hover i {
    transform: translateY(-2px) scale(1.05);
}

.skill-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

/* Per-skill brand colors (approximate) */
.skill-item.python i { color: #3776AB; }
.skill-item.cpp i { color: #00599C; }
.skill-item.java i { color: #5382A1; }
.skill-item.c-lang i { color: #4E4E4E; }
.skill-item.html i { color: #E34F26; }
.skill-item.css i { color: #1572B6; }
.skill-item.numpy i { color: #013243; }
.skill-item.pandas i { color: #150458; }
.skill-item.matplotlib i { color: #FF7F0E; }
.skill-item.seaborn i { color: #1f77b4; }
.skill-item.excel i { color: #217346; }
.skill-item.powerbi i { color: #F2C811; }
.skill-item.mysql i { color: #00758f; }

/* Slightly reduce vertical gap between icon and label (handled above) */

.skill-bar-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    width: 100%;
}

.skill-bar {
    flex: 1;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00c6ff, #0072ff);
    border-radius: 4px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(0, 150, 255, 0.4);
}

.skill-item:hover .skill-progress {
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.6);
}

.skill-percentage {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    min-width: 35px;
    text-align: right;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.project-card {
    background-color: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    animation: fadeInScale 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.projects-grid .project-card:nth-child(1) {
    animation-delay: 100ms;
}
.projects-grid .project-card:nth-child(2) {
    animation-delay: 200ms;
}
.projects-grid .project-card:nth-child(3) {
    animation-delay: 300ms;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 50px rgba(37, 99, 235, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 200px;
    min-height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
    display: block;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: #ffffff;
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.project-link:hover {
    transform: scale(1.2);
}

.project-content {
    padding: var(--spacing-lg);
}

.project-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.project-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--bg-secondary);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tag:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.certification-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 4px solid var(--primary-color);
    animation: fadeInScale 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

.certifications-grid .certification-card:nth-child(1) {
    animation-delay: 100ms;
}
.certifications-grid .certification-card:nth-child(2) {
    animation-delay: 180ms;
}
.certifications-grid .certification-card:nth-child(3) {
    animation-delay: 260ms;
}
.certifications-grid .certification-card:nth-child(4) {
    animation-delay: 340ms;
}
.certifications-grid .certification-card:nth-child(5) {
    animation-delay: 420ms;
}
.certifications-grid .certification-card:nth-child(6) {
    animation-delay: 500ms;
}

.certification-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.25);
    border-left-color: var(--secondary-color);
}

.cert-header {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-title h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-issuer {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
}

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

.cert-meta p {
    margin: 6px 0;
}

.cert-id {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.hidden-certs {
    display: none;
}

.hidden-certs.show {
    display: contents;
}

.hidden-certs.show .certification-card {
    animation: fadeIn 400ms ease-out forwards;
    will-change: opacity;
}

.hidden-certs.show .certification-card:nth-child(1) {
    animation-delay: 80ms;
}

.hidden-certs.show .certification-card:nth-child(2) {
    animation-delay: 160ms;
}

.hidden-certs.show .certification-card:nth-child(3) {
    animation-delay: 240ms;
}

.hidden-certs.show .certification-card:nth-child(4) {
    animation-delay: 320ms;
}

.hidden-certs.show .certification-card:nth-child(5) {
    animation-delay: 400ms;
}

.hidden-certs.show .certification-card:nth-child(6) {
    animation-delay: 480ms;
}

.hidden-certs.hiding .certification-card {
    animation: fadeOut 400ms ease-in forwards;
    will-change: opacity;
}

.hidden-certs.hiding .certification-card:nth-child(1) {
    animation-delay: 0ms;
}

.hidden-certs.hiding .certification-card:nth-child(2) {
    animation-delay: 80ms;
}

.hidden-certs.hiding .certification-card:nth-child(3) {
    animation-delay: 160ms;
}

.hidden-certs.hiding .certification-card:nth-child(4) {
    animation-delay: 240ms;
}

.hidden-certs.hiding .certification-card:nth-child(5) {
    animation-delay: 320ms;
}

.hidden-certs.hiding .certification-card:nth-child(6) {
    animation-delay: 400ms;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.view-more-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: var(--spacing-lg) 0;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary i {
    transition: transform var(--transition-normal);
}

.btn-secondary.expanded i {
    transform: rotate(180deg);
}

.view-more-container.hidden {
    display: none;
}

/* ===== EDUCATION SECTION ===== */
.education {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: var(--spacing-lg) 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
}

.education-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    align-items: center;
    min-height: 120px;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: 0;
}

.education-item:nth-child(odd)::before {
    right: 50%;
    width: calc(100% / 2 - 30px);
    margin-right: 20px;
}

.education-item:nth-child(even)::before {
    left: 50%;
    width: calc(100% / 2 - 30px);
    margin-left: 20px;
}

.education-item:nth-child(even) {
    grid-template-columns: 1fr auto 1fr;
}

.education-content {
    padding: var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
}

.education-item:nth-child(odd) .education-content {
    grid-column: 1;
}

.education-item:nth-child(even) .education-content {
    grid-column: 3;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.education-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
    width: 100%;
}

.education-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    justify-content: center;
}

.education-marker {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    grid-column: 2;
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 10px var(--primary-color), 0 0 20px rgba(0, 102, 255, 0.5);
    position: relative;
    z-index: 2;
    transition: all var(--transition-fast);
}

.education-item:hover .education-marker {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 0 10px var(--secondary-color), 0 0 30px rgba(0, 212, 255, 0.6);
    transform: scale(1.1);
}

.education-logo-inside {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    flex-shrink: 0;
}

.institution-logo-inside {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
    transition: all var(--transition-fast);
}

.education-content:hover .institution-logo-inside {
    filter: drop-shadow(0 4px 12px rgba(0, 102, 255, 0.4));
    transform: scale(1.15);
}

.education-content h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-school,
.education-degree,
.education-score,
.education-period {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.education-school i,
.education-score i,
.education-period i {
    margin-right: var(--spacing-sm);
}

/* Natural icon colours */
.education-school i  { color: #e07b39; } /* fa-university / fa-school → warm amber */
.education-score i   { color: #f1c40f; } /* fa-star → gold */
.education-period i  { color: #2ecc71; } /* fa-calendar → fresh green */
.education-degree i  { color: #a78bfa; margin-right: var(--spacing-sm); } /* fa-laptop-code → soft purple */

.education-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.education-link:hover {
    color: #e07b39;
    text-decoration: underline;
    text-decoration-color: rgba(224, 123, 57, 0.5);
}

body.dark-mode .education-link:hover {
    color: #fdba74;
    text-decoration-color: rgba(253, 186, 116, 0.5);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--spacing-2xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    display: grid;
    gap: var(--spacing-lg);
}

.form-group {
    display: grid;
    gap: var(--spacing-sm);
}

.form-group input,
.form-group textarea {
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    display: none;
}

.form-error.show {
    display: block;
}

.form-success {
    text-align: center;
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--success-color), #2ed573);
    color: #ffffff;
    border-radius: 12px;
    animation: slideInUp 600ms ease;
}

.form-success i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.form-success h4 {
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
}

.form-success p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.contact-info {
    display: grid;
    gap: var(--spacing-lg);
}

.contact-item {
    padding: var(--spacing-lg);
    background-color: var(--bg-primary);
    border-radius: 12px;
    text-align: center;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.contact-item p {
    margin: 0;
    color: var(--text-secondary);
}

.contact-link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
    text-underline-offset: 3px;
}

.contact-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

body:not(.dark-mode) .contact-link {
    color: var(--text-primary);
}

body:not(.dark-mode) .contact-link:hover {
    color: var(--primary-color);
    text-decoration-color: rgba(0, 102, 255, 0.5);
}

.social-links {
    padding: var(--spacing-lg);
    background-color: var(--bg-primary);
    border-radius: 12px;
}

.social-links h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
}

.social-icon-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

/* contact modal styles removed (reverted) */



.social-icon-large:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    transform: translateY(-8px) scale(1.15);
}

/* ===== FOOTER ===== */
.footer {
    padding: var(--spacing-xl) var(--spacing-lg);
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.footer-credits i {
    color: var(--danger-color);
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ===== ANIMATIONS ===== */
/* GPU compositing layer for scroll-animated elements */
.project-card,
.skill-category,
.skill-item,
.certification-card,
.education-item,
.contact-item,
.info-item {
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateZ(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(22px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-22px) translateZ(0);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateZ(0);
    }
}

@keyframes float {
    0%        { transform: translateY(0px)    translateZ(0); }
    30%       { transform: translateY(-14px)  translateZ(0); }
    50%       { transform: translateY(-20px)  translateZ(0); }
    70%       { transform: translateY(-14px)  translateZ(0); }
    100%      { transform: translateY(0px)    translateZ(0); }
}

@keyframes profile-glow-pulse {
    0%, 100% {
        box-shadow:
            0 0 0 4px rgba(37, 99, 235, 0.12),
            0 0 22px rgba(0, 102, 255, 0.42),
            0 0 48px rgba(0, 212, 255, 0.22),
            0 8px 32px rgba(0, 0, 0, 0.18);
    }
    50% {
        box-shadow:
            0 0 0 4px rgba(37, 99, 235, 0.18),
            0 0 32px rgba(0, 102, 255, 0.58),
            0 0 68px rgba(0, 212, 255, 0.32),
            0 8px 32px rgba(0, 0, 0, 0.18);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--bg-primary);
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .hamburger {
        display: flex;
    }

    .theme-toggle {
        order: -1;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .profile-circle {
        width: 220px;
        height: 220px;
        box-shadow: 0 0 25px rgba(0, 102, 255, 0.6), 0 0 50px rgba(0, 212, 255, 0.3);
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .education-timeline::before {
        left: 30px;
    }

    .education-item {
        grid-template-columns: 60px 1fr;
        gap: var(--spacing-lg);
    }

    .education-marker {
        grid-column: 1;
    }

    .education-content {
        grid-column: 2;
    }

    .education-item:nth-child(even) .education-content,
    .education-item:nth-child(odd) .education-content {
        grid-column: 2;
    }

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

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: auto;
    }

    .hero-buttons {
        gap: var(--spacing-sm);
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .profile-circle {
        width: 200px;
        height: 200px;
    }

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

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

    .education-timeline::before {
        left: 25px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

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

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================================
   LIGHT MODE GLASSMORPHISM — LIQUID GLASS EFFECT
   Applied only in light mode; dark mode uses solid backgrounds
   ============================================================ */

/* --- About: info cards --- */
body:not(.dark-mode) .info-item {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

/* --- Skills: category containers --- */
body:not(.dark-mode) .skill-category {
    background: rgba(248, 250, 252, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.06);
}

/* --- Skills: individual items --- */
body:not(.dark-mode) .skill-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* --- Projects: cards --- */
body:not(.dark-mode) .project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.1);
}

/* --- Education: content cards --- */
body:not(.dark-mode) .education-content {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

/* --- Contact section: info cards & social links --- */
body:not(.dark-mode) .contact-item,
body:not(.dark-mode) .social-links {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

/* --- Contact form: inputs & textarea --- */
body:not(.dark-mode) .form-group input,
body:not(.dark-mode) .form-group textarea {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(229, 231, 235, 0.8);
}

body:not(.dark-mode) .form-group input:focus,
body:not(.dark-mode) .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* --- Navbar: liquid glass (light) --- */
body:not(.dark-mode) .navbar {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(224, 238, 255, 0.58) 50%,
        rgba(255, 255, 255, 0.68) 100%
    ) !important;
    backdrop-filter: blur(28px) saturate(200%) brightness(1.08) !important;
    -webkit-backdrop-filter: blur(28px) saturate(200%) brightness(1.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.65) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 20px rgba(37, 99, 235, 0.09),
        0 8px 40px rgba(0, 0, 0, 0.07) !important;
}

/* ============================================================
   DARK MODE GLASSMORPHISM — DARK LIQUID GLASS
   Translucent dark surfaces with blur and subtle glow borders
   ============================================================ */

/* --- Dark navbar: liquid glass --- */
body.dark-mode .navbar {
    background: linear-gradient(
        135deg,
        rgba(20, 20, 38, 0.62) 0%,
        rgba(10, 10, 28, 0.52) 50%,
        rgba(16, 16, 36, 0.60) 100%
    ) !important;
    backdrop-filter: blur(28px) saturate(180%) brightness(0.88) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) brightness(0.88) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 2px 20px rgba(0, 102, 255, 0.13),
        0 8px 40px rgba(0, 0, 0, 0.45) !important;
}

/* --- About: info cards --- */
body.dark-mode .info-item {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* --- Skills: category containers --- */
body.dark-mode .skill-category {
    background: rgba(26, 26, 26, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* --- Skills: individual items --- */
body.dark-mode .skill-item {
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Projects: cards --- */
body.dark-mode .project-card {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* --- Certifications: cards --- */
body.dark-mode .certification-card {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* --- Education: content cards --- */
body.dark-mode .education-content {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* --- Contact section: info cards & social links --- */
body.dark-mode .contact-item,
body.dark-mode .social-links {
    background: rgba(26, 26, 26, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* --- Contact form: inputs & textarea --- */
body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(15, 15, 15, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.18);
}

/* --- Contact modal — dark mode liquid glass --- */
body.dark-mode .contact-modal {
    background: rgba(0, 0, 0, 0.65);
}

body.dark-mode .contact-modal-content {
    background: rgba(10, 10, 18, 0.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 8px 48px rgba(0, 0, 0, 0.70),
        0 2px 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 rgba(0, 0, 0, 0.30) inset;
}

body.dark-mode .contact-modal-content::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 100%
    );
}

body.dark-mode .contact-modal-content::after {
    background: radial-gradient(circle, rgba(0, 102, 255, 0.28) 0%, transparent 70%);
}

body.dark-mode .contact-modal-close {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .contact-modal-close:hover {
    background: rgba(0, 102, 255, 0.18);
    color: #60a5fa;
}

/* --- Contact options inside modal --- */
body.dark-mode .contact-option {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode .contact-option:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(96, 165, 250, 0.38);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.18);
}

/* ============================================================
   HOVER ANIMATIONS — Skills, Projects, Certifications
   ============================================================ */

/* ---- SKILL ITEMS ---- */
/* Slide right + icon pop + colored glow */
.skill-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.18);
    border-color: var(--primary-color) !important;
}

.skill-item:hover i {
    transform: translateY(-4px) scale(1.25) rotate(-8deg) !important;
    filter: drop-shadow(0 4px 8px currentColor);
}

/* Icon springs back after settle */
.skill-item i {
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 300ms ease !important;
}

/* ---- PROJECT CARDS ---- */
/* Keep existing translateY, add shine sweep & border glow */
.project-card {
    position: relative;
    overflow: hidden;
}

/* Shine sweep pseudo-element */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.14) 50%,
        transparent 80%
    );
    transform: skewX(-20deg);
    pointer-events: none;
    z-index: 2;
}

.project-card:hover::after {
    animation: shine-sweep 550ms ease forwards;
}

@keyframes shine-sweep {
    from { left: -100%; }
    to   { left: 160%; }
}

.project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 102, 255, 0.22), var(--shadow-lg);
    border-color: rgba(0, 102, 255, 0.3) !important;
}

/* Tag pop on card hover */
.project-card:hover .tag {
    animation: tag-pop 350ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.project-card:hover .tag:nth-child(1) { animation-delay: 60ms; }
.project-card:hover .tag:nth-child(2) { animation-delay: 120ms; }
.project-card:hover .tag:nth-child(3) { animation-delay: 180ms; }

@keyframes tag-pop {
    from { transform: scale(0.85); opacity: 0.6; }
    to   { transform: scale(1);    opacity: 1; }
}

/* ---- CERTIFICATION CARDS ---- */
/* Cert icon bounces + card border glows */
.cert-icon {
    transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 350ms ease;
}

.certification-card:hover .cert-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

.certification-card:hover {
    box-shadow: 0 10px 36px rgba(0, 102, 255, 0.2), var(--shadow-lg);
    border-left-color: var(--secondary-color);
}

/* Cert title slides up slightly */
.certification-card:hover .cert-title h3 {
    color: #ffffff;
    transition: color 200ms ease;
}

/* "View Certificate" link pulses */
.certification-card:hover .cert-link {
    animation: link-pulse 700ms ease infinite alternate;
}

@keyframes link-pulse {
    from { opacity: 0.75; }
    to   { opacity: 1; text-shadow: 0 0 8px rgba(0, 102, 255, 0.5); }
}