/* ============================================
   BRAINTRUST - COSMIC THEME
   A futuristic, space-inspired design system
   ============================================ */

:root {
    --color-bg: #020204;
    --color-bg-alt: #0a0a1a;
    --color-surface: rgba(15, 15, 35, 0.6);
    --color-surface-solid: #0f0f23;
    --color-border: rgba(100, 180, 255, 0.15);
    --color-border-glow: rgba(0, 212, 255, 0.3);
    
    --color-accent: #ffd700;
    --color-accent-dim: #c9a227;
    --color-neon: #00d4ff;
    --color-neon-dim: #0099cc;
    --color-white: #f0f4ff;
    --color-muted: #8892b0;
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.15), 0 0 60px rgba(0, 212, 255, 0.05);
    --shadow-gold: 0 0 20px rgba(255, 215, 0, 0.15), 0 0 60px rgba(255, 215, 0, 0.05);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Cosmic Dust Overlay */
.cosmic-dust {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(0, 100, 200, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--color-accent);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Navigation */
.cosmic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(2, 2, 4, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.brand-icon {
    color: var(--color-accent);
    font-size: 1.75rem;
    animation: starPulse 3s ease-in-out infinite;
    display: inline-block;
}

.brand-brain {
    color: #0055ff;
    text-shadow: 0 0 15px rgba(0, 85, 255, 0.4);
}

.brand-accent {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-neon), var(--color-accent));
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

/* Main Layout */
main {
    position: relative;
    z-index: 2;
}

.cosmic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-neon);
    margin-bottom: 2rem;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-neon);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-neon);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.35rem);
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-scroll {
    margin-top: auto;
    padding-top: 2rem;
    display: none;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--color-neon);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

/* Buttons */
.cosmic-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-glow {
    background: linear-gradient(135deg, var(--color-neon-dim), var(--color-neon));
    color: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), 0 0 80px rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-glow), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-white), var(--color-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-muted);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

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

/* Expertise Section */
.expertise-section {
    padding: 6rem 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.expertise-card {
    padding: 2.5rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-neon), var(--color-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.expertise-card:hover {
    border-color: var(--color-border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-8px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--color-neon);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.expertise-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

.expertise-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.cta-text {
    color: var(--color-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Page Header */
.page-header {
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--color-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 4rem 0 6rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-content strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Visual Ring */
.visual-ring {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}

.ring-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    margin: -40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--color-muted);
    animation: orbit 20s linear infinite;
    animation-delay: calc(var(--i) * -4s);
    backdrop-filter: blur(10px);
}

.ring-icon {
    color: var(--color-accent);
    font-size: 1rem;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 215, 0, 0.2));
    border: 1px solid var(--color-border-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-glow);
}

/* Values Section */
.values-section {
    padding: 4rem 0 6rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.value-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-neon), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-white);
}

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

/* Services Section */
.services-section {
    padding: 4rem 0;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    position: relative;
}

.service-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.service-row.reverse .service-visual {
    order: 2;
}

.service-row.reverse .service-content {
    order: 1;
}

.service-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon-large {
    width: 200px;
    height: 200px;
    color: var(--color-neon);
    opacity: 0.8;
    transition: all 0.5s ease;
}

.service-icon-large:hover {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3));
}

.service-icon-large svg {
    width: 100%;
    height: 100%;
}

.service-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.service-content p {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-muted);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* Contact Section */
.contact-section {
    padding: 4rem 0 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-title {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.contact-desc {
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-neon);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 22px;
    height: 22px;
}

.contact-item strong {
    display: block;
    color: var(--color-white);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-item span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

/* Form */
.contact-form-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cosmic-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
    letter-spacing: 0.02em;
}

.form-control {
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--color-neon);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-control::placeholder {
    color: rgba(136, 146, 176, 0.5);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.field-error {
    color: #ff6b6b;
    font-size: 0.8rem;
}

.alert-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: var(--radius-sm);
    color: #00ff96;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: var(--radius-sm);
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Footer */
.cosmic-footer {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border);
    background: rgba(2, 2, 4, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-neon);
}

.footer-copy {
    color: rgba(136, 146, 176, 0.5);
    font-size: 0.8rem;
}

/* Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Keyframes */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes starPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.2) rotate(15deg); opacity: 0.8; }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(120px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

/* ==========================================
   BRAINTRUST MAGIC EFFECTS
   ========================================== */
:root {
    --magic-color: #00ff88;
}

.brand-magic {
    position: relative;
    display: inline-block;
}

/* Effect 1: Fill from bottom (water fill) */
.brand-magic.magic-fill::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    overflow: hidden;
    color: var(--magic-color);
    text-shadow: 0 0 20px var(--magic-color), 0 0 40px var(--magic-color);
    animation: magicFill 5s ease-in-out forwards;
    pointer-events: none;
    white-space: nowrap;
}
@keyframes magicFill {
    0% { height: 0%; }
    40% { height: 100%; }
    80% { height: 100%; }
    100% { height: 0%; }
}

