/* --- DARK & LIGHT THEME VARIABLES --- */
:root {
    --bg-primary: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.75);
    --text-main: #1a1a1a;
    --accent: #5e60ce;
    --toggle-bg: #e4e6eb;
    --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    --border-glass: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    --bg-primary: #0f1016;
    --bg-nav: rgba(15, 16, 22, 0.75);
    --text-main: #f5f5f7;
    --accent: #72efdd;
    --toggle-bg: #2f3136;
    --nav-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    --border-glass: rgba(255, 255, 255, 0.05);
}

/* --- BASE STYLES --- */
body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- THE NAVBAR (HEADER) --- */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space in the center */
    padding: 1rem 4rem;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--nav-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* --- LOGO (FAR LEFT) --- */
.nav-logo a {
    font-size: 1.6rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -1px;
}

.nav-logo span {
    color: var(--accent);
}

/* --- NAV WRAPPER ALIGNMENT --- */
.navbar nav {
    display: flex;
    margin-left: auto;
    /* Pushes list rightwards */
    margin-right: 3rem;
    /* Breathing room before the checkbox switch */
}

.navbar ul {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* --- VISUAL ORDERING MATRIX --- */
.mode-toggle {
    order: 3;
}

/* Ultimate right edge */
.navbar nav {
    order: 2;
}

/* Follows next */
.nav-logo {
    order: 1;
}

/* Remains left */

/* Reverse sorting links layout order: Switch -> Home -> About -> Projects -> Contact */
.link-home {
    order: 4;
}

.link-about {
    order: 3;
}

.link-projects {
    order: 2;
}

.link-contact {
    order: 1;
}

/* --- NAVIGATION LINKS STYLING --- */
.navbar ul a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.4rem 0;
    transition: color 0.3s ease;
}

.navbar ul a:hover {
    color: var(--accent);
}

.navbar ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar ul a:hover::after {
    width: 100%;
}

/* --- CREATIVE SLIDING CHECKBOX SWITCH --- */
/* Hide the ugly standard box markup */
#mode-toggle-checkbox {
    display: none;
}

/* The structural pill container background */
.toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--toggle-bg);
    width: 60px;
    height: 32px;
    border-radius: 50px;
    padding: 0 5px;
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.4s ease;
}

/* Icons styling inside switch layout */
.toggle-icon {
    font-size: 0.95rem;
    z-index: 1;
    user-select: none;
}

/* The dynamic moving toggle knob wheel */
.toggle-label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 26px;
    height: 26px;
    background-color: #ffffff;
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Slides the internal white knob forward when checked */
#mode-toggle-checkbox:checked+.toggle-label::after {
    transform: translateX(28px);
}


/* --- HERO SECTION STYLES --- */
.hero-container {
    min-height: calc(100vh - 80px);
    /* Fills screen remaining space below navbar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 4rem;
    overflow: hidden;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
}

.hero-sub {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.5rem 0;
    letter-spacing: -1px;
}

/* Dynamic container for the animated shuffling word entry */
#animated-name {
    display: inline-block;
    color: var(--accent);
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Class added via JS to create a sudden text transition pop */
.text-pop {
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% {
        transform: scale(0.8) translateY(10px);
        opacity: 0;
    }

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

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

/* --- INTERACTIVE ACTION BUTTONS --- */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Responsive adjustments for phones/tablets */
@media (max-width: 768px) {
    .hero-container {
        padding: 2rem;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
}

/* --- CREATIVE ABOUT PREVIEW GRID --- */
.about-preview-section {
    padding: 8rem 4rem;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Allocates significant space to the visual side */
    gap: 6rem;
    align-items: center;
}

/* --- LEFT SIDE: IMAGE FRAME MECHANICS --- */
.about-visual-side {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Translucent floating metrics validation block */
.image-experience-badge {
    position: absolute;
    bottom: 2rem;
    right: -1rem;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    padding: 1.2rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--nav-shadow);
    z-index: 10;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Geometric solid background frame offset */
.image-accent-frame {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 30px;
    top: 20px;
    left: -20px;
    z-index: 1;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* The actual image crop containment ring */
.about-image-mask {
    width: 100%;
    height: 520px;
    /* Big explicit structural presence */
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--nav-shadow);
    z-index: 2;
    position: relative;
    background-color: var(--toggle-bg);
}

.about-image-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
    filter: grayscale(20%);
}

/* Dynamic Interactive Synchronization When Section Hovers */
.about-visual-side:hover .about-image-mask img {
    transform: scale(1.04);
    filter: grayscale(0%);
}

.about-visual-side:hover .image-accent-frame {
    transform: translate(-10px, 10px);
}

.about-visual-side:hover .image-experience-badge {
    transform: translateY(-5px);
}

/* --- RIGHT SIDE: COPYWRITE STYLING --- */
.about-text-side {
    display: flex;
    flex-direction: column;
}

.about-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-text-side h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0 0 1.5rem 0;
}

.about-bio {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 0.85;
    margin: 0 0 2.5rem 0;
}

/* Micro Feature Array Groups */
.skills-mini-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.skill-pillar {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.pillar-icon {
    font-size: 1.4rem;
    background: var(--bg-nav);
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: var(--nav-shadow);
    border: 1px solid var(--border-glass);
}

.skill-pillar h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.skill-pillar p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.4;
}

/* --- THE HIGHLY VISUAL EXPANSIVE BUTTON --- */
.about-action-row {
    display: flex;
}

.magnetic-about-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    background: var(--bg-nav);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    box-shadow: var(--nav-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-arrow-bubble {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--text-main);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-arrow-bubble svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

/* Hover States */
.magnetic-about-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-primary);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.magnetic-about-btn:hover .btn-arrow-bubble {
    background-color: var(--accent);
    color: #1a1a1a;
    transform: scale(1.05);
}

.magnetic-about-btn:hover .btn-arrow-bubble stroke {
    stroke: #1a1a1a;
}

.magnetic-about-btn:hover svg {
    transform: translateX(3px);
}

/* --- RESPONSIVE GRIDS FOR PHONES & TABLETS --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        /* Stack columns on smaller viewports */
        gap: 4rem;
    }

    .about-preview-section {
        padding: 5rem 2rem;
    }

    .about-image-mask {
        height: 400px;
    }

    .about-text-side h2 {
        font-size: 2.2rem;
    }
}

