/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for sticky navigation */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    max-width: 100vw;
    position: relative;
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    padding-top: 70px;
    /* Account for fixed navigation bar */
}

/* Standardized Spacing System (8px grid) */
/* Standardized Spacing System & Mission Control Theme */
:root {
    /* Colors */
    --color-bg-deep: #050a10;
    --color-bg-panel: rgba(10, 25, 40, 0.85);
    --color-primary: #00f3ff;
    /* Holographic Cyan */
    --color-secondary: #0092CC;
    /* Legacy Blue - kept for gradients */
    --color-accent: #ff0055;
    /* Warning/Alert Red */
    --color-text-main: #e0faff;
    --color-text-muted: #8aaacc;
    --color-border: rgba(0, 243, 255, 0.3);

    /* Fonts */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Typography Scale */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1.1rem;
    /* Slightly larger for Rajdhani */
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 2.5rem;
    --font-size-4xl: 3.5rem;

    /* Effects */
    --glow-text: 0 0 10px rgba(0, 243, 255, 0.4);
    --glow-box: 0 0 15px rgba(0, 243, 255, 0.15);
    --border-tech: 1px solid var(--color-border);

    /* Enhanced Focus Indicators */
    --focus-outline-width: 2px;
    --focus-outline-color: var(--color-primary);
    --focus-outline-offset: 4px;
}

/* Font Awesome Icon Styling */
.quick-nav-icon i,
.quick-fact-hr-icon i,
.executive-icon i,
.metric-icon i,
.why-hire-icon i,
.leadership-icon i,
.highlight-icon i,
.achievement-icon i,
.hr-summary-icon i,
.quick-fact-icon i,
.domain-icon i,
.attribute-icon i {
    display: inline-block;
    width: 1em;
    height: 1em;
    line-height: 1;
    vertical-align: middle;
}

/* Skip Navigation - Enhanced Visibility */
.skip-nav {
    position: absolute;
    left: -9999px;
    z-index: 10001;
    padding: 12px 24px;
    background-color: #0092CC;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.4);
    transition: all 0.3s ease;
}

.skip-nav:focus {
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
    outline: var(--focus-outline-width) solid #ffffff;
    outline-offset: var(--focus-outline-offset);
}

.skip-nav:hover {
    background-color: #00b4e6;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 146, 204, 0.5);
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0092CC 0%, #00b4e6 100%);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 4px rgba(0, 146, 204, 0.5);
}

/* Quick Navigation Sidebar */
.quick-nav-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    background: rgba(9, 21, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 12px;
    padding: 10px 5px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.quick-nav-sidebar.visible {
    opacity: 1;
    pointer-events: all;
}

.quick-nav-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quick-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #b0b0b0;
    transition: all 0.3s ease;
    position: relative;
}

.quick-nav-link:hover,
.quick-nav-link.active {
    background: rgba(0, 146, 204, 0.2);
    color: #0092CC;
    transform: translateX(5px);
}

.quick-nav-link:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    background: rgba(0, 146, 204, 0.2);
    color: #0092CC;
}

.quick-nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 16px;
    background: #0092CC;
    border-radius: 2px;
}

.quick-nav-icon {
    font-size: 1.1em;
    margin-bottom: 2px;
}

.quick-nav-label {
    font-size: 0.7em;
    text-align: center;
    opacity: 0;
    max-width: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-nav-link:hover .quick-nav-label {
    opacity: 1;
    max-width: 100px;
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .quick-nav-sidebar {
        left: 10px;
        padding: 8px 4px;
    }

    .quick-nav-link {
        width: 35px;
        height: 35px;
    }

    .quick-nav-icon {
        font-size: 1em;
    }

    .education {
        padding-left: 80px;
        /* Account for smaller navigation sidebar */
    }
}

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

    .education {
        padding-left: 0;
        /* No navigation sidebar on mobile */
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0092CC 0%, #00b4e6 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.6);
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
}

.back-to-top:focus-visible {
    outline: var(--focus-outline-width) solid #ffffff;
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 4px 15px rgba(0, 146, 204, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* SVG Icon Styling */
.back-to-top svg {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    /* Mobile Touch Optimizations */
    .skill-container,
    .filter-btn,
    .work-history-nav-btn,
    .btn {
        min-height: 44px;
        /* Minimum touch target size */
        -webkit-tap-highlight-color: rgba(0, 146, 204, 0.3);
    }

    /* Improve card flip interactions on mobile */
    .education-card,
    .experience-card,
    .work-history-slide {
        touch-action: manipulation;
    }

    /* Swipe gesture support for work history */
    .work-history-track-wrapper {
        touch-action: pan-y;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Body styles moved to global section above */

/* Mobile-first approach */
@media (max-width: 768px) {

    /* Improved Navigation */
    .nav-links a {
        margin: 12px 0;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        width: 80%;
    }

    .nav-links a.active {
        border-bottom: none;
        background: rgba(0, 146, 204, 0.3);
    }

    /* Hero Section Fixes */
    .hero {
        padding: 40px 20px;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 30px;
        padding: 0;
    }

    .hero-text-section {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-name {
        text-align: center;
        font-size: 2.5em;
    }

    .hero-visual-section {
        width: 100%;
        justify-content: center;
    }

    .profile-picture-wrapper {
        width: 250px !important;
        height: 250px !important;
        min-width: 200px !important;
    }

    .hero-cta-container {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats-carousel {
        justify-content: center;
    }


    /* Job/Education Section Fixes */
    .job {
        padding: 25px;
    }

    .company-date {
        margin-left: 0;
        margin-top: 10px;
    }

    .certificate {
        width: 100%;
        max-height: 200px;
    }

    /* About Me */
    #about-me {
        width: auto;
        padding: 15px;
    }

    .icon {
        width: 100%;
        height: auto;
        margin: 0 0 15px 0;
    }

    .row {
        flex-direction: column;
    }

    /* Project Carousel Mobile - Simple Slider */
    .projects-carousel-wrapper {
        padding: 16px 12px 72px;
        min-height: auto;
    }

    .projects-carousel {
        padding: 0;
    }

    .projects-carousel-track {
        gap: 0;
    }

    .projects-carousel-track .project-container {
        padding: 0 6px;
    }

    .projects .project-container {
        max-width: 360px;
        margin: 0 auto;
        height: auto;
        min-height: 420px;
        padding-bottom: 8px;
    }

    .project-image {
        height: 200px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .projects-carousel-nav-btn {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 110px;
        transform: translateY(0);
    }

    .projects-carousel-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .projects-carousel-prev {
        left: 8%;
    }

    .projects-carousel-next {
        right: 8%;
    }

    .projects-carousel-indicators {
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 6px;
    }

    .projects .show-repo-button {
        width: 90%;
        max-width: 260px;
    }

    .card {
        height: auto;
        display: flex;
        flex-direction: column;
        min-height: 420px;
        overflow: visible !important;
    }

    /* On mobile, disable 3D flip transform but keep structure for desktop */
    /* Note: Project cards have their own specific rules with higher specificity below */
    .card:not(.flipped) {
        transform: none !important;
    }

    .card.flipped {
        /* Allow flip on mobile too, but ensure it works */
        /* Project cards override this with more specific selectors */
        transform: rotateY(180deg) !important;
    }

    .card:hover:not(.flipped) {
        transform: none !important;
    }

    /* Override base .card-back rule (line 3772-3786) for mobile project cards to prevent transform conflicts */
    /* This rule applies to ALL project card-backs on mobile, ensuring base rule never interferes */
    .projects-carousel-track .project-container .card .card-back {
        /* IMPORTANT: Start card-back at 0deg (not 180deg) to prevent reversed appearance when flipped */
        /* When card is at 0deg: card-back at 0deg = hidden (via opacity)
           When card is at 180deg: card-back at 0deg = visible and correct orientation */
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
        /* Override base opacity/visibility immediately */
        opacity: 0 !important;
        visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
    }

    /* On mobile, use proper 3D flip structure - both sides absolute positioned */
    .projects-carousel-track .project-container .card:not(.flipped) .card-front {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
        opacity: 1 !important;
        visibility: visible !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        transition: transform 0.6s ease 0s, opacity 0.6s ease 0s, visibility 0.6s ease 0s !important;
    }

    /* Ensure card height matches front content on mobile */
    .projects-carousel-track .project-container .card:not(.flipped) {
        overflow: visible !important;
        transform: none !important;
        -webkit-transform: none !important;
    }

    .projects-carousel-track .project-container .card:not(.flipped) .card-back {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        /* Keep card-back at 0deg when not flipped (matches global override above) */
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
        /* Override base .card-back opacity/visibility rules (line 3683-3684) immediately */
        opacity: 0 !important;
        visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        z-index: 1 !important;
        transition: opacity 0.6s ease 0s, visibility 0.6s ease 0s !important;
    }

    /* When flipped on mobile, maintain 3D structure */
    .projects-carousel-track .project-container .card.flipped {
        transform: rotateY(180deg) !important;
        -webkit-transform: rotateY(180deg) !important;
        overflow: visible !important;
    }

    .projects-carousel-track .project-container .card.flipped .card-front {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        backface-visibility: hidden !important;
        -webkit-backface-visibility: hidden !important;
        z-index: 1 !important;
        transition: transform 0.6s ease 0s, opacity 0.6s ease 0s, visibility 0.6s ease 0s !important;
    }

    .projects-carousel-track .project-container .card.flipped .card-back {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        /* CRITICAL FIX: Card is at 180deg, keep card-back at 0deg */
        /* Total: 180deg (card) + 0deg (back) = 180deg (shows backface, which is reversed) */
        /* Solution: Apply scaleX(-1) to the content wrapper to correct the reversal */
        transform: rotateY(0deg) !important;
        -webkit-transform: rotateY(0deg) !important;
        /* Override base .card-back opacity/visibility rules (line 3696-3698) immediately */
        opacity: 1 !important;
        visibility: visible !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        z-index: 3 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        /* CRITICAL: NO transition on transform - apply immediately to prevent reversed appearance during transition */
        /* Only transition opacity/visibility, not transform */
        transition: opacity 0.6s ease 0s, visibility 0.6s ease 0s !important;
        /* Ensure no transform inheritance or conflicts */
        transform-origin: center center !important;
        -webkit-transform-origin: center center !important;
        /* Force immediate application to prevent base rule interference */
        will-change: opacity, visibility !important;
    }

    /* Fix reversed content by flipping the content wrapper horizontally */
    .projects-carousel-track .project-container .card.flipped .card-back .card-items {
        transform: scaleX(-1) !important;
        -webkit-transform: scaleX(-1) !important;
        /* Smooth transition synchronized with flip animation (0.6s) */
        transition: transform 0.6s ease 0s !important;
        -webkit-transition: -webkit-transform 0.6s ease 0s !important;
    }

    /* Ensure card-items has no transform when not flipped */
    .projects-carousel-track .project-container .card:not(.flipped) .card-back .card-items {
        transform: scaleX(1) !important;
        -webkit-transform: scaleX(1) !important;
        transition: transform 0.6s ease 0s !important;
        -webkit-transition: -webkit-transform 0.6s ease 0s !important;
    }

    /* Ensure card-front also has synchronized transitions when not flipped */
    .projects-carousel-track .project-container .card:not(.flipped) .card-front {
        transition: transform 0.6s ease 0s, opacity 0.6s ease 0s, visibility 0.6s ease 0s !important;
    }

    .projects .project-container ul {
        flex-wrap: wrap;
    }

    .projects .project-container li {
        flex: 0 0 48%;
        margin-bottom: 8px;
    }

    /* Skills */
    .skill-row {
        justify-content: center;
    }

    .skill-container {
        width: 40%;
        margin: 10px;
    }

    /* Footer Improvements */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .column {
        margin: 15px 0;
        align-items: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero .profile-picture {
        margin-left: 40px;
    }

    /* Project Carousel Tablet */
    .projects-carousel-wrapper {
        padding: 32px 48px;
    }

    .projects-carousel {
        padding: 0 48px;
    }

    .project-image {
        height: 260px;
    }
}

@media (max-width: 600px) {
    .projects-carousel-indicator {
        width: 7px;
        height: 7px;
        border-width: 1.5px;
    }

    .projects-carousel-indicators {
        gap: 4px;
        margin-top: 4px;
    }
}

/* Carousel works on all screen sizes - no grid needed */

#about-me {
    width: auto;
    max-width: 1400px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.02) 0%, transparent 50%);
    padding: 50px 20px;
    border-radius: 15px;
    margin: 40px 20px;
    position: relative;
}

#about-me .container {
    position: relative;
    z-index: 1;
}

#about-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0, 146, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 15px;
    z-index: 0;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Improve button touch targets */
button,
.show-repo-button {
    min-height: 44px;
    min-width: 44px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 400;
    /* Monospace fonts often look better with lighter weight */
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    text-shadow: var(--glow-text);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

a:hover {
    color: #fff;
    text-shadow: var(--glow-text);
}

.nav-bar {
    background-color: #0f222b;
    color: #ffffffc7;
    padding: 0.75em 2em;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    box-sizing: border-box;
    gap: 20px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
}

.nav-links a {
    color: #ffffffc7;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
}

.nav-links a:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    background-color: rgba(0, 146, 204, 0.2);
    border-radius: 5px;
}

.nav-links a:hover {
    color: #0092CC;
    background-color: rgba(0, 146, 204, 0.1);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #0092CC;
    border-bottom: 2px solid #0092CC;
    background-color: rgba(0, 146, 204, 0.1);
}

/* Header CTA Buttons */
.nav-cv-button,
.nav-contact-button {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.95em;
    justify-content: center;
}

.nav-cv-button {
    background: linear-gradient(135deg, #0092CC 0%, #007bb5 100%);
    color: #ffffff;
    border: 1px solid rgba(0, 180, 230, 0.3);
    box-shadow: 0 2px 10px rgba(0, 146, 204, 0.3);
}

/* CV Icon - Font Awesome for mobile, custom for desktop */
.cv-icon-fa {
    display: none;
    /* Hidden on desktop, shown on mobile */
    font-size: 1.1em;
    margin-right: 0;
}

/* Custom CV Icon - Blue square with white document design */
.cv-icon-custom {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #0092CC 0%, #007bb5 100%);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
    overflow: visible;
}

/* Top horizontal bar above document (wider than text lines) */
.cv-icon-custom::before {
    content: '';
    position: absolute;
    top: 3.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 1.3px;
    background: white;
    border-radius: 0.65px;
    z-index: 1;
}

/* Bottom horizontal bar, document shape, fold, and text lines */
.cv-icon-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 1.3px;
    background: white;
    border-radius: 0.65px;
    z-index: 1;
    /* Create document shape, fold, and text lines using box-shadow */
    box-shadow:
        /* Main document rectangle body (centered vertically around the ::after element) */
        0 -5.5px 0 0 white,
        0 -5.5px 0 1px transparent,
        /* Document fold in top-right corner (diagonal/triangular) */
        -2px -7.2px 0 -0.5px white,
        -1.5px -6.7px 0 -0.3px white,
        /* Three horizontal text lines inside document (narrower than bars) */
        0 -6.5px 0 0 white,
        0 -5.5px 0 0 white,
        0 -4.5px 0 0 white,
        /* Bottom bar - positioned relative to center */
        0 5.2px 0 0 white;
}

.nav-cv-button:hover {
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.5);
}

.nav-contact-button {
    background: rgba(0, 146, 204, 0.15);
    color: #00b4e6;
    border: 2px solid #0092CC;
}

.nav-contact-button:hover {
    background: rgba(0, 146, 204, 0.25);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
}


/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    min-width: 44px;
    min-height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    -webkit-tap-highlight-color: rgba(0, 146, 204, 0.3);
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: #ffffffc7;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-menu:hover span {
    background-color: #0092CC;
}

.hamburger-menu:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-radius: 4px;
}

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

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

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

/* Mobile Navigation Backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Allow clicks to pass through when not active */
}

.nav-backdrop.active {
    pointer-events: auto;
    /* Only block clicks when menu is open */
}

.nav-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 768px) {
    .fixed-cta-buttons {
        display: none;
    }

    .mobile-cta-fab {
        display: inline-flex;
    }

    .nav-bar {
        padding: 0.75em 1em;
        padding: 0.5em 1em;
        justify-content: space-between;
        align-items: center;
        min-height: 56px;
        height: auto;
        flex-wrap: wrap;
    }

    /* Hide button text on mobile, show icons only */
    .nav-cv-button .btn-text,
    .nav-contact-button .btn-text {
        display: none;
    }

    /* Show Font Awesome icon on mobile, hide custom icon */
    .nav-cv-button .cv-icon-fa {
        display: inline-block;
    }

    .nav-cv-button .cv-icon-custom {
        display: none;
    }

    .nav-cv-button,
    .nav-contact-button {
        padding: 10px 12px;
        font-size: 1.1em;
        z-index: 1003;
        /* Ensure CV button is above backdrop */
        position: relative;
    }

    .hamburger-menu {
        display: flex;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-right: 10px;
        z-index: 1004;
        order: -1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: min(100vw, 20rem);
        max-width: 100vw;
        height: 100vh;
        background-color: #0f222b;
        flex-direction: column;
        gap: 0;
        padding: 0;
        padding-top: calc(env(safe-area-inset-top, 0px) + 56px);
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1002;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links a {
        margin: 0;
        padding: 14px 20px;
        min-height: 52px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 500;
        color: #ffffffc7;
        transition: all 0.2s ease;
        box-sizing: border-box;
        white-space: normal;
        line-height: 1.4;
        word-break: break-word;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        background-color: rgba(0, 146, 204, 0.15);
        color: #0092CC;
        padding-left: 24px;
    }

    .nav-links a.active {
        background-color: rgba(0, 146, 204, 0.2);
        color: #0092CC;
        border-left: 3px solid #0092CC;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .projects .project-container {
        width: 100%;
        /* Full width for small screens */
        height: auto;
        /* Adjust height dynamically */
    }
}

/***************************************************/
/* Hero Section - Redesigned */
/* Hero Section - Redesigned */
.hero {
    position: relative;
    /* Use min-height to allow scrolling on small screens/tall content */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    /* Reduced padding to bring buttons above fold */
    padding: 30px 20px 20px;
    /* Aggressively reduced from 80px */
    background: linear-gradient(135deg, #09151a 0%, #0a1a24 50%, #09151a 100%);
    overflow: visible;
    height: auto;
}

/* Animated Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.08), rgba(0, 180, 230, 0.03));
    animation: float 25s infinite ease-in-out;
    will-change: transform, opacity;
    transform: translateZ(0);
    /* GPU acceleration */
    backface-visibility: hidden;
    /* Performance optimization */
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 40%;
    right: 5%;
    animation-delay: 8s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.2;
    }

    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.35;
    }

    50% {
        transform: translate(-15px, 15px) rotate(180deg);
        opacity: 0.25;
    }

    75% {
        transform: translate(15px, 20px) rotate(270deg);
        opacity: 0.4;
    }
}

