:root {
    --bg-main: #030304;
    --bg-card: rgba(15, 15, 20, 0.4);
    --accent-cyan: #00f3ff;
    --accent-purple: #bd00ff;
    --text-white: #ffffff;
    --text-gray: #cecece;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);

    /* Fonts */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --radius: 20px;
    --grid-gap: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Noise Texture Removed for stability */
    background-image: none;
}

/* Ambient Ambient Light */
body::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(189, 0, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: drift 20s infinite alternate;
}

body::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 30px);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
.logo,
.btn-primary,
.btn-secondary,
.btn-contact {
    font-family: var(--font-heading);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(12px);
    background: rgba(3, 3, 4, 0.7);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--accent-cyan);
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.btn-contact:hover {
    background: var(--text-white);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Main Layout */
.main-wrapper {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

/* Glassmorphism Cell */
.cell {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow:
        inset 0 0 0 1px var(--glass-highlight),
        0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: var(--radius);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hero Section */
.hero-cell {
    grid-column: span 3;
    min-height: 550px;
    justify-content: center;
    background:
        linear-gradient(to right, rgba(3, 3, 4, 0.9), rgba(3, 3, 4, 0.3)),
        url('assets/hero_abstract.png');
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 0 60px rgba(0, 243, 255, 0.1);
}

.hero-cell h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    max-width: 900px;
    letter-spacing: -0.03em;
    font-weight: 600;
    /* Gradient Text */
    background: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-cell p {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    font-family: var(--font-body);
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background: var(--accent-cyan);
    color: #000;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
}

/* Features */
.feature-cell {
    justify-content: space-between;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(189, 0, 255, 0.2), rgba(0, 0, 0, 0));
    color: var(--accent-purple);
    border: 1px solid rgba(189, 0, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.15);
}

.feature-cell h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.feature-cell p {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 300;
}

/* Services */
.service-grid-area {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
}

.service-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
    transition: 0.3s;
}

.service-card h4 {
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-size: 1.3rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Social Proof */
.proof-cell {
    grid-column: span 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    background: linear-gradient(90deg, rgba(15, 15, 20, 0.6) 0%, rgba(5, 5, 5, 0.9) 100%);
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
}

/* Contact */
.contact-cell {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.form-box h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 16px;
    color: white;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
    outline: none;
}

/* Calendar */
.calendar-box {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    margin-top: 60px;
    backdrop-filter: blur(10px);
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: 0.4s ease-in-out;
    z-index: 150;
    opacity: 0;
}

.mobile-menu.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-cell,
    .feature-cell,
    .service-grid-area,
    .contact-cell,
    .proof-cell {
        grid-column: span 1;
    }

    .service-grid-area {
        grid-template-columns: 1fr;
    }

    .contact-cell {
        grid-template-columns: 1fr;
    }

    .hero-cell h1 {
        font-size: 3rem;
    }

    .hamburger {
        display: flex;
    }

    .desktop-only {
        display: none;
    }
}

/* 3D Tilt Class (Applied by JS) */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}