:root {
    --bg-color: #030303;
    --card-bg: rgba(15, 15, 15, 0.9);
    /* Slightly more opaque for better contrast */
    --google-blue: #1a73e2;
    /* Stronger Agency Blue for high contrast with white text */
    --google-blue-hover: #185abc;
    --google-tonal: rgba(26, 115, 232, 0.2);
    /* Higher opacity for accessibility */
    --accent-primary: #1a73e2;
    --accent-secondary: #22d3ee;
    --text-primary: #ffffff;
    --text-secondary: #bdc1c6;
    /* Lighter grey for better reading against dark bg */
    --glass-border: rgba(255, 255, 255, 0.15);
    /* More visible border */
    --glow-opacity: 0.15;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: var(--glow-opacity);
    filter: blur(100px);
    animation: pulse 10s infinite alternate;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    opacity: var(--glow-opacity);
    filter: blur(100px);
    animation: pulse 15s infinite alternate-reverse;
}

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

    100% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 4rem 0;
    /* Reduced spacing to avoid generic feel and keep content connected */
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Google Style Utility Gradients */
.google-gradient-1 {
    background: linear-gradient(90deg, #4285F4, #9b72cb, #ea4335);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.google-gradient-2 {
    background: linear-gradient(90deg, #34a853, #4285F4, #9b72cb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    animation: fadeIn 1s ease-out;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--text-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typewriter Animation */
.typewriter-text::after {
    content: "|";
    animation: blink 0.7s infinite;
    margin-left: 5px;
    color: var(--google-blue);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Header - Floating Pill Design */
header {
    height: auto;
    display: flex;
    justify-content: center;
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 100;
}

.header-container {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.logo a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.8;
}

.logo::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-secondary);
    border-radius: 3px;
    display: inline-block;
}

/* Hamburger Menu Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Animation for active menu */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--google-blue);
    color: #ffffff;
    /* High contrast white text on strong blue */
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.4);
    border: none;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 115, 232, 0.6);
    background: #ffffff;
    color: var(--google-blue) !important;
    /* Ensure visibility on white bg */
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--google-blue);
}

.btn-secondary:hover {
    background: var(--google-tonal);
    border-color: var(--google-blue);
    transform: translateY(-2px);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    /* More space between buttons */
    margin-top: 2rem;
}

/* Hero Section Refined */
.hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    padding-top: 140px;
    padding-bottom: 2rem;
}

.hero-content {
    flex: 1.2;
    text-align: left;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    /* Strictly fixed to 3 lines height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 0 3rem;
    line-height: 1.5;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    gap: 2.5rem;
    /* Increased space between blocks as requested */
}

.bento-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.no-tilt {
    transform: none !important;
}

.bento-item:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(129, 140, 248, 0.1);
}

.bento-item h3 {
    margin-bottom: 1rem;
}

.bento-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 32px;
    padding: 3.5rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

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

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

/* Floating WhatsApp - Premium Redesign */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4),
        inset 0 -4px 8px rgba(0, 0, 0, 0.1),
        inset 0 4px 8px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: whatsapp-pulse 2s ease-out infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-10px);
    background: #20ba5a;
    box-shadow: 0 20px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    width: 35px;
    height: 35px;
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(3, 3, 3, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        border-left: 1px solid var(--glass-border);
        display: flex;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 160px;
        gap: 3rem;
        min-height: auto;
    }

    .hero-content {
        order: 1;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .hero p {
        margin: 0 auto 2.5rem !important;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
    }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .bento-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .large,
    .bento-item[style*="span 2"] {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .bento-item {
        padding: 2.5rem 1.5rem;
        text-align: center;
        align-items: center;
        min-height: auto !important;
    }

    .bento-item h3 {
        font-size: 1.75rem;
        text-align: center;
    }

    .bento-item p {
        text-align: center;
        margin: 0 auto 1.5rem;
    }

    .bento-item .badge {
        margin-left: auto;
        margin-right: auto;
    }

    /* Centering metrics on mobile */
    .bento-item div[style*="display: flex"] {
        justify-content: center !important;
        width: 100%;
    }

    /* Global fix for any 2-column grids on mobile */
    .grid-2,
    div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .glass-card {
        padding: 2.5rem 1.5rem !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .glass-card h4,
    .glass-card h3 {
        text-align: center;
        margin-bottom: 1rem;
    }

    .glass-card p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 2.8rem !important;
        text-align: center;
    }

    h2 {
        font-size: 2.4rem !important;
        text-align: center;
    }

    .whatsapp-float svg {
        width: 32px;
        height: 32px;
    }

    .whatsapp-float {
        bottom: 25px;
        right: 25px;
        width: 65px;
        height: 65px;
        box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6),
            0 0 25px rgba(37, 211, 102, 0.4);
        border: 3px solid rgba(255, 255, 255, 0.4);
    }

    .logo {
        font-size: 1rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}