/* Hero Content Container */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 20px;
    justify-content: space-evenly;
}

.hero-text-section {
    flex: 1;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Reduced from 15px */
    /* Reduced from 20px */
    text-align: left;
    align-items: flex-start;
}

.hero-visual-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    position: relative;
    min-width: 300px;
}

.hero-image-container {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
}

.profile-picture-wrapper {
    width: 400px !important;
    height: 400px !important;
    min-width: 350px !important;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    z-index: 2;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 50px rgba(0, 146, 204, 0.3);
    overflow: visible !important;
    /* Allow banner to extend outside */
}

/* Profile banner removed - converted to orbiting item */

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Fix darkness - remove potential filters */
    filter: none !important;
    opacity: 1 !important;
}

/* Hero Name Section - Adjusted */
.hero-name {
    text-align: left;
    width: 100%;
}

/* Availability Banner */
.availability-banner {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 180, 230, 0.1) 100%);
    border: 2px solid rgba(0, 146, 204, 0.4);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.2);
    transition: all 0.3s ease;
    animation: pulseGlow 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 146, 204, 0.2);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 146, 204, 0.4);
    }
}

.availability-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 146, 204, 0.4);
    border-color: rgba(0, 146, 204, 0.6);
}

.availability-badge {
    background: linear-gradient(135deg, #0092CC 0%, #00b4e6 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 146, 204, 0.4);
}

.availability-text {
    color: #ffffffc7;
    font-size: 0.95em;
    font-weight: 500;
    flex: 1;
    min-width: 200px;
}

.availability-timeline {
    color: #0092CC;
    font-size: 0.9em;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .availability-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 15px;
    }

    .availability-badge,
    .availability-text,
    .availability-timeline {
        width: 100%;
        text-align: left;
    }
}

/* Typography */
.hero-name {
    font-size: 2.2em;
    /* Aggressively reduced */
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    white-space: nowrap;
    /* Prevent wrapping */
    opacity: 1;
    transform: none;
    animation: none;
}

@media (max-width: 768px) {
    .hero-name {
        white-space: normal;
        /* Allow wrapping on mobile */
        font-size: 2em;
        /* Slightly smaller for better fit */
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .hero-title {
        white-space: normal;
        text-align: center;
    }

    .hero-tagline {
        white-space: normal;
        text-align: center;
    }
}

.hero-title {
    font-size: 1.5em;
    /* Aggressively reduced */
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    white-space: nowrap;
    /* Prevent wrapping */
    transform: none;
    opacity: 1;
    animation: none;
}

.title-highlight {
    color: #0092CC;
    text-shadow: 0 0 20px rgba(0, 146, 204, 0.5);
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0092CC, transparent);
    border-radius: 2px;
}

.hero-tagline {
    font-size: 1.1em;
    /* Reduced to fit single line */
    font-weight: 500;
    color: #b0b0b0;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    /* Prevent wrapping for 'Enterprise' */
    opacity: 1;
    animation: none;
    transform: none;
}



.hero-description {
    font-size: 1.15em;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 0;
    max-width: 600px;
    opacity: 1;
    transform: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Tech Frame Buttons */
.btn-tech-frame {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0,
            100% calc(100% - 10px), calc(100% - 10px) 100%,
            0 100%, 0 10px);
    overflow: hidden;
}

.btn-tech-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-tech-frame:hover::before {
    transform: translateX(100%);
}

.btn-tech-frame.btn-primary {
    background: rgba(0, 146, 204, 0.1);
    border: 1px solid var(--color-secondary);
    color: var(--color-primary);
    box-shadow: inset 0 0 20px rgba(0, 146, 204, 0.1);
}

.btn-tech-frame.btn-primary:hover {
    background: rgba(0, 146, 204, 0.2);
    box-shadow: 0 0 30px rgba(0, 146, 204, 0.4), inset 0 0 20px rgba(0, 146, 204, 0.2);
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.8);
    transform: translateY(-2px);
}

.btn-tech-frame.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-muted);
}

.btn-tech-frame.btn-secondary:hover {
    border-color: var(--color-secondary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 146, 204, 0.2);
    transform: translateY(-2px);
}

.btn-tech-frame .btn-corner-tl,
.btn-tech-frame .btn-corner-br {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

.btn-tech-frame .btn-corner-tl {
    top: 0;
    left: 0;
}

.btn-tech-frame .btn-corner-br {
    bottom: 0;
    right: 0;
}

.btn-tech-frame:hover .btn-corner-tl,
.btn-tech-frame:hover .btn-corner-br {
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: -1;
}

.hero-cta-container {
    display: flex;
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 5;
    /* Single Visual Section Styles */
    padding: 20px 30px;
    background: rgba(4, 12, 16, 0.6);
    border: 1px solid rgba(0, 243, 255, 0.1);
    border-left: 2px solid var(--color-primary);
    /* Accent border */
    border-radius: 4px;
    /* Tech-like sharp corners with slight radius */
    backdrop-filter: blur(5px);
    width: fit-content;
    /* Force visibility */
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    visibility: visible !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero Stats Carousel */
/* Orbiting Stats Animation */
.orbit-container {
    position: absolute;
    width: 800px;
    /* Increased container size to fit larger radius */
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* Ensure on top of profile picture */
    pointer-events: none;
    animation: orbit 40s linear infinite;
    /* Slower orbit for better readability */
}

.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 160px;
    height: auto;
    /* Remove padding/bg/border from here - move to content wrapper */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Layout wrapper only */
    --orbit-radius: 330px;
}

.orbit-content {
    width: 100%;
    padding: 18px 15px;
    background: rgba(5, 13, 18, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    animation: counter-orbit 40s linear infinite;
}

/* Position items to orbit in a cross/square (0, 90, 180, 270 degrees) */
.orbit-item.item-1 {
    transform: translate(-50%, -50%) rotate(0deg) translate(var(--orbit-radius)) rotate(0deg);
}

.orbit-item.item-2 {
    transform: translate(-50%, -50%) rotate(90deg) translate(var(--orbit-radius)) rotate(-90deg);
}

.orbit-item.item-3 {
    transform: translate(-50%, -50%) rotate(180deg) translate(var(--orbit-radius)) rotate(-180deg);
}

.orbit-item.item-4 {
    transform: translate(-50%, -50%) rotate(270deg) translate(var(--orbit-radius)) rotate(-270deg);
}

.stat-number {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.stat-label {
    font-size: 0.85em;
    color: #ffffff;
    /* Brighter white for better readout */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

@keyframes orbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

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

@keyframes counter-orbit {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

/* Mobile responsiveness - Disable orbit on small screens */
@media (max-width: 1024px) {
    .orbit-container {
        position: relative;
        width: 100%;
        height: auto;
        transform: none;
        animation: none;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
        top: auto;
        left: auto;
    }

    .orbit-item {
        position: relative;
        top: auto;
        left: auto;
        transform: none !important;
        width: 120px;
        --orbit-radius: 0;
    }

    .orbit-content {
        animation: none;
        padding: 15px;
    }
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    opacity: 1;
    transform: none;
}

.stat-item {
    text-align: center;
    padding: 15px 20px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(0, 146, 204, 0.3);
    min-width: 120px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.stat-item.active {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(0, 146, 204, 0.2);
    border-color: #0092CC;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
}

.stat-number {
    font-size: 2em;
    font-weight: 700;
    color: #0092CC;
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85em;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Skill Badges */
.hero-skill-badges {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin: 25px auto;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 18px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.05) 0%, rgba(0, 180, 230, 0.03) 100%);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 146, 204, 0.1);
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-skill-badges::-webkit-scrollbar {
    display: none;
}

.skill-badge {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.25) 0%, rgba(0, 180, 230, 0.2) 50%, rgba(0, 146, 204, 0.25) 100%);
    border: 1.5px solid rgba(0, 146, 204, 0.5);
    border-radius: 24px;
    color: #00b4e6;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInBadge 0.6s ease forwards;
    opacity: 0;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 146, 204, 0.2),
        0 0 20px rgba(0, 146, 204, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.skill-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-badge:hover::before {
    left: 100%;
}

.skill-badge:nth-child(1) {
    animation-delay: 0.1s;
}

.skill-badge:nth-child(2) {
    animation-delay: 0.2s;
}

.skill-badge:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-badge:nth-child(4) {
    animation-delay: 0.4s;
}

.skill-badge:nth-child(5) {
    animation-delay: 0.5s;
}

.skill-badge:hover {
    transform: translateY(-4px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.4) 0%, rgba(0, 180, 230, 0.35) 50%, rgba(0, 146, 204, 0.4) 100%);
    border-color: #00b4e6;
    box-shadow: 0 8px 24px rgba(0, 146, 204, 0.5),
        0 0 30px rgba(0, 180, 230, 0.3),
        0 2px 0 rgba(255, 255, 255, 0.15) inset;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(30px);
    visibility: visible;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    min-height: 44px;
    min-width: 120px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0092CC 0%, #007bb5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.6);
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: #0092CC;
    border: 2px solid #0092CC;
}

.btn-secondary:hover {
    background: rgba(0, 146, 204, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.4);
    color: #00b4e6;
    border-color: #00b4e6;
}

.btn-secondary:active {
    transform: translateY(-1px) scale(0.98);
}

/* Fixed CTA Buttons */
.fixed-cta-buttons {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    padding-left: 80px;
    box-sizing: border-box;
}

.mobile-cta-fab {
    position: fixed;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 24px);
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 146, 204, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    pointer-events: auto;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Chatbot Clickable Links */
.chat-link {
    color: var(--color-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.chat-link:hover {
    color: #fff;
    text-shadow: 0 0 5px var(--color-primary);
}

.mobile-cta-fab i {
    font-size: 1.4rem;
}

.mobile-cta-fab:focus-visible {
    outline: var(--focus-outline-width) solid #ffffff;
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5), 0 10px 25px rgba(0, 146, 204, 0.4);
}

.mobile-cta-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 146, 204, 0.55);
}

.mobile-cta-fab:active {
    transform: translateY(0);
}

.fixed-cv-button,
.fixed-contact-button {
    pointer-events: auto;
    position: relative;
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg, rgba(15, 34, 43, 0.95) 0%, rgba(10, 26, 36, 0.95) 100%);
    border: 1px solid rgba(0, 146, 204, 0.3);
    box-shadow: 0 4px 20px rgba(0, 146, 204, 0.3),
        0 0 30px rgba(0, 146, 204, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInDown 0.6s ease-out forwards;
    opacity: 0;
}

.fixed-cv-button {
    animation-delay: 0.2s;
}

.fixed-contact-button {
    animation-delay: 0.3s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.fixed-cv-button:hover,
.fixed-contact-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 30px rgba(0, 146, 204, 0.5),
        0 0 40px rgba(0, 180, 230, 0.3);
    border-color: rgba(0, 180, 230, 0.6);
}

.fixed-cv-button.btn-primary {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.95) 0%, rgba(0, 123, 181, 0.95) 100%);
    color: white;
}

.fixed-cv-button.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0, 180, 230, 0.95) 0%, rgba(0, 146, 204, 0.95) 100%);
}

.fixed-contact-button.btn-secondary {
    background: linear-gradient(135deg, rgba(15, 34, 43, 0.95) 0%, rgba(10, 26, 36, 0.95) 100%);
    color: #0092CC;
    border-color: rgba(0, 146, 204, 0.5);
}

.fixed-contact-button.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 180, 230, 0.1) 100%);
    color: #00b4e6;
    border-color: #00b4e6;
}

/* Profile Picture */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.profile-picture-wrapper {
    position: relative;
    opacity: 0;
    transform: scale(0.8);
}

.profile-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 146, 204, 0.25) 0%, transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
    z-index: -1;
    will-change: transform, opacity;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: 0.6;
    }
}

.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0092CC;
    box-shadow: 0 0 30px rgba(0, 146, 204, 0.5), 0 0 60px rgba(0, 146, 204, 0.3);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 146, 204, 0.7), 0 0 80px rgba(0, 146, 204, 0.4);
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

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

    .animate-fade-in-up,
    .animate-scale-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .floating-shapes .shape {
        animation: none;
    }

    .profile-glow {
        animation: none;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .fixed-cta-buttons {
        padding: 12px 15px;
        padding-left: 70px;
    }

    .fixed-cv-button,
    .fixed-contact-button {
        font-size: 0.95em;
        padding: 12px 24px;
    }

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

    .hero-name-section {
        flex-direction: column;
        gap: 20px;
    }

    .hero-name {
        font-size: 2.5em;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .hero-tagline {
        font-size: 1.3em;
    }

    .hero-skill-badges {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 12px 18px;
        gap: 10px;
        margin: 20px auto;
        width: fit-content;
        max-width: 100%;
    }

    .skill-badge {
        flex-shrink: 0;
        padding: 10px 18px;
        font-size: 0.85em;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 15px 30px;
        min-height: calc(100vh - 56px);
        display: flex;
        align-items: flex-start;
        padding-top: 80px;
    }

    .hero-name-section {
        flex-direction: column;
        gap: 15px;
    }

    .hero-name {
        font-size: 2em;
        line-height: 1.3;
    }

    .hero-title {
        font-size: 1.5em;
        line-height: 1.3;
    }

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

    .hero-description {
        font-size: 1em;
        line-height: 1.6;
    }

    .hero-skill-badges {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
        gap: 8px;
        margin: 20px auto;
        background: linear-gradient(135deg, rgba(0, 146, 204, 0.08) 0%, rgba(0, 180, 230, 0.05) 100%);
        width: fit-content;
        max-width: 100%;
    }

    .skill-badge {
        font-size: 0.8em;
        padding: 10px 16px;
        white-space: nowrap;
        box-shadow: 0 2px 6px rgba(0, 146, 204, 0.15),
            0 0 15px rgba(0, 146, 204, 0.08) inset;
    }

    .skill-badge:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 6px 18px rgba(0, 146, 204, 0.4),
            0 0 25px rgba(0, 180, 230, 0.25);
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-glow {
        width: 180px;
        height: 180px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9em;
        min-height: 44px;
        width: 100%;
        max-width: 280px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/***************************************************/
/* Quick Facts for HR Section */
.quick-facts-hr {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 60px 20px;
    margin: 40px 0;
    position: relative;
}

.quick-facts-hr-card {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 146, 204, 0.08) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 146, 204, 0.2);
}

.quick-facts-hr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quick-fact-hr-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 10px;
    border-left: 4px solid #0092CC;
    transition: all 0.3s ease;
}

.quick-fact-hr-item:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.2);
}

.quick-fact-hr-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.quick-fact-hr-content {
    flex: 1;
}

.quick-fact-hr-content strong {
    display: block;
    color: #0092CC;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: 600;
}

.quick-fact-hr-content p {
    color: #ffffffc7;
    margin: 0;
    line-height: 1.5;
    font-size: 0.95em;
}

@media (max-width: 768px) {
    .quick-facts-hr-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .quick-facts-hr-card {
        padding: 30px 20px;
    }
}

/***************************************************/
/* Executive Summary Section */
.executive-summary {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 60px 20px;
    margin: 0;
    position: relative;
}

.executive-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 146, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.executive-summary .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.executive-summary-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 146, 204, 0.08) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 146, 204, 0.2);
    transition: all 0.3s ease;
}

.executive-summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 146, 204, 0.3);
    border-color: rgba(0, 146, 204, 0.5);
}

.executive-summary-header {
    text-align: center;
    margin-bottom: 40px;
}

.executive-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    align-items: stretch;
}

.executive-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 10px;
    border-left: 4px solid #0092CC;
    transition: all 0.3s ease;
}

.executive-summary-item:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(5px);
}

.executive-icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.executive-content h3 {
    color: #0092CC;
    font-size: 1.3em;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.executive-content p {
    color: #ffffffc7;
    margin: 0;
    line-height: 1.6;
    font-size: 1em;
}

.executive-content p strong {
    color: #0092CC;
    font-weight: 700;
}

@media (max-width: 768px) {
    .executive-summary {
        padding: 40px 15px;
    }

    .executive-summary-card {
        padding: 30px 20px;
    }

    .executive-summary-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .executive-summary-item {
        padding: 20px;
    }
}

/***************************************************/
/* Metrics Dashboard Section */
.metrics-dashboard {
    background: linear-gradient(135deg, #0a1a24 0%, #09151a 50%, #0a1a24 100%);
    padding: 80px 20px;
    margin: 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fixed grid layout - Updated for even distribution */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.metric-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 1.5px solid rgba(0, 146, 204, 0.4);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 146, 204, 0.15);
    box-sizing: border-box;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 146, 204, 0.1), transparent);
    transition: left 0.5s ease;
}

.metric-card:hover::before {
    left: 100%;
}

.metric-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.35),
        0 0 15px rgba(0, 180, 230, 0.25);
    border-color: #00b4e6;
    border-width: 1.5px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.metric-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 146, 204, 0.3));
    transition: transform 0.3s ease;
}

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

.metric-value-wrapper {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin: 8px 0;
}

.metric-value {
    font-size: 2.5em;
    font-weight: 700;
    color: #0092CC;
    line-height: 1;
    display: inline-block;
}

.metric-unit {
    font-size: 1.5em;
    color: #0092CC;
    font-weight: 600;
    display: inline-block;
}

.metric-label {
    color: #ffffff;
    font-size: 1em;
    font-weight: 600;
    margin: 12px 0 6px 0;
}

