/*
===============================================
creativsanity AI - Clean Working Stylesheet
===============================================
*/

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 50px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    animation: fadeInDown 0.8s ease-out;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    order: 1;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

nav {
    display: flex;
    align-items: center;
    order: 2;
    flex-shrink: 0;
}

.nav-toggle {
    order: 3;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: #e2e8f0;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
    transition: color 0.25s ease;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: #a5f3fc;
}

.nav-link:hover::after,
.nav-link:focus::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-link.active {
    color: #38bdf8;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.05);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger::before {
    transform: translateY(-7px);
}

.hamburger::after {
    transform: translateY(5px);
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    transform: translateY(0) rotate(-45deg);
}

/* ===== MAIN CONTENT ===== */
.main {
    min-height: 100vh;
}

/* ===== BANNER SECTION ===== */
.banner {
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-radius: 0;
    padding: 50px;
    background: linear-gradient(135deg, #0f172a, #111c33);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

/* animated background blobs */
.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 30%, #4cc9f0, #4361ee);
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s infinite ease-in-out;
}

.blob.one {
    top: -100px;
    left: -100px;
}

.blob.two {
    bottom: -120px;
    right: -120px;
    background: radial-gradient(circle, #7209b7, #3a0ca3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        transform: translateY(30px) translateX(20px) scale(1.1);
    }
}

/* LEFT SIDE (BRAIN NOW HERE) */
.banner-left {
    flex: 1;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* NEON BRAIN WRAPPER */
.brain-wrapper {
    width: 512px;
    height: 512px;
    filter: drop-shadow(0 0 20px #4cc9f0)
            drop-shadow(0 0 40px #7209b7);
    animation: floatBrain 4s ease-in-out infinite;
    position: relative;
}

/* FLOATING PARTICLES */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #4cc9f0, #7209b7);
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.particle-1 {
    top: 20%;
    left: 10%;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle-2 {
    top: 30%;
    right: 15%;
    animation: floatParticle 10s ease-in-out infinite 1s;
}

.particle-3 {
    bottom: 25%;
    left: 20%;
    animation: floatParticle 12s ease-in-out infinite 2s;
}

.particle-4 {
    top: 60%;
    right: 25%;
    animation: floatParticle 9s ease-in-out infinite 3s;
}

.particle-5 {
    bottom: 40%;
    right: 10%;
    animation: floatParticle 11s ease-in-out infinite 4s;
}

.particle-6 {
    top: 80%;
    left: 30%;
    animation: floatParticle 7s ease-in-out infinite 5s;
}

/* ENERGY RINGS */
.energy-ring {
    position: absolute;
    border: 1px solid;
    border-radius: 50%;
    opacity: 0;
    animation: expandRing 4s ease-out infinite;
}

.ring-1 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: #4cc9f0;
    animation-delay: 0s;
}

.ring-2 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: #7209b7;
    animation-delay: 1.3s;
}

.ring-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: #00ffd5;
    animation-delay: 2.6s;
}

/* NEURAL CONNECTIONS */
.neural-connection {
    stroke-dasharray: 2, 4;
    animation: dashMove 3s linear infinite;
}

/* DATA STREAMS */
.data-stream {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #4cc9f0, transparent);
    opacity: 0.6;
}

.stream-1 {
    top: 20%;
    right: 10%;
    animation: dataFlow 4s ease-in-out infinite;
}

.stream-2 {
    top: 50%;
    right: 30%;
    animation: dataFlow 5s ease-in-out infinite 1s;
}

.stream-3 {
    bottom: 30%;
    right: 15%;
    animation: dataFlow 6s ease-in-out infinite 2s;
}

.stream-4 {
    top: 70%;
    right: 5%;
    animation: dataFlow 4.5s ease-in-out infinite 3s;
}

/* GLITCH TEXT EFFECT */
.glitch-container {
    position: relative;
    display: inline-block;
}

.glitch-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, #4cc9f0 50%, transparent 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: glitchShift 3s ease-in-out infinite;
    opacity: 0;
}

.glitch-text:nth-child(2) {
    background: linear-gradient(-45deg, transparent 30%, #7209b7 50%, transparent 70%);
    animation-delay: 0.5s;
}

.glitch-text:nth-child(3) {
    background: linear-gradient(90deg, transparent 30%, #00ffd5 50%, transparent 70%);
    animation-delay: 1s;
}

/* ANIMATIONS */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) translateX(-15px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-30px) translateX(5px) scale(1.1);
        opacity: 0.9;
    }
}

