/* ===================================
   CSS Variables & Design System
   =================================== */
:root {
    /* Colors - Warm Earth Tone Theme (Inspired by Profile Photo) */
    --bg-primary: #0f0e0d;
    --bg-secondary: #1a1816;
    --bg-card: #221f1c;
    --bg-card-hover: #2a2622;
    --accent-green: #c9b896;
    /* Warm Beige/Cream */
    --accent-green-dark: #a89775;
    /* Darker Warm Beige */
    --accent-emerald: #8b9a6d;
    /* Olive Green */
    --text-primary: #f5f1e8;
    --text-secondary: #b8afa0;
    --text-tertiary: #8a8275;
    --border-color: rgba(201, 184, 150, 0.15);
    --border-color-hover: rgba(201, 184, 150, 0.35);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(201, 184, 150, 0.25);
    --shadow-glow-strong: 0 0 30px rgba(201, 184, 150, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   Animated Background System
   =================================== */

/* Base gradient mesh background (Ultra-Optimized) */
body::before {
    content: '';
    position: fixed;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 122, 89, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 151, 117, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 184, 150, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0908 0%, #0f0e0d 100%);
    animation: gradientMeshMove 35s ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Animated grid pattern overlay (Optimized) */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image:
        linear-gradient(rgba(201, 184, 150, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 184, 150, 0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: gridMove 45s linear infinite;
    opacity: 0.3;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* Floating orbs container */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    /* Significantly reduced blur for performance */
    opacity: 0.2;
    animation: floatOrb 25s ease-in-out infinite;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.bg-orb:nth-child(1) {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(201, 184, 150, 0.12) 0%, transparent 75%);
    top: 10%;
    left: 5%;
    animation-duration: 25s;
}

.bg-orb:nth-child(2) {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(168, 151, 117, 0.1) 0%, transparent 75%);
    top: 60%;
    right: 15%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.bg-orb:nth-child(3) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 154, 109, 0.08) 0%, transparent 75%);
    bottom: 15%;
    left: 50%;
    animation-duration: 35s;
    animation-delay: -20s;
}

.bg-orb:nth-child(4) {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 184, 150, 0.06) 0%, transparent 75%);
    top: 40%;
    left: 25%;
    animation-duration: 28s;
    animation-delay: -5s;
}

.bg-orb:nth-child(5) {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(168, 151, 117, 0.08) 0%, transparent 75%);
    top: 70%;
    right: 30%;
    animation-duration: 32s;
    animation-delay: -15s;
}

/* Animated gradient mesh movement (Slower & Simpler) */
@keyframes gradientMeshMove {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1.05);
    }

    50% {
        transform: translate3d(-2%, 2%, 0) scale(1);
    }
}

/* Grid movement animation (Slower) */
@keyframes gridMove {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(80px, 80px, 0);
    }
}

/* Floating orbs animation (Simplified) */
@keyframes floatOrb {

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

    50% {
        transform: translate3d(80px, -120px, 0);
    }
}

/* ===================================
   Digital Particles (Calm Tech Effect)
   =================================== */
/* ===================================
   Digital Particles (Calm Tech Effect - Optimized)
   =================================== */
.digital-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--accent-green);
    opacity: 0;
    border-radius: 0;
    /* Square for digital feel */
    animation: particleFloat 15s infinite linear;
    will-change: transform, opacity;
    /* GPU optimization */
}

.particle:nth-child(1) {
    left: 10%;
    bottom: -10px;
    animation-duration: 15s;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    bottom: -20px;
    animation-duration: 18s;
    animation-delay: -3s;
    opacity: 0.4;
    width: 4px;
    height: 4px;
}

.particle:nth-child(3) {
    left: 40%;
    bottom: -10px;
    animation-duration: 12s;
    animation-delay: -6s;
}

.particle:nth-child(4) {
    left: 55%;
    bottom: -30px;
    animation-duration: 22s;
    animation-delay: -1s;
    opacity: 0.3;
}

