:root {
    --bg-dark: #0a0c14;
    --text-main: #f0f0f5;
    --text-muted: #d8e2f5; /* Ice Blue, lighter for contrast */
    --magenta: #ff2a85;
    --indigo: #6b4cff;
    --electric-blue: #00e5ff;
    --panel-bg: rgba(20, 22, 35, 0.6);
    --panel-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.bg-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -3;
}

/* Background Canvas */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Placed over the smoke overlay */
}

.overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 11, 16, 0.7) 0%, rgba(10, 11, 16, 0.95) 100%);
    z-index: -2; /* Placed behind the canvas but over the bg-image */
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    display: block;
}

.brand-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 50px;
    letter-spacing: -1.5px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a {
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    z-index: 10;
}

.hero-title {
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.headline-prefix {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: -1px;
}

.bold-gradient-text {
    font-size: clamp(1rem, 5vw, 3.2rem);
    white-space: nowrap;
    font-weight: 700;
    background: linear-gradient(90deg, var(--magenta), var(--indigo), var(--electric-blue));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin: 1.5rem auto 0;
    font-weight: 400; /* Increased from 300 to 400 for better legibility */
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9), 0 0 5px rgba(0,0,0,0.5); /* Stronger shadow */
}

.cta-button {
    display: inline-block;
    margin-top: 2.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.5); /* Glowing cyan border */
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.25), inset 0 0 10px rgba(0, 229, 255, 0.15); /* Cyan glow */
}

.cta-button::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;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--magenta);
    box-shadow: 0 0 30px rgba(255, 42, 133, 0.4), inset 0 0 10px rgba(255, 42, 133, 0.2);
    transform: translateY(-2px);
}

.cta-button:hover::before {
    left: 100%;
}

/* Footer Panels */
.footer-panels {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    z-index: 10;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    padding-bottom: 2.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    z-index: 10;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 380px; /* Increased to accommodate detailed content */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform;
}

.panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), var(--magenta), transparent);
    opacity: 0.3; /* visible hint of the gradient line even without hover */
    transition: opacity 0.4s ease;
}

.panel:hover {
    transform: translateY(-10px) translateZ(0);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        inset 0 -30px 40px -20px rgba(107, 76, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.panel-visual {
    width: 100%;
    height: 110px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    position: relative;
}

/* Panel Icons */
.panel-icon {
    width: 90px;
    height: 90px;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
    animation: iconFloat 5s ease-in-out infinite;
}

.panel:hover .panel-icon {
    transform: scale(1.08);
    filter: drop-shadow(0 0 18px rgba(255, 42, 133, 0.5));
}

.icon-accent {
    filter: drop-shadow(0 0 6px rgba(255, 42, 133, 0.6));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.panel-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-main);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.panel-hook {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--electric-blue);
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.panel-desc {
    font-size: 0.95rem; /* Slightly larger */
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    margin-top: -0.5rem;
    font-weight: 400; /* Increased from 300 */
}

.panel-bullets {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 0;
    text-align: left;
    width: 100%;
}

.panel-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.panel-bullets li:last-child {
    margin-bottom: 0;
}

.panel-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--electric-blue);
    font-weight: bold;
}

.highlight {
    color: var(--magenta);
    font-weight: 600;
}

/* Certifications */
.certifications-section {
    z-index: 10;
    padding: 1.5rem 2rem 2rem;
    text-align: center;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 740px;
    margin: 0 auto;
}

.certifications-grid img {
    opacity: 0.85;
    filter: brightness(1.15);
    transition: all 0.3s ease;
    object-fit: contain;
}

.certifications-grid img:hover {
    opacity: 1;
    filter: brightness(1.3);
    transform: scale(1.1);
}

.certifications-grid img.badge-dark {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 8px 14px;
    max-width: calc(50% - 1rem);
}

@media (max-width: 768px) {
    .certifications-grid {
        gap: 1rem;
        max-width: 360px;
    }
    .certifications-grid img {
        width: 70px;
        height: 70px;
    }
    .certifications-grid img.badge-dark {
        width: auto;
        height: 40px;
        max-width: calc(50% - 0.5rem);
    }
}

/* Logos Marquee */
.logos-section {
    z-index: 10;
    padding: 1rem 0 2rem;
    text-align: center;
}

.logos-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.logos-marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.logos-track {
    display: flex;
    width: max-content;
    gap: 4rem;
    align-items: center;
    animation: logoScroll 35s linear infinite;
}

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

.client-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
    opacity: 0.55;
    white-space: nowrap;
    transition: opacity 0.3s ease, color 0.3s ease;
    filter: grayscale(1);
}

.client-logo:hover {
    opacity: 1;
    color: var(--text-main);
    filter: grayscale(0);
}

@keyframes logoScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Animations */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes corePulse {
    0%, 100% { transform: scale(0.85); filter: drop-shadow(0 0 10px rgba(255, 42, 133, 0.7)); }
    50% { transform: scale(1.35); filter: drop-shadow(0 0 35px rgba(255, 42, 133, 1)); }
}

@keyframes dashCrawl {
    to { stroke-dashoffset: -40; }
}

@keyframes lightningStrike {
    0%, 100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.8; filter: drop-shadow(0 0 5px rgba(255, 42, 133, 0.5)); }
    5% { transform: translateY(-5px) scale(1.2) rotate(6deg); opacity: 1; filter: drop-shadow(0 0 25px rgba(255, 42, 133, 1)); }
    10% { transform: translateY(2px) scale(1) rotate(-4deg); opacity: 0.9; }
    15% { transform: translateY(-3px) scale(1.1) rotate(4deg); opacity: 1; filter: drop-shadow(0 0 20px rgba(255, 42, 133, 0.9)); }
    20%, 95% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.8; filter: drop-shadow(0 0 5px rgba(255, 42, 133, 0.5)); }
}

@keyframes magnetPull {
    0% { transform: translateY(-12px) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(22px) scale(1.2); opacity: 0; }
}

@keyframes wavePulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(255, 42, 133, 0.9)); }
}

/* Responsive */
@media (max-width: 1024px) {
    .headline-prefix { font-size: 2rem; }
    /* .bold-gradient-text handled by clamp */
    .panel { width: 45%; min-width: 300px; padding: 2rem; }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 1.5rem 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .brand-logo { height: 50px; }
    .social-links { justify-content: center; }

    .hero { padding: 2rem 1.25rem; margin-top: 0; }
    .headline-prefix { font-size: 1.4rem; }
    .bold-gradient-text { letter-spacing: -1px; }
    .hero-description { font-size: 1rem; line-height: 1.5; margin-top: 1rem; }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .logos-section { padding: 0.5rem 0 1.5rem; }
    .logos-label { font-size: 0.7rem; margin-bottom: 1rem; letter-spacing: 1.5px; }
    .logos-track { gap: 2.5rem; animation-duration: 25s; }
    .client-logo { font-size: 1.1rem; }

    .footer-panels {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        gap: 1.5rem;
    }
    .panel { 
        width: 100%; 
        max-width: 350px; 
        padding: 1.5rem; 
    }
    .panel-text { font-size: 1.15rem; }
    .panel-desc { font-size: 0.9rem; }
    .panel-bullets li { font-size: 0.85rem; }

    .panel-icon { width: 76px; height: 76px; }
}

@media (max-width: 380px) {
    .brand-logo { height: 30px; }
}


/* Reset h2 inside panels to match span styling */
h2.panel-text {
    margin: 0;
}