@keyframes expandRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes dataFlow {
    0%, 100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scaleY(1.5);
        opacity: 1;
    }
}

@keyframes glitchShift {
    0%, 100% {
        transform: translateX(0);
        opacity: 0;
    }
    20% {
        transform: translateX(-2px);
        opacity: 0.8;
    }
    40% {
        transform: translateX(2px);
        opacity: 0.6;
    }
    60% {
        transform: translateX(-1px);
        opacity: 0.9;
    }
    80% {
        transform: translateX(1px);
        opacity: 0.7;
    }
}

@keyframes floatBrain {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* brain glow pulse */
.pulse {
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* neural line animation */
.line {
    stroke-dasharray: 10;
    stroke-dashoffset: 100;
    animation: dash 3s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: 0; }
}

.banner-right {
    flex: 1;
    z-index: 2;
    color: white;
    padding-left: 40px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #4cc9f0, #4895ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 15px;
}

.hero-subtitle {
    margin-top: 15px;
    color: #bcd0ff;
    font-size: 1.1rem;
    line-height: 1.6;
}

.banner-btn {
    margin-top: 25px;
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: #4cc9f0;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(76, 201, 240, 0.3);
    text-decoration: none;
}

.banner-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 201, 240, 0.5);
}

/* cursor glow */
.glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.3), transparent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

/* ===== HERO BANNER VISUAL ===== */
.hero-banner {
    display: flex;
    height: 80vh;
    width: 100%;
    overflow: hidden;
}

.hero-banner-container {
    display: flex;
    width: 100%;
    height: 100%;
}

.hero-left {
    flex: 1;
    background: #0e0f13;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.small-dot {
    width: 14px;
    height: 14px;
    background: #b6ff00;
    border-radius: 50%;
    margin-bottom: 40px;
    box-shadow: 0 0 20px #b6ff00;
}

.title {
    font-size: 96px;
    font-weight: 700;
    line-height: 1.1;
    color: white;
}

.title span {
    color: #7fb7ff;
}

.subtitle {
    font-size: 56px;
    margin-top: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
    width: fit-content;
}

.hero-right {
    flex: 1.2;
    position: relative;
    overflow: hidden;
}

.hero-right img {
    display: block;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.4));
}

.circle {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #b6ff00;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ===== AI ASSISTANT SECTION ===== */
.assistant-section {
    padding: 80px 0;
}

.assistant-card {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.assistant-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.assistant-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 1.5rem;
}

.ai-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid #0f172a;
    animation: indicatorPulse 2s infinite;
}

.assistant-info h3 {
    margin: 0 0 0.25rem 0;
    color: #f8fafc;
    font-size: 1.2rem;
}

.assistant-info p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.assistant-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.assistant-message {
    margin-bottom: 1rem;
}

.assistant-bubble {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.assistant-input-wrap {
    display: flex;
    gap: 0.5rem;
}

.assistant-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 25px;
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-family: inherit;
    transition: all 0.3s ease;
}

