/* KREATEK 2030 - Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&family=Space+Grotesk:wght@300;600&display=swap');

:root {
    --bg-color: #050507;
    --surface-color: #0f1014;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #00f3ff;
    --accent-secondary: #bd00ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --blur: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: 1.2rem; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 3px; font-weight: 600;}

p { margin-bottom: 1.5rem; color: var(--text-secondary); max-width: 65ch; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.4s ease;
    mix-blend-mode: exclusion;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    opacity: 0.7;
}

.nav-links a:hover, .nav-links a.active {
    opacity: 1;
    color: var(--accent-primary);
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    background: transparent;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0.5;
}

/* Services (Supernatural Void Monoliths) */
#services {
    /* Singularity Background */
    background: radial-gradient(circle at center, #1a0b2e 0%, #000 70%);
    overflow: hidden;
}

#services::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200%; height: 200%;
    background: repeating-conic-gradient(
        from 0deg, 
        transparent 0deg, 
        rgba(189, 0, 255, 0.05) 10deg, 
        transparent 20deg
    );
    animation: galaxy-spin 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes galaxy-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
    perspective: 2000px; /* For 3D Tilt */
}

@media (min-width: 700px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Void Monolith Card */
.service-card {
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid rgba(100, 200, 255, 0.1);
    padding: 3.5rem 2.5rem;
    border-radius: 4px; /* Monolith style */
    position: relative;
    overflow: hidden;
    /* transition: transform 0.1s; // Handled by JS for tilt */
    transform-style: preserve-3d;
    box-shadow: 0 0 0 rgba(0,0,0,0);
    clip-path: polygon(
        20px 0, 100% 0, 
        100% calc(100% - 20px), calc(100% - 20px) 100%, 
        0 100%, 0 20px
    ); /* Sci-Fi Cut corners */
}

/* Alien Glow Border */
.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 4px; /* match card */
    padding: 2px;
    background: linear-gradient(180deg, transparent, var(--accent-primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.service-card:hover::after {
    opacity: 1;
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 30px var(--accent-primary);
}

/* Internal Content Floating */
.service-card h4, .service-card p, .service-card i {
    transform: translateZ(30px); /* 3D pop */
    position: relative;
    z-index: 5;
}

.service-card h4 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* Icon "Energy Core" */
.service-card i {
    font-size: 3rem;
    display: inline-block;
    background: linear-gradient(135deg, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px var(--accent-primary));
    transform: translateZ(50px);
}

/* Hover State - Abduction/Levitation */
.service-card:hover i {
    animation: pulse-core 1.5s infinite ease-in-out;
}

@keyframes pulse-core {
    0%, 100% { filter: drop-shadow(0 0 15px var(--accent-primary)); transform: translateZ(50px) scale(1); }
    50% { filter: drop-shadow(0 0 40px var(--accent-secondary)); transform: translateZ(60px) scale(1.1); }
}

/* Hover Glare */
.card-glare {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 70%);
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.3s;
    transform: translateZ(1px);
}

.service-card:hover .card-glare {
    opacity: 1;
}

/* Process */
.process-steps {
    margin-top: 5rem;
    display: grid;
    gap: 1rem;
}

.step {
    display: flex;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass-bg);
    transition: 0.3s;
}

.step:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(189, 0, 255, 0.1);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    line-height: 1;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

#contact-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Footer */
footer {
    scroll-snap-align: start;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: linear-gradient(0deg, #000 0%, rgba(3,3,5,1) 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    opacity: 0.5;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    border-color: var(--accent-secondary);
    background: var(--accent-secondary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    opacity: 0.6;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 3rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .step { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .about-visual { display: none; } /* Hide 3D card on mobile to save space */
}

/* About Section Redesign */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    border-left: 1px solid var(--accent-primary);
    padding-left: 2rem;
}

/* Stats */
.stats-row {
    display: flex;
    gap: 4rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Holographic Card (3D Tilt) */
.about-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.holo-card {
    width: 300px;
    height: 400px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0, 243, 255, 0.1);
    backdrop-filter: blur(10px);
}

.holo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-primary), transparent, var(--accent-secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.holo-content {
    transform: translateZ(50px);
    text-align: center;
}

.logo-icon {
    font-size: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px rgba(0,243,255,0.3));
}

.holo-card h4 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Moving Glare */
.holo-glare {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 20px;
    background: radial-gradient(
        circle at 50% 50%, 
        rgba(255,255,255,0.1), 
        transparent 60%
    );
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: overlay;
    transition: opacity 0.3s;
    transform: translateZ(1px);
}

/* Spacing Adjustments */
#services {
    padding-bottom: 2rem; /* Reduced from generic section padding */
    min-height: auto; /* Allow it to shrink if content is small */
}

#clients {
    padding-top: 2rem; /* Reduced from generic section padding */
    padding-bottom: 5rem;
    min-height: auto;
    background: #000; /* Ensure background continuity if needed */
}

#clients .section-header {
    margin-bottom: 3rem;
}

.process-separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 4rem 0;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .holo-card {
        margin: 0 auto;
    }
}

/* Process Section Enhancements */
.process-steps {
    position: relative;
    /* Ensure z-index allows canvas behind */
}

#process-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind steps */
    pointer-events: none;
}

.step {
    position: relative;
    z-index: 1; /* Above canvas */
    background: rgba(15, 16, 20, 0.6); /* Slightly more opaque base */
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Active Highlight State */
.step.active {
    border-color: var(--accent-primary);
    background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 40px rgba(0, 243, 255, 0.1);
    transform: scale(1.02) translateX(10px);
}

.step.active .step-number {
    color: var(--accent-primary);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--accent-primary);
    transition: 0.3s;
}

/* "Scanning" Gradient Effect for Active Card */
.step.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(0, 243, 255, 0.1), 
        transparent
    );
    animation: scan 3s infinite linear;
    pointer-events: none;
}

@keyframes scan {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

@media (max-width: 768px) {
    .step.active {
        transform: scale(1.02); /* No X translate on mobile */
    }
}