.particle:nth-child(5) {
    left: 70%;
    bottom: -10px;
    animation-duration: 17s;
    animation-delay: -4s;
    width: 2px;
    height: 2px;
}

.particle:nth-child(6) {
    left: 85%;
    bottom: -20px;
    animation-duration: 14s;
    animation-delay: -7s;
}

.particle:nth-child(7) {
    left: 15%;
    bottom: -40px;
    animation-duration: 25s;
    animation-delay: -10s;
    opacity: 0.2;
}

.particle:nth-child(8) {
    left: 90%;
    bottom: -10px;
    animation-duration: 20s;
    animation-delay: -2s;
}

/* Strictly Vertical Movement (No Rotation) for Performance */
@keyframes particleFloat {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translate3d(0, -100vh, 0);
        opacity: 0;
    }
}

/* ===================================
   Cyber Fireflies (The "Small Green Dots")
   =================================== */
.firefly {
    position: fixed;
    width: 4px;
    height: 4px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green), 0 0 20px var(--accent-green);
    /* Strong Glow */
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    will-change: transform, opacity;
}

.firefly:nth-child(2) {
    top: 20%;
    left: 20%;
    animation: fireflyMove1 20s ease-in-out infinite;
}

.firefly:nth-child(3) {
    top: 80%;
    left: 80%;
    animation: fireflyMove2 25s ease-in-out infinite;
    animation-delay: -5s;
}

.firefly:nth-child(4) {
    /* Numbering accounts for other elements if needed */
    top: 50%;
    left: 50%;
    animation: fireflyMove3 30s ease-in-out infinite;
    animation-delay: -10s;
}

.firefly:nth-child(5) {
    top: 15%;
    left: 85%;
    animation: fireflyMove1 22s ease-in-out infinite;
    animation-delay: -2s;
}

.firefly:nth-child(6) {
    top: 85%;
    left: 15%;
    animation: fireflyMove3 28s ease-in-out infinite;
    animation-delay: -8s;
}

@keyframes fireflyMove1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    50% {
        transform: translate3d(300px, 200px, 0);
        opacity: 0.8;
    }

    80% {
        opacity: 1;
    }
}

@keyframes fireflyMove2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    25% {
        opacity: 1;
    }

    50% {
        transform: translate3d(-200px, -300px, 0);
        opacity: 0.6;
    }

    75% {
        opacity: 1;
    }
}

@keyframes fireflyMove3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform: translate3d(150px, -150px, 0);
        opacity: 0.7;
    }

    90% {
        opacity: 1;
    }
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 184, 150, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    border-radius: 50%;
    /* Hardware Acceleration */
    will-change: transform;
    transition: transform 0.1s ease-out;
    /* Slight lag for smoothness */
}

@media (max-width: 768px) {
    .mouse-glow {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(45, 212, 191, 0.2) 0%, transparent 75%);
    }
}

/* ===================================
   Responsive Background System
   =================================== */

/* Tablet & Laptop (Up to 1024px) */
@media (max-width: 1024px) {
    body::before {
        width: 140%;
        height: 140%;
        top: -20%;
        left: -20%;
    }

    .bg-orb {
        filter: blur(30px);
    }

    .bg-orb:nth-child(1) {
        width: 350px;
        height: 350px;
    }

    .bg-orb:nth-child(2) {
        width: 300px;
        height: 300px;
    }

    .bg-orb:nth-child(3) {
        width: 280px;
        height: 280px;
    }

    .bg-orb:nth-child(4) {
        width: 250px;
        height: 250px;
    }

    .bg-orb:nth-child(5) {
        width: 260px;
        height: 260px;
    }
}