/* Effect 2: Color melt (brand colors → magic color) */
.brand-magic.magic-melt {
    animation: magicMelt 5s ease-in-out forwards;
}
@keyframes magicMelt {
    0%, 100% { filter: hue-rotate(0deg); text-shadow: 0 0 15px rgba(0,85,255,0.4), 0 0 30px rgba(255,215,0,0.2); }
    25% { filter: hue-rotate(40deg) saturate(1.5); text-shadow: 0 0 20px var(--magic-color); }
    50% { filter: hue-rotate(80deg) saturate(2); text-shadow: 0 0 30px var(--magic-color), 0 0 60px var(--magic-color); }
    75% { filter: hue-rotate(40deg) saturate(1.5); text-shadow: 0 0 20px var(--magic-color); }
}

/* Effect 3: Neon pulse */
.brand-magic.magic-pulse {
    animation: magicPulse 5s ease-in-out forwards;
}
@keyframes magicPulse {
    0%, 100% { text-shadow: 0 0 15px rgba(0,85,255,0.4), 0 0 30px rgba(255,215,0,0.2); }
    20% { text-shadow: 0 0 20px var(--magic-color), 0 0 40px var(--magic-color); }
    40% { text-shadow: 0 0 35px var(--magic-color), 0 0 70px var(--magic-color), 0 0 100px var(--magic-color); }
    60% { text-shadow: 0 0 20px var(--magic-color), 0 0 40px var(--magic-color); }
    80% { text-shadow: 0 0 35px var(--magic-color), 0 0 70px var(--magic-color), 0 0 100px var(--magic-color); }
}

/* Effect 4: Glitch */
.brand-magic.magic-glitch {
    animation: magicGlitch 5s ease-in-out forwards;
}
@keyframes magicGlitch {
    0%, 100% { transform: translate(0); filter: none; }
    10% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); text-shadow: 2px 0 #ff0000, -2px 0 var(--magic-color); }
    20% { transform: translate(2px, -2px); filter: hue-rotate(180deg); text-shadow: -2px 0 #ff0000, 2px 0 var(--magic-color); }
    30% { transform: translate(-1px, 1px); filter: hue-rotate(270deg); text-shadow: 1px 0 var(--magic-color), -1px 0 #ffd700; }
    40% { transform: translate(0); filter: hue-rotate(360deg); text-shadow: 0 0 30px var(--magic-color); }
    50% { transform: translate(1px, -1px); filter: hue-rotate(180deg); text-shadow: -1px 0 #ff0000, 1px 0 var(--magic-color); }
    60% { transform: translate(-2px, 2px); filter: hue-rotate(90deg); text-shadow: 2px 0 var(--magic-color), -2px 0 #ffd700; }
    70% { transform: translate(0); filter: none; text-shadow: 0 0 20px var(--magic-color); }
}

/* Effect 5: Scan line */
.brand-magic.magic-scan::after {
    content: '';
    position: absolute;
    left: -10%;
    top: 0;
    width: 120%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--magic-color), transparent);
    box-shadow: 0 0 15px var(--magic-color), 0 0 30px var(--magic-color);
    animation: magicScan 5s ease-in-out forwards;
    pointer-events: none;
}
@keyframes magicScan {
    0% { top: -10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 110%; opacity: 0; }
}

/* Effect 6: Sparkle */
.brand-magic.magic-sparkle {
    animation: magicSparkle 5s ease-in-out forwards;
}
@keyframes magicSparkle {
    0%, 100% { filter: brightness(1); }
    10% { filter: brightness(1.3); text-shadow: 0 0 10px var(--magic-color); }
    20% { filter: brightness(1); }
    30% { filter: brightness(1.4); text-shadow: 0 0 25px var(--magic-color), 0 0 50px var(--magic-color); }
    40% { filter: brightness(1); }
    50% { filter: brightness(1.5); text-shadow: 0 0 35px var(--magic-color), 0 0 70px var(--magic-color); }
    60% { filter: brightness(1); }
    70% { filter: brightness(1.3); text-shadow: 0 0 20px var(--magic-color); }
    80% { filter: brightness(1); }
    90% { filter: brightness(1.4); text-shadow: 0 0 30px var(--magic-color), 0 0 60px var(--magic-color); }
}

/* Effect 7: Fire from bottom */
.brand-magic.magic-fire::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: transparent;
    background: linear-gradient(to top, var(--magic-color) 0%, var(--magic-color) 30%, transparent 60%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--magic-color);
    animation: magicFire 5s ease-in-out forwards;
    pointer-events: none;
    white-space: nowrap;
    clip-path: inset(100% 0 0 0);
}
@keyframes magicFire {
    0% { clip-path: inset(100% 0 0 0); }
    30% { clip-path: inset(0% 0 0 0); }
    70% { clip-path: inset(0% 0 0 0); }
    100% { clip-path: inset(100% 0 0 0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-visual {
        order: -1;
    }
    .visual-ring {
        width: 280px;
        height: 280px;
    }
    .ring-item {
        width: 70px;
        height: 70px;
        margin: -35px;
        font-size: 0.65rem;
    }
    @keyframes orbit {
        from { transform: rotate(0deg) translateX(100px) rotate(0deg); }
        to { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(2, 2, 4, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .stats-grid,
    .expertise-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .service-row.reverse .service-visual,
    .service-row.reverse .service-content {
        order: unset;
    }
    .service-icon-large {
        width: 140px;
        height: 140px;
    }
    .service-list li {
        text-align: left;
    }
    .footer-links {
        gap: 1rem;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
