:root {
    --bg-light: #ffffff;
    --text-main: #1a1a1a;
    --text-dim: #5f6368;
    --accent-blue: #4285f4;
    --accent-red: #ea4335;
    --accent-yellow: #fbbc04;
    --accent-green: #34a853;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    overflow-y: auto; /* Enable vertical scroll */
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

main {
    position: relative;
    width: 100%;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 15;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-main);
}

.btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-left: 2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    position: relative;
}

.gradient-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(to bottom, #000, #555);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.description {
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn-glow {
    background: var(--accent-blue);
    color: white;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(66, 133, 244, 0.2);
    transition: all 0.3s;
}

.btn-glow:hover {
    box-shadow: 0 15px 30px rgba(66, 133, 244, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1rem 2.2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.3);
}

/* Mega Title */
.centered-title-section {
    min-height: unset !important;
    padding: 10rem 5% 2rem !important;
    text-align: center;
}

.mega-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    margin: 0;
    color: #1a1a1a; /* Dark color for visibility on light background */
    letter-spacing: -0.02em;
}

/* Animation Showcase */
#animation-showcase {
    padding: 4rem 5% 6rem;
}

#animation-showcase .mega-title {
    text-align: center;
    margin-bottom: 4rem;
}

.split-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-side {
    flex: 1;
    text-align: left;
}



.section-description {
    font-size: 1.25rem;
    color: #333; /* Darker color for visibility */
    line-height: 1.6;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a; /* Dark color for visibility */
}

.feature-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4285f4;
    font-weight: bold;
}

.viz-side {
    flex: 1.2;
    position: relative;
}

@keyframes ambientShift {
    0%   { box-shadow: 0 0 60px 20px rgba(255,77,77,0.5),  0 0 120px 40px rgba(66,133,244,0.3); }
    25%  { box-shadow: 0 0 60px 20px rgba(251,188,4,0.5),  0 0 120px 40px rgba(52,168,83,0.3); }
    50%  { box-shadow: 0 0 60px 20px rgba(66,133,244,0.5), 0 0 120px 40px rgba(168,85,247,0.3); }
    75%  { box-shadow: 0 0 60px 20px rgba(52,168,83,0.5),  0 0 120px 40px rgba(255,149,0,0.3); }
    100% { box-shadow: 0 0 60px 20px rgba(255,77,77,0.5),  0 0 120px 40px rgba(66,133,244,0.3); }
}

.animation-container {
    position: relative;
    width: 100%;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #ff4d4d, #4285f4, #34a853, #fbbc04);
    overflow: hidden;
    animation: ambientShift 4s ease-in-out infinite;
}

#sequence-canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    background: #fff; /* Frames are white based */
}

@media (max-width: 900px) {
    .split-container {
        flex-direction: column;
    }
    .text-side {
        text-align: center;
    }
    .section-description {
        text-align: center;
    }
    .feature-list {
        text-align: center;
    }
}

.canvas-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: opacity 0.5s ease;
}

.canvas-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #4285f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    padding: 4rem 5%;
    text-align: center;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    animation: float 8s ease-in-out infinite;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-icon.blue { background: var(--accent-blue); }
.card-icon.red { background: var(--accent-red); }
.card-icon.yellow { background: var(--accent-yellow); }
.card-icon.green { background: var(--accent-green); }

.card-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.card-1 {
    top: 18%;
    right: 15%;
    width: 280px;
    animation-delay: 0s;
}

.card-2 {
    top: 46%;
    right: 25%;
    width: 250px;
    animation-delay: -2s;
}

.card-3 {
    top: 74%;
    right: 12%;
    width: 260px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.card-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: var(--accent-red); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green { background: var(--accent-green); }

.card-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #0d652d;
    font-size: 0.95rem;
    font-weight: 600;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-red));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}

@media (max-width: 768px) {
    .navbar nav { display: none; }
    .hero { text-align: center; justify-content: center; padding-top: 120px; }
    .floating-elements { display: none; }
    .hero-content { align-items: center; }
}

.content-section {
    min-height: 100vh;
    padding: 100px 10%;
    background: #ffffff;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: left;
    background: linear-gradient(135deg, #1d1d1f 0%, #434343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.demo-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.demo-block {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 2rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dim);
    transition: all 0.3s;
}

.demo-block:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.2);
}

/* Mobile showcase overflow fix */
#mobile-showcase {
    overflow: hidden;
}

@media (max-width: 768px) {
    #mobile-showcase .container,
    #mobile-showcase .slider-wrapper,
    #mobile-showcase .slider-glow-wrap,
    #mobile-showcase .slider-track-outer {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Slider glow wrapper */
.slider-glow-wrap {
    border-radius: 24px;
    padding: 2px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, #ff4d4d, #4285f4, #34a853, #fbbc04);
    animation: ambientShift 4s ease-in-out infinite;
}

#sliderTrack {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-track-outer {
    overflow: hidden;
    border-radius: 22px;
    width: 100%;
    background: #fff;
}

.slide {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    align-items: center;
    gap: 4rem;
    padding: 3rem;
    background: #fff;
    box-sizing: border-box;
}

.slide-phone-wrap {
    flex-shrink: 0;
    width: 220px;
    border-radius: 32px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    overflow: hidden;
}

.slide-phone-wrap img {
    width: 100%;
    display: block;
}

.slide-text h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.slide-text p {
    font-size: 1.1rem;
    color: #5f6368;
    line-height: 1.7;
}

/* Slider button hover */
.slider-btn:hover {
    background: #4285f4 !important;
    border-color: #4285f4 !important;
}
.slider-btn:hover svg {
    stroke: #fff !important;
}

@media (max-width: 768px) {
    #mobile-showcase .slide {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        box-sizing: border-box;
    }
    #mobile-showcase .slide-phone-wrap {
        width: 200px !important;
        max-width: 200px !important;
        flex-shrink: 0;
        border-radius: 24px;
    }
    #mobile-showcase .slide-phone-wrap img {
        width: 200px !important;
        height: auto;
    }
    #mobile-showcase .slide-text {
        text-align: center;
        flex: unset;
        min-width: 0;
    }
    #mobile-showcase .slide-text h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    #mobile-showcase .slide-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .cta-group { justify-content: center; }
    .hero-content { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content .subtitle { font-size: 1rem; }
    .hero-content .description { font-size: 0.9rem; line-height: 1.6; }
    .section-title { font-size: 1.5rem !important; margin-bottom: 1.2rem; text-align: left !important; }
    .mega-title { font-size: 1.8rem !important; margin-bottom: 1.5rem !important; }
    .content-section { padding: 40px 4%; }
    .split-container { flex-direction: column; gap: 2rem; text-align: left !important; }
    .text-side { text-align: left !important; }
    .section-description { text-align: left !important; }
    .feature-list { text-align: left !important; }
}

/* Shine Button */
.shine-button {
    position: relative;
    padding: 16px 32px;
    background: linear-gradient(135deg, #0047ff, #002db3);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.4s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shine-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.shine-button:hover::before {
    animation: shine-sweep 0.75s ease-in-out;
}

@keyframes shine-sweep {
    100% { left: 150%; }
}

.shine-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 71, 255, 0.5);
}

.shine-button:active {
    transform: translateY(0);
}

.shine-button .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shine-button:hover .icon-container {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.3);
}

.shine-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