/* Mobile Devices (Up to 768px) */
@media (max-width: 768px) {
    body::before {
        width: 120%;
        height: 120%;
        top: -10%;
        left: -10%;
        animation-duration: 80s;
    }

    body::after {
        background-size: 100px 100px;
        opacity: 0.2;
    }

    .bg-orb {
        filter: blur(25px);
        opacity: 0.15;
    }

    .bg-orb:nth-child(1) {
        width: 200px;
        height: 200px;
        top: 10%;
    }

    .bg-orb:nth-child(2) {
        width: 180px;
        height: 180px;
        bottom: 15%;
    }

    .bg-orb:nth-child(3) {
        display: none;
    }

    /* Hide for performance on mobile */
    .bg-orb:nth-child(4) {
        width: 150px;
        height: 150px;
        top: 40%;
    }

    .bg-orb:nth-child(5) {
        display: none;
    }

    @keyframes floatOrb {

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

        50% {
            transform: translate3d(40px, -60px, 0);
        }
    }
}

/* ===================================
   Navigation Sidebar
   =================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 70px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) 0;
    z-index: 1000;
}

.nav-logo {
    margin-bottom: var(--spacing-lg);
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-green);
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nav-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-green);
    background-color: rgba(0, 168, 255, 0.1);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -15px;
    width: 3px;
    height: 24px;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-emerald));
    border-radius: 0 2px 2px 0;
}

/* ===================================
   Main Content Layout
   =================================== */
.main-content {
    margin-left: 70px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Section Headers
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-label-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(45, 212, 191, 0.05);
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid rgba(45, 212, 191, 0.15);
    margin-bottom: var(--spacing-sm);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 10px var(--accent-green);
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent-green);
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent-green);
    text-transform: uppercase;
    margin-bottom: 0;
    position: relative;
    animation: labelGlitch 4s infinite;
}

@keyframes labelGlitch {

    0%,
    90%,
    100% {
        transform: none;
        opacity: 1;
    }

    92% {
        transform: skewX(-15deg);
        opacity: 0.8;
        color: #ff0055;
    }

    94% {
        transform: skewX(15deg);
        opacity: 0.9;
        color: #00ff88;
    }

    96% {
        transform: skewX(-5deg);
        opacity: 1;
    }
}


.main-content {
    margin-left: 70px;
    padding: 0;
    transition: margin-left var(--transition-normal);
    position: relative;
    overflow-x: hidden;
    /* Prevent horizontal layout shifts */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    min-height: 4.2rem;
    overflow: hidden;
    /* Prevent unexpected expansion */
}

/* Typewriter Cursor */
.type-cursor {
    color: var(--accent-green);
    font-weight: 200;
    /* Thin, elegant line */
    margin-left: 4px;
    animation: blink 0.8s step-end infinite;
    text-shadow: 0 0 5px var(--accent-green);
    display: inline-block;
    vertical-align: baseline;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}





.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.status-indicator {
    width: 10px;
    height: 10px;
    background-color: #00ff88;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Social Links */
.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.social-link:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-green);
    color: var(--accent-green);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
}

/* ===================================
   Profile Image Styling (KEY FEATURE)
   =================================== */
.profile-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(0, 168, 255, 0.2);
    transition: all var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow-strong);
    border-color: var(--accent-green);
}

/* ===================================
   Tech Stack Section
   =================================== */
.tech-stack-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated background particles */
.tech-stack-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation: floatParticle 15s infinite ease-in-out;
}

.tech-stack-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 10%;
    right: 10%;
    animation: floatParticle 20s infinite ease-in-out reverse;
}

.tech-grid {
    display: flex;
    gap: var(--spacing-md);
    overflow: hidden;
    /* Changed from auto to hidden for JS control */
    padding: var(--spacing-md) 0;
    position: relative;
    z-index: 1;

    /* Premium edge masking */
    mask-image: linear-gradient(to right,
            transparent,
            black 5%,
            black 95%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 5%,
            black 95%,
            transparent);
}

/* Removed scrollbar styles as it's now an infinite marquee */

.tech-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(30, 30, 30, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;

    /* Fixed width for horizontal scroll */
    min-width: 200px;
    flex-shrink: 0;

    /* Floating animation */
    animation: floatCard 6s ease-in-out infinite;
}

/* Staggered animation delays for each card */
.tech-card:nth-child(1) {
    animation-delay: 0s;
}

.tech-card:nth-child(2) {
    animation-delay: 0.15s;
}

