/* 
   Style for Antigravity - Futuristic Digital Agency
*/

:root {
    /* Colors */
    --bg: #000000;
    --bg-light: #000000;
    --bg-card: #0A0A0A;
    --primary: #2563EB;      /* Neon Blue */
    --accent: #38BDF8;       /* Light Blue/Cyan Glow */
    --secondary: #7C3AED;    /* Purple Accent */
    --text: #FFFFFF;
    --text-dim: #9ca3af;
    
    /* Layout & UI */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Animation Timing */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

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

/* Typography & Utilities */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-dim { color: var(--text-dim); }
.text-sm { font-size: 0.875rem; }
.text-glow {
    color: var(--accent);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.text-center { text-align: center; }
.max-w-xs { max-width: 20rem; }
.max-w-lg { max-width: 32rem; }

.section-pad { padding: 8rem 0; }
.bg-darker { background-color: var(--bg-light); }

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}
.container-large {
    max-width: 1200px;
}

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

.border-t { border-top: 1px solid var(--glass-border); }



/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.5);
}

.btn-primary:hover {
    background: var(--accent);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--glass-bg);
    color: #fff;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 3rem 5%;
}

.nav-container {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 8rem;
    overflow: hidden;
    background-color: #050505; /* Keep canvas gradient matching seamless */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1; /* Keep bright */
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.hero p.subheadline {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations Core */
.fade-in-down {
    animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal Observer Class */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.neon-heading {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* Expertise Section */
.expertise-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
}

.expertise-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    width: 90%;
    position: relative;
    z-index: 2;
}

.expertise-col {
    width: 45%;
}

.left-col {
    text-align: right;
    padding-right: 2rem;
}

.right-col {
    text-align: left;
    padding-left: 2rem;
    padding-top: 10rem; /* Offset structurally to match reference balance */
}

.expertise-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    color: #fff;
    line-height: 1.1;
}

.expertise-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    max-width: 320px;
    font-weight: 300;
}

.left-col .expertise-desc {
    margin-left: auto;
}

.right-col .expertise-desc {
    margin-right: auto;
    margin-left: 0;
}

.expertise-item {
    transition: var(--transition);
}

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


/* Bento Services */
.section-padding {
    padding: 8rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
}

.card-small {
    grid-column: span 1;
}

.card-large {
    grid-column: span 1;
}

.bento-visual {
    height: 250px;
    background: #0A0A0A;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-text {
    padding: 2rem;
}

.bento-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.bento-text p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.visual-ring .ring-gradient {
    width: 120px;
    height: 120px;
    border: 10px solid #fff;
    border-radius: 50%;
    border-top-color: var(--primary);
    border-right-color: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.4);
}

.bento-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.mockup-mini {
    width: 80%;
    height: 80%;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin: auto;
    margin-top: 10%;
}

.mockup-header-mini {
    padding: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.dot-mini {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #444;
    margin-right: 4px;
}

.mockup-body-mini {
    padding: 1.5rem;
}

.visual-chart {
    background: #0f0b1a;
}

.purple-ambient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.3), transparent 60%);
}

.line-chart-abstract {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, transparent 100%);
    clip-path: polygon(0 100%, 0 40%, 30% 60%, 60% 20%, 100% 50%, 100% 100%);
    border-top: 2px solid var(--primary);
}

.visual-prism .prism-shape {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86.6px solid var(--primary);
    position: relative;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.6));
}

.visual-prism .prism-shape::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -20px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(255, 255, 255, 0.4);
}

/* Features Text Grid */
.section-title {
    font-size: 3.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.feature-text-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem 2rem;
}

.feature-item {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item h4 i {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.feature-item p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Testimonial */
.testimonial {
    padding-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.4);
}

.glow-bg-dark-purple {
    position: absolute;
    top: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.2;
}

.testi-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    flex-grow: 1;
}

.testi-text {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testi-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
}

.testi-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

.testi-text h3 {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-dim);
}

.testi-author {
    font-weight: 600;
    font-size: 1.25rem;
    color: #FFF;
}

/* Portfolio */
.portfolio {
    padding-top: 3rem;
}

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

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #FFF;
}

.portfolio-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Pricing / CTA */
.contact-cta {
    padding-top: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.price-card .btn {
    margin-top: auto;
}

.interactive-card {
    cursor: pointer;
}

.interactive-card:hover {
    background: rgba(15, 15, 15, 0.9);
    border-color: rgba(168, 85, 247, 0.6);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(168, 85, 247, 0.2), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.interactive-card:hover::before {
    opacity: 1;
}

.btn-hover-switch {
    background: transparent;
    color: #FFF;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.interactive-card:hover .btn-hover-switch {
    background: #FFFFFF;
    color: #000000;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.price-features li {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-features li i {
    font-size: 0.7rem;
    color: #FFF;
}

/* Footer */
footer {
    padding: 2rem 5%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 3rem;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links-wrapper {
    display: flex;
    gap: 2rem;
}

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

.hover-white:hover {
    color: #FFF;
}

.border-t {
    border-top: 1px solid var(--glass-border);
}

.full-width {
    width: 100%;
}

/* Setup Reveal Animations Matching Dribbble */
.animate-fade-down {
    animation: fadeDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-up-delayed {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Responsive Overrides */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .card-small,
    .card-large {
        grid-column: span 1;
    }

    .feature-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid,
    .testimonial-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.98);
        padding: 2rem 0;
        border-bottom: 1px solid var(--glass-border);
        text-align: center;
        backdrop-filter: blur(10px);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .chart-header {
        flex-direction: column;
        gap: 1rem;
    }

    .mockup-sidebar {
        display: none;
    }

    .feature-text-grid,
    .portfolio-grid,
    .pricing-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .expertise-section {
        padding: 5rem 0;
    }

    .expertise-container {
        flex-direction: column;
        gap: 3rem;
    }

    .expertise-col {
        width: 100%;
    }

    .left-col, .right-col {
        text-align: left;
        padding-right: 0;
        padding-left: 0;
        padding-top: 0;
    }

    .left-col .expertise-desc {
        margin-left: 0;
    }

    .section-padding {
        padding: 4rem 5%;
    }

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

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

    .footer-links-wrapper {
        flex-wrap: wrap;
        justify-content: center;
    }
}