.assistant-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.assistant-submit {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assistant-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

/* ===== SERVICES SECTION ===== */
.services-section {
    padding: 120px 8%;
    background: radial-gradient(circle at top, #0a162d, #050b18);
    text-align: center;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #ffffff, #6aa8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

/* GLOW EFFECT */
.service-card::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106,168,255,0.15), transparent 60%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: 0.5s;
}

/* HOVER */
.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border: 1px solid rgba(106,168,255,0.4);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* ICON */
.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    border-radius: 18px;
    background: linear-gradient(135deg, #6aa8ff, #7b5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: 0.4s;
}

.service-card:hover .card-icon {
    transform: rotate(8deg) scale(1.1);
}

.card-icon i {
    color: white;
    font-size: 28px;
}

/* TITLE */
.card-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: #f8fafc;
}

/* TEXT */
.card-description {
    color: #a9b4c7;
    font-size: 15px;
    line-height: 1.6;
}

/* BUTTON */
.service-btn {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    color: #6aa8ff;
    text-decoration: none;
    position: relative;
}

.service-btn::after {
    content: "";
    width: 0%;
    height: 2px;
    background: #6aa8ff;
    position: absolute;
    left: 0;
    bottom: -4px;
    transition: 0.3s;
}

.service-btn:hover::after {
    width: 100%;
}

/* BADGE */
.service-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(106,168,255,0.15);
    color: #6aa8ff;
}

/* ===== ABOUT & CONTACT SECTIONS ===== */
.about-section,
.contact-section {
    padding: 80px 0;
}

.about-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #94a3b8;
}

.contact-info {
    text-align: center;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #0ea5e9;
}

/* ===== FOOTER ===== */
.footer {
    padding: 2rem 0;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.copyright {
    text-align: center;
    color: #64748b;
    margin: 0;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #0f172a 0%, #1e293b 40%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

.ai-loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    animation: loaderFloat 3s ease-in-out infinite;
}

.ai-brain {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brain-core {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    border-radius: 50%;
    position: relative;
    animation: brainRotate 8s linear infinite;
    box-shadow: 
        0 0 30px rgba(56, 189, 248, 0.4),
        inset 0 0 20px rgba(129, 140, 248, 0.3);
}

.brain-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.node-1 { top: 15%; left: 20%; animation: nodePulse 2s ease-in-out infinite 0s; }
.node-2 { top: 25%; right: 15%; animation: nodePulse 2s ease-in-out infinite 0.5s; }
.node-3 { bottom: 20%; left: 25%; animation: nodePulse 2s ease-in-out infinite 1s; }
.node-4 { bottom: 30%; right: 20%; animation: nodePulse 2s ease-in-out infinite 1.5s; }

.brain-pulse {
    position: absolute;
    width: 140px;
    height: 140px;
    border: 2px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    animation: brainPulse 2s ease-in-out infinite;
}

.ai-circuit {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0.6;
}

.line-1 {
    width: 100px;
    height: 2px;
    top: 50%;
    left: -50px;
    animation: circuitMove 3s linear infinite;
}

.line-2 {
    width: 2px;
    height: 100px;
    top: -50px;
    left: 50%;
    animation: circuitMove 3s linear infinite 0.75s;
}

.line-3 {
    width: 100px;
    height: 2px;
    top: 50%;
    right: -50px;
    animation: circuitMove 3s linear infinite 1.5s;
}

.line-4 {
    width: 2px;
    height: 100px;
    bottom: -50px;
    left: 50%;
    animation: circuitMove 3s linear infinite 2.25s;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes brainRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes nodePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes circuitMove {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

@keyframes indicatorPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-20px);
    }
}

/* ===== GENERATOR PAGE STYLES ===== */
.generator-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.generator-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #4cc9f0, #4895ef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
}

.form-section h2 {
    color: #f8fafc;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.pdf-upload-area {
    border: 2px dashed rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.pdf-upload-area:hover {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.05);
}

.pdf-upload-content svg {
    color: #38bdf8;
    margin-bottom: 1rem;
}

.pdf-upload-content p {
    margin: 0.5rem 0;
    color: #94a3b8;
}

.pdf-upload-hint {
    font-size: 0.875rem;
    color: #64748b;
}