.tech-card:nth-child(3) {
    animation-delay: 0.3s;
}

.tech-card:nth-child(4) {
    animation-delay: 0.45s;
}

.tech-card:nth-child(5) {
    animation-delay: 0.6s;
}

.tech-card:nth-child(6) {
    animation-delay: 0.75s;
}

.tech-card:nth-child(7) {
    animation-delay: 0.9s;
}

.tech-card:nth-child(8) {
    animation-delay: 1.05s;
}

.tech-card:nth-child(9) {
    animation-delay: 1.20s;
}

/* Glowing border effect */
.tech-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-lg);
    background: linear-gradient(45deg,
            var(--accent-green),
            var(--accent-emerald),
            var(--accent-green));
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

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

/* Shimmer effect on hover */
.tech-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tech-card:hover::after {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.tech-card:hover {
    transform: translateY(-12px) scale(1.05);
    background: linear-gradient(145deg, var(--bg-card-hover) 0%, rgba(40, 40, 40, 0.9) 100%);
    border-color: var(--accent-green);
    box-shadow:
        var(--shadow-glow-strong),
        0 0 40px rgba(0, 168, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Icon wrapper with background glow */
.tech-icon-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon-wrapper {
    background: radial-gradient(circle, rgba(0, 168, 255, 0.2) 0%, transparent 70%);
    animation: pulseGlow 1.5s ease-in-out infinite;
}

/* ===================================
   Tech Icon Styling (ENHANCED)
   =================================== */
.tech-icon {
    width: 70px;
    height: 70px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: all var(--transition-normal);
}

.tech-card:hover .tech-icon {
    transform: scale(1.15) rotate(5deg);
    filter:
        drop-shadow(0 8px 20px rgba(0, 168, 255, 0.5)) drop-shadow(0 0 30px rgba(0, 168, 255, 0.3));
    animation: iconBounce 0.6s ease;
}

/* Individual skill-specific icon animations */
.tech-card[data-skill="javascript"]:hover .tech-icon {
    animation: elasticBounce 1.2s ease-in-out infinite;
}

.tech-card[data-skill="linux"]:hover .tech-icon {
    animation: spinIcon 2.5s linear infinite;
}

.tech-card[data-skill="nodejs"]:hover .tech-icon {
    animation: orbitIcon 3s ease-in-out infinite;
}

.tech-card[data-skill="react"]:hover .tech-icon {
    animation: reactSpin 2s linear infinite;
}

.tech-card[data-skill="mongodb"]:hover .tech-icon {
    animation: leafFloat 2s ease-in-out infinite;
}

.tech-card[data-skill="sqlserver"]:hover .tech-icon {
    animation: pulseIcon 1.5s ease-in-out infinite;
}

.tech-card[data-skill="htmlcss"]:hover .tech-icon {
    animation: flipIcon 1.5s ease-in-out infinite;
}

.tech-card[data-skill="typescript"]:hover .tech-icon {
    animation: typewriterShake 0.6s ease-in-out infinite;
}

.tech-card[data-skill="cpp"]:hover .tech-icon {
    animation: spinIcon 3s linear infinite;
}

.tech-card[data-skill="ccna"]:hover .tech-icon {
    animation: pulseIcon 1.5s ease-in-out infinite;
}

.tech-card[data-skill="ccna"] .tech-icon {
    filter: invert(1) brightness(2);
    /* Ensures black SVG is visible on dark bg */
}

.tech-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin: 0;
    transition: all var(--transition-normal);
}

.tech-card:hover .tech-name {
    color: var(--accent-green);
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.tech-description {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
    margin: 0;
    opacity: 0.8;
    transition: all var(--transition-normal);
}

.tech-card:hover .tech-description {
    opacity: 1;
    color: var(--text-secondary);
}

/* ===================================
   Creative Keyframe Animations
   =================================== */

/* Floating card animation */
@keyframes floatCard {

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

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

/* Floating particles */
@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

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

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* Gradient shift for border */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Pulsing glow */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 168, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 168, 255, 0.6);
    }
}

/* Icon bounce */
@keyframes iconBounce {

    0%,
    100% {
        transform: scale(1.15) rotate(5deg) translateY(0);
    }

    50% {
        transform: scale(1.2) rotate(5deg) translateY(-5px);
    }
}

/* Spin animation */
@keyframes spinIcon {
    0% {
        transform: scale(1.15) rotate(0deg);
    }

    100% {
        transform: scale(1.15) rotate(360deg);
    }
}

/* Elastic bounce - JavaScript */
@keyframes elasticBounce {

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

    25% {
        transform: scale(1.25) translateY(-15px);
    }

    50% {
        transform: scale(1.1) translateY(-5px);
    }

    75% {
        transform: scale(1.2) translateY(-10px);
    }
}

/* Orbit animation - Node.js */
@keyframes orbitIcon {
    0% {
        transform: scale(1.15) rotate(0deg) translateX(0);
    }

    25% {
        transform: scale(1.2) rotate(90deg) translateX(8px);
    }

    50% {
        transform: scale(1.15) rotate(180deg) translateX(0);
    }

    75% {
        transform: scale(1.1) rotate(270deg) translateX(-8px);
    }

    100% {
        transform: scale(1.15) rotate(360deg) translateX(0);
    }
}

/* React spin with pulse */
@keyframes reactSpin {
    0% {
        transform: scale(1.15) rotate(0deg);
        filter: drop-shadow(0 8px 20px rgba(97, 218, 251, 0.5));
    }

    50% {
        transform: scale(1.25) rotate(180deg);
        filter: drop-shadow(0 12px 30px rgba(97, 218, 251, 0.8));
    }

    100% {
        transform: scale(1.15) rotate(360deg);
        filter: drop-shadow(0 8px 20px rgba(97, 218, 251, 0.5));
    }
}

/* Leaf float - MongoDB */
@keyframes leafFloat {

    0%,
    100% {
        transform: scale(1.15) rotate(-5deg) translateY(0);
    }

    25% {
        transform: scale(1.2) rotate(0deg) translateY(-8px);
    }

    50% {
        transform: scale(1.15) rotate(5deg) translateY(-12px);
    }

    75% {
        transform: scale(1.1) rotate(0deg) translateY(-6px);
    }
}

/* Pulse animation */
@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1.3);
    }
}

