/* ---- CSS VARIABLES & TOKENS ---- */
:root {
    /* Color Palette */
    --clr-ivory: #FCF9F6;
    --clr-primary-blue: #0C34E9;
    --clr-white: #FFFFFF;
    --clr-grey: #CCCCCC;
    --clr-text-main: #333333;
    --clr-text-muted: #666666;

    /* Typography */
    --font-family: 'Google Sans', sans-serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px rgba(12, 52, 233, 0.15);
}

/* ---- RESETS ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    background-color: var(--clr-ivory);
    color: var(--clr-text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.mb-4 {
    margin-bottom: 4px;
}

main {
    flex-grow: 1;
    position: relative;
    display: block;
    /* Use block for better compatibility on mobile */
    width: 100%;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

/* ---- LAYOUT UTILITIES ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ---- NAVBAR ---- */
.navbar {
    flex-shrink: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(252, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(204, 204, 204, 0.2);
    transition: var(--transition-medium);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 120px;
    transition: height var(--transition-medium);
}

.navbar.scrolled .navbar-container {
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo-img {
    height: 80px;
    width: auto;
    margin-left: -2px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--clr-primary-blue);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary-blue);
    transition: width var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

/* -- Mobile Menu Button Styles -- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--clr-primary-blue);
    border-radius: 3px;
    transition: var(--transition-medium);
    transform-origin: left center;
}

/* ---- HERO SECTION ---- */
.hero {
    position: relative;
    width: 100%;
    /* min-height: 500px; Base fixed height for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Vibrant Animated Gradient Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Abstract Grey intero-locking S patterns overlay */
/* Doing this via CSS pseudo elements for a dynamic feel */
.hero-bg::after {
    /* content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--clr-grey) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.2;
    z-index: -1; */
}

/* Decorative Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--clr-primary-blue), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #B900FF, transparent);
    bottom: -50px;
    right: 10%;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--clr-grey), transparent);
    top: 30%;
    right: -50px;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

/* Watch the CTA */
.video-cta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--clr-white);
    font-size: 1.8rem;
    font-weight: 400;
    cursor: pointer;
}

.video-cta span {
    transition: transform var(--transition-medium);
}

.play-icon-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    position: relative;
}

/* Removed border ripple effect */

.play-btn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform var(--transition-medium);
}

/* Hover effects for Hero CTA */
.video-cta:hover .play-icon-wrapper {
    transform: scale(1.1);
}

.video-cta:hover .play-btn-img {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

.video-cta:hover span:first-child {
    transform: translateX(-5px);
}

.video-cta:hover span:last-child {
    transform: translateX(5px);
}

/* ---- FOOTER ---- */
.footer {
    flex-shrink: 0;
    background-color: var(--clr-ivory);
    padding: 30px 0;
    z-index: 90;
    position: relative;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 2fr 1fr;
    gap: 30px;
}

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

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

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--clr-primary-blue);
    /* margin-bottom: 0px; */
}

.footer-list li {
    margin-bottom: 0px;
}

.footer-list a {
    color: var(--clr-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.footer-list a:hover {
    color: var(--clr-primary-blue);
    padding-left: 5px;
}

.contact-info p {
    color: var(--clr-text-muted);
    margin-bottom: 6px;
    font-weight: 400;
    font-size: 0.8rem;
}

.footer-email {
    color: var(--clr-text-muted);
    font-weight: 500;
}

.footer-email:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
}

.copyright {
    color: var(--clr-primary-blue);
    font-weight: 400;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 20px;
    height: 20px;
    color: var(--clr-primary-blue);
    transition: transform var(--transition-fast);
}

.social-links a:hover .social-icon {
    transform: translateY(-3px);
}

/* ---- ANIMATIONS ---- */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes ripple {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

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

/* ---- VIDEO MODAL ---- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-medium);
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(1, 0, 28, 0.85);
    backdrop-filter: blur(15px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    transform: scale(0.9);
    transition: transform var(--transition-medium);
    z-index: 10;
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #000;
}

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

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.close-modal span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--clr-ivory);
    transition: var(--transition-fast);
}

.close-modal span:nth-child(1) {
    transform: rotate(45deg);
}

.close-modal span:nth-child(2) {
    transform: rotate(-45deg) translateY(-2px);
}

.close-modal:hover span {
    background-color: var(--clr-primary-blue);
}

/* ---- RESPONSIVE DESIGN ---- */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .footer-col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* Animate Hamburger to X */
    .navbar.active .mobile-menu-btn span:nth-child(1) {
        transform: rotate(45deg);
    }

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

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(252, 249, 246, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right var(--transition-medium);
        z-index: 900;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        visibility: hidden;
        pointer-events: none;
    }

    .navbar.active .nav-links {
        right: 0;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-link {
        font-size: 1.5rem;
    }

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

    .hero-content {
        padding: 80px 20px;
    }

    .video-cta {
        flex-direction: column;
        gap: 20px;
        font-size: 1.5rem;
    }

    .video-cta:hover span {
        transform: none !important;
    }
}

/* ---- DESKTOP & TABLET SPECIFIC LAYOUT ---- */
@media (min-width: 769px) {
    body {
        height: 100vh;
        overflow: hidden;
    }

    main {
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .hero {
        flex-grow: 1;
    }

    /* Visually center the CTA on the screen by compensating for navbar/footer height difference */
    .hero-content {
        /* transform: translateY(-20px); */
    }
}