* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

header {
    padding: 10px 20px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    top: 0;
    z-index: 100;
}


.dna-helix-header {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: rotate 15s linear infinite;
}

.helix-strand-header {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(90deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
}

    .helix-strand-header:nth-child(1) {
        animation: pulse1 3s ease-in-out infinite;
        transform: rotateX(0deg);
    }

    .helix-strand-header:nth-child(2) {
        animation: pulse2 3s ease-in-out infinite 0.5s;
        transform: rotateX(60deg);
        opacity: 0.8;
    }

    .helix-strand-header:nth-child(3) {
        animation: pulse3 3s ease-in-out infinite 1s;
        transform: rotateX(120deg);
        opacity: 0.6;
    }

.sparkr2-r {
    position: relative;
    z-index: 100;
    font-size: 40px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 25px rgba(124, 58, 237, 0.6), 0 0 35px rgba(168, 85, 247, 0.4);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
    animation: rGlow 3s ease-in-out infinite alternate;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes rGlow {
    0% {
        text-shadow: 0 0 15px rgba(255, 255, 255, 0.8),0 0 25px rgba(124, 58, 237, 0.6),0 0 35px rgba(168, 85, 247, 0.4);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 1),0 0 30px rgba(124, 58, 237, 0.8),0 0 40px rgba(168, 85, 247, 0.6);
    }
}


@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse1 {
    0%,100% {
        transform: rotateX(0deg) scale(1);
        opacity: 1;
    }

    50% {
        transform: rotateX(0deg) scale(1.15);
        opacity: .8;
    }
}

@keyframes pulse2 {
    0%,100% {
        transform: rotateX(60deg) scale(1);
        opacity: .8;
    }

    50% {
        transform: rotateX(60deg) scale(1.15);
        opacity: .6;
    }
}

@keyframes pulse3 {
    0%,100% {
        transform: rotateX(120deg) scale(1);
        opacity: .6;
    }

    50% {
        transform: rotateX(120deg) scale(1.15);
        opacity: .4;
    }
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 70px;
    list-style: none;
    font-size: 22px;
}

    .nav-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-links a:hover {
            color: #3b82f6;
        }

        .nav-links a.active {
            color: #3b82f6;
        }

            .nav-links a.active::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: -5px;
                width: 100%;
                height: 2px;
                background-color: #3b82f6;
                border-radius: 2px;
            }

.cta-button {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    /*margin-left: 20px;*/
    margin-right: 60px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* prevent shrinking */
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(59,130,246,0.4);
    }


.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 260px;
    background: rgba(15,15,30,0.95);
    backdrop-filter: blur(12px);
    padding: 30px 20px;
    transition: left 0.3s ease;
    z-index: 1050;
}

    .mobile-menu.open {
        left: 0;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 50px 0 0 0;
    }

        .mobile-menu ul li {
            margin: 20px 0;
        }

            .mobile-menu ul li a {
                color: white;
                font-size: 18px;
                text-decoration: none;
                transition: color 0.3s ease;
            }

                .mobile-menu ul li a:hover {
                    color: #3b82f6;
                }

    .mobile-menu .cta-button {
        display: block;
        margin-top: 30px;
        text-align: center;
        width: 100%;
    }

.close-btn {
    font-size: 28px;
    cursor: pointer;
    color: white;
    float: right;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1040;
}

    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }


@media (max-width: 576px) {
    .logo-text-container {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 250px;
        margin-top: 10px;
        text-align: center;
    }
    
}



/* === HEADER LAYOUT === */
.logo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap; /* prevent wrapping */
    width: 100%;
    gap: 15px; /* keep spacing consistent */
}

/* === LOGO + TEXT CONTAINER === */
.logo-text-container {
    display: flex;
    flex-direction: column; /* tagline under logo/text */
    align-items: center;
    min-width: 0; /* allows shrinking on small screens */
    text-align: center;
}

/* Logo + brand inline */
.logo-main {
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between logo + text */
}

/* Logo icon wrapper */
.sparkr2-logo-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* spacing from text */
}

/* Brand text */
.sparkr2-text {
    font-size: 2.5rem; /* unified size */
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

/* Tagline */
.sparkr2-tagline {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 8px;
    color: #ffffff;
    text-align: center;
    margin-left:5px;
}

/* === HAMBURGER === */
.hamburger {
    margin-left: auto;
    display: none;  /*hidden until breakpoint */
    font-size: 1.8rem; /* consistent */
    cursor: pointer;
    color: #fff;
    padding: 5px 10px;
    z-index: 1100;
}

/* Show hamburger ONLY on tablets/phones */
@media (max-width: 992px) {
    .hamburger {
        display: block;
        margin-right: 0;
        padding-right: 0;
    }

    .nav-links,
    .cta-button {
        display: none !important; /* hide desktop nav + button */
        margin-right: 0;
        padding-right: 0;
    }

    .maincontainer {
        max-width: 95%;
        margin: 0;
        padding: 0;
    }
}


.maincontainer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px; /* reasonable max on large screens */
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .maincontainer {
        padding: 0 15px; /* smaller padding for mobile */
        max-width: 100%; /* full width on small screens */
    }
}

