@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --ag-black: #000000;
    --ag-white: #ffffff;
    --ag-accent: #FF3B30; /* Karlo Deal Red */
    --ag-glass: rgba(255, 255, 255, 0.05);
    --ag-glass-border: rgba(255, 255, 255, 0.1);
    --ag-font: 'Outfit', sans-serif;
    --ag-transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Responsive Typography */
html {
    font-size: 16px;
}

@media (max-width: 1200px) {
    html { font-size: 15px; }
}

@media (max-width: 991px) {
    html { font-size: 14px; }
}

body {
    background-color: var(--ag-white);
    color: var(--ag-black);
    font-family: var(--ag-font);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Antigravity Utilities */
.ag-dark {
    background-color: var(--ag-black);
    color: var(--ag-white);
}

.ag-text-gradient {
    background: linear-gradient(90deg, #FF3B30, #FF9500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Redesign - Best of Bestest */
.ag-header-wrapper {
    position: fixed;
    top: 2rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    transition: var(--ag-transition);
}

.ag-header {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    transition: var(--ag-transition);
}

@media (max-width: 768px) {
    .ag-header {
        padding: 0.4rem 0.8rem;
        border-radius: 40px;
    }
    .logo img {
        height: 20px !important;
    }
}

.ag-header.scrolled {
    top: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1.5rem;
}

.ag-nav-list {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ag-nav-link {
    color: var(--ag-black);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    position: relative;
    transition: var(--ag-transition);
}

.ag-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ag-accent);
    transition: var(--ag-transition);
}

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

@media (max-width: 991px) {
    .ag-header-wrapper {
        padding: 0 1rem;
        top: 1rem;
    }
    .ag-header {
        border-radius: 20px;
        padding: 0.8rem 1.2rem;
    }
    .ag-nav-list {
        display: none; /* Hide for mobile menu */
    }
}

/* Mobile Menu Button */
.ag-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ag-black);
    cursor: pointer;
}

@media (max-width: 991px) {
    .ag-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.05);
        border-radius: 50%;
        color: var(--ag-black);
    }
}

/* Mobile Fullscreen Menu */
.ag-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: var(--ag-transition);
    opacity: 0;
}

.ag-mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

.ag-mobile-link {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ag-black);
    text-decoration: none;
    text-transform: uppercase;
}

.ag-close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
}

/* Hero Section */
.ag-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.ag-hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(50px);
    animation: agReveal 1.2s forwards 0.2s;
}

.ag-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    animation: agReveal 1.2s forwards 0.4s;
}

@media (max-width: 768px) {
    .ag-hero {
        padding-top: 300px !important; /* Aggressive padding to clear header */
        padding-bottom: 80px !important;
        text-align: center;
        min-height: auto;
        display: block;
    }
    .ag-hero-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
        opacity: 1 !important; /* Ensure visibility */
        transform: none !important;
        animation: none !important;
    }
    .ag-hero-subtitle {
        margin: 0 auto !important;
        font-size: 0.85rem !important;
        padding: 0 1.5rem !important;
        margin-bottom: 2.5rem !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .ag-hero .d-flex {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 2rem !important;
    }
    .ag-hero .ag-btn-pill {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.9rem !important;
        font-size: 0.9rem !important;
    }
}

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

/* Canvas Particles Background */
#ag-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Premium Cards */
.ag-card {
    background: var(--ag-white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    padding: 3rem;
    transition: var(--ag-transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.ag-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.ag-card img {
    border-radius: 20px;
    margin-bottom: 2rem;
    transition: var(--ag-transition);
}

.ag-card:hover img {
    transform: scale(1.05);
}

/* Buttons */
.ag-btn-pill {
    display: inline-flex;
    align-items: center;
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    background: var(--ag-black);
    color: var(--ag-white);
    font-weight: 700;
    text-decoration: none;
    transition: var(--ag-transition);
    border: none;
}

.ag-btn-pill:hover {
    transform: scale(1.05);
    background: var(--ag-accent);
    color: var(--ag-white);
}

/* Footer - Best of Bestest */
.ag-footer {
    background: #050505;
    color: var(--ag-white);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.ag-footer-bg-text {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
    line-height: 1;
    z-index: 0;
    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

.ag-footer-grid {
    position: relative;
    z-index: 1;
}

.ag-footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ag-white);
}

.ag-footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--ag-transition);
    font-weight: 400;
}

.ag-footer-link:hover {
    color: var(--ag-white);
    transform: translateX(10px);
}

.ag-social-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ag-white);
    text-decoration: none;
    transition: var(--ag-transition);
}

.ag-social-circle:hover {
    background: var(--ag-white);
    color: var(--ag-black);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .ag-footer-bg-text {
        font-size: 25vw;
    }
    .ag-footer {
        padding: 60px 0 40px;
        text-align: center;
    }
    .ag-footer .social-links, 
    .ag-footer .d-flex {
        justify-content: center;
    }
} /* Added missing closing brace */

.ag-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .ag-footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 40px;
        padding-top: 30px;
    }
}

/* New Section Utilities */
.section-padding {
    padding: 120px 0;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* FAQ Styles */
.ag-faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ag-faq-item {
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    cursor: pointer;
    transition: var(--ag-transition);
    overflow: hidden;
    height: auto;
}

.ag-faq-item:hover {
    border-color: var(--ag-accent);
    background: #fff;
}

.ag-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ag-faq-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ag-transition);
}

.ag-faq-item.active .ag-faq-icon {
    transform: rotate(45deg);
    background: var(--ag-accent);
    color: white;
}

.ag-faq-body {
    max-height: 0;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.ag-faq-item.active .ag-faq-body {
    max-height: 500px; /* Increased to prevent overlap */
    opacity: 1;
    padding-top: 1.5rem;
}

@media (max-width: 991px) {
    .ag-faq-item {
        padding: 1.2rem 1.5rem;
    }
    .ag-faq-item.active .ag-faq-body {
        max-height: 1500px; /* Increased for mobile text wrapping */
    }
}

.bg-dark {
    background-color: #000 !important;
}
.text-white, .bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark p {
    color: #fff !important;
}
.opacity-75 {
    opacity: 0.75;
}
