/* CORE APPLICATION STYLES AND LAYOUT */
body {
    font-family: 'Lexend', sans-serif;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }
}

.cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #D4A373;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(212, 163, 115, 0.35);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor.clicked {
    transform: translate(-50%, -50%) scale(1.8);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cursor-follower.clicked {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animated-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    position: relative;
    display: inline-block;
    font-family: monospace;
}

.logo-char {
    display: inline-block;
    transition: all 0.2s ease-out;
    min-width: 0.6em;
}

.logo-char.morphing {
    color: #9E9E9E;
    background: none;
    -webkit-text-fill-color: #9E9E9E;
}

.logo-char.final,
.animated-logo,
.dark .animated-logo,
.dark .logo-char.final {
    color: #EDEDED !important;
    -webkit-text-fill-color: #EDEDED !important;
}

/* INTERACTIVE MINI-BOX COMPONENT STYLES */
.mini-box {
    display: inline-block;
    padding: 0.5rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    background-color: transparent;
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: auto;
}

.mini-box::before {
    content: attr(data-label) ' ';
    font-weight: 600;
    opacity: 0;
    width: 0;
    display: none;
}

.mini-box:hover {
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-color: #3b82f6;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.mini-box:hover::before {
    display: inline;
    opacity: 1;
    width: auto;
    margin-right: 0.3rem;
}

.dark .mini-box {
    border-color: #475569;
    color: #94a3b8;
}

.dark .mini-box:hover {
    background-color: #334155;
    border-color: #60a5fa;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50vh;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

/* SCROLL-ACTIVATED SOCIAL TOGGLE CONTROLS */
.social-toggle-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    cursor: pointer;
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    padding: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
}

.social-toggle-btn svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.social-toggle-btn:hover {
    background: transparent;
    color: #764ba2;
    transform: translateY(-50%) translateX(5px) scale(1.1);
    border: none;
}

/* NAVIGATION SCROLL STATE MANAGEMENT */
.social-sidebar.scrolled .social-toggle-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

/* SOCIAL MEDIA LINK COMPONENTS */
.social-icons-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s ease;
}

.social-icons-container a {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icons-container a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    border-color: transparent;
}

/* SCROLL-ACTIVATED UI TRANSITIONS */
.social-sidebar.scrolled .social-toggle-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.social-sidebar.scrolled .social-icons-container {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-20px);
}

/* SIDEBAR EXPANSION LOGIC STYLES */
.social-sidebar.scrolled.expanded .social-icons-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

/* UI VISIBILITY MANAGEMENT */
.social-sidebar.scrolled.expanded .social-toggle-btn {
    opacity: 0;
    pointer-events: none;
}

.social-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    margin-top: 16px;
}

.gmail-sidebar {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.gmail-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    opacity: 0.7;
    text-decoration: none;
}

.gmail-text:hover {
    opacity: 1;
    color: #667eea;
}

.gmail-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.7;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .social-sidebar {
        display: none;
    }

    .gmail-sidebar {
        display: none;
    }
}

/* GLOBAL DARK MODE THEME TOKENS */
.dark,
body.dark,
html.dark,
body {
    background-color: #0C0C0C !important;
    color: #EDEDED !important;
}

.dark .bg-white,
.dark .bg-slate-900,
.dark .bg-slate-800 {
    background-color: #141414 !important;
}

.dark .text-gray-900,
.dark .text-white {
    color: #EDEDED !important;
}

.dark .text-gray-600,
.dark .text-slate-300,
.dark .text-slate-400 {
    color: #9E9E9E !important;
}

.dark .border-slate-700,
.dark .border-slate-800,
.dark .border-gray-800,
.dark .border-gray-700 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .social-sidebar a,
.dark .social-icons-container a {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #EDEDED !important;
    box-shadow: none !important;
}

.dark .social-sidebar a:hover,
.dark .social-icons-container a:hover {
    border-color: #D4A373 !important;
    color: #D4A373 !important;
    background: #1C1C1C !important;
}