.metric-description {
    color: #b0b0b0;
    font-size: 0.85em;
    line-height: 1.4;
    margin: 4px 0 0 0;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .metric-card {
        padding: 22px 18px;
    }
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .metric-card {
        padding: 22px 18px;
        box-shadow: 0 2px 8px rgba(0, 146, 204, 0.12);
    }

    .metric-value {
        font-size: 2.5em;
        margin: 10px 0;
    }

    .metric-icon {
        margin-bottom: 15px;
        font-size: 2.5em;
    }

    .metric-label {
        margin: 15px 0 8px 0;
    }
}

/***************************************************/
/* Why Hire Me Section */
.why-hire-me {
    background: linear-gradient(135deg, #09151a 0%, #0a1a24 50%, #09151a 100%);
    padding: 80px 20px;
    margin: 0;
    position: relative;
}

.why-hire-me::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 146, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.why-hire-me .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-hire-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.why-hire-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #0092CC;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.why-hire-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 146, 204, 0.4);
    border-color: #00b4e6;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.why-hire-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 146, 204, 0.3));
}

.why-hire-card h3 {
    color: #0092CC;
    font-size: 1.6em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.why-hire-card p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05em;
    flex: 1;
}

.why-hire-card p strong {
    color: #0092CC;
    font-weight: 700;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .why-hire-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-hire-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .why-hire-card {
        padding: 25px 20px;
        min-height: auto;
    }

    .why-hire-icon {
        font-size: 2.5em;
    }

    .why-hire-card h3 {
        font-size: 1.4em;
    }
}

/***************************************************/
/* Leadership & Collaboration Section */
.leadership-section {
    background: linear-gradient(135deg, #0a1a24 0%, #09151a 50%, #0a1a24 100%);
    padding: 80px 20px;
    margin: 0;
    position: relative;
}

.leadership-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 146, 204, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 146, 204, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.leadership-section .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.leadership-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #0092CC;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 146, 204, 0.4);
    border-color: #00b4e6;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.leadership-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 146, 204, 0.3));
}

.leadership-card h3 {
    color: #0092CC;
    font-size: 1.6em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.leadership-card p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05em;
    flex: 1;
}

.leadership-card p strong {
    color: #0092CC;
    font-weight: 700;
}

@media (max-width: 768px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .leadership-card {
        padding: 25px 20px;
        min-height: auto;
    }

    .leadership-icon {
        font-size: 2.5em;
    }

    .leadership-card h3 {
        font-size: 1.4em;
    }
}

/***************************************************/
/* Key Highlights Section */
.key-highlights {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 80px 20px;
    margin: 40px 0;
    position: relative;
}

.key-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 146, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 146, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.key-highlights .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.highlight-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #0092CC;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 146, 204, 0.4);
    border-color: #00b4e6;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.highlight-icon {
    transition: transform 0.3s ease;
}

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

.highlight-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.3);
    border-color: #00b4e6;
}

.highlight-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.highlight-card h3 {
    color: #0092CC;
    font-size: 2.2em;
    margin: 15px 0;
    font-weight: 600;
}

.highlight-card p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 15px 0;
    font-size: 1.2em;
}

.highlight-card p strong {
    color: #0092CC;
    font-size: 1.3em;
    font-weight: 700;
}

@media (max-width: 768px) {
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .highlight-card {
        padding: 20px;
    }
}

.projects .project-container li {
    margin-bottom: 10px;
}






/***************************************************/
/* Education Section */

/* Academic Excellence Banner */
.academic-excellence-banner {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 146, 204, 0.08) 100%);
    border: 2px solid rgba(0, 146, 204, 0.4);
    border-radius: 15px;
    padding: 30px;
    margin: 30px auto 40px;
    max-width: 1000px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.2);
    flex-wrap: wrap;
}

.gpa-display {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.gpa-label {
    color: #b0b0b0;
    font-size: 0.9em;
    margin-bottom: 8px;
    font-weight: 500;
}

.gpa-value {
    color: #0092CC;
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1;
    margin: 10px 0;
    text-shadow: 0 0 20px rgba(0, 146, 204, 0.5);
}

.gpa-denominator {
    font-size: 0.5em;
    color: #ffffffc7;
    font-weight: 400;
}

.gpa-percentage {
    color: #00b4e6;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 5px;
}

.academic-achievements {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(0, 146, 204, 0.08);
    border-radius: 8px;
    border-left: 3px solid #0092CC;
    color: #ffffffc7;
    font-size: 1em;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    background: rgba(0, 146, 204, 0.15);
    transform: translateX(5px);
}

.achievement-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.gpa-badge-prominent {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.2) 0%, rgba(0, 146, 204, 0.1) 100%);
    border: 2px solid rgba(0, 146, 204, 0.5);
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.3);
}

.gpa-badge-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gpa-badge-label {
    color: #b0b0b0;
    font-size: 0.75em;
    font-weight: 500;
}

.gpa-badge-value {
    color: #0092CC;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1;
}

.gpa-badge-percentage {
    color: #00b4e6;
    font-size: 0.75em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .academic-excellence-banner {
        flex-direction: column;
        padding: 25px 20px;
        gap: 25px;
    }

    .gpa-display {
        width: 100%;
    }

    .gpa-value {
        font-size: 2.5em;
    }

    .academic-achievements {
        width: 100%;
    }
}

/* Certifications Showcase */
.certifications-showcase {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 60px 30px;
    margin: 40px 20px;
    border-radius: 10px;
    position: relative;
    /* Start visible - JavaScript will handle animation */
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Only apply initial hidden state when JavaScript has loaded and set up animations */
.certifications-showcase.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.certifications-showcase.fade-in,
.certifications-showcase.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-card {
    position: relative;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
}

.certificate-card-front,
.certificate-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(0, 146, 204, 0.05);
    border: 2px solid rgba(0, 146, 204, 0.3);
}

.certificate-card-front {
    transform: rotateY(0deg);
}

.certificate-card-back {
    transform: rotateY(180deg);
    background: rgba(0, 146, 204, 0.1);
}

.certificate-card:hover .certificate-card-front {
    transform: rotateY(-180deg);
}

.certificate-card:hover .certificate-card-back {
    transform: rotateY(0deg);
}

.certificate-card:hover {
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.4);
}

.certificate-card:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3), 0 8px 25px rgba(0, 146, 204, 0.4);
}

.certificate-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-logo {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.certificate-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.certificate-card-front h3 {
    color: #0092CC;
    font-size: 1.3em;
    margin: 0 0 10px 0;
    text-align: center;
}

.cert-issuer {
    color: #b0b0b0;
    font-size: 0.9em;
    margin: 0 0 15px 0;
    text-align: center;
}

.cert-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 146, 204, 0.2);
    color: #0092CC;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    border: 1px solid rgba(0, 146, 204, 0.4);
}

.cert-details {
    text-align: center;
    width: 100%;
}

.cert-details h4 {
    color: #0092CC;
    font-size: 1.2em;
    margin: 0 0 15px 0;
}

.cert-details p {
    color: #ffffffc7;
    line-height: 1.6;
    margin: 0 0 20px 0;
    font-size: 0.95em;
}

.cert-view-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0092CC 0%, #007bb5 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cert-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.4);
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
}

.cert-period {
    display: block;
    color: #b0b0b0;
    font-size: 0.85em;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .certificate-card {
        height: 280px;
    }
}

.education {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 0;
    padding-left: 90px;
    /* Account for fixed navigation sidebar (20px left + 48px width + 22px margin) */
    margin: 0;
    border-radius: 0;
    animation: fadeIn 0.5s ease-out;
    position: relative;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 20%, rgba(0, 146, 204, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 10px;
}

.education .container {
    position: relative;
    z-index: 1;
    padding: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    .education {
        padding: 40px 20px;
        padding-left: 20px;
        margin: 0;
    }

    .education .container {
        padding: 0;
    }

    .academic-excellence-banner {
        margin: 25px 0 35px;
        padding: 25px 20px;
    }

    .certifications-showcase {
        margin: 30px 0;
        padding: 40px 20px;
    }
}

.education h2 {
    text-align: start;
    margin-bottom: 20px;
    color: #ffffffc7;
}

.job {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
    border: 1px solid #0092CC;
    padding: 50px;
    border-radius: 10px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Fallback: make jobs visible if they don't get fade-in class */
.job:not(.fade-in) {
    animation: fadeInFallback 1s ease-out forwards;
}

.job:hover {
    border-color: #00b4e6;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
    transform: translateY(-5px);
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ffffffc7;
}

.company-date {
    margin-left: 20px;
}

.company-date h4 {
    margin-top: 0;
    color: #ffffffc7;
}

.company-date h5 {
    margin-top: 0;
    color: #ffffffc7;
}


.job p {

    line-height: 1.5;
    color: #ffffffc7;
    font-weight: 100;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/***************************************************/
/* About Me Section */

#about-me {
    background-color: #09151a;
    padding: 20px;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Fallback: if JS doesn't load, sections are still visible */
#about-me:not(.fade-in) {
    opacity: 1;
    transform: translateY(0);
}

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

.col {
    margin: 20px;
}

.row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.icon {
    width: 250px;
    height: 180px;
    margin-right: 10px;
}

#about-me h2 {
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffffc7;
}

#about-me p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ffffffc7;
}

#about-me h3 {
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffffc7;
}

/* HR-Friendly Summary */
.hr-friendly-summary {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 146, 204, 0.15);
}

/* Carousel Container */
.hr-summary-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    margin: 30px auto 0;
    min-height: 200px;
}

.hr-summary-carousel-track {
    display: flex;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.hr-summary-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 12px;
    border-left: 4px solid #0092CC;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
}

.hr-summary-item:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.2);
}

/* Legacy support for non-carousel layout */
.hr-summary-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.hr-summary-icon {
    font-size: 2.5em;
    flex-shrink: 0;
    margin-top: 5px;
}

.hr-summary-text {
    flex: 1;
}

.hr-summary-text h4 {
    color: #0092CC;
    font-size: 1.3em;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.hr-summary-text p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 0;
    font-size: 1em;
}

@media (max-width: 768px) {
    .hr-friendly-summary {
        padding: 30px 20px;
    }

    .hr-summary-carousel {
        max-width: 100%;
        min-height: 180px;
    }

    .hr-summary-item {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .hr-summary-icon {
        font-size: 2em;
    }

    .hr-summary-text h4 {
        font-size: 1.2em;
    }

    .hr-summary-text p {
        font-size: 0.95em;
    }

    .hr-summary-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Quick Facts Card */
.quick-facts-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 146, 204, 0.15);
    transition: all 0.3s ease;
}

.quick-facts-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 146, 204, 0.25);
}

.quick-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-fact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.quick-fact-item:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(5px);
}

.quick-fact-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.quick-fact-content {
    flex: 1;
}

.quick-fact-content strong {
    display: block;
    color: #0092CC;
    font-size: 0.9em;
    margin-bottom: 5px;
    font-weight: 600;
}

.quick-fact-content p {
    color: #ffffffc7;
    margin: 0;
    font-size: 0.95em;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .quick-facts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quick-fact-item {
        padding: 12px;
    }
}

/***************************************************/
/* Experience Section */

.experience {
    background-color: #09151a;
    padding: 30px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fallback: show experience section if JS fails */
.experience:not(.fade-in) {
    animation: fadeInFallback 1s ease-out forwards;
}

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

.experience h2 {
    text-align: start;
    margin-bottom: 20px;
    color: #ffffffc7;
}

.job {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 20px;
    border: 1px solid #0092CC;
    padding: 50px;
    border-radius: 10px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #ffffffc7;
}

.company-date {
    margin-left: 20px;
}

.company-date h4 {
    margin-top: 0;
    color: #ffffffc7;
}

.company-date h5 {
    margin-top: 0;
    color: #f7f7f7c5;
}

.job p {
    line-height: 1.5;
    color: #ffffffc7;
}

.show-cert-btn {
    margin-top: 15px;
    padding: 12px 24px;
    background-color: #0092CC;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.show-cert-btn:hover {
    background-color: #007bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.4);
}

.show-cert-btn:focus-visible {
    outline: 2px solid #0092CC;
    outline-offset: 2px;
}

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

/* Style for the certificate container */
.certificate {
    width: 100%;
    /* Full width of the job section */
    max-width: 600px;
    max-height: 400px;
    /* Limit the height to a reasonable size */
    overflow: hidden;
    /* Hide overflow for large images */
    position: relative;
    /* Ensure proper containment */
    padding: 15px;
    /* Add some padding around the image */
    box-sizing: border-box;
    /* Ensure padding is included in width/height calculations */
    border: 2px solid #0092CC;
    /* Match the border color used in the job section */
    background: #09151a;
    /* Use the same background color as the portfolio */
    color: #ffffffc7;
    /* Optional: Adjust text color if necessary */
    display: none;
    /* Hide the certificate by default */
    margin-top: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certificate:not(.hidden) {
    display: block;
    animation: fadeIn 0.3s ease-in;
}


/* Style for the certificate image */
.certificate img {
    width: 100%;
    /* Full width of container */
    height: auto;
    /* Adjust height dynamically */
    max-height: 100%;
    /* Ensure image fits within the container */
    object-fit: contain;
    /* Preserve aspect ratio */
    transform-origin: center;
    /* Set the rotation pivot to the center */
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.certificate img:hover {
    transform: scale(1.05);
}

.company-date {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between logo and company name */
}

.company-logo {
    width: 40px;
    /* Adjust size based on the logo's dimensions */
    height: auto;
    object-fit: contain;
    /* Ensure the logo fits within its box without distortion */
}

h4 {
    margin: 0;
    /* No margin for job title */
    font-size: 18px;
    /* Adjust as needed */
    font-weight: bold;
}

h5 {
    margin: 0;
    /* Remove margin for company name */
    font-size: 16px;
    /* Adjust company name size */
    color: #555;
    /* Light color for the company name */
}

.job-header p {
    font-size: 14px;
    /* Adjust the date font size */
    color: #888;
    /* Lighter color for date */
    margin: 0;
    /* No margin around the date */
}


.job-header {
    display: flex;
    flex-direction: column;
    /* Stack the job title and date vertically */
    margin-bottom: 10px;
    /* Space between job title and company information */
}

h4 {
    font-size: 18px;
    /* Adjust job title size */
    margin: 0;
    /* Remove any default margin */
    font-weight: bold;
}

p {
    font-size: 14px;
    /* Adjust date font size */
    color: #888;
    /* Lighter color for date */
    margin: 0;
    /* Remove margin for dates */
}

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
    /* Space between logo and company name */
}










/***************************************************/
/* Projects Section - Unified Visual Container */
.projects {
    background: linear-gradient(180deg, rgba(9, 21, 26, 0.5), rgba(9, 21, 26, 0.8) 50%, rgba(9, 21, 26, 0.95) 100%);
    padding: 48px 20px 64px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 146, 204, 0.08), transparent 70%),
        radial-gradient(ellipse 2000px 600px at 50% 100%, rgba(0, 146, 204, 0.05), transparent 80%);
    pointer-events: none;
    z-index: 0;
}

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

/* Fallback: show projects section if JS fails */
.projects:not(.fade-in) {
    animation: fadeInFallback 1s ease-out 0.2s forwards;
}

.projects .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.projects .container>h2 {
    position: relative;
    z-index: 2;
}

.projects .container>p {
    position: relative;
    z-index: 2;
}

.projects .container>* {
    position: relative;
    z-index: 1;
}






.projects .project-container {
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    background-color: transparent;
    border-radius: 14px;
    text-align: left;
    animation: zoomIn 1.2s;
    display: flex;
    justify-content: center;
    flex: 0 0 100%;
    padding-bottom: 8px;
    perspective: 1000px;
    padding-left: 20px;
    padding-right: 20px;
}


margin: 0 auto;
padding: 0;
}

/* =========================================
   CINEMATIC SPLIT-LAYOUT CARD
   ========================================= */

.card.cinematic-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1400px;
    /* Wide cinematic look */
    height: 550px;
    /* Fixed height for consistency */
    background: linear-gradient(135deg, rgba(9, 21, 26, 0.98) 0%, rgba(10, 26, 34, 0.98) 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 146, 204, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.card.cinematic-card:hover {
    box-shadow: 0 15px 50px rgba(0, 146, 204, 0.15);
    border-color: rgba(0, 146, 204, 0.5);
}

/* --- Left Panel: Persistent Media (60%) --- */
.cinematic-media {
    flex: 1.2;
    /* Takes up more space */
    position: relative;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(0, 146, 204, 0.1);
}

.cinematic-media img.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover ensures it fills the space beautifully */
    transition: transform 0.8s ease;
}

/* Subtle zoom effect on card hover */
.card.cinematic-card:hover .cinematic-media img.project-image {
    transform: scale(1.03);
}

/* --- Right Panel: Interactive Content (40%) --- */
.cinematic-content-wrapper {
    flex: 0.8;
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Content Container Shared Styles */
.content-front,
.content-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Front State (Visible by default) */
.content-front {
    opacity: 1;
    transform: translateY(0);
    z-index: 2;
    pointer-events: auto;
}

.content-back {
    opacity: 0;
    transform: translateY(20px);
    z-index: 1;
    pointer-events: none;
    background: inherit;
    /* Matches parent background */
}

/* Active State (Triggered by .flipped class on parent) */
.card.cinematic-card.flipped .content-front {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

.card.cinematic-card.flipped .content-back {
    opacity: 1;
    transform: translateY(0);
    z-index: 3;
    pointer-events: auto;
}

/* Typography Overrides for Cinematic Layout */
.cinematic-content-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, #fff, #b0bec5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-grid {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .card.cinematic-card {
        flex-direction: column;
        height: auto;
        min-height: 600px;
    }

    .cinematic-media {
        flex: none;
        height: 250px;
        /* Fixed height for image on mobile */
        border-right: none;
        border-bottom: 1px solid rgba(0, 146, 204, 0.1);
    }

    .cinematic-content-wrapper {
        flex: auto;
        padding: 20px;
        min-height: 350px;
        /* Ensure space for content */
    }

    .content-front,
    .content-back {
        padding: 20px;
        position: relative;
        /* Stack normally on mobile? No, need absolute for overlay effect. */
        position: absolute;
    }
}

