:root {
    /* Color Palette */
    --bg-color: #0b0f19;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --accent-primary: #3b82f6;
    /* Blue */
    --accent-secondary: #8b5cf6;
    /* Purple */

    /* Glassmorphism settings */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    /* Dynamic animated glowing background spots */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Responsive Image Helper */
.responsive-image {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents tiny gaps at the bottom of the image */
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Base Section Settings */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Section 1: The Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    animation: fadeUpIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3.5rem;
    font-weight: 500;
    text-align: center;
}



.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #0891b2, #1d4ed8);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow:
        0 0 0 0 rgba(6, 182, 212, 0),
        0 10px 30px -6px rgba(6, 182, 212, 0.45);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.3);
    animation: cta-glow-pulse 3s ease-in-out infinite;
}

@keyframes cta-glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(6, 182, 212, 0),
            0 10px 30px -6px rgba(6, 182, 212, 0.4);
        border-color: rgba(6, 182, 212, 0.3);
    }

    50% {
        box-shadow:
            0 0 22px -4px rgba(6, 182, 212, 0.5),
            0 10px 30px -6px rgba(59, 130, 246, 0.4);
        border-color: rgba(6, 182, 212, 0.6);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.02);
    background: linear-gradient(135deg, #0e7490, #1e40af);
    box-shadow:
        0 0 30px -4px rgba(6, 182, 212, 0.7),
        0 16px 40px -8px rgba(6, 182, 212, 0.4);
    border-color: rgba(6, 182, 212, 0.7);
    animation: none;
}

.cta-button:hover::before {
    left: 200%;
}

/* Section 2: About Me */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-weight: 300;
}

.profile-image-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s ease, border-color 0.5s ease;
}

.profile-image-container:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
}

/* Section 3: The Trophy Room */
.trophy-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
}

.glass-card {
    flex: 1 1 320px;
    max-width: 380px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover::before {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

.glass-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.3;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.award-photo {
    width: 100%;
    height: 160px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover .award-photo {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* Section 4: Projects (Coding Lab) */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 20px 50px -10px rgba(59, 130, 246, 0.25);
}

.project-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
}

.project-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.tech-tag {
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 0.85rem;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tech-tag:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

.project-action {
    margin-top: 3rem;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-primary), #2563eb);
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 20px -5px rgba(59, 130, 246, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px -5px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}

.project-cta svg {
    transition: transform 0.3s ease;
}

.project-cta:hover svg {
    transform: translateX(4px);
}

/* Section 5: Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 3rem;
    text-align: center;
    margin-top: 6rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    /* Handled globally */
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-info {
        padding: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    section {
        padding: 4rem 0;
    }
}

/* Scroll Animations utility classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    /* Semi-transparent dark blue bg */
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    z-index: 10;
}

.close-modal:hover {
    color: white;
}

#modalTitle {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: white;
    padding-right: 2rem;
    font-weight: 600;
}

.modal-image-wrapper {
    flex-grow: 1;
    overflow: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    min-height: 300px;
    padding: 1rem;
}

.modal-image-wrapper img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* View Certificate Button */
.view-cert-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-cert-btn:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.view-cert-btn svg {
    transition: transform 0.3s ease;
}

.view-cert-btn:hover svg {
    transform: scale(1.1);
}

/* Tinkercad "Check Simulation" Button */
.tinkercad-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.6rem;
    background: linear-gradient(135deg, #ff6b35, #e04e00);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 107, 53, 0.4);
    box-shadow:
        0 0 0 0 rgba(255, 107, 53, 0.6),
        0 8px 24px -6px rgba(255, 107, 53, 0.5);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: tinkercad-pulse 2.5s infinite;
    white-space: nowrap;
    align-self: flex-end;
}

@keyframes tinkercad-pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(255, 107, 53, 0.5),
            0 8px 24px -6px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow:
            0 0 0 8px rgba(255, 107, 53, 0),
            0 8px 28px -4px rgba(255, 107, 53, 0.7);
    }
}

