:root {
    --navy: #061121;
    --dark-blue: #0b1d33;
    --teal: #40e0d0;
    --cyan-bg: #98f5e1;
    --text-main: #2c3e50;
    --text-muted: #5d6d7e;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    color: var(--text-main);
    overflow-x: hidden; /* Prevents horizontal scrolling */
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #fff;
    max-width: 1400px;
    margin: 0 auto; /* Centers navbar on ultra-wide screens */
}

.logo {
    font-weight: 600;
    color: #0a192f;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-btn, .btn-contact {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn {
    color: #008080;
    background: transparent;
}

.btn-contact {
    background-color: #0a192f;
    color: #40e0d0;
    border: 1px solid #40e0d0;
}

.nav-btn:hover {
    background-color: rgba(0, 128, 128, 0.05);
    border: 1px solid #008080;
}

.btn-contact:hover {
    background-color: #40e0d0;
    color: #0a192f;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    padding: 80px 8%;
    align-items: center;
    justify-content: center; /* Centers content horizontally */
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content { 
    flex: 1; 
}

.hero-content h1 { 
    font-size: 3.5rem; 
    line-height: 1.1; 
    margin: 20px 0; 
}

.hero-content h1 span { color: #008080; }

.badge {
    background: var(--teal);
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 11px;
    border-radius: 3px;
}

.hero-btns { 
    display: flex; 
    gap: 15px; 
    margin-top: 25px;
}

.btn-dark { 
    background: var(--navy); 
    color: white; 
    padding: 15px 30px; 
    border-radius: 4px; 
    text-decoration: none;
}

.btn-outline { 
    background: #f1f1f1; 
    border: 1px solid #ccc; 
    padding: 15px 30px; 
    border-radius: 4px; 
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.hero-image { flex: 1; text-align: right; }
.hero-image img { 
    width: 100%; 
    max-width: 500px; 
    border-radius: 20px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); 
}

/* --- Video Section --- */
.video-section {
    text-align: center;
    padding: 80px 8%;
    background-color: #ffffff;
}

.video-container {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    background: #000;
}

.main-video {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
}

/* --- Tech Stack --- */
.tech-stack { 
    padding: 100px 8%; 
    background: #f9fbff; 
    border-top: 1px solid #e0e6ed; 
}

.tech-header { 
    position: relative; 
    margin-bottom: 60px;
    text-align: center; /* Centered title */
}


.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.card { 
    padding: 40px; 
    border-radius: 12px; 
    transition: transform 0.3s ease; 
}

.card:hover { transform: translateY(-5px); }

.card.white { 
    background: white; 
    border: 2px solid #000000; 
}

.card.dark-blue { background: var(--dark-blue); color: white; }
.card.dark-grey { background: #2d3436; color: white; }
.card.cyan { background: var(--cyan-bg); color: #0a192f; }

/* --- Why It Matters --- */
.why-it-matters {
    padding: 120px 8%;
    background-color: #0a192f;
    color: white;
    text-align: center;
}

.section-header-light h2 {
    font-size: 3rem;
    color: #40e0d0;
}

.matters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
    justify-content: center;
}

.matter-card {
    background: #112240;
    padding: 50px 30px;
    border-radius: 20px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.matter-card:hover { transform: translateY(-10px); border-color: #40e0d0; }

/* --- CTA Section --- */
.cta-section {
    padding: 120px 8%;
    background-color: #ffffff;
    text-align: center;
}

.cta-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.gradient-title {
    font-size: 4rem;
    font-weight: 800;
    color: #0a192f;
}

.cta-actions-centered {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows buttons to stack if narrow */
    gap: 20px;
    margin-top: 40px;
}

.btn-primary {
    background-color: #0a192f;
    color: #40e0d0;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    
    /* Center the text and handle wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Make them the same size */
    width: 100%;
    max-width: 320px;
    min-height: 64px; /* Fixes the uneven heights from your screenshot */
    transition: all 0.3s ease;
}

.btn-outline-green {
    border: 2px solid #008080;
    color: #008080;
    background: transparent;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;

    /* Center the text and handle wrapping */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Match the primary button size exactly */
    width: 100%;
    max-width: 320px;
    min-height: 64px; 
    transition: all 0.3s ease;
}

/* Add a hover effect so users know they are clickable */
.btn-primary:hover {
    background-color: #112240;
    transform: translateY(-2px);
}

.btn-outline-green:hover {
    background-color: rgba(0, 128, 128, 0.1);
    transform: translateY(-2px);
}

/* --- UPDATED RESPONSIVE (MOBILE) --- */
@media (max-width: 768px) {
    /* 1. Center the Header/Logo */
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
        text-align: center;
    }

    .nav-links {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }

    /* 2. Fix the Hero Section (This is the main issue in your photo) */
    .hero {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center; /* Forces text to center */
        gap: 30px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers items inside the content box */
        width: 100%;
    }

    /* Shrink the font size so it doesn't look overwhelming on a phone */
    .hero-content h1 {
        font-size: 2.2rem; 
        width: 100%;
        margin: 15px 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    /* Make buttons full-width for easier tapping */
    .btn-dark, .btn-outline {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }

    .hero-image {
        order: -1; /* Image comes first on mobile */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 80%; /* Shrink image slightly on mobile */
    }

    /* 3. Grid & Typography Cleanup */
    .grid-container, .matters-grid {
        grid-template-columns: 1fr;
    }

    .gradient-title {
        font-size: 2.2rem;
    }

    .cta-actions-centered {
        display: flex;         /* Ensures flexbox is active */
        flex-direction: column; /* Stacks them vertically */
        align-items: center;    /* Centers them horizontally in the column */
        width: 100%;           /* Takes up full width of the wrapper */
        gap: 15px;

    }
    .cta-actions-centered a {
        width: 90%;            /* Makes buttons wide and easy to tap */
        max-width: 320px;      /* Prevents them from getting too huge on tablets */
        text-align: center;    /* Centers the text inside the button box */
    }

    .btn-primary, .btn-outline-green {
        width: 90%;
        max-width: 300px;
        text-align: center;
    }
}
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(64, 224, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(64, 224, 208, 0); }
}