.projects-carousel-indicators {
    position: absolute;
    left: 50%;
    bottom: clamp(16px, 3vh, 32px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: calc(100% - 180px);
    padding: 0;
    z-index: 20;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 16px 14px 64px;
        min-height: auto;
    }

    .projects-carousel-nav-btn {
        width: 42px;
        height: 42px;
        top: auto;
        bottom: 110px;
        transform: translateY(0);
    }

    .projects-carousel-prev {
        left: 8%;
    }

    .projects-carousel-next {
        right: 8%;
    }

    .projects-carousel-indicators {
        width: calc(100% - 64px);
        bottom: 18px;
        gap: 6px;
        padding: 0 8px;
    }
}

.projects-carousel-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 146, 204, 0.2);
    border: 1px solid rgba(0, 146, 204, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.projects-carousel-indicator:hover {
    background: rgba(0, 146, 204, 0.5);
    transform: scale(1.2);
}

.projects-carousel-indicator.active {
    background: #0092CC;
    border-color: #00b4e6;
    transform: scale(1.15);
    box-shadow: 0 0 6px rgba(0, 146, 204, 0.35);
}

.projects .project-row.reordering {
    will-change: contents;
}


.project-image {
    width: 100%;
    height: clamp(240px, 40vh, 360px);
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: clamp(12px, 2vw, 20px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.project-media video,
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects .project-container h3 {
    margin-top: 0;
    text-align: center;
    color: #0092CC;
}

.project-footer-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding-top: clamp(12px, 2vw, 20px);
}

#projects h2 {
    font-size: clamp(2rem, 3vw, 2.6rem) !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
}

#projects h2::after {
    content: '';
    width: 110px;
    height: 4px;
    background: linear-gradient(90deg, rgba(0, 146, 204, 0), rgba(0, 146, 204, 0.8), rgba(0, 146, 204, 0));
    display: block;
    margin: 14px auto 0;
    border-radius: 999px;
}

#projects .container>p {
    font-size: 1.1rem !important;
    max-width: 840px;
    margin: 0 auto 18px;
    color: #e0f2ff !important;
    text-align: center;
}

/* Project Category Badges */
.project-category-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.category-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.category-badge.production {
    background: rgba(0, 200, 83, 0.2);
    color: #4caf50;
    border: 1px solid rgba(0, 200, 83, 0.4);
}

.category-badge.research {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
    border: 1px solid rgba(156, 39, 176, 0.4);
}

.category-badge.client {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.4);
}

.category-badge.personal {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.4);
}

/* Project Framework (Challenge-Solution-Impact) */
/* Project Framework (Challenge-Solution-Impact) */
.project-framework {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    overflow-y: auto;
    max-height: 100%;
    padding: 10px;
    width: 100%;
    flex: 1;
}

@media (max-width: 1024px) {
    .project-framework {
        display: flex;
        /* Fallback / Override for mobile to stack */
        flex-direction: column;
        gap: 14px;
    }
}

.framework-item {
    padding: 20px 22px;
    background: radial-gradient(circle at top, rgba(0, 146, 204, 0.22), rgba(0, 146, 204, 0.08));
    border-radius: 16px;
    font-size: 0.95em;
    line-height: 1.65;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 146, 204, 0.15);
    border: 1px solid rgba(0, 146, 204, 0.25);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.framework-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 146, 204, 0.3);
}

.framework-item strong {
    color: #00c6ff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 1.05em;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.framework-item strong::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.card-back-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    width: 100%;
}

@media (max-width: 768px) {
    .project-framework {
        gap: 14px;
    }

    .card-back-footer {
        justify-content: center;
    }
}

.project-metric {
    text-align: center;
    color: #0092CC;
    font-size: 0.9em;
    font-weight: 500;
    margin: 10px 5px;
    padding: 5px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 5px;
}

.projects .project-container span {
    color: #ffffffc7;
    ;
}

.projects .project-container p {
    margin-right: 5px;
    margin-left: 5px;
    padding-left: 10px;
    padding-right: 10px;
    flex: 1;
    text-align: center;
    color: #ffffffc7;

}

.projects .project-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: 100%;
    text-align: left;
    gap: 8px;
}

.projects .project-container li {
    margin-bottom: 10px;
    margin-right: 5px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.projects .project-container li img {
    flex-shrink: 0;
    vertical-align: middle;
}

.projects .project-container li .span {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.projects .show-repo-button {
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #0092CC 0%, #00b4e6 100%);
    padding: 10px 22px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    width: auto;
    min-width: 170px;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 146, 204, 0.3);
    align-self: center;
    display: inline-flex;
    justify-content: center;
}

.projects .show-repo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 146, 204, 0.45);
    background: linear-gradient(135deg, #00b4e6 0%, #00d4ff 100%);
}

.projects .show-repo-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.projects .show-repo-button a,
.projects .show-repo-button span {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    width: auto;
    text-align: center;
}

.projects .show-repo-button:disabled,
.projects .show-repo-button[disabled] {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    box-shadow: none;
    cursor: not-allowed;
}

.projects .show-repo-button:disabled a,
.projects .show-repo-button[disabled] a,
.projects .show-repo-button:disabled span,
.projects .show-repo-button[disabled] span {
    color: #b0b0b0;
}




/***************************************************/
/* Technology Stack Summary Section */
.technology-stack {
    background: linear-gradient(135deg, #09151a 0%, #0a1a22 50%, #09151a 100%);
    padding: 60px 30px;
    margin: 40px 20px;
    border-radius: 10px;
    position: relative;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, auto));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.tech-stack-category {
    background: rgba(0, 146, 204, 0.05);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    min-width: 200px;
}

.tech-stack-category:hover {
    background: rgba(0, 146, 204, 0.1);
    border-color: #0092CC;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.2);
}

.tech-category-title {
    color: #0092CC;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 146, 204, 0.3);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(0, 146, 204, 0.15);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 20px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(0, 146, 204, 0.2);
}

.tech-tag:hover {
    background: rgba(0, 146, 204, 0.25);
    border-color: #0092CC;
    transform: translateY(-2px);
    color: #0092CC;
}

/* Domain Expertise Section */
.domain-expertise {
    background: linear-gradient(135deg, #0a1a24 0%, #09151a 50%, #0a1a24 100%);
    padding: 80px 20px;
    margin: 40px 0;
    position: relative;
}

.domain-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    align-items: stretch;
}

.domain-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 1.5px solid rgba(0, 146, 204, 0.4);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 3px solid #0092CC;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    margin: 0;
}

.domain-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 146, 204, 0.4);
    border-color: #00b4e6;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.domain-icon {
    font-size: 3.5em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 146, 204, 0.3));
    transition: transform 0.3s ease;
}

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

.domain-card h3 {
    color: #0092CC;
    font-size: 1.6em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.domain-card p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 0;
    font-size: 1.05em;
}

.domain-value-proposition {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 146, 204, 0.3);
}

/* Professional Attributes Section */
.professional-attributes {
    background: linear-gradient(135deg, #09151a 0%, #0a1a24 50%, #09151a 100%);
    padding: 80px 20px;
    margin: 40px 0;
    position: relative;
}

.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.attribute-card {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 146, 204, 0.06) 100%);
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-radius: 15px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.3s ease;
    border-left: 4px solid #0092CC;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.attribute-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 146, 204, 0.4);
    border-color: #00b4e6;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.18) 0%, rgba(0, 146, 204, 0.1) 100%);
}

.attribute-icon {
    font-size: 3em;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 146, 204, 0.3));
}

.attribute-card h3 {
    color: #0092CC;
    font-size: 1.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.attribute-card p {
    color: #ffffffc7;
    line-height: 1.8;
    margin: 0 0 20px 0;
    font-size: 1.05em;
    flex: 1;
}

.attribute-evidence {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 146, 204, 0.2);
    font-size: 0.9em;
    color: #b0b0b0;
}

.attribute-evidence strong {
    color: #0092CC;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .tech-stack-grid,
    .domain-expertise-grid,
    .attributes-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .domain-card,
    .attribute-card {
        padding: 25px 20px;
        min-height: auto;
    }
}

/* Skills Section */
.skills {
    background-color: #09151a;
    padding: 30px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fallback: show skills section if JS fails */
.skills:not(.fade-in) {
    animation: fadeInFallback 1s ease-out 0.4s forwards;
}

.skills .container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category-title {
    color: #0092CC;
    font-size: 1.5em;
    font-weight: 600;
    margin: 40px 0 20px 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 146, 204, 0.3);
}

.skill-proficiency {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(0, 146, 204, 0.2);
    color: #0092CC;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 5px;
}

.skill-years {
    display: inline-block;
    color: #b0b0b0;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 5px;
}

.skill-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.skill-container {
    display: flex;
    align-items: center;
    margin: 20px;
    animation: zoomIn 2s;
    transition: transform 0.3s ease;
    /* added animation */
}

.skill-container[data-skill-filter] {
    transition: all 0.3s ease;
}

.skill-container[data-skill-filter]:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.3);
}

.skill-container[data-skill-filter]:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3), 0 6px 20px rgba(0, 146, 204, 0.3);
    transform: translateY(-5px);
    border-color: #00b4e6;
}

.skill-container:hover {
    transform: scale(1.05);
}

.skill-container {
    position: relative;
}

/* Skill Tooltips */
.skill-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(9, 21, 26, 0.98);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(0, 146, 204, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(9, 21, 26, 0.98);
}

.skill-tooltip.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.skill-tooltip.always-visible {
    opacity: 1;
    position: static;
    transform: none;
    display: block;
    margin: 10px 0 0;
    text-align: center;
    width: 100%;
}

.skill-tooltip.always-visible::after {
    display: none;
}

@media (max-width: 600px) {
    .skill-tooltip {
        width: 100%;
    }
}

.skill-icon {
    margin-right: 10px;
}

.skill-image {
    width: 40px;
    height: 40px;
}

.skill-name {
    margin: 0;

}

.skill-name .h3 {
    color: #ffffffc7;
}

.project-count {
    color: #0092CC;
    font-size: 0.75em;
    font-weight: 400;
    margin-left: 5px;
}

@media (max-width: 600px) {
    .skill-row {
        flex-direction: column;
        align-items: stretch;
    }

    .skill-container {
        width: 100%;
        margin: 12px 0;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .skill-icon {
        margin-right: 12px;
    }

    .skill-name .h3 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .project-count {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }
}

/***************************************************/

/* Volunteering Section */
.volunteering {
    background-color: #09151a;
    padding: 50px 0;
}

.volunteering .container {
    max-width: 1200px;
    margin: 0 auto;

}

.volunteering .volunteering-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.volunteering .volunteering-container {
    justify-content: space-between;
    margin: 20px;
    width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border: 1px solid #ffffffc7;
    border-color: #0092CC;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 2s;
    /* added animation */
}

.volunteering .volunteering-container img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

.volunteering .volunteering-container h5 {
    margin-top: 0;
    text-align: center;
    color: #ffffffc7;
    margin-bottom: 20px;




}

.volunteering .volunteering-container p {
    text-align: center;
    color: #0092CC;
    ;
    margin-bottom: 20px;

}

.volunteering .volunteering-container span {
    margin-top: 0;
    color: #ffffffc7;
    padding-bottom: 40px;
}

/***************************************************/





/***************************************************/
/* Contact/Footer Section - Redesigned */
.footer {
    background-color: #09151a;
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 146, 204, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 146, 204, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Section Layout */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 200px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Contact Form Container */
.contact-form-container {
    display: flex;
    flex-direction: column;
}

.contact-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 1em;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #0092CC;
    box-shadow: 0 0 0 3px rgba(0, 146, 204, 0.1);
    transform: translateY(-2px);
}

.form-input:focus-visible {
    outline: 2px solid #0092CC;
    outline-offset: 2px;
}

.form-input:invalid:not(:placeholder-shown),
.form-input.error {
    border-color: #ff4444;
    background-color: rgba(255, 68, 68, 0.05);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Poppins', sans-serif;
}

.error-message {
    color: #ff4444;
    font-size: 0.875em;
    margin-top: 4px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Submit Button */
.btn-submit {
    padding: 16px 32px;
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0092CC 0%, #007bb5 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    align-self: flex-start;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.5);
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
}

.btn-submit:focus-visible {
    outline: 2px solid #0092CC;
    outline-offset: 2px;
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
}

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

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.btn-submit.loading .btn-text {
    display: none;
}

.btn-submit.loading .btn-loading {
    display: inline;
}

/* Form Message (Success/Error) */
.form-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-height: 20px;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #4caf50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #f44336;
}

/* Contact Preferences Section */
.contact-preferences-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.1) 0%, rgba(0, 146, 204, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(0, 146, 204, 0.3);
    border-left: 4px solid #0092CC;
}

.preference-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.preference-item:last-child {
    margin-bottom: 0;
}

.preference-item:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(5px);
}

.preference-icon {
    font-size: 1.8em;
    flex-shrink: 0;
    margin-top: 2px;
}

.preference-content {
    flex: 1;
    color: #ffffffc7;
    line-height: 1.6;
}

.preference-content strong {
    display: block;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .contact-preferences-section {
        padding: 20px 15px;
    }

    .preference-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .preference-icon {
        font-size: 1.5em;
    }
}

/* Quick Contact Options */
.quick-contact-options {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 146, 204, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 146, 204, 0.2);
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.copy-email-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.2) 0%, rgba(0, 146, 204, 0.1) 100%);
    border: 2px solid rgba(0, 146, 204, 0.4);
    border-radius: 8px;
    color: #0092CC;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-email-btn:hover {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.3) 0%, rgba(0, 146, 204, 0.2) 100%);
    border-color: #0092CC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.3);
}

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

.copy-feedback {
    color: #00b4e6;
    font-size: 0.9em;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateX(0);
}

.copy-feedback.error {
    color: #ff4444;
}

.response-time-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 0.95em;
}

.response-icon {
    font-size: 1.2em;
}

.response-time-info strong {
    color: #0092CC;
}

/* Fade-in Animations */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-in-element {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Availability Container */
.availability-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 50px;
    width: 100%;
    position: relative;
}

.availability-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.globe-wrapper {
    display: none;
    /* Hidden - globe not rendering */
}

.globe-canvas {
    width: 100%;
    max-width: 450px;
    min-width: 350px;
    height: auto;
    max-height: 450px;
    aspect-ratio: 1 / 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: grab;
    contain: layout paint size;
    display: block;
    visibility: visible;
    margin: 0 auto;
}

.globe-canvas:active {
    cursor: grabbing;
}

.availability-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.availability-text {
    font-size: 1.1em;
    line-height: 1.8;
    color: #b0b0b0;
    margin: 0 0 10px 0;
    max-width: 100%;
}

.availability-text .highlight {
    color: #0092CC;
    font-weight: 500;
}

/* Social Links Container */
.social-links-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    margin: 0;
    padding: 0;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: #b0b0b0;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: fit-content;
    position: relative;
}

.social-link::after {
    content: attr(title);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 146, 204, 0.95);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.3);
}

.social-link::before {
    content: '';
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 146, 204, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.social-link:hover::after,
.social-link:focus::after {
    opacity: 1;
    visibility: visible;
}

.social-link:hover::before,
.social-link:focus::before {
    opacity: 1;
    visibility: visible;
}

.social-link:hover {
    color: #0092CC;
    background-color: rgba(0, 146, 204, 0.1);
    transform: translateY(-3px);
}

.social-link:focus-visible {
    outline: 2px solid #0092CC;
    outline-offset: 2px;
    background-color: rgba(0, 146, 204, 0.1);
}

.social-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.15);
}

/* Schedule Meeting CTA Button */
.schedule-meeting-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0092CC 0%, #00b4e6 100%);
    border: 2px solid #0092CC;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 146, 204, 0.3);
    cursor: pointer;
}

.schedule-meeting-cta:hover {
    background: linear-gradient(135deg, #00b4e6 0%, #0092CC 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.5);
    border-color: #00b4e6;
}

.schedule-meeting-cta:active {
    transform: translateY(0);
}

.schedule-meeting-cta:focus-visible {
    outline: 2px solid #00b4e6;
    outline-offset: 3px;
}

/* Contact Tags */
.contact-tag {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 146, 204, 0.1);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 20px;
    color: #0092CC;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-tag:hover {
    background: rgba(0, 146, 204, 0.2);
    border-color: rgba(0, 146, 204, 0.5);
    transform: translateY(-2px);
}

/* Copyright Section */
.copyright {
    margin-top: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright-text {
    font-size: 1em;
    color: #b0b0b0;
    margin: 0 0 10px 0;
}

.copyright-year {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .contact-section {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-title,
    .availability-title {
        font-size: 2em;
    }

    .availability-container {
        flex-direction: column;
        order: -1;
        gap: 40px;
    }

    .globe-wrapper {
        width: 100%;
        min-height: 250px;
        max-height: 400px;
        padding: 25px;
    }

    .globe-canvas {
        max-width: 100%;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 15px 30px;
    }

    .contact-title,
    .availability-title {
        font-size: 1.8em;
    }

    .availability-text {
        font-size: 1em;
    }

    .availability-container {
        flex-direction: column;
        gap: 30px;
    }

    .globe-wrapper {
        min-height: 200px;
        max-height: 350px;
        padding: 20px;
    }

    .globe-canvas {
        max-width: 100%;
        min-width: 280px;
    }

    .form-input {
        padding: 12px 16px;
    }

    .btn-submit {
        padding: 14px 28px;
        width: 100%;
    }
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}

.project-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fallback: show project containers if they don't get fade-in class */
.project-container:not(.fade-in) {
    animation: fadeInFallback 1s ease-out forwards;
}

/* Education Cards Styles */
.education-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
}

.education-card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: fit-content;
}

.education-card {
    width: 100%;
    min-height: auto;
    height: auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.3s ease, min-height 0.6s ease;
    cursor: pointer;
    border-radius: 0;
    border: none;
    border-top: 2px solid rgba(0, 146, 204, 0.4);
    border-bottom: 2px solid rgba(0, 146, 204, 0.4);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.15);
}

.education-card::after {
    content: '';
    display: block;
    clear: both;
}

.education-card:hover {
    box-shadow: 0 8px 30px rgba(0, 146, 204, 0.25);
    border-color: rgba(0, 146, 204, 0.6);
}

.education-card.flipped {
    transform: rotateY(180deg);
}