.pdf-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.pdf-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pdf-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pdf-status.loading {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.color-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-option {
    padding: 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.color-option:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.color-option.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.color-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 auto 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option span {
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 500;
}

.template-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.template-option {
    padding: 1.5rem 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
}

.template-option:hover {
    border-color: #38bdf8;
    transform: translateY(-2px);
}

.template-option.selected {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
}

.template-option h4 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.template-option p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

.generate-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.preview-section {
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.preview-header h2 {
    color: #f8fafc;
    margin: 0;
    font-size: 1.3rem;
}

.preview-controls {
    display: flex;
    gap: 0.5rem;
}

.preview-btn {
    padding: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    color: #38bdf8;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.preview-placeholder {
    padding: 3rem 2rem;
    text-align: center;
    color: #94a3b8;
}

.preview-placeholder-content {
    max-width: 400px;
    margin: 0 auto;
}

.preview-icon {
    color: #38bdf8;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.preview-placeholder h3 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.preview-placeholder p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.preview-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #38bdf8;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.step-text {
    color: #e2e8f0;
    font-size: 0.9rem;
}

.preview-frame {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 0;
    display: block;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Notification system */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-info {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}

/* Drag and drop states */
.pdf-upload-area.drag-over {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.02);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .generator-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .preview-section {
        order: -1;
    }
}

@media (max-width: 960px) {
    .header {
        padding: 18px 20px;
    }
    
    .header .container {
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-top: 1px solid rgba(148, 163, 184, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .banner-image {
        height: 300px;
        margin-bottom: 40px;
    }
    
    .banner-content-wrapper {
        padding-left: 0;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-banner {
        flex-direction: column;
    }
    
    .hero-left {
        padding: 40px;
        text-align: center;
    }
    
    .title {
        font-size: 48px;
    }
    
    .subtitle {
        font-size: 28px;
    }
}

    /* MOBILE OPTIMIZATIONS FOR LAUNCH */
    @media (max-width: 560px) {
        /* Brain Section Mobile */
        .brain-wrapper {
            width: 280px;
            height: 280px;
        }
        
        .particle {
            width: 3px;
            height: 3px;
        }
        
        .energy-ring {
            transform: translate(-50%, -50%) scale(0.6);
        }
        
        .ring-1 {
            width: 60px;
            height: 60px;
        }
        
        .ring-2 {
            width: 90px;
            height: 90px;
        }
        
        .ring-3 {
            width: 120px;
            height: 120px;
        }
        
        /* Hero Text Mobile */
        .hero-title {
            font-size: clamp(1.5rem, 4vw, 2rem);
            line-height: 1.3;
            text-align: center;
        }
        
        .hero-subtitle {
            font-size: clamp(0.9rem, 2.5vw, 1.1rem);
            text-align: center;
            margin: 15px auto;
        }
        
        .banner-btn {
            margin: 20px auto 0;
            display: inline-block;
        }
        
        /* Data Streams Mobile */
        .data-stream {
            width: 1.5px;
            height: 40px;
        }
        
        /* Performance Optimizations */
        .blob {
            width: 180px;
            height: 180px;
        }
        
        /* Touch Optimizations */
        .banner-btn, .service-btn, .contact-btn {
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Assistant Mobile */
        .assistant-card {
            margin: 0 8px;
        }
        
        .assistant-input-wrap {
            flex-direction: column;
            gap: 12px;
        }
        
        .assistant-submit {
            width: 100%;
        }
    }
    
    /* TABLET OPTIMIZATIONS */
    @media (max-width: 768px) and (min-width: 561px) {
        .brain-wrapper {
            width: 400px;
            height: 400px;
        }
        
        .hero-title {
            font-size: clamp(2rem, 5vw, 2.8rem);
        }
        
        .particle {
            width: 3.5px;
            height: 3.5px;
        }
    }
    
    /* HIGH PERFORMANCE ANIMATIONS */
    @media (prefers-reduced-motion: reduce) {
        .particle, .energy-ring, .data-stream, .line {
            animation: none;
        }
        
        .brain-wrapper {
            animation: none;
            filter: drop-shadow(0 0 10px #4cc9f0) drop-shadow(0 0 20px #7209b7);
        }
    }
    
    /* CRITICAL PATH OPTIMIZATIONS */
    .brain-wrapper svg {
            will-change: transform;
        }
        
        .particle, .energy-ring, .data-stream {
            will-change: transform, opacity;
        }
        
        /* LOADING OPTIMIZATIONS */
        .preloader {
            backdrop-filter: blur(0px);
        }
    }

/* ===== CUSTOM CURSOR ===== */
/* Hide default cursor */
body { 
    cursor: none; 
}

/* Main cursor dot */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #7CFF00;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #7CFF00, 0 0 20px #7CFF00;
  transition: transform 0.15s ease, background 0.3s, box-shadow 0.3s;
}

/* Follower ring */
.cursor-follower {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(124,255,0,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, border 0.3s;
}

/* Hover effects */
.cursor-hover {
  transform: translate(-50%, -50%) scale(1.8);
}

.cursor-follower.hover {
  width: 70px;
  height: 70px;
}

/* Glow trail particles */
.trail {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 1;
  transform: translate(-50%, -50%);
  animation: fadeOut 0.6s linear forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
}

/* Allow text cursor */
input, textarea {
  cursor: text;
}

/* Mobile cursor reset */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    
    .cursor, .cursor-follower {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 16px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .banner {
        height: auto;
        min-height: 100vh;
        padding: 30px 16px;
        flex-direction: column;
        text-align: center;
    }
    
    .banner-left {
        order: 2;
        margin-bottom: 30px;
    }
    
    .banner-right {
        order: 1;
        padding-left: 0;
        text-align: center;
    }
    
    .brain-wrapper {
        width: 300px;
        height: 300px;
    }
    
    .blob {
        width: 250px;
        height: 250px;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 25px;
    }
    
    .banner-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .assistant-card {
        margin: 0 16px;
        padding: 1.5rem;
    }
    
    .assistant-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .assistant-messages {
        min-height: 150px;
        max-height: 300px;
    }
    
    .assistant-input-wrap {
        flex-direction: column;
        gap: 1rem;
    }
    
    .assistant-submit {
        width: 100%;
        justify-content: center;
    }
    
    .hero-banner {
        height: auto;
        min-height: 80vh;
    }
    
    .hero-banner-container {
        flex-direction: column;
    }
    
    .hero-left {
        padding: 40px 20px;
        text-align: center;
    }
    
    .hero-right {
        min-height: 300px;
    }
    
    .title {
        font-size: clamp(2.5rem, 8vw, 4rem);
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-top: 15px;
    }
    
    .small-dot {
        margin: 0 auto 30px;
    }
    
    .services-section {
        padding: 60px 4%;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 40px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-description {
        font-size: 0.95rem;
    }
    
    .about {
        padding: 60px 4% !important;
    }
    
    .about-container {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }
    
    .about-text h2 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
    }
    
    .about-text h3 {
        font-size: 1.3rem !important;
    }
    
    .about-stats {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center;
    }
    
    .about-visual {
        gap: 15px;
    }
    
    .about-card {
        padding: 20px;
    }
    
    .contact-banner {
        padding: 60px 4% !important;
    }
    
    .contact-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 40px;
    }
    
    .contact-left h1 {
        font-size: clamp(2rem, 6vw, 3rem) !important;
    }
    
    .contact-right {
        justify-content: center;
        gap: 15px;
    }
    
    .contact-card {
        min-width: 140px;
        padding: 25px 15px;
    }
    
    .icon-box {
        width: 50px;
        height: 50px;
    }
    
    .generator-container {
        padding: 40px 16px;
    }
    
    .generator-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .color-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-selector {
        grid-template-columns: 1fr;
    }
    
    .preview-frame {
        height: 400px;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
    
    .copyright {
        font-size: 0.875rem;
        padding: 0 16px;
    }
}
