:root {
    /* Color Palette */
    --bg-dark: #0a0a0c;
    --bg-card: #141419;
    --bg-card-hover: #1c1c24;
    --primary: #3b82f6; /* Blue */
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6; /* Purple */
    --accent: #06b6d4; /* Cyan */
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border: #2d2d35;

    /* Typography */
    --font-main: 'Montserrat', sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-main);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}


/* Typography Utility */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn--primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn--outline:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-main);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
    text-align: center;
}

/* Header */
.header {
    height: var(--nav-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

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

.header__logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header__logo .dot {
    color: var(--primary);
}

.header__nav ul {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link:hover {
    color: var(--text-main);
}

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero__blob {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out, blobMorph 10s infinite ease-in-out;
}

.hero__blob--1 {
    width: 450px;
    height: 450px;
    background: var(--primary);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.hero__blob--2 {
    width: 350px;
    height: 350px;
    background: var(--secondary);
    bottom: 10%;
    right: -5%;
    animation-delay: -2s;
}

.hero__blob--3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 30%;
    left: 40%;
    opacity: 0.3;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(10deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes blobMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero__content {
    max-width: 600px;
}

.hero__title {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.1;
}

.d-block {
    display: block;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero__actions {
    display: flex;
    gap: 20px;
}

/* Hero Visual - 3D Container */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
    height: 100%;
    min-height: 500px;
}

#hero-3d-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 35px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(15px); }
}

/* Sections Global */
.section {
    padding: 120px 0;
    position: relative;
}

.section__header {
    margin-bottom: 80px;
    text-align: center;
}

.section__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section__header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section__header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 30px;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.card__icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--primary);
    transition: 0.3s;
}

.card:hover .card__icon {
    background: var(--primary);
    color: white;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* About */
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__content h2 {
    text-align: left;
}

.about__content .section__tag {
    margin-left: 0;
}

.about__list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.about__list .check {
    color: var(--primary);
    font-weight: 800;
}

.about__visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.stat-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 2;
}

.stat-1 {
    top: 50px;
    left: 20px;
}

.stat-2 {
    bottom: 50px;
    right: 20px;
}

.stat-card .number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-card .label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact */
.contact__wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact__form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form__group {
    margin-bottom: 20px;
}

.form__group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form__group input,
.form__group textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form__group input:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.05);
}

.contact__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animation Utilities (Classes toggled by JS) */
.hidden-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hidden-visual {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s ease-out;
}

.hidden-card {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 900px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero__subtitle {
        margin: 0 auto 40px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        margin-top: 40px;
    }

    .about__container {
        grid-template-columns: 1fr;
    }

    .about__content h2,
    .about__content .section__tag {
        text-align: center;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .about__content p {
        text-align: center;
    }

    .contact__wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header__nav {
        display: none; /* For now, simple hidden nav on mobile as per previous step */
    }
}