.education-card-front,
.education-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: auto;
    height: auto;
    backface-visibility: hidden;
    border-radius: 0;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(9, 21, 26, 0.98) 0%, rgba(10, 26, 34, 0.98) 100%);
    color: #ffffff;
    overflow: visible;
    box-shadow: inset 0 0 30px rgba(0, 146, 204, 0.05);
}

/* Ensure card container expands to fit content */
.education-card:not(.flipped) .education-card-front {
    position: relative;
}

.education-card.flipped .education-card-front {
    position: absolute;
}

.education-card:not(.flipped) .education-card-back {
    position: absolute;
}

.education-card.flipped .education-card-back {
    position: relative;
}

.education-card-back {
    transform: rotateY(180deg);
    overflow: visible;
}

.education-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.education-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.education-card-title {
    flex: 1;
    min-width: 0;
}

.education-card-title h3 {
    color: #0092CC;
    margin: 0 0 4px 0;
    font-size: 1.25em;
    line-height: 1.3;
    word-wrap: break-word;
}

.education-institution {
    color: #ffffffc7;
    margin: 2px 0;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.3;
    word-wrap: break-word;
}

.education-field {
    color: #b0b0b0;
    margin: 2px 0;
    font-size: 0.85em;
    line-height: 1.3;
    word-wrap: break-word;
}

.education-card-meta {
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.education-date {
    color: #0092CC;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.95em;
}

.education-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.education-badge span {
    color: #ffffffc7;
    font-size: 0.85em;
}

.education-preview {
    flex: 1;
    color: #ffffffc7;
    line-height: 1.6;
    margin: 15px 0;
}

.education-summary {
    margin: 18px 0;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.12) 0%, rgba(0, 180, 230, 0.08) 100%);
    border-radius: 10px;
    border-left: 4px solid #0092CC;
    box-shadow: 0 2px 10px rgba(0, 146, 204, 0.1);
}

.education-summary p {
    color: #ffffffc7;
    margin: 0;
    font-size: 0.92em;
    line-height: 1.7;
    text-align: justify;
}

.education-responsibilities {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 10px;
    overflow: visible;
    min-height: 0;
    gap: 15px;
}

.education-responsibilities h4 {
    color: #0092CC;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1.3;
    grid-column: 1 / -1;
    /* Span across both columns */
}

.education-category {
    background: rgba(0, 146, 204, 0.08);
    border-left: 3px solid #0092CC;
    border-radius: 6px;
    padding: 12px 14px;
    transition: all 0.3s ease;
}

.education-category:hover {
    background: rgba(0, 146, 204, 0.12);
    transform: translateX(3px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.category-icon {
    color: #0092CC;
    font-size: 1.1em;
    flex-shrink: 0;
}

.category-header strong {
    color: #0092CC;
    font-size: 0.95em;
    font-weight: 600;
}

.education-category p {
    color: #ffffffc7;
    margin: 0;
    font-size: 0.88em;
    line-height: 1.5;
    padding-left: 24px;
}

.education-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.education-responsibilities li {
    color: #ffffffc7;
    line-height: 1.5;
    font-size: 0.9em;
    padding: 2px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.flip-hint {
    text-align: center;
    color: #0092CC;
    font-size: 0.85em;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 146, 204, 0.3);
    opacity: 0.7;
}

.education-card-details {
    height: auto;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 5px 0;
}

.education-card-details h3 {
    color: #0092CC;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.3;
    flex-shrink: 0;
    text-align: center;
}

.degree-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    flex: 1;
    align-content: start;
}

.degree-section {
    background: rgba(0, 146, 204, 0.06);
    border-left: 3px solid #0092CC;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.degree-section:hover {
    background: rgba(0, 146, 204, 0.1);
    transform: translateX(3px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.section-icon {
    color: #0092CC;
    font-size: 1.3em;
    flex-shrink: 0;
}

.section-header h4 {
    color: #0092CC;
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.3;
}

.degree-section p {
    color: #ffffffc7;
    line-height: 1.7;
    margin: 0 0 8px 0;
    font-size: 0.92em;
}

.degree-section p:last-child {
    margin-bottom: 0;
}

.education-card-details ul {
    color: #ffffffc7;
    line-height: 1.8;
    margin-left: 20px;
    margin-bottom: 15px;
}

.education-card-details li {
    margin-bottom: 8px;
}

/* Visual hint animation for cards */
.education-card.hint-pulse {
    animation: cardPulse 1s ease-in-out;
}

/* Experience Cards Styles */
.experience-section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.02) 0%, transparent 50%, rgba(0, 146, 204, 0.02) 100%);
    border-radius: 15px;
    position: relative;
}

.experience-section>* {
    position: relative;
    z-index: 1;
}

.experience-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 146, 204, 0.03) 0%, transparent 40%);
    pointer-events: none;
    border-radius: 15px;
    z-index: 0;
}

.experience-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0 5%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.current-positions-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1200px;
    gap: 40px;
    align-items: stretch;
}

.experience-card-container {
    perspective: 1000px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.experience-card {
    width: 100%;
    min-height: 400px;
    height: auto;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 15px;
    border: 2px solid rgba(0, 146, 204, 0.2);
    background: transparent;
    z-index: 10;
    pointer-events: auto;
}

.experience-card:hover:not(.flipped) {
    box-shadow: 0 12px 40px rgba(0, 146, 204, 0.4);
    border-color: rgba(0, 146, 204, 0.5);
    transform: translateY(-5px);
}

.experience-card.flipped {
    transform: rotateY(180deg);
}

.experience-card-front,
.experience-card-back {
    position: absolute;
    width: 100%;
    min-height: 400px;
    height: auto;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(9, 21, 26, 0.98) 0%, rgba(10, 26, 34, 0.98) 100%);
    color: #ffffff;
    overflow: visible;
    border: 2px solid rgba(0, 146, 204, 0.2);
    box-shadow: inset 0 0 40px rgba(0, 146, 204, 0.05), 0 4px 20px rgba(0, 146, 204, 0.1);
    transition: transform 0.6s ease, z-index 0s linear 0.3s;
}

.experience-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.experience-card-back {
    transform: rotateY(180deg);
    overflow: visible;
    z-index: 1;
}

.experience-card.flipped .experience-card-front {
    z-index: 1;
}

.experience-card.flipped .experience-card-back {
    z-index: 2;
    transform: rotateY(180deg);
    /* Maintained for clarity */
}

@media (max-width: 768px) {
    .current-positions-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 5%;
        gap: 25px;
    }

    .experience-card {
        min-height: auto;
        height: auto;
    }

    .experience-card-front,
    .experience-card-back {
        min-height: auto;
        padding: 25px;
    }
}

.experience-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 146, 204, 0.2);
    flex-shrink: 0;
}

.experience-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    flex-shrink: 0;
    background: rgba(0, 146, 204, 0.1);
    padding: 8px;
    border: 2px solid rgba(0, 146, 204, 0.3);
    transition: all 0.3s ease;
}

/* White background for Invisibles logo (black logo) */
.experience-card[data-company="invisible"] .experience-logo {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.experience-card:hover .experience-logo {
    border-color: rgba(0, 146, 204, 0.6);
    background: rgba(0, 146, 204, 0.15);
    transform: scale(1.05);
}

.experience-card[data-company="invisible"]:hover .experience-logo {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.experience-card-title {
    flex: 1;
    min-width: 0;
}

.experience-card-title h3 {
    color: #0092CC;
    margin: 0 0 6px 0;
    font-size: 1.4em;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    letter-spacing: 0.3px;
}

.experience-company {
    color: #ffffffc7;
    margin: 2px 0;
    font-weight: 600;
    font-size: 0.95em;
    line-height: 1.3;
    word-wrap: break-word;
}

.experience-card-meta {
    margin: 15px 0;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 180, 230, 0.1) 100%);
    border-radius: 10px;
    border-left: 4px solid #0092CC;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 146, 204, 0.1);
}

.experience-date {
    color: #0092CC;
    font-weight: 700;
    margin: 0;
    text-align: center;
    font-size: 1em;
    letter-spacing: 0.5px;
}

.experience-responsibilities {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    overflow: visible;
    min-height: 0;
}

.experience-responsibilities h4 {
    color: #0092CC;
    margin-bottom: 15px;
    font-size: 1.15em;
    font-weight: 700;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 146, 204, 0.2);
}

.experience-responsibilities h4::before {
    content: '▸';
    color: #0092CC;
    font-size: 1.2em;
}

.experience-responsibilities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-responsibilities li {
    color: #ffffffc7;
    line-height: 1.6;
    font-size: 0.92em;
    padding: 10px 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: rgba(0, 146, 204, 0.06);
    border-left: 3px solid rgba(0, 146, 204, 0.4);
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 38px;
}

.experience-responsibilities li::before {
    content: '✓';
    position: absolute;
    left: 14px;
    color: #0092CC;
    font-weight: 700;
    font-size: 1.1em;
}

.experience-card:hover .experience-responsibilities li {
    background: rgba(0, 146, 204, 0.1);
    border-left-color: #0092CC;
    transform: translateX(3px);
}

.experience-card-details {
    height: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    gap: 15px;
    justify-content: flex-start;
}

.experience-card-details::-webkit-scrollbar {
    width: 6px;
}

.experience-card-details::-webkit-scrollbar-track {
    background: rgba(0, 146, 204, 0.1);
    border-radius: 10px;
}

.experience-card-details::-webkit-scrollbar-thumb {
    background: rgba(0, 146, 204, 0.4);
    border-radius: 10px;
}

.experience-card-details::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 146, 204, 0.6);
}

.experience-card-details h3 {
    color: #0092CC;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 146, 204, 0.3);
    letter-spacing: 0.5px;
}

.experience-card-details p {
    color: #ffffffc7;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.experience-card-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.experience-card-details li {
    color: #ffffffc7;
    line-height: 1.6;
    font-size: 0.95em;
    padding: 12px 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background: rgba(0, 146, 204, 0.08);
    border-left: 4px solid rgba(0, 146, 204, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 45px;
}

.experience-card-details li::before {
    content: '▸';
    position: absolute;
    left: 16px;
    color: #0092CC;
    font-weight: 700;
    font-size: 1.2em;
    top: 50%;
    transform: translateY(-50%);
}

.experience-card:hover .experience-card-details li {
    background: rgba(0, 146, 204, 0.12);
    border-left-color: #0092CC;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.2);
}

/* Visual hint animation for experience cards */
.experience-card.hint-pulse {
    animation: cardPulse 1s ease-in-out;
}

/* Flip hint indicator */
.experience-card-front::after {
    content: 'Click to view achievements';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 146, 204, 0.6);
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    padding: 8px 16px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 146, 204, 0.3);
}

.experience-card:hover .experience-card-front::after {
    opacity: 1;
}

.experience-card.flipped .experience-card-front::after {
    display: none;
}

.experience-card-back::after {
    content: 'Click to view responsibilities';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 146, 204, 0.6);
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    text-align: center;
    padding: 8px 16px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(0, 146, 204, 0.3);
}

.experience-card.flipped:hover .experience-card-back::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .current-positions-grid {
        grid-template-columns: 1fr;
    }

    .experience-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .experience-card-container {
        max-width: 100%;
    }

    .experience-card {
        height: auto;
        min-height: 480px;
        /* Robust Flip Card Sizing: Use Grid to stack faces */
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas: "card-face";
    }

    .experience-card-front,
    .experience-card-back {
        min-height: 480px;
        padding: 15px;
        /* Stack both faces in the same grid cell */
        grid-area: card-face;
        /* Make them relative so they dictate the grid cell height */
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        /* Allow growth */
    }

    /* Additional specificity to ensure relative positioning wins */
    .experience-card-front {
        z-index: 2;
    }

    .experience-card-back {
        z-index: 1;
        transform: rotateY(180deg);
    }



    .experience-responsibilities ul {
        gap: 5px;
    }

    .experience-responsibilities li {
        font-size: 0.85em;
    }
}

@keyframes cardPulse {

    0%,
    100% {
        box-shadow: 0 4px 6px rgba(0, 146, 204, 0.1);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 8px 25px rgba(0, 146, 204, 0.6);
        transform: scale(1.02);
    }
}

/* Work History Rotation Styles */
/* Work History Navigation Controls */
.work-history-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.work-history-nav-btn {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.2) 0%, rgba(0, 146, 204, 0.1) 100%);
    border: 2px solid rgba(0, 146, 204, 0.4);
    color: #0092CC;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 146, 204, 0.2);
}

.work-history-nav-btn svg {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}

.work-history-nav-btn #pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.work-history-nav-btn #pause-icon svg {
    width: 18px;
    height: 18px;
}

.work-history-nav-btn:hover {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.3) 0%, rgba(0, 146, 204, 0.2) 100%);
    border-color: #0092CC;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 146, 204, 0.4);
}

.work-history-nav-btn:active {
    transform: scale(0.95);
}

.work-history-indicator {
    color: #0092CC;
    font-size: 1.2em;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 20px;
    min-width: 80px;
    text-align: center;
}

@media (max-width: 768px) {
    .work-history-controls {
        gap: 15px;
    }

    .work-history-nav-btn {
        width: 40px;
        height: 40px;
    }

    .work-history-nav-btn svg {
        width: 18px;
        height: 18px;
    }

    .work-history-nav-btn #pause-icon svg {
        width: 16px;
        height: 16px;
    }

    .work-history-indicator {
        font-size: 1em;
        padding: 8px 15px;
        min-width: 70px;
    }
}

/* Projects Filter Enhancements */
/* Removed duplicate CSS - consolidated below */

.work-history-carousel {
    margin-top: 20px;
    border-radius: 24px;
    border: 2px solid rgba(0, 146, 204, 0.25);
    padding: 30px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.08), rgba(0, 146, 204, 0.18));
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
}

.work-history-track-wrapper {
    overflow: hidden;
    position: relative;
    margin-top: 30px;
}

.work-history-track {
    display: flex;
    gap: 40px;
    transition: transform 0.6s cubic-bezier(0.6, 0.05, 0.2, 0.9);
}

.work-history-slide {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 35px;
    padding: 35px;
    border-radius: 20px;
    background: rgba(7, 11, 31, 0.95);
    border: 1px solid rgba(0, 146, 204, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.work-history-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.work-history-slide.active::after {
    opacity: 1;
}

.work-history-slide-media {
    position: relative;
    min-height: 240px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(0, 146, 204, 0.45), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.work-history-slide-media img {
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
}

.work-history-slide-content {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-history-slide-label {
    color: #6bc4ff;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85em;
}

.work-history-slide-title {
    margin: 0;
    font-size: 1.9em;
    color: #ffffff;
}

.work-history-slide-company {
    font-size: 1.1em;
    color: #b0dfff;
    font-weight: 600;
}

.work-history-slide-date {
    color: #0092CC;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.work-history-slide-preview {
    color: #d2e8ff;
    line-height: 1.7;
}

.work-history-slide-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.work-history-slide-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.95em;
    color: #e3f4ff;
}

.work-history-slide-points li::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00c1ff;
    margin-top: 8px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(0, 193, 255, 0.6);
}

.work-history-slide-cta {
    margin-top: 10px;
    color: #6bc4ff;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .work-history-slide {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .work-history-slide-media {
        max-width: 320px;
        margin: 0 auto;
    }

    .work-history-slide-points li {
        justify-content: center;
        text-align: left;
    }
}

@media (max-width: 768px) {
    .work-history-carousel {
        padding: 20px;
    }

    .work-history-track {
        gap: 20px;
    }

    .work-history-slide {
        padding: 25px;
    }
}

@media (max-width: 540px) {
    .work-history-slide-title {
        font-size: 1.45em;
    }

    .work-history-slide-media {
        min-height: 200px;
    }
}

/* Responsive Design for Education Cards */
@media (max-width: 768px) {
    .education-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    .education-card-container {
        max-width: 100%;
    }

    .degree-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .education-card {
        height: auto;
        min-height: 480px;
    }

    .education-card-front,
    .education-card-back {
        min-height: 480px;
        padding: 15px;
    }

    .education-responsibilities {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    .education-responsibilities ul {
        gap: 5px;
    }

    .education-responsibilities li {
        font-size: 0.85em;
    }
}

/* Projects Filter Panel Styles */
/* Projects Filter Container - Consolidated Styles */
.projects-filter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.projects-filter-panel {
    display: inline-flex;
    padding: 6px;
    background-color: rgba(15, 34, 43, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    gap: 8px;
    border: 1px solid rgba(0, 146, 204, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 500;
    border: none;
    background: transparent;
    color: #b0b0b0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    min-width: 100px;
}

.filter-btn:hover {
    background-color: rgba(0, 146, 204, 0.1);
    color: #ffffff;
}

.filter-btn.active {
    background-color: #0092CC;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 146, 204, 0.4);
    font-weight: 600;
}

.filter-btn.active:hover {
    background-color: #00b4e6;
    color: #ffffff;
}

.filter-btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3);
}

/* Projects Search Container */
.projects-search-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.projects-search {
    padding: 10px 20px;
    background: rgba(15, 34, 43, 0.9);
    border: 1px solid rgba(0, 146, 204, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    min-width: 200px;
    max-width: 300px;
    transition: all 0.3s ease;
}

.projects-search:focus {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-color: #0092CC;
    background: rgba(15, 34, 43, 1);
    box-shadow: 0 0 0 3px rgba(0, 146, 204, 0.2);
}

.projects-search::placeholder {
    color: #b0b0b0;
}

/* Projects Count */
.projects-count {
    display: flex;
    align-items: center;
    color: #b0b0b0;
    font-size: 0.95em;
    font-family: 'Poppins', sans-serif;
    flex-shrink: 0;
    white-space: nowrap;
}

.projects-count strong {
    color: #0092CC;
    font-weight: 600;
    margin: 0 2px;
}

/* Project container filtering styles */
.project-container {
    transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    will-change: transform, opacity;
    transform: translateZ(0);
    /* GPU acceleration */
    backface-visibility: hidden;
    /* Performance optimization */
}

.project-container.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0 !important;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden;
    grid-row: auto;
    min-height: 0;
}

/* Carousel doesn't need grid layout */

/* Responsive Design for Filter Panel */
@media (max-width: 968px) {
    .projects-filter-container {
        flex-direction: column;
        gap: 20px;
    }

    .projects-filter-panel {
        width: 100%;
        justify-content: center;
        padding: 6px;
        gap: 6px;
    }

    .projects-search-container {
        width: 100%;
        justify-content: center;
    }

    .projects-search {
        max-width: 100%;
        min-width: 250px;
    }

    .projects-count {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .projects-filter-container {
        gap: 15px;
    }

    .projects-filter-panel {
        padding: 4px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85em;
        min-width: 90px;
    }

    .projects-search {
        padding: 8px 16px;
        font-size: 0.9em;
        min-width: 200px;
    }

    .projects-count {
        font-size: 0.9em;
    }
}

/* ============================================
   UI/UX IMPROVEMENTS - Additional Enhancements
   ============================================ */

/* Enhanced Focus Indicators for All Interactive Elements */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
    min-height: 44px;
    /* Touch target size */
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
}

/* Education and Experience Cards Focus States */
.education-card:focus-visible,
.experience-card:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3);
}