.dark .social-toggle-btn {
    background: transparent !important;
    border: none !important;
    color: #D4A373 !important;
    box-shadow: none !important;
}

.dark .social-toggle-btn:hover {
    color: #E2A96D !important;
}

/* GLOBAL THEME SELECTION COMPONENT */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
    /* further reduced */
}

.theme-switch-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    /* White background for light mode */
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for white bg */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-label:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.theme-switch-inner {
    position: relative;
    width: 18px;
    height: 18px;
    background: transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-switch-inner::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url('../assets/Dark_Light/sun.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}

.theme-switch-checkbox:checked+.theme-switch-label {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 4px 15px rgba(30, 41, 59, 0.3);
}

.theme-switch-checkbox:checked+.theme-switch-label:hover {
    box-shadow: 0 6px 20px rgba(30, 41, 59, 0.4);
}

.theme-switch-checkbox:checked+.theme-switch-label .theme-switch-inner {
    transform: rotate(360deg);
}

.theme-switch-checkbox:checked+.theme-switch-label .theme-switch-inner::before {
    content: '';
    background-image: url('../assets/Dark_Light/night.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.text-gradient {
    color: #D4A373 !important;
    background: none !important;
    -webkit-text-fill-color: #D4A373 !important;
}

.card-hover {
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
}

.typing-animation {
    border-right: 2px solid #D4A373;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        border-color: transparent;
    }

    51%,
    100% {
        border-color: #D4A373;
    }
}

.profile-glow {
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
}

.profile-glow:hover {
    box-shadow: none !important;
    transform: scale(1.03);
    border-color: #D4A373;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.pop-in {
    opacity: 0;
    transform: scale(0.5);
}

.pop-in.visible {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}



.nav-blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.section-padding {
    padding: 120px 0;
}

.hero-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.dark .hero-gradient {
    background: linear-gradient(135deg, #1c263b 0%, #1e293b 100%);
}



/* SECTION: SKILLS & COMPETENCIES (SPACE THEME) */


/* BACKGROUND ANIMATION KEYFRAMES */
@keyframes twinkle {

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

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.animate-pulse {
    animation: twinkle 3s ease-in-out infinite;
}



/* INTERACTIVE ELEMENT HOVER EFFECTS */
.group:hover {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}







/* PROJECT SHOWCASE ANIMATION EFFECTS */
.project-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.floating-emoji {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
    top: 40%;
    left: 20%;
}

@keyframes float {

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

    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
        opacity: 0.7;
    }

    75% {
        transform: translateY(-10px) rotate(3deg);
        opacity: 0.5;
    }
}

.project-card:hover .floating-emoji {
    animation-duration: 3s;
    opacity: 0.6;
}


/* SKILL MARQUEE CONTEXT ARCHITECTURE */
.skills-marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 2rem;
    position: relative;
    padding: 60px 0; /* Increased space for large neon box shadows and hover transforms */
    margin: -60px 0; /* Offset padding to maintain vertical layout balance */
}

.marquee-track {
    display: flex;
    flex-shrink: 0;
    gap: 2rem;
    min-width: 100%;
}

/* MARQUEE SCROLL ANIMATION LOGIC */
.marquee-container {
    overflow: hidden;
    width: 100%;
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
}

.scroll-left {
    animation: scroll-left 40s linear infinite;
}

.scroll-right {
    animation: scroll-right 40s linear infinite;
}

.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes scroll-right {
    from {
        transform: translate3d(-50%, 0, 0);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

/* SKILL BOX COMPONENT ARCHITECTURE */
.skills-marquee-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    padding: 1.5rem 0;
}

.skill-box {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    cursor: default;
    box-shadow: none !important;
}

.skill-box:hover {
    background: #1C1C1C;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: none !important;
}

.skill-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: none;
    transition: transform 0.25s ease;
}

/* ASSET-SPECIFIC VISUAL OPTIMIZATIONS */
.powerpoint-logo {
    transform: scale(1.15);
}

.skill-box:hover .powerpoint-logo {
    transform: scale(1.2);
}

.skill-box:hover .skill-logo {
    transform: scale(1.08);
}

.skill-name {
    font-weight: 500;
    font-size: 0.95rem;
    color: #EDEDED !important;
    text-shadow: none;
    text-align: center;
    letter-spacing: 0.2px;
}

.dark .skill-box, 
:root:not(.dark) .skill-box {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dark .skill-box:hover,
:root:not(.dark) .skill-box:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* BRAND-SPECIFIC COLOR & THEMING OVERRIDES */
/* Prefixing with .skill-box and using !important to ensure brand colors override general box-shadows */

.skill-box.skill-git {
    border-color: rgba(248, 113, 113, 0.6) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-git:hover {
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.6) !important;
}

.skill-box.skill-github {
    border-color: rgba(148, 163, 184, 0.7) !important;
    box-shadow: 0 0 6px rgba(148, 163, 184, 0.4) !important;
}
.skill-box.skill-github:hover {
    box-shadow: 0 0 10px rgba(191, 219, 254, 0.6) !important;
}

.skill-box.skill-pandas {
    border-color: rgba(94, 92, 255, 0.6) !important;
    box-shadow: 0 0 6px rgba(94, 92, 255, 0.4) !important;
}
.skill-box.skill-pandas:hover {
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.6) !important;
}

.skill-box.skill-python {
    border-color: rgba(252, 211, 77, 0.7) !important;
    box-shadow: 0 0 6px rgba(252, 211, 77, 0.4) !important;
}
.skill-box.skill-python:hover {
    box-shadow: 0 0 10px rgba(252, 211, 77, 0.6) !important;
}

.skill-box.skill-c {
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4) !important;
}
.skill-box.skill-c:hover {
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.6) !important;
}

