@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --bg-main: #050505;
    --bg-surface: rgba(20, 20, 25, 0.7);
    --bg-surface-solid: #0f0f13;
    --primary: #6366f1; /* Indigo */
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #06b6d4; /* Cyan */
    --accent: #ec4899; /* Pink */
    --text-primary: #ffffff;
    --text-muted: #9ca3af;
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --gradient-brand: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(99,102,241,0.2) 0px, transparent 50%),
                     radial-gradient(at 80% 0%, rgba(6,182,212,0.2) 0px, transparent 50%),
                     radial-gradient(at 0% 50%, rgba(236,72,153,0.2) 0px, transparent 50%);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: -2;
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDMiLz4KPC9zdmc+') repeat;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center { text-align: center; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 90px;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.2rem;
}

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

.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.2rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    gap: 0.75rem;
}

.btn-glow {
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: 0 8px 30px var(--primary-glow);
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-glow span, .btn-glow i {
    position: relative;
    z-index: 1;
}

.btn-glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.5);
}
.btn-glow:hover::before { opacity: 1; }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

/* Asymmetrical Hero */
.hero-split {
    min-height: 100vh;
    padding-top: 90px;
    display: flex;
    align-items: center;
}

.hero-split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(236,72,153, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(236,72,153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(236,72,153, 0); }
}

.hero-title-large {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.05;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    font-weight: 400;
}

.hero-actions-left {
    display: flex;
    gap: 1.25rem;
}

/* 3D Floating Mockups */
.hero-visual-content {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.floating-mockups {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-15deg);
}

.mockup-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-hover);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    width: 220px;
    animation: float 6s ease-in-out infinite alternate;
}

.mockup-card i {
    font-size: 3rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mockup-card h4 { font-size: 1.25rem; }
.mockup-card p { color: var(--text-muted); font-size: 0.9rem; font-family: 'Space Grotesk', sans-serif;}

.card-1 { top: 10%; right: 10%; animation-delay: 0s; }
.card-2 { top: 40%; left: 10%; transform: translateZ(50px); animation-delay: -2s; border-color: rgba(6,182,212,0.3); }
.card-3 { bottom: 0%; right: 20%; transform: translateZ(100px); animation-delay: -4s; }

@keyframes float {
    0% { transform: translateY(0px) translateZ(var(--z, 0)); }
    100% { transform: translateY(-20px) translateZ(var(--z, 0)); }
}

/* Infinite Ticker */
.ticker-wrapper {
    background: #000;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    display: flex;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
    gap: 3rem;
    align-items: center;
}

.ticker span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.ticker i {
    color: var(--accent);
    font-size: 0.8rem;
}

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

/* Sections */
.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Expertise Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 5rem;
}

.expertise-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border-top: 1px solid var(--border-hover);
    border-radius: 24px;
    padding: 3rem 2rem;
    transition: all 0.4s ease;
}

.expertise-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(99,102,241,0.1) 0%, rgba(255,255,255,0) 100%);
    border-top-color: var(--primary);
}

.exp-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.expertise-card:hover .exp-icon {
    background: var(--secondary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(6,182,212,0.3);
}

.expertise-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}
.expertise-card p {
    color: var(--text-muted);
}

/* Bento Grid */
.bento-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
    margin-top: 4rem;
}

.bento-box {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s ease;
}

.bento-box:hover {
    border-color: rgba(255,255,255,0.2);
    transform: scale(0.98);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(20,20,25,1));
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
    background: #000;
}

.bento-wide {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(90deg, rgba(236,72,153,0.1), rgba(20,20,25,1));
    justify-content: space-between;
}

.bento-visual {
    position: absolute;
    bottom: -50px; right: -50px;
    width: 300px; height: 300px;
    background: var(--gradient-mesh);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
}

.bento-box h3 { font-size: 1.8rem; margin-bottom: 0.75rem; z-index: 1; }
.bento-box p { color: var(--text-muted); z-index: 1; font-size: 1.05rem; }

.stat-huge {
    font-size: 5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    margin-bottom: 1rem;
}

.bento-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

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

/* Contact Page Specific Layouts */
.contact-header {
    text-align: center;
    padding: 9rem 0 4rem;
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.info-card-icon {
    font-size: 1.8rem;
    color: #fff;
    background: var(--gradient-brand);
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.info-card-content h4 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-card-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.info-card-content a {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
}

.info-card-content a:hover {
    color: #fff;
}

/* Tech Form Styling (Preserving Exact IDs/Classes as requested) */
.tech-form-wrapper {
    background: var(--bg-surface-solid);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    position: relative;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

.input-field {
    width: 100%;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: rgba(156, 163, 175, 0.4);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea.input-field {
    min-height: 160px;
    resize: vertical;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 6rem 0 2rem;
    background: #020202;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1.5rem;
    max-width: 320px;
    font-size: 1rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 1rem;
}

.footer-links-list a {
    color: var(--text-muted);
    transition: all 0.3s;
    font-size: 1rem;
}

.footer-links-list a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.tech-modal {
    background: var(--bg-surface-solid);
    padding: 3.5rem;
    border: 1px solid var(--border);
    border-radius: 32px;
    text-align: center;
    max-width: 450px; width: 90%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-overlay.active .tech-modal {
    transform: translateY(0) scale(1);
}
.modal-icon { 
    font-size: 4rem; 
    color: #10b981; 
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(16,185,129,0.4));
}
.tech-modal h2 { margin-bottom: 1rem; color: var(--text-primary); font-size: 2rem; }
.tech-modal p { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-split-container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-actions-left { justify-content: center; }
    .hero-visual-content { height: 400px; }
    .floating-mockups { transform: rotateX(0deg) rotateY(0deg); display: flex; justify-content: center; align-items: center; }
    .mockup-card { position: static; animation: none; transform: none !important; margin: -1rem; z-index: 1;}
    .card-2 { z-index: 2; transform: translateY(-20px) scale(1.1) !important;}
    .expertise-grid { grid-template-columns: 1fr; }
    .bento-wrapper { grid-template-columns: 1fr; grid-template-rows: auto; }
    .bento-large, .bento-tall, .bento-wide { grid-column: span 1; grid-row: auto; min-height: 300px;}
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .footer-content { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 90px; left: 0; width: 100%;
        background: var(--bg-surface-solid);
        flex-direction: column;
        padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid var(--border);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .hero-title-large { font-size: 3rem; }
    .hero-actions-left { flex-direction: column; }
    .floating-mockups { flex-direction: column; gap: 1rem; margin-top: 2rem;}
    .mockup-card { width: 100%; margin: 0; }
    .card-2 { transform: none !important; }
    .form-grid { grid-template-columns: 1fr; }
    .tech-form-wrapper { padding: 2rem; }
    .section { padding: 5rem 0; }
}