/* Work History Navigation Buttons */
.work-history-nav-btn:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    box-shadow: 0 0 0 2px rgba(0, 146, 204, 0.3);
}

/* Performance Optimizations - GPU Acceleration */
.hero-content,
.hero-text-container,
.animate-fade-in-up,
.animate-scale-in {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Image Loading Optimization */
img {
    loading: lazy;
    decoding: async;
}

img[loading="eager"] {
    loading: eager;
    fetchpriority: high;
}

/* Skeleton Loader for Heavy Content */
.skeleton-loader {
    background: linear-gradient(90deg,
            rgba(15, 34, 43, 0.5) 0%,
            rgba(0, 146, 204, 0.1) 50%,
            rgba(15, 34, 43, 0.5) 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

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

/* Empty State for Filtered Projects */
.projects-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.projects-empty-state h3 {
    color: #0092CC;
    margin-bottom: 10px;
    font-size: 1.5em;
}

.projects-empty-state p {
    font-size: 1.1em;
    margin-top: 10px;
}

/* Image Error State */
img.image-error {
    background: rgba(15, 34, 43, 0.5);
    border: 1px dashed rgba(0, 146, 204, 0.3);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

img.image-error::after {
    content: 'Image unavailable';
    color: #b0b0b0;
    font-size: 0.9em;
}

/* Improved Section Transitions */
section {
    scroll-margin-top: 100px;
    /* Account for fixed header */
}

/* Better Visual Hierarchy - Section Spacing */
section:not(:first-child) {
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-lg);
}

/* Enhanced Button States */
.btn:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

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

/* Improved Form Validation Feedback */
.form-message.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Enhanced Carousel Controls Visibility */
.work-history-carousel-controls {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.work-history-carousel:hover .work-history-carousel-controls,
.work-history-carousel:focus-within .work-history-carousel-controls {
    opacity: 1;
}

/* Utility Classes for Common Inline Styles */
.text-center {
    text-align: center;
}

.text-primary {
    color: #0092CC;
}

.text-secondary {
    color: #b0b0b0;
}

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

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

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

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}

/* Section Heading Styles */
.section-heading {
    color: #0092CC;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-3xl);
}

.section-subheading {
    text-align: center;
    color: #b0b0b0;
    margin-bottom: var(--spacing-2xl);
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Better Mobile Bottom Navigation */
@media (max-width: 768px) {

    /* Ensure mobile CTA doesn't overlap content */
    .mobile-cta-fab {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 80px);
    }

    /* Prevent horizontal scroll on all sections */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Better spacing on mobile */
    section:not(:first-child) {
        margin-top: var(--spacing-2xl);
        padding-top: var(--spacing-lg);
    }

    .section-heading {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-lg);
    }

    .section-subheading {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xl);
    }
}

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

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

    .shape {
        animation: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --focus-outline-width: 4px;
        --focus-outline-color: #ffffff;
    }

    .btn,
    .filter-btn,
    .nav-link {
        border: 2px solid currentColor;
    }
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Quick HR Scan Section Styles */
.quick-hr-scan {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.15) 0%, rgba(0, 146, 204, 0.05) 100%);
    padding: 40px 20px;
    margin: 0;
}

.quick-hr-scan-content {
    max-width: 1200px;
    margin: 0 auto;
}

.quick-hr-fact-card {
    background: rgba(0, 146, 204, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(0, 146, 204, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-hr-fact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 146, 204, 0.3);
}

.quick-hr-fact-number {
    font-size: 2.5em;
    color: #0092CC;
    font-weight: bold;
    margin-bottom: 10px;
}

.quick-hr-fact-label {
    color: #b0b0b0;
    font-size: 1.1em;
}

.quick-hr-details-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #0092CC;
}

.quick-hr-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    color: #ffffff;
}

.quick-hr-detail-item strong {
    color: #0092CC;
}

.quick-hr-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-hr-detail-item a {
    color: #0092CC;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.quick-hr-detail-item a:hover {
    color: #00b4e6;
}

.quick-hr-detail-item a:focus-visible {
    outline: var(--focus-outline-width) solid var(--focus-outline-color);
    outline-offset: var(--focus-outline-offset);
    border-radius: 2px;
}

/* ========================================
   MOBILE UX ENHANCEMENTS
   Optimized for mobile, tablet, iPhone, and PC
   ======================================== */

/* Universal Touch Target Optimization */
@media (max-width: 1024px) {

    /* Ensure all interactive elements meet minimum 44x44px touch target */
    button,
    a,
    .btn-primary,
    .btn-secondary,
    .nav-links a,
    .hamburger-menu,
    .back-to-top,
    .quick-nav-link,
    .skill-badge,
    .project-card,
    .metric-card {
        min-height: 44px;
        min-width: 44px;
        -webkit-tap-highlight-color: rgba(0, 146, 204, 0.2);
    }

    /* Better button padding for touch */
    .btn-primary,
    .btn-secondary {
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Improved link spacing for easier tapping */
    .nav-links a {
        padding: 16px 20px;
        min-height: 52px;
    }
}

/* Tablet Optimization (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Optimized hero section for tablets */
    .hero {
        padding: 100px 40px 60px;
    }

    .hero-name {
        font-size: 3em;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-tagline {
        font-size: 1.4em;
    }

    /* Better grid layouts for tablets */
    .executive-summary-grid,
    .metrics-grid,
    .why-hire-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Touch-friendly project cards */
    .project-card {
        padding: 24px;
    }

    /* Optimized navigation for tablets */
    .nav-bar {
        padding: 1em 2em;
    }
}

/* Mobile & iPhone Optimization (max-width: 768px) */
@media (max-width: 768px) {

    /* Enhanced mobile typography */
    html {
        font-size: 16px;
        /* Ensure readable base font size */
    }

    /* Mobile-optimized hero section */
    .hero {
        padding: 80px 20px 40px;
        min-height: auto;
    }

    .hero-name {
        font-size: 2.2em;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 1.6em;
        line-height: 1.3;
    }

    .hero-tagline {
        font-size: 1.15em;
        line-height: 1.4;
        padding: 0 10px;
    }

    .hero-description {
        font-size: 1em;
        line-height: 1.7;
        padding: 0 10px;
    }

    /* Mobile-optimized skill badges */
    .hero-skill-badges {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        padding: 12px;
    }

    .skill-badge {
        font-size: 0.9em;
        padding: 10px 16px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    /* Better button sizing for mobile */
    .nav-cv-button,
    .nav-contact-button {
        min-height: 48px;
        min-width: 48px;
        padding: 12px;
        font-size: 1.2em;
    }

    /* Mobile-optimized sections */
    section {
        padding: 40px 20px;
    }

    .container {
        padding: 0 16px;
    }

    /* Mobile-friendly cards */
    .executive-summary-card,
    .metric-card,
    .why-hire-card,
    .project-card,
    .job,
    .degree-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Better headings on mobile */
    h2 {
        font-size: 2em;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.5em;
        line-height: 1.3;
    }

    /* Mobile-optimized metrics */
    .metric-value {
        font-size: 2.5em;
    }

    .metric-label {
        font-size: 1em;
    }

    /* Better spacing for mobile grids */
    .executive-summary-grid,
    .metrics-grid,
    .why-hire-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Improved profile picture */
    .profile-picture-wrapper {
        width: 140px !important;
        height: 140px !important;
        min-width: 100px !important;
    }

    /* Mobile-friendly footer */
    footer {
        padding: 30px 20px;
        font-size: 0.95em;
    }
}

/* Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {

    /* Extra small font adjustments */
    .hero-name {
        font-size: 1.8em;
    }

    .hero-title {
        font-size: 1.3em;
    }

    .hero-tagline {
        font-size: 1em;
    }

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

    /* Smaller skill badges for very small screens */
    .skill-badge {
        font-size: 0.85em;
        padding: 8px 12px;
    }

    /* Compact metrics */
    .metric-value {
        font-size: 2em;
    }

    /* Smaller section headings */
    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.3em;
    }

    /* Compact navigation */
    .nav-bar {
        padding: 0.5em 0.75em;
    }
}

/* iPhone-Specific Optimizations (Safe Areas) */
@supports (padding: max(0px)) {
    .nav-bar {
        padding-left: max(1em, env(safe-area-inset-left));
        padding-right: max(1em, env(safe-area-inset-right));
    }

    .hero {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }

    .nav-links {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .fixed-cta-buttons {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }

    .back-to-top {
        bottom: max(30px, env(safe-area-inset-bottom));
        right: max(30px, env(safe-area-inset-right));
    }
}

/* Tap Feedback for Better Mobile UX */
@media (max-width: 1024px) {

    /* Active state feedback for touch */
    button:active,
    .btn-primary:active,
    .btn-secondary:active,
    a:active,
    .nav-links a:active,
    .skill-badge:active,
    .project-card:active {
        transform: scale(0.97);
        opacity: 0.9;
        transition: transform 0.1s ease, opacity 0.1s ease;
    }

    /* Smooth scrolling optimization for mobile */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    /* Prevent text selection on repeated taps */
    .btn-primary,
    .btn-secondary,
    .nav-links a,
    .hamburger-menu,
    .skill-badge {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* "OPEN TO HIRE" Badge - Mobile Responsive */
.availability-badge-container {
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.availability-badge {
    background: linear-gradient(135deg, #00ff00 0%, #00dd00 100%);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.availability-badge::before {
    content: '●';
    font-size: 1.2em;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.availability-text {
    color: #0092CC;
    font-weight: 600;
    font-size: 1em;
}

@keyframes pulse-glow {

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

    50% {
        box-shadow: 0 4px 25px rgba(0, 255, 0, 0.5);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Mobile Optimization for Availability Badge */
@media (max-width: 768px) {
    .availability-badge-container {
        flex-direction: column;
        gap: 8px;
        margin: 16px 0;
    }

    .availability-badge {
        font-size: 0.9em;
        padding: 10px 18px;
        min-height: 44px;
    }

    .availability-text {
        font-size: 0.95em;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .availability-badge {
        font-size: 0.85em;
        padding: 8px 16px;
    }

    .availability-text {
        font-size: 0.9em;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 60px 30px 40px;
    }

    .hero-name {
        font-size: 2em;
    }

    .hero-title {
        font-size: 1.4em;
    }

    .profile-picture-wrapper {
        width: 100px !important;
        height: 100px !important;
        min-width: 80px !important;
    }

    /* Compact stats in landscape */
    .hero-stats-carousel {
        gap: 12px;
    }

    .stat-item {
        padding: 10px 16px;
    }

    /* Compact availability badge in landscape */
    .availability-badge-container {
        flex-direction: row;
        gap: 8px;
        margin: 12px 0;
    }

    .availability-badge {
        font-size: 0.8em;
        padding: 6px 12px;
    }
}

/* High DPI Displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    /* Sharper borders and shadows */
    .nav-bar,
    .btn-primary,
    .btn-secondary,
    .project-card,
    .metric-card {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion Support (Accessibility) */
@media (prefers-reduced-motion: reduce) {

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

/* Dark Mode Support (Future-proofing) */
@media (prefers-color-scheme: dark) {

    /* Already dark by default, but ensure consistency */
    body {
        background-color: #09151a;
    }
}

/* Print Styles */
@media print {

    .quick-nav-sidebar,
    .fixed-cta-buttons,
    .mobile-cta-fab,
    .back-to-top,
    .scroll-progress,
    .nav-bar,
    .mission-trigger,
    .mission-window {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: #0000EE;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Mission Assistant (Chatbot) Styles
   ========================================================================== */

/* Trigger Button */
.mission-trigger {
    position: fixed;
    bottom: 30px;
    right: 100px;
    /* Left of back-to-top */
    background: rgba(10, 25, 40, 0.9);
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--glow-box);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.mission-trigger:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--color-primary);
}

.mission-trigger i {
    font-size: 1.2em;
}

/* Chat Window - HUD Style */
.mission-window {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 380px;
    height: 500px;
    background: rgba(5, 10, 16, 0.95);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 243, 255, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.mission-window.hidden {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

/* Header */
.mission-header {
    background: rgba(0, 243, 255, 0.1);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.header-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.9em;
    color: var(--color-primary);
}

.status-light {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary);
    animation: blink 2s infinite;
}

.close-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-size: 1.1em;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-accent);
}

/* Messages Area */
.mission-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: var(--font-body);
}

/* Message Bubbles */
.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.5;
    position: relative;
    animation: messageIn 0.3s ease-out;
}

.bot-message {
    align-self: flex-start;
    background: rgba(0, 243, 255, 0.05);
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-main);
}

.user-message {
    align-self: flex-end;
    background: rgba(0, 146, 204, 0.1);
    border-right: 3px solid var(--color-secondary);
    color: #fff;
    text-align: right;
}

/* Input Area */
.mission-input-area {
    padding: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
}

#mission-input {
    flex: 1;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: 10px;
    color: #fff;
    font-family: var(--font-heading);
    outline: none;
}

#mission-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
}

.send-btn {
    background: var(--color-primary);
    color: #000;
    border: none;
    border-radius: 4px;
    width: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.send-btn:hover {
    background: #fff;
    box-shadow: 0 0 15px #fff;
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.typing .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-right: 3px;
    animation: wave 1.3s linear infinite;
}

/* Suggestion Chips */
.suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.suggestion-chip {
    background: rgba(0, 146, 204, 0.2);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
}

.suggestion-chip:hover {
    background: var(--color-primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}

.typing .dot:nth-child(2) {
    animation-delay: -1.1s;
}

.typing .dot:nth-child(3) {
    animation-delay: -0.9s;
}

@keyframes wave {

    0%,
    60%,
    100% {
        transform: initial;
    }

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

/* Mobile Adjustments */
@media (max-width: 480px) {
    .mission-window {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .mission-trigger {
        right: 20px;
        bottom: 80px;
    }
}

/* ==========================================================================
   Skill Solar System Visualization
   ========================================================================== */

.solar-system-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 280px;
    /* Increased height for 3D tilt */
    margin: 0 auto;
    perspective: 1000px;
    overflow: hidden;
    cursor: grab;
}

.solar-system-wrapper:active {
    cursor: grabbing;
}

.solar-system-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(20deg) rotateY(0deg);
    /* Initial tilt */
    transition: transform 0.1s ease-out;
    /* Smooth follow mouse */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Sun - Commander Core */
.sun-wrapper {
    position: absolute;
    width: 120px;
    height: 120px;
    transform-style: preserve-3d;
    z-index: 10;
    animation: sun-pulse 4s infinite alternate;
}

.sun {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #000;
    /* Fallback */
    box-shadow: 0 0 50px var(--color-primary);
    /* Outer glow only, removed inset */
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* Ensure image stays in circle */
}

.sun-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.9;
}

.sun-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(40px);
    /* Float above */
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 0 0 5px #000;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Orbit Rings */
.orbit-ring {
    position: absolute;
    border: 1px dashed rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    transform-style: preserve-3d;
    display: flex;
    /* Helps centering */
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.05);
}

.ring-1 {
    width: 280px;
    height: 280px;
    z-index: 3;
    animation: orbit-spin-cw 40s linear infinite;
}

.ring-2 {
    width: 450px;
    height: 450px;
    z-index: 2;
    animation: orbit-spin-ccw 60s linear infinite;
}

.ring-3 {
    width: 620px;
    height: 620px;
    z-index: 1;
    animation: orbit-spin-cw 80s linear infinite;
}

.ring-4 {
    width: 790px;
    height: 790px;
    z-index: 0;
    animation: orbit-spin-ccw 100s linear infinite;
}

/* Planets - Skills */
.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin-left: -25px;
    /* Center offset */
    margin-top: -25px;
    border-radius: 50%;
    background: rgba(10, 25, 40, 0.9);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    cursor: pointer;
    transform-style: preserve-3d;
    /* Positioning Calculation: 
       Translate out by Half Ring Radius. 
       Rotate by --angle.
       Self-rotate back to keep orientation upright? We'll handle upright in animation
    */
    /* We use variables for easy placement */
    --distance-1: 140px;
    /* Ring 1 radius */
    --distance-2: 225px;
    /* Ring 2 */
    /* Ring 2 */
    --distance-3: 310px;
    /* Ring 3 */
    --distance-4: 395px;
    /* Ring 4 */

    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.planet:hover {
    transform: scale(1.5) !important;
    background: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary), 0 0 60px var(--color-primary);
    z-index: 100;
    border-color: #fff;
}

.planet img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.planet-icon-placeholder {
    color: var(--color-primary);
    font-size: 1.5em;
}

.planet-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 0 0 2px #000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 5px;
    border-radius: 4px;
}

.planet:hover .planet-label {
    opacity: 1;
}

/* Animations */
@keyframes orbit-spin-cw {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

@keyframes orbit-spin-ccw {
    from {
        transform: rotateZ(360deg);
    }

    to {
        transform: rotateZ(0deg);
    }
}

.ring-1 {
    animation: orbit-spin-cw 40s linear infinite;
}

.ring-2 {
    animation: orbit-spin-ccw 60s linear infinite;
}

.ring-3 {
    animation: orbit-spin-cw 80s linear infinite;
}

.ring-4 {
    animation: orbit-spin-ccw 100s linear infinite;
}

/* Positions specific overhaul */
/* Ring 1 */
.ring-1 .planet {
    transform: rotate(var(--angle)) translate(140px) rotate(calc(-1 * var(--angle)));
}

.ring-1 .planet img,
.ring-1 .planet .planet-icon-placeholder {
    animation: keep-upright-cw 40s linear infinite;
}

/* Ring 2 */
.ring-2 .planet {
    transform: rotate(var(--angle)) translate(225px) rotate(calc(-1 * var(--angle)));
}

.ring-2 .planet img,
.ring-2 .planet .planet-icon-placeholder {
    animation: keep-upright-ccw 60s linear infinite;
}

/* Ring 3 */
.ring-3 .planet {
    transform: rotate(var(--angle)) translate(310px) rotate(calc(-1 * var(--angle)));
}

.ring-3 .planet img,
.ring-3 .planet .planet-icon-placeholder {
    animation: keep-upright-cw 80s linear infinite;
}

@keyframes keep-upright-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

@keyframes keep-upright-ccw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.paused .orbit-ring,
.paused .planet img,
.paused .planet-icon-placeholder {
    animation-play-state: paused !important;
}

/* HUD Overlay */
.skill-hud {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(10, 25, 40, 0.9);
    border: 1px solid var(--color-primary);
    padding: 20px;
    font-family: var(--font-heading);
    color: var(--color-primary);
    backdrop-filter: blur(5px);
    z-index: 100;
    transform: translateZ(50px);
    /* 3D pop */
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    /* Let clicks pass through if needed, but it's an overlay */
    display: block;
}

.skill-hud.hidden {
    opacity: 0;
    transform: translateZ(0) scale(0.9);
    pointer-events: none;
}

.hud-scan-line {
    height: 2px;
    background: var(--color-primary);
    width: 100%;
    margin: 10px 0;
    box-shadow: 0 0 10px var(--color-primary);
    animation: scan 2s infinite ease-in-out;
}

.hud-stat {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-bar-container {
    width: 60%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-primary);
}

.stat-bar {
    height: 100%;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    transition: width 0.5s ease-out;
}

.hud-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
}

.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
}

@keyframes scan {
    0% {
        width: 0;
        opacity: 0;
    }

    50% {
        width: 100%;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
        margin-left: 100%;
    }
}

@keyframes sun-pulse {
    from {
        transform: scale(1);
        box-shadow: 0 0 50px var(--color-primary);
    }

    to {
        transform: scale(1.1);
        box-shadow: 0 0 80px var(--color-primary), 0 0 120px var(--color-accent);
    }
}

@keyframes atmosphere-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Featured Work / Highlights Section
   ========================================================================== */

.featured-work {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

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

.highlight-card {
    background: rgba(10, 25, 40, 0.7);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Entry Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease-out forwards;
}

.highlight-card:nth-child(1) {
    animation-delay: 0.1s;
}

.highlight-card:nth-child(2) {
    animation-delay: 0.3s;
}

.highlight-card:nth-child(3) {
    animation-delay: 0.5s;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 146, 204, 0.2);
    border-color: #0092CC;
}

.highlight-icon {
    font-size: 2em;
    color: #0092CC;
    margin-bottom: 20px;
    height: 70px;
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 146, 204, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(0, 146, 204, 0.2);
}

.highlight-card h3 {
    color: #ffffff;
    font-size: 1.4em;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.highlight-card p {
    color: #b0b0b0;
    font-size: 1.05em;
    margin-bottom: 10px;
    line-height: 1.6;
    max-width: 90%;
}

.highlight-card p strong {
    color: #0092CC;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Ensure subsequent section doesn't overlap */
.experience {
    padding-top: 80px;
    margin-top: 20px;
}

/* Mobile Adjustments for Layout */
@media (max-width: 768px) {
    .featured-work {
        padding: 60px 0;
    }

    .experience {
        padding-top: 60px;
        margin-top: 40px;
        /* Increase gap on mobile */
    }

    .highlights-grid {
        gap: 20px;
    }
}

/* Mobile Fallback */
.skills-grid-mobile {
    display: none;
    /* Hidden by default */
}

@media (max-width: 900px) {
    .solar-system-wrapper {
        display: none;
        /* Hide 3D on mobile */
    }

    .skills-grid-mobile {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 20px;
        padding: 20px;
    }
}

/* Mission Simulation / Game Section */
.mission-sim-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, var(--color-bg-deep) 0%, rgba(0, 146, 204, 0.05) 50%, var(--color-bg-deep) 100%);
    position: relative;
    border-top: 1px solid rgba(0, 146, 204, 0.1);

}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;

}

.game-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    background: #000;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 146, 204, 0.2);

}

#lander-canvas {
    width: 100%;
    height: 100%;
    display: block;

}