.skill-box.skill-cpp {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4) !important;
}
.skill-box.skill-cpp:hover {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.6) !important;
}

.skill-box.skill-html {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-html:hover {
    box-shadow: 0 0 10px rgba(252, 165, 165, 0.6) !important;
}

.skill-box.skill-css {
    border-color: rgba(96, 165, 250, 0.7) !important;
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.4) !important;
}
.skill-box.skill-css:hover {
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.6) !important;
}

.skill-box.skill-js {
    border-color: rgba(250, 204, 21, 0.7) !important;
    box-shadow: 0 0 6px rgba(250, 204, 21, 0.4) !important;
}
.skill-box.skill-js:hover {
    box-shadow: 0 0 10px rgba(250, 250, 170, 0.6) !important;
}

.skill-box.skill-mongodb {
    border-color: rgba(74, 222, 128, 0.7) !important;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4) !important;
}
.skill-box.skill-mongodb:hover {
    box-shadow: 0 0 10px rgba(187, 247, 208, 0.6) !important;
}

.skill-box.skill-nodejs {
    border-color: rgba(74, 222, 128, 0.7) !important;
    box-shadow: 0 0 6px rgba(74, 222, 128, 0.4) !important;
}
.skill-box.skill-nodejs:hover {
    box-shadow: 0 0 10px rgba(187, 247, 208, 0.6) !important;
}

.skill-box.skill-docker {
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.4) !important;
}
.skill-box.skill-docker:hover {
    box-shadow: 0 0 10px rgba(125, 211, 252, 0.6) !important;
}

.skill-box.skill-aws {
    border-color: rgba(251, 191, 36, 0.7) !important;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.4) !important;
}
.skill-box.skill-aws:hover {
    box-shadow: 0 0 10px rgba(254, 240, 138, 0.6) !important;
}

.skill-box.skill-kotlin {
    border-color: rgba(168, 85, 247, 0.7) !important;
    box-shadow: 0 0 6px rgba(168, 85, 247, 0.4) !important;
}
.skill-box.skill-kotlin:hover {
    box-shadow: 0 0 10px rgba(221, 214, 254, 0.6) !important;
}