/* 3D Flip - HTML/CSS */
@keyframes flipIcon {
    0% {
        transform: scale(1.15) rotateY(0deg);
    }

    50% {
        transform: scale(1.25) rotateY(180deg);
    }

    100% {
        transform: scale(1.15) rotateY(360deg);
    }
}

/* Typewriter shake - TypeScript */
@keyframes typewriterShake {

    0%,
    100% {
        transform: scale(1.15) translateX(0) rotate(0deg);
    }

    25% {
        transform: scale(1.2) translateX(-3px) rotate(-2deg);
    }

    50% {
        transform: scale(1.15) translateX(3px) rotate(2deg);
    }

    75% {
        transform: scale(1.2) translateX(-2px) rotate(-1deg);
    }
}

/* Ensure marquee items align properly */
.tech-grid-inner {
    display: flex;
    gap: var(--spacing-md);
    width: max-content;
}

/* ===================================
   Experience Section
   =================================== */
.experience-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    right: 5%;
    animation: floatParticle 25s infinite ease-in-out;
}

.credentials-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.credential-category {
    background: transparent;
    border: none;
    padding: 0;
    transition: none;
    position: relative;
    overflow: visible;
}

.credential-category::before {
    display: none;
}

.credential-category:hover {
    border: none;
    box-shadow: none;
    transform: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-green), var(--accent-emerald));
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.category-header svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px var(--shadow-glow));
}

.category-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* Timeline Design for Experience & Education */
.credential-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: var(--spacing-lg);
    transition: all var(--transition-normal);
    border-top: 2px solid var(--accent-green);
}

.credential-card::before {
    content: '';
    position: absolute;
    left: 30px;
    top: -6px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary),
        0 0 15px var(--accent-green);
    transition: all var(--transition-normal);
    animation: pulse-glow 2s ease-in-out infinite;
    z-index: 10;
}