.game-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 146, 204, 0.8);
    color: white;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-size: 1.5em;
    cursor: pointer;
    border: 2px solid #fff;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;

}

.game-overlay-btn:hover {
    background: #0092CC;
    box-shadow: 0 0 15px #0092CC;

}

.game-overlay-btn.hidden {
    display: none;

}

.game-controls-mobile {
    display: none;
    /* Hidden on desktop by default */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;

}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--color-secondary);
    color: white;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.1s;

}

.control-btn:active {
    background: var(--color-secondary);
    transform: scale(0.95);

}

.thrust-btn {
    width: 70px;
    height: 70px;
    border-color: #ffaa00;
    color: #ffaa00;

}

.thrust-btn:active {
    background: rgba(255, 170, 0, 0.3);

}

.game-instructions {
    text-align: center;
    margin-top: 15px;
    color: var(--color-text-muted);
    font-family: var(--font-heading);

}

.mobile-only {
    display: none;

}

@media (max-width: 768px) {
    .game-wrapper {
        height: 300px;

    }

    .game-controls-mobile {
        display: flex;

    }

    .desktop-only {
        display: none;

    }

    .mobile-only {
        display: inline;

    }


}



/* Override to remove unused spaces */
.skills-showcase,
.certifications-showcase,
.education,
.footer-contact,
#certifications,
#education,
#footer,
.experience,
#experience {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.copyright {
    margin-top: 20px !important;
    padding-top: 20px !important;
}

/* Ensure empty sections don't take space */
section:empty {
    display: none !important;
}


/* Force Contact Section Visibility and Layout */
.contact-section {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    opacity: 1 !important;
    visibility: visible !important;
    color: #e0faff !important;
    /* var(--color-text-main) */
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-form-container,
.availability-container {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

@media (max-width: 968px) {
    .contact-section {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   Professional Skills Grid - Clean & Scannable
   ========================================================================== */

.skills-grid-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(15, 25, 35, 0.6);
    border-radius: 16px;
    padding: 25px 30px;
    border: 1px solid rgba(0, 146, 204, 0.2);
}

.category-title {
    color: #0092CC;
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    font-size: 1.1em;
    opacity: 0.8;
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Skill Card - Icon + Text */
.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: rgba(20, 35, 50, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #0092CC;
    box-shadow: 0 10px 30px rgba(0, 146, 204, 0.3);
    background: rgba(0, 146, 204, 0.15);
}

.skill-card-icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.skill-card-name {
    font-size: 0.85em;
    font-weight: 500;
    color: #e0e0e0;
    text-align: center;
    white-space: nowrap;
}

.skill-card:hover .skill-card-name {
    color: #ffffff;
}

/* Text-only badges (no icon) */
.skill-card.text-badge {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.2) 0%, rgba(0, 100, 150, 0.3) 100%);
    border: 1px solid rgba(0, 146, 204, 0.4);
    padding: 12px 18px;
    min-width: auto;
}

.skill-card.text-badge .skill-card-name {
    font-size: 0.9em;
    font-weight: 600;
    color: #0092CC;
}

.skill-card.text-badge:hover {
    background: linear-gradient(135deg, rgba(0, 146, 204, 0.4) 0%, rgba(0, 100, 150, 0.5) 100%);
}

.skill-card.text-badge:hover .skill-card-name {
    color: #ffffff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .skills-grid-container {
        gap: 25px;
    }

    .skill-category {
        padding: 20px;
    }

    .category-title {
        font-size: 1.1em;
        margin-bottom: 15px;
    }

    .skills-row {
        gap: 10px;
    }

    .skill-card {
        padding: 12px 15px;
        min-width: 75px;
    }

    .skill-card-icon {
        width: 35px;
        height: 35px;
    }

    .skill-card-name {
        font-size: 0.75em;
    }

    .skill-card.text-badge {
        padding: 10px 14px;
    }

    .skill-card.text-badge .skill-card-name {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .skill-category {
        padding: 15px;
    }

    .skills-row {
        gap: 8px;
        justify-content: center;
    }

    .skill-card {
        padding: 10px 12px;
        min-width: 65px;
    }

    .skill-card-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .skill-card-name {
        font-size: 0.7em;
    }

    .skill-card.text-badge {
        padding: 8px 12px;
    }
}




.core-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 146, 204, 0.5);
}

.core-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    animation: core-pulse-anim 2s ease-out infinite;
    pointer-events: none;
}

@keyframes core-pulse-anim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

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