.skill-box.skill-pytorch {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-pytorch:hover {
    box-shadow: 0 0 10px rgba(254, 202, 202, 0.6) !important;
}

.skill-box.skill-figma {
    border-color: rgba(52, 211, 153, 0.7) !important;
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.4) !important;
}
.skill-box.skill-figma:hover {
    box-shadow: 0 0 10px rgba(167, 243, 208, 0.6) !important;
}

.skill-box.skill-arduino {
    border-color: rgba(45, 212, 191, 0.7) !important;
    box-shadow: 0 0 6px rgba(45, 212, 191, 0.4) !important;
}
.skill-box.skill-arduino:hover {
    box-shadow: 0 0 10px rgba(153, 246, 228, 0.6) !important;
}

.skill-box.skill-mysql {
    border-color: rgba(59, 130, 246, 0.7) !important;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.4) !important;
}
.skill-box.skill-mysql:hover {
    box-shadow: 0 0 10px rgba(147, 197, 253, 0.6) !important;
}

.skill-box.skill-powerpoint {
    border-color: rgba(248, 113, 113, 0.7) !important;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.4) !important;
}
.skill-box.skill-powerpoint:hover {
    box-shadow: 0 0 10px rgba(253, 164, 175, 0.6) !important;
}

.skill-box.skill-tensorflow {
    border-color: rgba(251, 146, 60, 0.7) !important;
    box-shadow: 0 0 6px rgba(251, 146, 60, 0.4) !important;
}
.skill-box.skill-tensorflow:hover {
    box-shadow: 0 0 10px rgba(254, 215, 170, 0.6) !important;
}

/* RESPONSIVE DESIGN & MOBILE VIEW ADAPTATIONS */
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }

    .hero-gradient {
        padding-top: 100px;
    }

    .text-5xl {
        font-size: 2.5rem;
    }


    .text-6xl {
        font-size: 3rem;
    }

    .floating-emoji {
        display: none;
    }

    /* Skills Section Mobile Adjustments */
    .skill-box {
        width: 110px;
        height: 110px;
        padding: 1rem;
        gap: 0.5rem;
        border-radius: 16px;
    }

    .skill-logo {
        width: 36px;
        height: 36px;
    }

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

    .marquee-container {
        padding: 40px 0;
        margin: -40px 0;
        gap: 1.5rem;
    }

    .marquee-track {
        gap: 1.5rem;
    }

    /* Hide tech elements completely on mobile to prevent overlap */
    .tech-element {
        display: none !important;
    }

    .hero-tech-elements {
        display: none !important;
    }

    /* Add proper spacing for hero text on mobile */
    .hero-gradient .max-w-7xl {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Ensure proper line height and spacing */
    .hero-gradient p {
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    /* Ensure buttons and interactive elements have higher z-index on mobile */
    button,
    .btn,
    a[href],
    input,
    textarea {
        position: relative;
        z-index: 100;
    }

    /* Ensure navigation has highest z-index */
    nav {
        z-index: 1000 !important;
    }

    /* Mobile menu should be above everything */
    #mobile-menu {
        z-index: 1001 !important;
    }

}

/* GLOBAL BACKGROUND ANIMATION CLASSES */
.animate-float {
    animation: backgroundFloat 8s ease-in-out infinite;
}

.animate-float-delayed {
    animation: backgroundFloat 10s ease-in-out infinite 2s;
}

.animate-float-slow {
    animation: backgroundFloat 12s ease-in-out infinite 1s;
}


/* FLOATING NAVIGATION BAR ARCHITECTURE */
.floating-nav-container {
    position: fixed;
    top: 20px;
    z-index: 1000;
    pointer-events: none;
    /* transition properties for smooth animation */
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);

    /* Default Desktop State (Right aligned) */
    right: 30px;
    left: auto;
    transform: translateX(0);
}

