/* CSS Reset & Variables */
:root {
    --bg-dark: #0a0e17;
    --bg-card: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-blue: #00f2ff;
    --accent-purple: #7000ff;
    --accent-pink: #ff007a;
    --gradient-main: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    --transition-base: all 0.3s ease;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo,
.eyebrow {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.highlight {
    color: var(--accent-blue);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    border: none;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(112, 0, 255, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: rgba(0, 242, 255, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Background FX */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-base);
}

.glass-header.scrolled {
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--text-primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-dark);
    padding: 5rem 2rem;
    transition: 0.4s ease-in-out;
    border-left: var(--glass-border);
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu ul li {
    margin-bottom: 2rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: -10%;
    left: -10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-blue);
    bottom: 20%;
    right: -5%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.eyebrow {
    display: block;
    color: var(--accent-blue);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-shape {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--accent-purple), var(--accent-blue));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite;
    position: absolute;
    z-index: -1;
    opacity: 0.8;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(360deg);
    }
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    /* Glass effect */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 20px;
    border: var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 240px;
}

.card-1 {
    top: 20%;
    left: 0;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    right: 0;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

/* Services */
.services-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--accent-blue);
    color: var(--bg-dark);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    margin-bottom: -1.5rem;
    position: relative;
    z-index: -1;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA & Contact */
.cta-section {
    padding: 100px 0;
}

.cta-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0, 0, 0, 0.5);
}

/* Footer */
.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

/* Fade In Animation State */
.fade-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-content {
        padding: 2rem;
    }

    .btn-outline {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
    }

    .hero-cta {
        flex-direction: column;
    }
}

/* About Section */
.about-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.about-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    background: rgba(22, 27, 34, 0.9);
    border: var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.panel-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.code-typing {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: #e6e6e6;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.code-typing .line {
    opacity: 0;
    animation: typeLine 0.5s forwards;
}

.code-typing .line:nth-child(1) {
    animation-delay: 0.2s;
}

.code-typing .line:nth-child(2) {
    animation-delay: 1.2s;
}

.code-typing .line:nth-child(3) {
    animation-delay: 2.2s;
}

@keyframes typeLine {
    to {
        opacity: 1;
    }
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(50px);
    z-index: 0;
}

@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        justify-content: space-between;
    }
}