/* --- PROJECTS SECTION CAROUSEL --- */
.projects-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    transition: background-color 0.4s ease;
}

.section-header {
    padding: 0 4rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -1px;
}

.section-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.7;
}

/* --- THE HORIZONTAL SCROLL SLIDER --- */
.cards-wrapper {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 4rem 3rem 4rem;
    /* Bottom padding gives space for the scrollbar styling */
    scroll-behavior: smooth;
    snap-type: x mandatory;
    /* Makes cards snap crisply into view when scrolling */
    scrollbar-width: thin;
    /* Firefox scrollbar constraint */
    scrollbar-color: var(--accent) transparent;
    /* Firefox layout scrollbar */
}

/* Modern Webkit Scrollbar Styling (Chrome, Safari, Edge) */
.cards-wrapper::-webkit-scrollbar {
    height: 8px;
}

.cards-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.cards-wrapper::-webkit-scrollbar-thumb {
    background: var(--text-main);
    opacity: 0.2;
    border-radius: 10px;
}

/* --- RECTANGULAR PROJECT CARD STRUCTURING --- */
.project-card {
    flex: 0 0 350px;
    /* Forces cards to keep a fixed 350px size width instead of shrinking */
    snap-align: start;
    background: var(--bg-nav);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--nav-shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e4e6eb;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-container img {
    transform: scale(1.05);
    /* Clean zoom effect on image when hovering card */
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-content p {
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.8;
    flex-grow: 1;
    /* Pushes content button perfectly to the absolute bottom line */
}

.card-btn {
    align-self: flex-start;
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.card-btn:hover {
    transform: translateX(5px);
    /* Mini arrow translation hint animation */
}

/* --- THE STYLISH CIRCULAR REDIRECT CARD --- */
.circle-redirect-card {
    flex: 0 0 250px;
    /* Fixed anchor dimensions to keep circle aspect proportions */
    height: 250px;
    align-self: center;
    /* Centers circle layout aligned vertically against the other cards */
    snap-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--text-main) 0%, #3a3d40 100%);
    color: var(--bg-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent);
    box-shadow: var(--nav-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Smooth inverse theme color flip if using the dark theme configuration */
[data-theme="dark"] .circle-redirect-card {
    background: linear-gradient(135deg, #1f2026 0%, #0f1016 100%);
    border: 4px solid var(--accent);
}

.circle-card-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.circle-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.circle-text {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.circle-redirect-card:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.circle-redirect-card:hover .circle-icon {
    transform: translateX(8px) scale(1.1);
}

/* Adjust layout pad spacing constraints for tiny tablet configurations */
@media (max-width: 768px) {
    .section-header {
        padding: 0 2rem;
    }

    .cards-wrapper {
        padding: 1rem 2rem 2rem 2rem;
        gap: 1.5rem;
    }

    .project-card {
        flex: 0 0 290px;
    }
}

/* --- ONGOING CARD MODIFICATIONS --- */
.ongoing-section {
    border-top: 1px dashed var(--border-glass);
}

/* Subtle styling difference to mark them as incomplete/drafts */
.ongoing-card {
    border-style: dashed;
    /* Visual indicator for "work in progress" */
}

/* Live pulsing badge over image canvas container */
.card-img-container {
    position: relative;
}

.status-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(15, 16, 22, 0.85);
    color: #ffffff;
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 5;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pulse Animation */
.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #ff3b30;
    /* Bright amber/red radar marker */
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

.pulse-dot::after {
    content: '';
    width: 100%;
    height: 100%;
    background-color: #ff3b30;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: radarPulse 1.8s infinite ease-in-out;
}

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

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

/* Special Variant styling for the circular card to make it feel lab-themed */
.ongoing-circle-card {
    background: linear-gradient(135deg, #1e1e24 0%, #2a2a35 100%);
    border: 4px dashed var(--accent);
}

[data-theme="dark"] .ongoing-circle-card {
    background: linear-gradient(135deg, #090a0f 0%, #15161c 100%);
    border: 4px dashed var(--accent);
}

.ongoing-circle-card:hover {
    transform: scale(1.08) rotate(-5deg);
    /* Rotates slightly left instead of right to break rhythm */
}


/* --- PREMIUM CTA INVITATION SECTION --- */
.cta-invitation-section {
    padding: 8rem 4rem;
    background-color: var(--bg-primary);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: background-color 0.4s ease;
}

/* Ambient design background blur behind the container box */
.cta-backdrop-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(60px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .cta-backdrop-glow {
    opacity: 0.12;
}

/* Inner Core Layout Card Container */
.cta-container {
    max-width: 900px;
    width: 100%;
    text-align: center;
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 5rem 3rem;
    border-radius: 36px;
    box-shadow: var(--nav-shadow);
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.cta-container:hover {
    transform: translateY(-4px);
}

.cta-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
}

.cta-container h2 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 0 0 1.5rem 0;
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

/* --- THE INTERACTIVE GLOW BUTTON --- */
.cta-action-wrapper {
    display: flex;
    justify-content: center;
}

.interactive-glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    text-decoration: none;
    color: var(--bg-primary);
    background-color: var(--text-main);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.btn-glow-ripple {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--accent);
    color: #101115;
    /* High contrast dark icon color inside glowing ring */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.btn-glow-ripple svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

/* Dynamic Interactive Hover States */
.interactive-glow-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background-color: var(--accent);
    color: #101115;
}

.interactive-glow-btn:hover .btn-glow-ripple {
    background-color: var(--text-main);
    color: var(--bg-primary);
    transform: scale(1.05) rotate(45deg);
    /* Arrow rotates upwards cleanly */
}

.interactive-glow-btn:hover svg {
    transform: translateX(2px) translateY(-2px);
}

/* --- RESPONSIVE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    .cta-invitation-section {
        padding: 4rem 1.5rem;
    }

    .cta-container {
        padding: 3.5rem 1.5rem;
        border-radius: 24px;
    }

    .cta-container h2 {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }

    .cta-description {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }

    .interactive-glow-btn {
        padding: 0.6rem 0.6rem 0.6rem 2rem;
        font-size: 1rem;
        gap: 1.2rem;
    }

    .btn-glow-ripple {
        width: 42px;
        height: 42px;
    }
}



/* --- PREMIUM GLOBAL FOOTER STYLES --- */
.global-footer {
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-glass);
    padding: 6rem 4rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Accent lighting divider stripe at the top edge of the footer */
.footer-wave-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.6;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.51fr 1fr 1fr;
    /* Extra allocation for brand identity */
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

/* --- BRAND COLUMN --- */
.brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--accent);
}

.brand-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 320px;
    margin: 0;
}

/* --- SOCIAL BUTTON PILLS --- */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--toggle-bg);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.social-link:hover {
    background-color: var(--text-main);
    border-color: var(--text-main);
    transform: translateY(-4px);
}

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

/* --- LINKS COLUMN --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-main);
    opacity: 0.75;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateX(4px);
    /* Interactive visual push on list item hover */
}

/* --- LIVE LABORATORY STATUS BADGE --- */
.status-indicator-box {
    background: var(--toggle-bg);
    border: 1px solid var(--border-glass);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.status-indicator-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.75;
}

.status-pulse-ring {
    width: 8px;
    height: 8px;
    background-color: #34c759;
    /* Energetic availability marker green */
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    position: relative;
}

.status-pulse-ring::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #34c759;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: availabilityGlow 2s infinite ease-in-out;
}

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

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

/* --- FOOTER BASELINE COPYRIGHT --- */
.footer-baseline {
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-baseline p {
    margin: 0;
}

.baseline-links {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.baseline-links a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* --- RESPONSIVE STRUCTURING --- */
@media (max-width: 768px) {
    .global-footer {
        padding: 4rem 2rem 2rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3.5rem;
    }

    .footer-baseline {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}