.floating-nav-container.scrolled-center {
    /* Centered State */
    right: 50%;
    transform: translateX(50%);
}

.floating-nav {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 7px;
    background-color: #0d0e11 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 9999px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.dark .floating-nav {
    background-color: #0d0e11 !important;
}

.nav-link-pill {
    padding: 6px 16px;
    border-radius: 9999px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: normal;
    display: flex;
    align-items: center;
}

.nav-link-pill:hover,
.mobile-link:hover {
    background-color: #c71d48 !important;
    color: #ffffff !important;
}

.dark .nav-link-pill {
    color: #ffffff;
}

.dark .nav-link-pill:hover {
    background-color: #c71d48 !important;
    color: #ffffff !important;
}

.nav-link-active {
    background-color: #c71d48 !important;
    color: #ffffff !important;
}

.dark .nav-link-active {
    background-color: #c71d48 !important;
    color: #ffffff !important;
}

/* Animated Expandable Nav Links */
.nav-expandable {
    padding: 8px 12px !important;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-expandable:hover {
    padding: 8px 16px !important;
}

.nav-expandable .nav-text {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease-in-out 0.1s;
    margin-left: 0;
}

.nav-expandable:hover .nav-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 8px;
}

/* Keep active item expanded by default */
.nav-link-active.nav-expandable {
    padding: 8px 16px !important;
}

.nav-link-active.nav-expandable .nav-text {
    max-width: 150px;
    opacity: 1;
    margin-left: 8px;
}

.nav-link-outline {
    background-color: transparent !important;
    color: #1f2937 !important;
    border: 1px solid #1f2937;
}

.dark .nav-link-outline {
    color: #f1f5f9 !important;
    border: 1px solid #f1f5f9;
}

.nav-cta-button {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 9999px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    line-height: normal;
    display: flex;
    align-items: center;
}



.nav-cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.dark .nav-cta-button {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #1c263b;
}

.nav-divider {
    height: 24px;
    width: 1px;
    background-color: #e5e7eb;
    margin: 0 8px;
}

.dark .nav-divider {
    background-color: #334155;
}

/* NAV DROPDOWN INTERACTION BRIDGE */
.dropdown-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    /* Cover the gap and a bit of the menu */
    background: transparent;
    z-index: 10;
}

/* NAV DROPDOWN MENU COMPONENT STYLING */
.nav-dropdown-menu {
    z-index: 20;
    background-color: transparent !important;
    /* Transparent container */
    border-radius: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Space between separate boxes */
    padding-top: 10px;

    /* Base State (Closed) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;

    /* Smooth Bouncy Transition */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top right;
}

.dark .nav-dropdown-menu {
    background-color: transparent !important;
}

/* DROPDOWN INTERACTION STATE MANAGEMENT */
.nav-dropdown-menu.active,
.group:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-menu {
    /* Removed absolute width reliance on utility classes */
    width: 150px !important;
    /* Force smaller width */
}

.nav-dropdown-menu a {
    color: #4b5563 !important;
    background-color: #ffffff;
    border-radius: 9999px;
    /* Pill shape for items */
    box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    text-align: center;
    padding: 6px 10px !important;
    /* Force smaller padding */
    font-size: 0.95rem;
}