.tinkercad-btn:hover {
    transform: translateY(-4px) scale(1.04);
    background: linear-gradient(135deg, #ff7f50, #ff5500);
    box-shadow:
        0 0 20px rgba(255, 107, 53, 0.7),
        0 12px 32px -6px rgba(255, 107, 53, 0.6);
    animation: none;
    color: white;
}

/* Dark variant – lets the Tinkercad logo icon stand out */
.tinkercad-btn--dark {
    background: linear-gradient(135deg, #1e2130, #141822);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 0 rgba(255, 255, 255, 0.15),
        0 8px 24px -6px rgba(0, 0, 0, 0.5);
    animation: tinkercad-dark-pulse 2.5s infinite;
}

@keyframes tinkercad-dark-pulse {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(255, 107, 53, 0.3),
            0 8px 24px -6px rgba(0, 0, 0, 0.5);
    }

    50% {
        box-shadow:
            0 0 0 7px rgba(255, 107, 53, 0),
            0 8px 28px -4px rgba(255, 107, 53, 0.35);
    }
}

.tinkercad-btn--dark:hover {
    background: linear-gradient(135deg, #252a3d, #1a1f30);
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow:
        0 0 18px rgba(255, 107, 53, 0.5),
        0 12px 32px -6px rgba(255, 107, 53, 0.35);
    animation: none;
}

/* ── My Arduino Projects Sub-section ── */

.arduino-subheading {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
    letter-spacing: -0.01em;
}

.arduino-card {
    flex: 1 1 300px;
    background: rgba(139, 92, 246, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.18);
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.arduino-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.08);
}

/* WIP card – amber accent */
.arduino-card--wip {
    border-color: rgba(251, 191, 36, 0.22);
    background: rgba(251, 191, 36, 0.03);
    animation: wip-border-pulse 3s ease-in-out infinite;
}

.arduino-card--wip:hover {
    border-color: rgba(251, 191, 36, 0.55);
    box-shadow: 0 16px 40px -10px rgba(251, 191, 36, 0.2);
    background: rgba(251, 191, 36, 0.07);
    animation: none;
}

@keyframes wip-border-pulse {

    0%,
    100% {
        border-color: rgba(251, 191, 36, 0.2);
    }

    50% {
        border-color: rgba(251, 191, 36, 0.5);
    }
}

.arduino-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.arduino-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.arduino-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.15rem;
    line-height: 1.2;
}

.arduino-card-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 9999px;
    padding: 0.2rem 0.65rem;
    display: inline-block;
}

.arduino-card-subtitle--wip {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
}

.arduino-card-desc {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
}

.arduino-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.arduino-card-list li {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.65;
    padding-left: 0.2rem;
}

.arduino-list-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
    margin-right: 0.35rem;
}

.arduino-card-list code {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    font-size: 0.87rem;
    color: #93c5fd;
}

/* ── Python Projects Two-Column Grid ── */

.python-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .python-grid {
        grid-template-columns: 1fr;
    }
}

.python-card {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.04) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    animation: python-card-glow 3s ease-in-out infinite;
}

@keyframes python-card-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(6, 182, 212, 0),
            0 8px 30px -8px rgba(6, 182, 212, 0.15);
        border-color: rgba(6, 182, 212, 0.2);
    }

    50% {
        box-shadow:
            0 0 20px -4px rgba(6, 182, 212, 0.2),
            0 8px 30px -8px rgba(59, 130, 246, 0.25);
        border-color: rgba(6, 182, 212, 0.45);
    }
}

.python-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.7);
    box-shadow:
        0 0 28px -4px rgba(6, 182, 212, 0.4),
        0 16px 40px -10px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
    animation: none;
}

.python-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.python-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.python-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.python-card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.7rem;
    display: inline-block;
}

.python-card-badge--strategy {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.1);
    border-color: rgba(167, 139, 250, 0.3);
}

.python-card-desc {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
    margin: 0;
    flex-grow: 1;
}

/* CTA button: bottom-center, same plane on both cards */
.python-cta {
    align-self: center;
    margin-top: auto;
    width: fit-content;
    background: linear-gradient(135deg, #0891b2, #1d4ed8);
    box-shadow: 0 8px 20px -5px rgba(6, 182, 212, 0.4);
    border-color: rgba(6, 182, 212, 0.25);
}

.python-cta:hover {
    background: linear-gradient(135deg, #0e7490, #1e40af);
    box-shadow: 0 12px 28px -5px rgba(6, 182, 212, 0.6);
    border-color: rgba(6, 182, 212, 0.5);
}

/* ══════════════════════════════════════════
   Sticky Navigation Bar
══════════════════════════════════════════ */
#sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    background: rgba(11, 15, 25, 0.55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.45);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-inner {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.45rem 1.25rem;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Active tab – glowing blue/purple pill */
.nav-link.active {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow:
        0 0 14px -3px rgba(59, 130, 246, 0.5),
        inset 0 0 8px -4px rgba(59, 130, 246, 0.3);
    text-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
}

/* ══════════════════════════════════════════
   Scroll Indicator Chevron
══════════════════════════════════════════ */
#scroll-chevron {
    position: relative;
    margin: 3.5rem auto 0;
    color: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: opacity 0.6s ease, color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
    animation: chevron-bounce 1.8s ease-in-out infinite;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    text-decoration: none;
    z-index: 1;
    border-radius: 50%;
    padding: 0.5rem;
    width: fit-content;
}

#scroll-chevron:hover {
    color: white;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    transform: scale(1.25);
    animation: none;
}

#scroll-chevron.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes chevron-bounce {

    0%,
    100% {
        transform: translateY(0);
        color: rgba(255, 255, 255, 0.35);
    }

    50% {
        transform: translateY(10px);
        color: rgba(147, 197, 253, 0.65);
    }
}

