:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --accent: #4285f4;
    --text-dark: #202124;
    --text-light: #5f6368;
    --white: #ffffff;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 22px;
    color: var(--primary);
    cursor: pointer;
    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and Edge */
    user-select: none;
}

.logo img {
    height: 40px;
}

.logo span span {
    color: #34a853;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

#btn-login,
.btn {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
}

#btn-signup {
    text-decoration: none;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.3s;
}

#btn-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* HERO */
.hero {
    padding: 120px 20px 100px;
    background: radial-gradient(circle at 90% 10%, #e8f0fe 0%, #ffffff 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-text h1 {
    font-size: 52px;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 18px;
    color: var(--text-light);
    margin: 20px 0 40px;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: #9efab8;
    color: #1e7e34;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 15px;
}

.btn-primary-lg {
    padding: 15px 40px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    margin-right: 20px;
}

.hero-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* TIMELINE demo */
.timeline-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
}




.step-card {
    position: relative;
    width: 45%;
    margin-bottom: 60px;
    opacity: 0;
    transition: all 0.8s ease-out;
}

.step-card.left {
    float: left;
    text-align: right;
    transform: translateX(-50px);
}

.step-card.right {
    float: right;
    text-align: left;
    transform: translateX(50px);
}

.step-card.active {
    opacity: 1;
    transform: translateX(0);
}

.step-dot {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 10;
    border: 4px solid white;
}

.left .step-dot {
    right: -62px;
}

.right .step-dot {
    left: -62px;
}

.card-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #000000;
}

.card-content i {
    color: var(--primary);
    margin-bottom: 15px;
    width: 40px;
    height: 40px;
}

/* FOOTER */
.footer {
    background: #1a1b1e;
    color: white;
    padding: 80px 20px 20px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 50px;
    padding-top: 20px;
    text-align: center;
    color: #70757a;
    font-size: 14px;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .vertical-bar {
        left: 20px;
    }

    .step-card {
        width: 90%;
        float: right !important;
        text-align: left !important;
    }

    .left .step-dot,
    .right .step-dot {
        left: -15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 36px;
    }
}

#img_tutorial {
    width: 100%;
    align-self: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    /* Light grey */
    border-top: 4px solid var(--primary);
    /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

/* CSS for Mobile Toggle & Menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 3000;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #000;
    z-index: 2500;
    overflow: hidden;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay.open {
    height: 100%;
}

.mobile-menu-content {
    text-align: center;
    width: 100%;
}

.mobile-menu-content a {
    display: block;
    padding: 15px;
    font-size: 24px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    opacity: 0;
    transition: 0.3s;
}

.mobile-menu-overlay.open a {
    opacity: 1;
}

.mobile-cta-box {
    margin-top: 30px;
    padding: 0 40px;
}

.btn-create-cbt-animated {
    display: block;
    background: linear-gradient(45deg, #1a73e8, #34a853);
    color: white !important;
    padding: 20px;
    border-radius: 12px;
    font-size: 20px !important;
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.4);
    animation: pulse 2s infinite;
}

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

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.mobile-socials {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
    color: white;
}

/* Desktop vs Mobile display */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }
}

/* Transform Toggle to Cross */
.open .bar1 {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: white;
}

.open .bar2 {
    opacity: 0;
}

.open .bar3 {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: white;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Solid black background */
    z-index: 4000;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.open {
    transform: translateY(0);
}

/* Menu Top Bar */
.menu-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.close-btn {
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Links Container */
.mobile-menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 40px 40px;
    overflow-y: auto;
}

/* Main Links Styling */
.main-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    /* Smaller font */
    font-weight: 600;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #222;
}

/* CTA Button */
.mobile-cta-box {
    margin: 30px 0;
}

.btn-create-cbt-animated {
    display: block;
    background: linear-gradient(45deg, #1a73e8, #34a853);
    color: white !important;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem !important;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.3);
    animation: pulseMenu 2s infinite;
}

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
    }
}

/* Bottom Links Styling */
.bottom-nav-links {
    margin-top: auto;
    /* Push to bottom */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.bottom-nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 0;
}

/* Socials & Footer */
.social-img-placeholder {
    width: 32px;
    height: 32px;
    /* Makes dark icons white */
    margin: 0 10px;
}

.social-img-placeholder:not(.no-invert) {
    filter: invert(1);
}