.nav-dropdown-menu a:hover {
    background-color: #1f2937 !important;
    /* light black/dark gray */
    color: #ffffff !important;
    /* white text */
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.dark .nav-dropdown-menu a {
    color: #e2e8f0 !important;
    background-color: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .nav-dropdown-menu a:hover {
    background-color: #ffffff !important;
    /* White background on hover in dark mode */
    color: #000000 !important;
    /* Black text on hover in dark mode */
}

/* Force specific text colors for active dropdown items to match main nav style */
.nav-dropdown-menu a.nav-link-active {
    color: #ffffff !important;
}

.dark .nav-dropdown-menu a.nav-link-active {
    color: #1c263b !important;
}

/* INTERACTIVE BRANDING LOGO COMPONENT */
.floating-logo {
    position: fixed;
    top: 24px;
    left: 30px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth fade and move */
}

.floating-logo.scrolled-out {
    opacity: 0;
    transform: translateX(-60px);
    /* Move left and vanish */
    pointer-events: none;
}

/* Hide original logo in nav */
.hidden-logo {
    display: none;
}

@media (max-width: 768px) {
    .floating-nav-container {
        top: 16px;
        padding: 0 16px;
        /* Reset positioning for mobile */
        left: 0;
        right: 0;
        transform: none;
        /* Disable center animation on mobile default state */
        display: flex;
        justify-content: center;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .floating-nav-container.scrolled-center {
        transform: translateX(-120%);
        opacity: 0;
        pointer-events: none;
    }

    .floating-nav {
        width: 100%;
        justify-content: space-between;
        padding: 8px 16px;
    }

    .floating-logo {
        display: none;
        /* Hide separate logo on mobile as it's likely covered or we want it in the bar */
    }

    .mobile-logo {
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
    }

    .mobile-logo.scrolled-out {
        opacity: 0;
        transform: translateX(-20px);
        pointer-events: none;
    }
}

@keyframes backgroundFloat {

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

    25% {
        transform: translateY(-20px) translateX(10px);
    }

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

    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes backgroundFloatReverse {

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

    25% {
        transform: translateY(15px) translateX(-10px);
    }

    50% {
        transform: translateY(25px) translateX(20px);
    }

    75% {
        transform: translateY(10px) translateX(-5px);
    }
}

/* SECTION: HERO / LANDING PAGE DESIGN */
#home {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.dark #home {
    background: transparent !important;
}

.hero-tech-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.tech-element {
    position: absolute;
    font-size: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.06);
    animation: modernFloat 8s ease-in-out infinite;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tech-element:nth-child(1) {
    top: 15%;
    left: 8%;
    color: rgba(255, 255, 255, 0.08);
    animation-delay: 0s;
}

.tech-element:nth-child(2) {
    top: 20%;
    right: 15%;
    color: rgba(255, 255, 255, 0.06);
    animation-delay: 2s;
}

.tech-element:nth-child(3) {
    top: 45%;
    left: 12%;
    color: rgba(212, 163, 115, 0.1);
    animation-delay: 4s;
}

.tech-element:nth-child(4) {
    bottom: 30%;
    right: 10%;
    color: rgba(255, 255, 255, 0.07);
    animation-delay: 6s;
}

.tech-element:nth-child(5) {
    bottom: 20%;
    left: 15%;
    color: rgba(255, 255, 255, 0.05);
    animation-delay: 3s;
}

.tech-element:nth-child(6) {
    top: 70%;
    right: 18%;
    color: rgba(255, 255, 255, 0.08);
    animation-delay: 5s;
}

.tech-element:nth-child(7) {
    top: 35%;
    right: 25%;
    color: rgba(212, 163, 115, 0.08);
    animation-delay: 1s;
}

.tech-element:nth-child(8) {
    top: 75%;
    left: 10%;
    color: rgba(255, 255, 255, 0.06);
    animation-delay: 7s;
}

.tech-element:nth-child(9) {
    top: 30%;
    left: 18%;
    color: rgba(255, 255, 255, 0.07);
    animation-delay: 4.5s;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

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

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

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

@keyframes modernFloat {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.7;
    }

    25% {
        transform: translateY(-15px) translateX(8px) rotate(2deg);
        opacity: 0.9;
    }

    50% {
        transform: translateY(-25px) translateX(-5px) rotate(-1deg);
        opacity: 0.8;
    }

    75% {
        transform: translateY(-10px) translateX(12px) rotate(1deg);
        opacity: 0.85;
    }

}

/* MODULE-SPECIFIC STYLES: ACADEMIC PRESENTATION */
.bg-grid {
    background-size: 20px 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .glass-panel {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* HERO SECTION LAYOUT CONSTRAINTS */
main>section:first-of-type {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0 !important;
}

/* Ensure sections container is positioned below viewport */
main>.space-y-32 {
    margin-top: 0;
    padding-top: 4rem;
}

/* Mobile adjustments for full viewport hero */
@media (max-width: 768px) {
    main>section:first-of-type {
        min-height: 100vh;
        height: auto;
        padding-top: 0;
    }
}

/* STICKY PROJECT TRANSITION ARCHITECTURE */
#project-details-container {
    position: relative;
    min-height: 400px; /* Ensure enough height for details */
    height: 100%;
    display: flex;
    align-items: center;
}

#project-details-container .project-card-container {
    padding-bottom: 5rem; /* Shift content upwards */
}

#project-visuals-container {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.project-card-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    display: flex; /* Ensure content is properly aligned */
    flex-direction: column;
    justify-content: center;
}

.project-card-container.project-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 10;
}

.project-card-container.project-hidden-up {
    opacity: 0;
    transform: translateY(-50px) scale(1.05); /* Slight scale up and move up */
    pointer-events: none;
    z-index: 5;
}

.project-card-container.project-hidden-down {
    opacity: 0;
    transform: translateY(100px) scale(0.9); /* Scale down and move down */
    pointer-events: none;
    z-index: 5;
}

/* Perspective for 3D card effect */
.perspective-1000 {
    perspective: 1000px;
}

/* MOBILE PROJECTS VIEW ADAPTATION */
@media (max-width: 1024px) {
    .projects-scroll-wrapper {
        height: auto !important;
    }

    .projects-sticky-view {
        position: static !important;
        height: auto !important;
        padding: 3rem 0 !important;
        display: block !important;
    }

    .projects-sticky-view > div {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .projects-sticky-view > div > div:nth-child(2) {
        display: none !important;
    }

    .projects-sticky-view > div > div:nth-child(3) {
        grid-column: auto !important;
    }

    #project-details-container {
        min-height: auto;
        padding-bottom: 2rem;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto !important;
    }

    #project-details-container .project-card-container {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        display: block !important;
        padding: 1.5rem !important;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .dark #project-details-container .project-card-container {
        background: #1f2937;
        border: 1px solid #374151;
    }

    #project-details-container .project-card-container:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    }

    .dark #project-details-container .project-card-container:hover {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
    }

    #project-visuals-container {
        min-height: auto;
        width: 100%;
        aspect-ratio: 16/9;
        display: none !important;
    }

    #project-details-container h3 {
        font-size: 1.5rem !important;
    }

    #project-details-container h2 {
        font-size: 2.25rem;
    }

    /* Collapse Logic */
    #project-details-container.collapsed .project-card-container:nth-child(n+4) {
        display: none !important;
    }

    /* Hide button when not collapsed */
    #project-details-container:not(.collapsed) + div #show-more-projects-btn {
        display: none !important;
    }

    /* Remove unintended box/glow from the expansion button */
    #show-more-projects-btn {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        -webkit-tap-highlight-color: transparent;
    }

    #show-more-projects-btn:hover {
        box-shadow: none !important;
    }

    /* TEXT OVERFLOW & TRUNCATION MANAGEMENT */
    .line-clamp-3-mobile {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .read-more-btn {
        transition: all 0.2s ease;
    }

    /* Smaller Tags */
    .tech-tag {
        padding: 0.4rem 0.75rem !important;
        font-size: 0.75rem !important;
    }

    .tech-tag img, .tech-tag span {
        width: 0.875rem !important;
        height: 0.875rem !important;
        margin-right: 0.4rem !important;
        font-size: 0.875rem !important;
    }
}