.credential-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--accent-green) 0%,
            rgba(201, 184, 150, 0.3) 50%,
            transparent 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.credential-card:hover {
    background: rgba(42, 38, 34, 0.7);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    transform: translateY(-8px);
    border-top-color: var(--accent-emerald);
    box-shadow: 0 12px 40px rgba(201, 184, 150, 0.25);
}

.credential-card:hover::before {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-green));
    transform: scale(1.5);
    box-shadow: 0 0 0 6px var(--bg-primary),
        0 0 25px var(--accent-emerald);
}

.credential-card:hover::after {
    opacity: 1;
    height: 4px;
    top: -4px;
    background: linear-gradient(90deg,
            var(--accent-emerald) 0%,
            rgba(201, 184, 150, 0.5) 30%,
            rgba(201, 184, 150, 0.2) 60%,
            transparent 100%);
    box-shadow: 0 0 20px rgba(201, 184, 150, 0.4);
}

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

.card-dot {
    position: absolute;
    left: var(--spacing-md);
    top: calc(var(--spacing-md) + 6px);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
    animation: pulse 2s infinite;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.card-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-emerald);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.5px;
}

.card-company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ===================================
   Featured Projects Section
   =================================== */
.projects-section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

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

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-green);
    background: var(--bg-card-hover);
}

/* Image styling */
.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1) rotate(2deg);
}

/* Hover Overlay */
.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: all 0.4s ease;
}

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