.mobile-socials {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.menu-footer {
    text-align: center;
    margin-top: 20px;
    color: #444;
    font-size: 0.75rem;
}

.menu-footer .tagline {
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Responsive Toggle */
@media (max-width: 900px) {
    .desktop-only {
        display: none !important;
    }

    .menu-toggle {
        display: block;
    }
}

/* IMPROVED FOOTER LAYOUT */
.footer {
    background: #000;
    color: white;
    padding: 80px 0 0 0;
    margin-top: 100px;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* 4 columns on PC */
    gap: 40px;
    padding: 0 20px 60px;
}

.footer-brand p {
    color: #9aa0a6;
    margin-top: 15px;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #9aa0a6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-img-placeholder {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.social-img-placeholder:hover {
    opacity: 1;
}

.footer-bottom {
    background: #0a0a0a;
    padding: 25px 0;
    border-top: 1px solid #222;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
    margin: 0;
}

/* TABLET & MOBILE FOOTER RESPONSIVENESS */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        /* 2x2 grid on tablet */
    }

    .panorama-wrapper {
        height: 200px;
    }
}

@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* 1 column on phone */
        text-align: center;
    }

    .footer-brand p {
        margin: 15px auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .section-title {
        margin-left: 0;
        text-align: center;
    }

    .hero-actions a {
        display: block;
    }

    
}

/* Fix for Tablet Footer Background */
.footer {
    background: #000 !important;
    position: relative;
    width: 100%;
    margin-top: 100px;
    z-index: 1;
    /* Ensure it stays above background gradients */
    overflow: hidden;
}

.footer-grid {
    background: transparent !important;
}

/* Video Responsive Container */
.video-aspect-ratio {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-aspect-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Social Media Color Fix */
.no-invert {
    filter: none !important;
}

.section-title {
    width: 100%;
    text-align: center; /* Centers text */
    margin: 0 auto 40px auto; /* Centers the block itself and adds bottom spacing */
    padding: 0 20px; /* Prevents touching edges on mobile */
}

/* 1. Force the root containers to never expand horizontally */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Strict horizontal lock */
    position: relative;
}

/* 2. Fix the Timeline Container - This is the most important part */
.timeline-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px 0;
    position: relative;
    overflow: hidden; /* THIS CLIPS THE OFF-SCREEN CARDS */
}

/* 3. Adjust the Reveal animation for Mobile */
@media (max-width: 900px) {
    /* On mobile, cards should NOT slide in from far right/left */
    /* sliding from 50px is too much for small screens */
    
    .step-card.left {
        transform: translateY(30px); /* Slide UP instead of SIDE */
        float: none;
        width: 100%;
    }
    
    .step-card.right {
        transform: translateY(30px); /* Slide UP instead of SIDE */
        float: none;
        width: 100%;
    }

    .step-card.active {
        transform: translateY(0); /* Final position */
        opacity: 1;
    }
    
    /* Ensure the timeline vertical bar doesn't cause width issues */
    .vertical-bar {
        left: 20px;
        display: none; /* Recommended to hide on very small screens if it shifts layout */
    }
}

/* 4. Ensure Navbar is fixed to the Viewport width, not the Page width */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw; /* Use vw (viewport width) instead of % */
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

/* SECTION: FEATURES SHOWCASE (Long alternating rows) */
.features-showcase {
    padding: 100px 0;
    background: #fff;
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto 120px;
    padding: 0 20px;
    gap: 80px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.f-badge {
    display: inline-block;
    padding: 6px 14px;
    background: #eef5ff;
    color: var(--primary);
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.feature-text h3 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

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

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--success);
}

.feature-image {
    flex: 1.2;
    position: relative;
}

.feature-image img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: center;
}

.feature-row:hover .feature-image img {
    transform: translateY(-10px) scale(1.02);
}

/* SECTION: TUTORIALS GUIDE (The Setup Grid) */
.tutorials-guide {
    padding: 100px 20px;
    background: #f1f4f9;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 50px auto 0;
    gap: 20px;
}

.t-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #eee;
}

.t-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.t-card-img {
    height: 160px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.t-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.t-card-content {
    padding: 20px;
}

.t-card-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.t-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-text h3 {
        font-size: 1.8rem;
    }
    
    .feature-row {
        margin-bottom: 80px;
    }
}

.feature-image {
    display: flex;
    justify-content: center; /* Centers image horizontally */
    align-items: center;     /* Centers image vertically */
    width: 100%;             /* Ensures container takes full available width */
}

.feature-image img {
    max-width: 100%;         /* Prevents image from overflowing */
    height: auto;            /* Maintains original aspect ratio */
    display: block;          /* Removes extra bottom whitespace */
}