/* SECTION: CERTIFICATIONS SHOWCASE CAROUSEL */
.certifications-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.certifications-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
}

.certifications-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.certifications-carousel {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    animation: scroll-left 60s linear infinite;
    width: max-content;
    will-change: transform;
    transform: translateZ(0);
}

.certifications-carousel:hover {
    animation-play-state: paused;
}

.certifications-carousel-wrapper {
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.cert-card {
    flex-shrink: 0;
    width: 420px;
    height: 310px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    position: relative;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    display: block;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: none !important;
    border-color: #D4A373;
}

.cert-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

.cert-card:hover img {
    transform: scale(1.02);
}

.cert-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 12, 0.95) 0%, rgba(12, 12, 12, 0.5) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

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

.cert-card-title {
    color: #EDEDED;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

/* Dark Mode Styles */
.dark .cert-card {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dark .cert-card:hover {
    border-color: #D4A373;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-carousel {
        gap: 1.5rem;
        animation: scroll-left 40s linear infinite;
    }

    .cert-card {
        width: 400px;
        height: 280px;
    }

    .certifications-section {
        padding: 3rem 0;
    }

    .certifications-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .certifications-title {
        margin-bottom: 3rem;
    }
}

@media (max-width: 480px) {
    .certifications-carousel {
        gap: 1rem;
        animation: scroll-left 40s linear infinite;
    }

    .cert-card {
        width: 310px;
        height: 220px;
    }

    .certifications-section {
        padding: 2rem 0;
    }
}

/* ==========================================================================
   HERO CALL TO ACTION (CTA) BUTTONS
   ========================================================================== */

/* Primary Button: Get In Touch */
/* Primary Button: Get In Touch */
.hero-btn-primary {
    position: relative;
    background: #EDEDED;
    color: #0C0C0C !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s ease, background-color 0.25s ease;
    box-shadow: none !important;
    border: 1px solid #EDEDED;
    cursor: pointer;
}

.dark .hero-btn-primary {
    background: #EDEDED;
    color: #0C0C0C !important;
    box-shadow: none !important;
}

.hero-btn-primary:hover,
.dark .hero-btn-primary:hover {
    background: #FFFFFF;
    color: #0C0C0C !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

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

.hero-btn-primary .arrow-icon {
    transition: transform 0.25s ease;
}

.hero-btn-primary:hover .arrow-icon {
    transform: translateX(3px);
}


/* Secondary Button: View My Work */
.hero-btn-secondary {
    position: relative;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #EDEDED !important;
    box-shadow: none !important;
}

.dark .hero-btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #EDEDED !important;
}

.hero-btn-secondary:hover,
.dark .hero-btn-secondary:hover {
    background: #1C1C1C;
    border-color: rgba(255, 255, 255, 0.3);
    color: #EDEDED !important;
    transform: translateY(-2px);
    box-shadow: none !important;
}

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


/* Tertiary Button: Download CV */
.hero-btn-tertiary {
    position: relative;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
    background: #141414;
    color: #EDEDED !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none !important;
}

.dark .hero-btn-tertiary {
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-btn-tertiary:hover,
.dark .hero-btn-tertiary:hover {
    background: #1C1C1C;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: none !important;
}

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

.hero-btn-tertiary .download-icon {
    transition: transform 0.25s ease;
}

.hero-btn-tertiary:hover .download-icon {
    transform: translateY(2px);
}

/* ==========================================================================
   CONTACT FORM INPUTS & TEXTAREA
   ========================================================================== */
#contact form {
    background-color: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

#contact input,
#contact textarea {
    background-color: #0C0C0C !important;
    color: #EDEDED !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #666666 !important;
}

#contact input:focus,
#contact textarea:focus {
    background-color: #0C0C0C !important;
    border-color: #D4A373 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Prevent browser blue autofill background */
#contact input:-webkit-autofill,
#contact input:-webkit-autofill:hover, 
#contact input:-webkit-autofill:focus,
#contact textarea:-webkit-autofill,
#contact textarea:-webkit-autofill:hover,
#contact textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #EDEDED !important;
    -webkit-box-shadow: 0 0 0px 1000px #0C0C0C inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