/* Push body content down so nav doesn't overlap hero content */
body {
    padding-top: 0;
    /* nav is fixed & hero is 100vh, no push needed */
}

@media (max-width: 640px) {
    .nav-link {
        font-size: 0.82rem;
        padding: 0.4rem 0.85rem;
    }

    .nav-inner {
        gap: 0.25rem;
    }
}

/* ══════════════════════════════════════════
   Back to Top FAB
══════════════════════════════════════════ */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 950;

    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(6, 182, 212, 0.35);

    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    color: #67e8f9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Hidden by default */
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px) scale(0.9);

    box-shadow:
        0 0 16px -4px rgba(6, 182, 212, 0.45),
        0 8px 24px -6px rgba(0, 0, 0, 0.5);

    transition:
        opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#back-to-top:hover {
    border-color: rgba(6, 182, 212, 0.75);
    transform: translateY(-3px) scale(1.1);
    box-shadow:
        0 0 28px -4px rgba(6, 182, 212, 0.7),
        0 12px 30px -6px rgba(6, 182, 212, 0.3);
    color: #a5f3fc;
}

#back-to-top svg {
    transition: transform 0.3s ease;
}

#back-to-top:hover svg {
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   Hero Floating STEM + Strategy Elements
══════════════════════════════════════════ */
.hero-floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floater {
    position: absolute;
    color: #67e8f9;
    opacity: 0.17;
    filter: drop-shadow(0 0 12px rgba(103, 232, 249, 0.55));
    will-change: transform, translate;
    /* CSS translate property — driven by JS parallax vars,
       composites independently from the keyframe transform */
    translate: var(--px, 0px) var(--py, 0px);
    /* Smoothing is handled by JS RAF lerp — no CSS transition needed */
    line-height: 1;
    user-select: none;
}

/* ── Individual positions ── */
.floater--king {
    top: 20%;
    left: 11%;
    font-size: clamp(4rem, 6.5vw, 6rem);
    animation: float-drift-1 9s ease-in-out infinite;
}

.floater--chip {
    top: 16%;
    right: 11%;
    width: clamp(65px, 8vw, 90px);
    height: clamp(65px, 8vw, 90px);
    animation: float-drift-2 11s ease-in-out infinite;
}

.floater--chip svg {
    width: 100%;
    height: 100%;
}

.floater--code {
    bottom: 22%;
    left: 11%;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: -0.08em;
    animation: float-drift-3 10s ease-in-out infinite;
}

.floater--rocket {
    bottom: 20%;
    right: 11%;
    width: clamp(55px, 7vw, 78px);
    animation: float-drift-4 13s ease-in-out infinite;
}

.floater--rocket svg {
    width: 100%;
    height: auto;
}

.floater--euler {
    top: 37%;
    right: 11%;
    font-size: clamp(1.1rem, 2vw, 1.6rem);
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    white-space: nowrap;
    animation: float-drift-5 12s ease-in-out infinite;
}

.floater--euler sup {
    font-size: 0.65em;
    line-height: 0;
    vertical-align: super;
}

.floater--planet {
    top: 37%;
    left: 1%;
    width: clamp(115px, 13vw, 155px);
    animation: float-drift-6 15s ease-in-out infinite;
}

.floater--planet svg {
    width: 100%;
    height: auto;
}

/* ── Drift keyframes — each a unique lazy looping path ── */
@keyframes float-drift-1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-10deg);
    }

    33% {
        transform: translate(14px, -18px) rotate(-7deg);
    }

    66% {
        transform: translate(-10px, 12px) rotate(-13deg);
    }
}

@keyframes float-drift-2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(18deg);
    }

    40% {
        transform: translate(-16px, 18px) rotate(14deg);
    }

    70% {
        transform: translate(10px, -12px) rotate(22deg);
    }
}

@keyframes float-drift-3 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-4deg);
    }

    50% {
        transform: translate(18px, -14px) rotate(-2deg);
    }
}

@keyframes float-drift-4 {

    0%,
    100% {
        transform: translate(0, 0) rotate(15deg);
    }

    30% {
        transform: translate(-12px, -20px) rotate(20deg);
    }

    65% {
        transform: translate(14px, 10px) rotate(10deg);
    }
}

@keyframes float-drift-5 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    45% {
        transform: translate(10px, 22px);
    }

    75% {
        transform: translate(-14px, 6px);
    }
}

@keyframes float-drift-6 {

    0%,
    100% {
        transform: translate(0, 0) rotate(-8deg);
    }

    40% {
        transform: translate(10px, -15px) rotate(-5deg);
    }

    70% {
        transform: translate(-8px, 12px) rotate(-11deg);
    }
}

@media (max-width: 640px) {
    .floater {
        opacity: 0.12;
    }

    .floater--euler {
        display: inline;
    }
}
