:root {
    --bg-color: #020005; /* Ultra Deep Purple/Black */
    --text-main: #ffffff;
    --text-light: #b0b0d0;
    --accent: #a600ff; /* Electric Violet - Primary Purple from Step Numbers */
    --accent-glow: rgba(166, 0, 255, 0.6);
    --secondary: #e63bff; /* Light Purple - Replaces Cyan */
    --secondary-glow: rgba(230, 59, 255, 0.5);
    --gradient-main: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 10, 30, 0.4);
    --container-width: 1400px;
    --spacing-section: 120px;
    --transition-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Space Background (Canvas) */
#space-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(60, 10, 100, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 50, 100, 0.1) 0%, transparent 50%);
}

h1, h2, h3, h4, .brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Modern Gradient Text Effect */
.highlight {
    background: linear-gradient(to right, var(--secondary), #fff, var(--accent));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
    display: inline-block;
    font-weight: 700;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

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

a:hover {
    color: var(--secondary);
    text-shadow: 0 0 10px var(--secondary-glow);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: var(--spacing-section) 0;
}

.bg-light { 
    background-color: transparent; 
    background: linear-gradient(180deg, rgba(166, 0, 255, 0.02) 0%, rgba(230, 59, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
}
.bg-dark { background-color: transparent; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    background: rgba(5, 2, 10, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Logo */
.brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
}

.brand-highlight {
    color: var(--accent);
    animation: neonFlicker 3s infinite alternate;
    text-shadow: 0 0 10px var(--accent-glow);
}

@keyframes neonFlicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px var(--accent-glow);
    }
    20%, 24%, 55% {
        opacity: 0.8;
        text-shadow: none;
    }
}

.brand span.tm {
    font-size: 0.8rem;
    vertical-align: top;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: rgba(255,255,255,0.7);
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.3s ease;
}

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

/* Menu Button (Mobile) */
.menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #05020a;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s var(--transition-smooth);
}

.menu-overlay.active {
    transform: translateY(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.menu-link {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Aurora/Nebula Animation */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(166, 0, 255, 0.15) 0%, transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: pulseNebula 8s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230, 59, 255, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    z-index: -1;
    animation: pulseNebula 12s ease-in-out infinite alternate-reverse;
}

@keyframes pulseNebula {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 65vh;
    min-height: 500px; /* Ensure minimum height */
    position: relative;
    z-index: 2;
}

/* Hero Text Animations */
.hero h1 {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 1;
    margin-bottom: 30px;
}

.hero h1 span {
    display: block;
    opacity: 0;
    animation: smoothReveal 1s var(--transition-smooth) forwards;
}

.hero h1 span:nth-child(1) { 
    animation-delay: 0.1s; 
    text-shadow: 0 0 30px rgba(166,0,255,0.1);
}
.hero h1 span:nth-child(2) { 
    animation-delay: 0.3s; 
}
.hero h1 span:nth-child(3) { 
    animation-delay: 0.5s; 
}

@keyframes smoothReveal {
    from { opacity: 0; transform: translateY(40px) scale(0.98); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    width: 100%;
    z-index: 10;
}

.hero-desc {
    max-width: 600px; /* Restored max-width to prevent layout breaks */
    font-size: 1.1rem;
    color: #fff; /* Changed to pure white for better visibility */
    text-shadow: 0 2px 5px rgba(0,0,0,0.5); /* Added shadow for readability */
    padding-right: 20px; /* Space between text and button */
}

/* Animated Circle Button */
.cta-round {
    width: 140px;
    height: 140px;
    flex-shrink: 0; /* Prevent shrinking */
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    white-space: normal;
    padding: 10px;
    text-align: center;
}

.cta-round:hover {
    transform: scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-round span {
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

/* Marquee */
.marquee-container {
    background: transparent;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    margin-top: 60px;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-main); 
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.marquee-content span {
    margin: 0 30px;
}

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

/* Section Headers */
.section-header {
    margin-bottom: 60px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    display: inline-block;
    color: var(--secondary);
    border: 1px solid rgba(230, 59, 255, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(230, 59, 255, 0.05);
}

h2 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #fff, var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
}

.process-step {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    transition: all 0.4s;
}

.process-step:hover {
    transform: translateY(-10px);
    border-top-color: var(--accent);
}

.step-num {
    font-size: 3rem;
    font-family: 'Space Grotesk';
    color: var(--accent);
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.8;
    text-shadow: 0 0 20px rgba(166, 0, 255, 0.3);
}

.process-step h3 {
    color: #fff;
}

.process-step p {
    color: var(--text-light);
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 50px 0;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-main);
    transition: width 0.5s ease;
}

.service-item:hover::before {
    width: 100%;
}

.service-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-head h3 {
    font-size: 2.5rem;
    font-weight: 400;
    transition: all 0.3s;
    color: #fff;
}

.service-item:hover .service-head h3 {
    color: var(--secondary);
    transform: translateX(20px);
}

.plus {
    font-size: 2rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
}

.service-item.open .plus {
    transform: rotate(45deg);
}

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    max-width: 700px;
}

.service-item.open .service-body {
    max-height: 300px;
    opacity: 1;
    margin-top: 30px;
    margin-left: 20px;
}

.service-body p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

.btn-link {
    display: inline-block;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-link:hover {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 40px;
}

.stat-val {
    font-size: 6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    display: block;
    margin-top: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
}

/* Testimonials */
.testimonial-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.testimonial-card {
    background: var(--glass-bg);
    padding: 50px;
    border: 1px solid var(--border-color);
    position: relative;
    border-radius: 12px;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.case-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 15px;
    border: 1px solid rgba(230, 59, 255, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(230, 59, 255, 0.05);
}

.testimonial-card blockquote {
    font-size: 1.2rem;
    font-family: 'Space Grotesk';
    margin-bottom: 30px;
    line-height: 1.4;
    color: #fff;
    font-style: italic;
}

.testimonial-card cite {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-light);
    display: block;
}

.testimonial-card cite strong {
    color: var(--accent);
    display: block;
    margin-bottom: 5px;
}

/* Contact */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.big-headline {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-link {
    font-size: 1.5rem;
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.contact-link:hover {
    color: var(--secondary);
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 20px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    outline: none;
    color: #fff;
    transition: border 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--accent);
    box-shadow: 0 1px 0 var(--accent-glow);
}

.btn-block {
    margin-top: 30px;
    background: var(--gradient-main);
    color: #fff;
    border: none;
    padding: 20px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    border-radius: 4px;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(166, 0, 255, 0.3);
}

/* Footer */
footer {
    background: #000;
    border-top: 1px solid var(--border-color);
    color: #fff;
    padding: 80px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
}

.footer-inner h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-inner a {
    color: var(--text-light);
    display: block;
    margin-bottom: 10px;
}

.footer-inner a:hover {
    color: var(--secondary);
}

/* Subpage Specifics */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 80px;
    background: transparent;
    color: var(--white);
    position: relative;
}

.page-hero h1 {
    font-size: 5rem;
    background: linear-gradient(to right, var(--white), var(--text-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.text-block p {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.text-block h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-top: 60px;
    margin-bottom: 30px;
}

.sidebar {
    padding: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    border-radius: 12px;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background 0.2s;
    mix-blend-mode: difference;
}

#cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(230, 59, 255, 0.1);
    border-color: transparent;
    box-shadow: 0 0 30px var(--secondary-glow);
}

/* Responsive */
@media (max-width: 1024px) {
    h1 { font-size: 5rem; }
    .contact-layout, .testimonial-slider, .stats-grid, .content-grid {
        grid-template-columns: 1fr;
    }
    .nav-links { display: none; }
    .menu-btn { display: flex; }
}

@media (max-width: 768px) {
    .hero-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
    .section-header h2 { font-size: 2.5rem; }
    .big-headline { font-size: 3rem; }
}