.project-links {
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-links {
    transform: translateY(0);
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    color: var(--bg-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(45, 212, 191, 0.4);
}

.project-link:hover {
    background: #ffffff;
    transform: scale(1.1);
}

/* Content styling */
.project-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    transition: color var(--transition-normal);
}

.project-card:hover .project-title {
    color: var(--accent-green);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    background-color: rgba(0, 168, 255, 0.2);
    border-color: var(--accent-green);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-primary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    color: var(--text-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-green);
}

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

.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(0, 255, 136, 0);
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet & Mobile Improvements (Up to 968px) */
@media (max-width: 968px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero-image {
        order: -1;
    }

    .profile-image {
        max-width: 300px;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

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

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Mobile & Tablet Optimizations (Up to 1024px) */
@media (max-width: 1024px) {
    .sidebar {
        width: 92%;
        max-width: 450px;
        height: 70px;
        top: auto;
        bottom: 25px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 50px;
        /* Pill Shape */
        padding: 0 15px;
        justify-content: center;
        background-color: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(45, 212, 191, 0.1);
        z-index: 9999;
        /* Top priority */
    }

    .nav-logo {
        display: none;
    }

    .nav-menu {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
        gap: 15px;
        padding: 0;
    }

    .nav-link {
        width: 55px;
        height: 55px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .nav-link svg {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
    }

    .nav-link.active {
        background: rgba(45, 212, 191, 0.2);
        color: var(--accent-green);
        box-shadow: 0 0 15px rgba(45, 212, 191, 0.2);
    }

    .nav-link.active svg {
        transform: scale(1.1);
    }

    .nav-link.active::before {
        display: none;
    }

    .main-content {
        margin-left: 0;
        margin-bottom: 100px;
        /* Space for floating nav */
    }

    .hero-section {
        padding: var(--spacing-xl) 0;
        /* More balanced spacing */
        min-height: auto;
    }

    .hero-title {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin-bottom: var(--spacing-sm) !important;
        min-height: 7rem !important;
        display: flex !important;
        flex-direction: column !important;
        /* Prefix above Name container */
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }

    .name-container {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        /* Space for the cursor to follow */
        flex-wrap: nowrap !important;
    }

    #type-name {
        font-size: clamp(1.8rem, 8.5vw, 2.5rem) !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }

    .type-cursor {
        font-size: clamp(1.8rem, 8.5vw, 2.5rem) !important;
        margin-left: 2px !important;
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1 !important;
        height: auto !important;
    }

    .hero-description {
        font-size: 1.05rem;
        margin-bottom: var(--spacing-md);
        max-width: 100%;
    }

    .social-links {
        justify-content: center;
        margin-top: var(--spacing-md);
    }

    .tech-grid {
        padding: var(--spacing-md) var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .tech-card {
        min-width: 150px;
        padding: var(--spacing-md);
    }

    .tech-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .tech-icon-wrapper .tech-icon {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }

    .section-title {
        margin-bottom: var(--spacing-sm);
    }

    .credential-card {
        padding: var(--spacing-md);
        padding-left: calc(var(--spacing-md) + 15px);
    }

    .card-dot {
        left: var(--spacing-md);
        top: calc(var(--spacing-md) + 8px);
    }
}

/* Small Mobile Devices (Up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .tech-card {
        min-width: 130px;
    }

    .tech-icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .tech-icon-wrapper .tech-icon {
        width: 30px !important;
        height: 30px !important;
        max-width: 30px !important;
        max-height: 30px !important;
    }
}

/* ===================================
   Toast Notifications
   =================================== */
.toast-notification {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(45, 212, 191, 0.15);
    z-index: 10000;
    max-width: 420px;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-success {
    border-color: rgba(45, 212, 191, 0.4);
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.toast-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-success .toast-icon {
    color: var(--accent-green);
    background: rgba(45, 212, 191, 0.15);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.toast-close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* Loading Spinner for Submit Button */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinner 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

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

/* Toast responsive */
@media (max-width: 768px) {
    .toast-notification {
        bottom: 80px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

/* ===================================
   Certifications Horizontal Scroll
   =================================== */
.certifications-section {
    margin-top: var(--spacing-md);
}

.certifications-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--accent-green) var(--bg-card);
}

.certifications-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.certifications-scroll-container::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 10px;
}

.certifications-scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-green);
    border-radius: 10px;
}

.certifications-grid {
    display: flex;
    gap: var(--spacing-md);
    padding: 4px;
}

.cert-card {
    min-width: 200px;
    max-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-hover);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.cert-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    transition: all var(--transition-normal);
}

.cert-card:hover .cert-badge {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-glow-strong);
}

.cert-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.cert-issuer {
    font-size: 0.85rem;
    color: var(--accent-green);
    font-weight: 500;
    margin: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .cert-card {
        min-width: 160px;
        max-width: 160px;
        padding: var(--spacing-sm);
    }

    .cert-badge {
        width: 50px;
        height: 50px;
    }

    .cert-title {
        font-size: 0.85rem;
    }
}

/* ===================================
   Glassmorphism Effects (iOS 18.2 Style)
   =================================== */
.glass-effect {
    background: rgba(201, 184, 150, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(201, 184, 150, 0.18);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Hero Role Tags with Glassmorphism */
.hero-roles-container {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.role-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.role-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px 0 rgba(201, 184, 150, 0.3);
    border-color: var(--accent-green);
}

.role-tag:hover::before {
    opacity: 0.15;
}

.role-tag svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px var(--accent-green));
}

.role-tag span {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced Glassmorphism for Cards */
.project-card,
.tech-card,
.credential-card {
    background: rgba(34, 31, 28, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.project-card:hover,
.tech-card:hover {
    background: rgba(42, 38, 34, 0.7);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
}

/* Enhanced Timeline with Glassmorphism */
.credential-card {
    background: rgba(34, 31, 28, 0.5);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-left: 4px solid var(--accent-green);
    position: relative;
}

.credential-card::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 28px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(15, 14, 13, 0.8),
        0 0 0 8px rgba(201, 184, 150, 0.2),
        0 0 20px var(--accent-green);
    transition: all var(--transition-normal);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(15, 14, 13, 0.8),
            0 0 0 8px rgba(201, 184, 150, 0.2),
            0 0 20px var(--accent-green);
    }

    50% {
        box-shadow: 0 0 0 5px rgba(15, 14, 13, 0.8),
            0 0 0 12px rgba(201, 184, 150, 0.3),
            0 0 30px var(--accent-green);
    }
}

.credential-card:hover::before {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-green));
    transform: scale(1.4);
    box-shadow: 0 0 0 6px rgba(15, 14, 13, 0.8),
        0 0 0 14px rgba(139, 154, 109, 0.4),
        0 0 35px var(--accent-emerald);
}

/* Category Header with Glassmorphism */
.category-header {
    background: rgba(34, 31, 28, 0.6);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(201, 184, 150, 0.2);
}

/* Certification Cards with Enhanced Glass Effect */
.cert-card {
    background: rgba(34, 31, 28, 0.5);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border: 1px solid rgba(201, 184, 150, 0.15);
}

.cert-card:hover {
    background: rgba(42, 38, 34, 0.6);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-color: rgba(201, 184, 150, 0.3);
}

/* Horizontal Top Navigation with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    padding: 16px 0;
    background: rgba(15, 14, 13, 0.75);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(201, 184, 150, 0.12);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    flex-direction: row;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(34, 31, 28, 0.4);
    border: 1px solid rgba(201, 184, 150, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 184, 150, 0.15), rgba(139, 154, 109, 0.15));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-link::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    opacity: 0;
    border-radius: 18px;
    z-index: -2;
    transition: opacity 0.4s ease;
}

.nav-link svg {
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 0 transparent);
}

.nav-link:hover {
    background: rgba(201, 184, 150, 0.08);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    border-color: rgba(201, 184, 150, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 32px rgba(201, 184, 150, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover svg {
    color: var(--accent-green);
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 12px var(--accent-green));
}

.nav-link.active {
    background: rgba(201, 184, 150, 0.12);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-color: rgba(201, 184, 150, 0.4);
}

.nav-link.active::after {
    opacity: 0.3;
}

.nav-link.active svg {
    color: var(--accent-green);
    filter: drop-shadow(0 0 8px var(--accent-green));
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-roles-container {
        justify-content: center;
    }

    .role-tag {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
}

/* Enhanced Section Headers with Glassmorphism */
.section-header {
    position: relative;
    padding: var(--spacing-lg);
    background: rgba(34, 31, 28, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(201, 184, 150, 0.1);
    margin-bottom: var(--spacing-xl);
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(201, 184, 150, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 184, 150, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-green);
    margin-bottom: var(--spacing-sm);
}

/* Floating Animation for Glass Elements */
@keyframes float-glass {

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

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

.role-tag:nth-child(1) {
    animation: float-glass 3s ease-in-out infinite;
}

.role-tag:nth-child(2) {
    animation: float-glass 3s ease-in-out infinite 1.5s;
}

/* Shimmer Effect for Glass Cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.glass-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    animation: shimmer 3s infinite;
}

/* Enhanced Scrollbar with Glassmorphism */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 14, 13, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-emerald));
    border-radius: 10px;
    border: 2px solid rgba(15, 14, 13, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-emerald), var(--accent-green));
    box-shadow: 0 0 10px var(--accent-green);
}

/* Body padding for top navbar */
body {
    padding-top: 84px;
}

/* Creative Icon Animations */
@keyframes icon-float {

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

    50% {
        transform: translateY(-3px) rotate(2deg);
    }
}

.nav-link:nth-child(1):hover svg {
    animation: icon-float 0.6s ease-in-out;
}

.nav-link:nth-child(2):hover svg {
    transform: scale(1.15) rotate(-5deg);
}

.nav-link:nth-child(3):hover svg {
    transform: scale(1.1) rotateY(180deg);
}

.nav-link:nth-child(4):hover svg {
    transform: scale(1.15) rotate(10deg);
}

.nav-link:nth-child(5):hover svg {
    animation: icon-float 0.5s ease-in-out;
    transform: scale(1.2);
}

/* Glass ripple effect on click */
@keyframes glass-ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.nav-link:active::before {
    animation: glass-ripple 0.6s ease-out;
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 12px 0;
    }

    .nav-link {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .nav-links {
        gap: 6px;
    }

    body {
        padding-top: 68px;
    }
}