/* Skill Orbits */
.skill-orbit {
    position: absolute;
    border: 1px dashed rgba(0, 146, 204, 0.3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Orbit Sizes */
.orbit-1 {
    width: 200px;
    height: 200px;
    animation: orbit-rotate 30s linear infinite;
}

.orbit-2 {
    width: 320px;
    height: 320px;
    animation: orbit-rotate 45s linear infinite reverse;
}

.orbit-3 {
    width: 440px;
    height: 440px;
    animation: orbit-rotate 60s linear infinite;
}

.orbit-4 {
    width: 560px;
    height: 560px;
    animation: orbit-rotate 75s linear infinite reverse;
}

.orbit-5 {
    width: 700px;
    height: 700px;
    animation: orbit-rotate 90s linear infinite;
}

@keyframes orbit-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Pause animation on hover */
.skill-galaxy-wrapper:hover .skill-orbit {
    animation-play-state: paused;
}

.skill-galaxy-wrapper:hover .skill-node {
    animation-play-state: paused;
}

/* Skill Nodes - Circular Badges with Text */
.skill-node {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.75em;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    /* Position using CSS variables */
    transform: rotate(calc(360deg / var(--total) * var(--i))) translateY(calc(-50% - var(--orbit-radius, 0px))) rotate(calc(-360deg / var(--total) * var(--i)));
    /* Counter-rotate to keep text upright */
    animation: counter-rotate 30s linear infinite;
}

/* Category Colors */
.orbit-1 .skill-node {
    --orbit-radius: 100px;
    background: linear-gradient(135deg, #1a4d7c 0%, #0d2840 100%);
    border: 2px solid #3498db;
    color: #ffffff;
}

.orbit-2 .skill-node {
    --orbit-radius: 160px;
    background: linear-gradient(135deg, #5c3d7a 0%, #2d1f3d 100%);
    border: 2px solid #9b59b6;
    color: #ffffff;
}

.orbit-3 .skill-node {
    --orbit-radius: 220px;
    background: linear-gradient(135deg, #7a4d1a 0%, #3d2810 100%);
    border: 2px solid #e67e22;
    color: #ffffff;
}

.orbit-4 .skill-node {
    --orbit-radius: 280px;
    background: linear-gradient(135deg, #1a7a4d 0%, #0d3d26 100%);
    border: 2px solid #27ae60;
    color: #ffffff;
}

.orbit-5 .skill-node {
    --orbit-radius: 350px;
    background: linear-gradient(135deg, #0a4d5c 0%, #052830 100%);
    border: 2px solid #00bcd4;
    color: #ffffff;
}

/* Skill Text - For text-only nodes */
.skill-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
    word-break: break-word;
    hyphens: auto;
    font-size: 0.75em;
    font-weight: 600;
}

/* Icon-based skill nodes */
.skill-node.has-icon {
    flex-direction: column;
    padding: 8px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.skill-icon {
    width: 80%;
    height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}


.skill-node.has-icon:hover .skill-icon {
    transform: scale(1.1);
}

/* Hide labels for icon-based nodes - info shows in HUD */
.skill-label {
    display: none;
}


/* Text-only skill nodes */
.skill-node.text-only {
    padding: 8px;
}

.skill-node.text-only .skill-text {
    font-size: 0.7em;
}


/* Hover Effects */
.skill-node:hover {
    transform: rotate(calc(360deg / var(--total) * var(--i))) translateY(calc(-50% - var(--orbit-radius, 0px))) rotate(calc(-360deg / var(--total) * var(--i))) scale(1.3);
    z-index: 100;
    box-shadow: 0 0 25px rgba(0, 146, 204, 0.8), 0 0 50px rgba(0, 146, 204, 0.4);
}

.orbit-1 .skill-node:hover {
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.8), 0 0 50px rgba(52, 152, 219, 0.4);
}

.orbit-2 .skill-node:hover {
    box-shadow: 0 0 25px rgba(155, 89, 182, 0.8), 0 0 50px rgba(155, 89, 182, 0.4);
}

.orbit-3 .skill-node:hover {
    box-shadow: 0 0 25px rgba(230, 126, 34, 0.8), 0 0 50px rgba(230, 126, 34, 0.4);
}

.orbit-4 .skill-node:hover {
    box-shadow: 0 0 25px rgba(39, 174, 96, 0.8), 0 0 50px rgba(39, 174, 96, 0.4);
}

.orbit-5 .skill-node:hover {
    box-shadow: 0 0 25px rgba(0, 188, 212, 0.8), 0 0 50px rgba(0, 188, 212, 0.4);
}

/* Counter-rotation for different orbit speeds */
.orbit-1 .skill-node {
    animation: counter-rotate-1 30s linear infinite;
}

.orbit-2 .skill-node {
    animation: counter-rotate-2 45s linear infinite;
}

.orbit-3 .skill-node {
    animation: counter-rotate-3 60s linear infinite;
}

.orbit-4 .skill-node {
    animation: counter-rotate-4 75s linear infinite;
}

.orbit-5 .skill-node {
    animation: counter-rotate-5 90s linear infinite;
}

@keyframes counter-rotate-1 {
    from {
        --rotation: 0deg;
    }

    to {
        --rotation: -360deg;
    }
}

@keyframes counter-rotate-2 {
    from {
        --rotation: 0deg;
    }

    to {
        --rotation: 360deg;
    }
}

@keyframes counter-rotate-3 {
    from {
        --rotation: 0deg;
    }

    to {
        --rotation: -360deg;
    }
}

@keyframes counter-rotate-4 {
    from {
        --rotation: 0deg;
    }

    to {
        --rotation: 360deg;
    }
}

@keyframes counter-rotate-5 {
    from {
        --rotation: 0deg;
    }

    to {
        --rotation: -360deg;
    }
}

/* Skill Legend */
.skill-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(10, 25, 35, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(0, 146, 204, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #b0b0b0;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-dot.languages {
    background: linear-gradient(135deg, #3498db 0%, #1a4d7c 100%);
    border: 1px solid #3498db;
}

.legend-dot.ai-ml {
    background: linear-gradient(135deg, #9b59b6 0%, #5c3d7a 100%);
    border: 1px solid #9b59b6;
}

.legend-dot.cloud {
    background: linear-gradient(135deg, #e67e22 0%, #7a4d1a 100%);
    border: 1px solid #e67e22;
}

.legend-dot.data-web {
    background: linear-gradient(135deg, #27ae60 0%, #1a7a4d 100%);
    border: 1px solid #27ae60;
}

.legend-dot.ai-specialty {
    background: linear-gradient(135deg, #00bcd4 0%, #0a4d5c 100%);
    border: 1px solid #00bcd4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .skill-galaxy-wrapper {
        height: 400px;
        margin: 20px auto;
    }

    .galaxy-core {
        width: 70px;
        height: 70px;
    }

    .orbit-1 {
        width: 150px;
        height: 150px;
    }

    .orbit-2 {
        width: 230px;
        height: 230px;
    }

    .orbit-3 {
        width: 310px;
        height: 310px;
    }

    .orbit-4 {
        width: 400px;
        height: 400px;
    }

    .orbit-5 {
        width: 500px;
        height: 500px;
    }

    .skill-node {
        width: 50px;
        height: 50px;
        font-size: 0.6em;
    }

    .orbit-1 .skill-node {
        --orbit-radius: 75px;
    }

    .orbit-2 .skill-node {
        --orbit-radius: 115px;
    }

    .orbit-3 .skill-node {
        --orbit-radius: 155px;
    }

    .orbit-4 .skill-node {
        --orbit-radius: 200px;
    }

    .orbit-5 .skill-node {
        --orbit-radius: 250px;
    }

    .skill-legend {
        gap: 12px;
        padding: 12px 15px;
    }

    .legend-item {
        font-size: 0.75em;
    }
}

@media (max-width: 480px) {
    .skill-galaxy-wrapper {
        height: 350px;
        overflow: hidden;
    }

    .galaxy-core {
        width: 50px;
        height: 50px;
    }

    .orbit-1 {
        width: 120px;
        height: 120px;
    }

    .orbit-2 {
        width: 180px;
        height: 180px;
    }

    .orbit-3 {
        width: 240px;
        height: 240px;
    }

    .orbit-4 {
        width: 300px;
        height: 300px;
    }

    .orbit-5 {
        width: 380px;
        height: 380px;
    }

    .skill-node {
        width: 40px;
        height: 40px;
        font-size: 0.5em;
    }

    .orbit-1 .skill-node {
        --orbit-radius: 60px;
    }

    .orbit-2 .skill-node {
        --orbit-radius: 90px;
    }

    .orbit-3 .skill-node {
        --orbit-radius: 120px;
    }

    .orbit-4 .skill-node {
        --orbit-radius: 150px;
    }

    .orbit-5 .skill-node {
        --orbit-radius: 190px;
    }

    .skill-legend {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    /* Hide labels on mobile - icons only */
    .skill-label {
        display: none;
    }

    /* Make icons larger on mobile for visibility */
    .skill-icon {
        width: 70%;
        height: 70%;
    }

    /* Smaller text on mobile */
    .skill-node.text-only .skill-text {
        font-size: 0.55em;
    }
}

/* Active/Selected State */
.skill-node.active {
    border-width: 3px;
    box-shadow: 0 0 30px rgba(0, 146, 204, 1), 0 0 60px rgba(0, 146, 204, 0.6);
}

/* Touch active state for mobile */
.skill-galaxy-wrapper.touch-active .skill-orbit {
    animation-play-state: paused;
}

.skill-galaxy-wrapper.touch-active .skill-node {
    animation-play-state: paused;
}

/* =========================================
   Cinematic Split Layout (Mission Archive)
   ========================================= */

.cinematic-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1400px;
    min-height: 600px;
    background: linear-gradient(135deg, rgba(9, 21, 26, 0.98) 0%, rgba(10, 26, 34, 0.98) 100%);
    border-radius: 20px;
    border: 2px solid rgba(0, 146, 204, 0.35);
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(0, 146, 204, 0.18);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    margin: 0 auto;
}

.cinematic-media {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #000;
}

.cinematic-media img,
.cinematic-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cinematic-content {
    position: relative;
    padding: 2.5rem;
    display: grid;
    align-items: center;
    background: linear-gradient(135deg, rgba(9, 21, 26, 0.95) 0%, rgba(10, 26, 34, 0.98) 100%);
}

.content-front,
.content-back {
    grid-area: 1 / 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Default State: Front Visible */
.content-front {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.content-back {
    opacity: 0;
    transform: scale(0.98);
    z-index: 1;
    pointer-events: none;
}

/* Active State: Back Visible */
.cinematic-card.flipped .content-front {
    opacity: 0;
    transform: scale(0.98);
    z-index: 1;
    pointer-events: none;
}

.cinematic-card.flipped .content-back {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

/* Adjustments for content elements */
.cinematic-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #0092CC;
}

.cinematic-content .project-tech-stack {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .cinematic-card {
        grid-template-columns: 1fr;
        grid-template-rows: 300px min-content;
        min-height: auto;
    }

    .cinematic-media {
        height: 100%;
        min-height: 250px;
    }

    .cinematic-content {
        padding: 1.5rem;
    }

    /* Ensure height fits content */
    .content-front,
    .content-back {
        position: relative;
        /* On mobile, stacking might be taller, but grid area 1/1 still works 
           as long as the container grows to fit the tallest one. */
    }
}

/
/* --- MISSION ARCHIVE FULLSCREEN REDESIGN --- */
.mission-archive-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.fullscreen-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fullscreen-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-container {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    perspective: 1000px;
}

.card.fullscreen-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card.fullscreen-card.flipped {
    transform: rotateY(180deg);
}

/* FRONT FACE */
.content-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #000;
    overflow: hidden;
}

.project-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.8s ease;
}

.content-front:hover .project-image-bg {
    transform: scale(1.05);
}

.front-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), transparent);
    z-index: 2;
    text-align: left;
}

.cine-title {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    line-height: 0.9;
}

.cine-subtitle {
    font-size: 1.5rem;
    color: #0092CC;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* BACK FACE */
.content-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transform: rotateY(180deg);
    background: radial-gradient(circle at center, #0a1a25 0%, #000000 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.back-content-wrapper {
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 146, 204, 0.2);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 146, 204, 0.3);
    padding-bottom: 20px;
}

.project-header h3 {
    font-size: 2.5rem;
    color: #fff;
    margin: 0;
}

.tech-badges {
    display: flex;
    gap: 15px;
}

.tech-badge {
    width: 40px;
    height: 40px;
    background: rgba(0, 146, 204, 0.1);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

/* CRITICAL ICON FIX */
.tech-badge img,
.tech-badge svg,
.tech-badge i {
    width: 24px !important;
    height: 24px !important;
    object-fit: contain !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.detail-item strong {
    display: block;
    color: #0092CC;
    font-size: 1.1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.project-links {
    text-align: right;
}

/* NAVIGATION - FIXED & GLASSMORPHISM */
.fullscreen-nav {
    position: fixed;
    /* Fixed to viewport to ensure visibility over 3D transforms */
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    /* Slightly larger */
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    /* Lighter glass base */
    backdrop-filter: blur(12px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 146, 204, 0.4);
    border-radius: 50%;
    color: #0092CC;
    cursor: pointer;
    z-index: 10000;
    /* Extreme z-index to stay on top */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.fullscreen-nav:hover {
    background: rgba(0, 146, 204, 0.2);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 0 30px rgba(0, 146, 204, 0.6);
    border-color: #0092CC;
}

.fullscreen-nav.prev {
    left: 30px;
}

.fullscreen-nav.next {
    right: 30px;
}

.fullscreen-nav svg {
    width: 32px;
    /* Larger icon */
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(0, 146, 204, 0.5));
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 768px) {
    .cine-title {
        font-size: 2.5rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-header h3 {
        font-size: 1.8rem;
    }

    .fullscreen-nav {
        width: 40px;
        height: 40px;
    }

    .fullscreen-nav.prev {
        left: 10px;
    }

    .fullscreen-nav.next {
        right: 10px;
    }
}

/* APPENDING MISSION ARCHIVE FIXES */
/* =========================================================================
   Mission Archive - Fullscreen Refinements & Fixes
   ========================================================================= */

/* Ensure the section is fully immersive and doesn't break flow */
.mission-archive-fullscreen {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #0b0d17;
    margin: 0;
    padding: 0;
    /* Ensure z-index context */
    z-index: 10;
}

/* Fix for content visibility after archive */
/* We ensure the next section flows naturally */
.mission-archive-fullscreen+* {
    margin-top: 0;
}

/* Slider Track */
.fullscreen-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.fullscreen-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Project Container */
.project-container {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    perspective: 1500px;
    /* Enhanced 3D perspective */
    position: relative;
}

/* Card Structure */
.card.fullscreen-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card.fullscreen-card.flipped {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.content-front,
.content-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    top: 0;
    left: 0;
    overflow: hidden;
}

/* Front Face Styling */
.content-front {
    z-index: 2;
}

.project-image-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: filter 0.3s ease;
}

.card:hover .project-image-bg {
    filter: brightness(0.4);
}

.front-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: white;
    text-align: left;
    pointer-events: none;
    /* Let clicks pass through */
}

.cine-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.cine-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #0092CC;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Back Face Styling */
.content-back {
    transform: rotateY(180deg);
    background: #0b0d17;
    background: radial-gradient(circle at center, #1a1d2d, #0b0d17);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    z-index: 1;
}

.back-content-wrapper {
    max-width: 1000px;
    width: 90%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 146, 204, 0.3);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

/* Navigation Buttons - Redesigned */
.fullscreen-nav {
    position: absolute;
    /* Changed to absolute relative to container */
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    z-index: 100;
    /* Ensure above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    outline: none;
}

.fullscreen-nav:hover {
    background: rgba(0, 146, 204, 0.6);
    border-color: #0092CC;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 146, 204, 0.4);
}

/* Position exactly */
.fullscreen-nav.prev {
    left: 30px;
}

.fullscreen-nav.next {
    right: 30px;
}

.fullscreen-nav svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cine-title {
        font-size: 2.5rem;
    }

    .cine-subtitle {
        font-size: 1.2rem;
    }

    .fullscreen-nav {
        width: 44px;
        height: 44px;
    }

    .fullscreen-nav.prev {
        left: 10px;
    }

    .fullscreen-nav.next {
        right: 10px;
    }

    .back-content-wrapper {
        padding: 20px;
        width: 95%;
    }

    .project-header h3 {
        font-size: 1.8rem;
    }
}

/* APPENDING MISSION ARCHIVE HOTFIXES */
/* =========================================================================
   HOTFIX: Mission Archive Back Content Visibility
   ========================================================================= */

/* Force opacity and visibility on card faces to ensure they render */
.fullscreen-track .card .content-back {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Ensure background is opaque and matches theme */
    background: #0b0d17 !important;
    background: radial-gradient(circle at center, #1a1d2d, #0b0d17) !important;
    /* Ensure text color is visible */
    color: #ffffff !important;
}

.fullscreen-track .card .content-front {
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure front is white text too */
    color: #ffffff !important;
}

/* Ensure text elements inside are visible */
.fullscreen-track .card .content-back p,
.fullscreen-track .card .content-back h3,
.fullscreen-track .card .content-back strong,
.fullscreen-track .card .content-back li {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
}

.fullscreen-track .card .content-back h3 {
    color: #0092CC !important;
    /* Keeper header blue */
}

.fullscreen-track .card .content-back .tech-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure z-indexing works with 3D transform */
.card.fullscreen-card {
    transform-style: preserve-3d !important;
}

/* APPENDING MISSION ARCHIVE HOTFIXES */
/* =========================================================================
   HOTFIX: Mission Archive Back Content Visibility & Polish
   ========================================================================= */

/* Force opacity and visibility on card faces to ensure they render */
.fullscreen-track .card .content-back {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Ensure background is opaque and matches theme */
    background: #0b0d17 !important;
    background: radial-gradient(circle at center, #1a1d2d, #0b0d17) !important;
    /* Ensure text color is visible */
    color: #ffffff !important;
}

.fullscreen-track .card .content-front {
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure front is white text too */
    color: #ffffff !important;
}

/* Ensure text elements inside are visible */
.fullscreen-track .card .content-back p,
.fullscreen-track .card .content-back h3,
.fullscreen-track .card .content-back strong,
.fullscreen-track .card .content-back li {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
}

.fullscreen-track .card .content-back h3 {
    color: #0092CC !important;
    /* Keeper header blue */
}

.fullscreen-track .card .content-back .tech-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure z-indexing works with 3D transform */
.card.fullscreen-card {
    transform-style: preserve-3d !important;
}

/* ------------------------------------------------------------------------- */
/* SPACIOUSNESS & POLISH FIXES */
/* ------------------------------------------------------------------------- */

/* Increase wrapper size to reduce "empty space" feel */
.back-content-wrapper {
    width: 95% !important;
    /* Wider */
    max-width: 1200px !important;
    /* Wider max width */
    padding: 60px 50px !important;
    /* More breathing room inside */
    background: rgba(255, 255, 255, 0.08) !important;
    /* Slightly more visible backdrop */
    border: 1px solid rgba(0, 146, 204, 0.4) !important;
}

/* Make headers larger to fill space */
.project-header h3 {
    font-size: 3rem !important;
    /* Larger title */
    margin-bottom: 30px !important;
}

/* Grid spacing */
.project-details-grid {
    gap: 40px !important;
    /* More space between columns */
    margin-bottom: 40px !important;
}

.detail-item strong {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    display: block !important;
    color: #0092CC !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Badge sizing */
.tech-badge {
    width: 50px !important;
    height: 50px !important;
    padding: 8px !important;
}

.tech-badge img {
    width: 100% !important;
    height: 100% !important;
}

/* Footer link button */
.project-links {
    margin-top: 20px !important;
    text-align: right !important;
    /* Align to right for balance */
}

.project-links .cyber-btn {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-content-wrapper {
        padding: 30px 20px !important;
    }

    .project-header h3 {
        font-size: 2rem !important;
    }

    .project-details-grid {
        gap: 20px !important;
    }
}

/* APPENDING MISSION ARCHIVE HOTFIXES */
/* =========================================================================
   HOTFIX: Mission Archive Back Content Visibility & Polish
   ========================================================================= */

/* Force opacity and visibility on card faces to ensure they render */
.fullscreen-track .card .content-back {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Ensure background is opaque and matches theme */
    background: #0b0d17 !important;
    background: radial-gradient(circle at center, #1a1d2d, #0b0d17) !important;
    /* Ensure text color is visible */
    color: #ffffff !important;
    /* Center align content wrapper vertically/horizontally */
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    /* CENTER TEXT GLOBALLY */
}

.fullscreen-track .card .content-front {
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure front is white text too */
    color: #ffffff !important;
}

/* Ensure text elements inside are visible */
.fullscreen-track .card .content-back p,
.fullscreen-track .card .content-back h3,
.fullscreen-track .card .content-back strong,
.fullscreen-track .card .content-back li {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
}

.fullscreen-track .card .content-back h3 {
    color: #0092CC !important;
    /* Keeper header blue */
}

.fullscreen-track .card .content-back .tech-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure z-indexing works with 3D transform */
.card.fullscreen-card {
    transform-style: preserve-3d !important;
}

/* ------------------------------------------------------------------------- */
/* SPACIOUSNESS & POLISH FIXES */
/* ------------------------------------------------------------------------- */

/* Increase wrapper size to reduce "empty space" feel */
.back-content-wrapper {
    width: 95% !important;
    /* Wider */
    max-width: 1200px !important;
    /* Wider max width */
    padding: 60px 50px !important;
    /* More breathing room inside */
    background: rgba(255, 255, 255, 0.08) !important;
    /* Slightly more visible backdrop */
    border: 1px solid rgba(0, 146, 204, 0.4) !important;

    /* Flex column to ensure centering */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Make headers larger to fill space */
.project-header h3 {
    font-size: 3rem !important;
    /* Larger title */
    margin-bottom: 30px !important;
    text-align: center !important;
    width: 100% !important;
}

/* Center the tech badges container */
.tech-badges {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
    margin-bottom: 30px !important;
}

/* Grid spacing */
.project-details-grid {
    gap: 40px !important;
    /* More space between columns */
    margin-bottom: 40px !important;
    width: 100% !important;
    /* Ensure text in grid is centered */
    text-align: center !important;
}

.detail-item strong {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    display: block !important;
    color: #0092CC !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
}

/* Badge sizing */
.tech-badge {
    width: 50px !important;
    height: 50px !important;
    padding: 8px !important;
}

.tech-badge img {
    width: 100% !important;
    height: 100% !important;
}

/* Footer link button */
.project-links {
    margin-top: 20px !important;
    text-align: center !important;
    /* Center the button */
    width: 100% !important;
}

.project-links .cyber-btn {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    display: inline-block !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .back-content-wrapper {
        padding: 30px 20px !important;
    }

    .project-header h3 {
        font-size: 2rem !important;
    }

    .project-details-grid {
        gap: 20px !important;
        grid-template-columns: 1fr !important;
    }
}
/* APPENDING MISSION ARCHIVE IMPROVED UI */
/* =========================================================================
   HOTFIX: Mission Archive Back Content Visibility & Polish
   ========================================================================= */

/* Force opacity and visibility on card faces to ensure they render */
.fullscreen-track .card .content-back {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    /* Ensure background is opaque and matches theme */
    background: #0b0d17 !important;
    background: radial-gradient(circle at center, #1a1d2d, #0b0d17) !important;
    /* Ensure text color is visible */
    color: #ffffff !important;
    /* Center align content wrapper vertically/horizontally */
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    /* CENTER TEXT GLOBALLY */
}

.fullscreen-track .card .content-front {
    opacity: 1 !important;
    visibility: visible !important;
    /* Ensure front is white text too */
    color: #ffffff !important;
}

/* Ensure text elements inside are visible */
.fullscreen-track .card .content-back p,
.fullscreen-track .card .content-back h3,
.fullscreen-track .card .content-back strong,
.fullscreen-track .card .content-back li {
    opacity: 1 !important;
    visibility: visible !important;
    color: #ffffff !important;
}

.fullscreen-track .card .content-back h3 {
    color: #0092CC !important;
    /* Keeper header blue */
}

.fullscreen-track .card .content-back .tech-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure z-indexing works with 3D transform */
.card.fullscreen-card {
    transform-style: preserve-3d !important;
}

/* ------------------------------------------------------------------------- */
/* SPACIOUSNESS & POLISH FIXES */
/* ------------------------------------------------------------------------- */

/* Increase wrapper size to reduce "empty space" feel */
.back-content-wrapper {
    width: 90% !important;
    /* Slightly narrower for better focus */
    max-width: 1100px !important;
    padding: 50px !important;
    background: rgba(255, 255, 255, 0.03) !important;
    /* Very subtle */
    border: 1px solid rgba(0, 146, 204, 0.2) !important;
    border-radius: 24px !important;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6) !important;

    /* Flex column to ensure centering */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

/* HEADER LAYOUT - FIXED STACKING */
.project-header {
    display: flex !important;
    flex-direction: column !important;
    /* Stack Title above Icons */
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-bottom: 40px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 20px !important;
}

.project-header h3 {
    font-size: 3.5rem !important;
    /* Larger title */
    margin-bottom: 20px !important;
    text-align: center !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 0 20px rgba(0, 146, 204, 0.4) !important;
}

/* Center the tech badges container */
.tech-badges {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 10px !important;
}

/* GRID LAYOUT - CARDS */
.project-details-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    /* Balanced gap */
    margin-bottom: 40px !important;
    width: 100% !important;
}

/* DETAIL ITEMS - "IMPRESSIVE" UI */
.detail-item {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    padding: 25px !important;
    transition: transform 0.3s ease, background 0.3s ease !important;
    height: 100% !important;
    /* Equal height */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: translateY(-5px) !important;
    border-color: rgba(0, 146, 204, 0.3) !important;
}

.detail-item strong {
    font-size: 1.1rem !important;
    margin-bottom: 15px !important;
    display: block !important;
    color: #0092CC !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid rgba(0, 146, 204, 0.3) !important;
    padding-bottom: 5px !important;
}

.detail-item p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    color: #e0e0e0 !important;
    margin: 0 !important;
}

/* Badge sizing */
.tech-badge {
    width: 60px !important;
    height: 60px !important;
    padding: 10px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease !important;
}

.tech-badge:hover {
    transform: scale(1.1) !important;
    border-color: #0092CC !important;
    box-shadow: 0 0 15px rgba(0, 146, 204, 0.3) !important;
}

.tech-badge img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Footer link button */
.project-links {
    margin-top: 10px !important;
    text-align: center !important;
    /* Center the button */
    width: 100% !important;
}

.project-links .cyber-btn {
    padding: 16px 40px !important;
    font-size: 1.1rem !important;
    display: inline-block !important;
    background: linear-gradient(45deg, rgba(0, 146, 204, 0.2), rgba(0, 146, 204, 0.1)) !important;
    border: 1px solid #0092CC !important;
    box-shadow: 0 0 20px rgba(0, 146, 204, 0.2) !important;
}

.project-links .cyber-btn:hover {
    background: rgba(0, 146, 204, 0.3) !important;
    box-shadow: 0 0 30px rgba(0, 146, 204, 0.5) !important;
}


/* Mobile adjustments */
@media (max-width: 900px) {
    .project-details-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .project-header h3 {
        font-size: 2.5rem !important;
    }

    .back-content-wrapper {
        padding: 30px 20px !important;
        width: 95% !important;
    }
}