/* ==========================================
   ROIATEK AI - Base Styles
   ========================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Primary Colors */
    --color-primary: #00f5d4;
    --color-primary-dark: #00c4a7;
    --color-secondary: #7b2cbf;
    --color-accent: #f72585;
    
    /* Background Colors - Much Brighter */
    --color-bg-dark: #1a1f2e;
    --color-bg-darker: #151924;
    --color-bg-card: #222838;
    --color-bg-card-hover: #2a3248;
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    /* --color-text-secondary: #00c4a7; */
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #606070;
    
    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00f5d4 0%, #7b2cbf 50%, #f72585 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 245, 212, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(0, 245, 212, 0.3) 0%, transparent 70%);
    
    /* Typography */
    /* --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Syne', sans-serif; */
    /* Typography */


    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Syne', 'Outfit', sans-serif;


    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(0, 245, 212, 0.3);
    --shadow-glow-accent: 0 0 30px rgba(123, 44, 191, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1320px;
    --container-padding: 1.5rem;
    
    /* Header */
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background: 
        /* Subtle Dark Vignette - Only at edges */
        radial-gradient(
            ellipse 90% 95% at 50% 50%,
            transparent 0%,
            transparent 60%,
            rgba(3, 3, 8, 0.2) 75%,
            rgba(3, 3, 8, 0.4) 88%,
            rgba(3, 3, 8, 0.65) 100%
        ),
        /* Dark Blue-Purple Glows */
        radial-gradient(
            circle 700px at 20% 25%, 
            rgba(65, 35, 110, 0.4) 0%, 
            rgba(65, 35, 110, 0.22) 35%,
            transparent 60%
        ),
        radial-gradient(
            circle 650px at 80% 70%, 
            rgba(75, 40, 125, 0.38) 0%, 
            rgba(75, 40, 125, 0.2) 38%,
            transparent 65%
        ),
        radial-gradient(
            circle 600px at 50% 50%, 
            rgba(60, 45, 140, 0.35) 0%, 
            rgba(60, 45, 140, 0.18) 40%,
            transparent 65%
        ),
        /* Darker Blue Glows */
        radial-gradient(
            circle 800px at 35% 15%, 
            rgba(20, 100, 180, 0.25) 0%, 
            rgba(20, 100, 180, 0.12) 35%,
            transparent 60%
        ),
        radial-gradient(
            circle 650px at 75% 85%, 
            rgba(45, 75, 160, 0.28) 0%, 
            rgba(45, 75, 160, 0.14) 40%,
            transparent 65%
        ),
        radial-gradient(
            circle 550px at 90% 40%, 
            rgba(50, 90, 130, 0.22) 0%, 
            rgba(50, 90, 130, 0.1) 45%,
            transparent 68%
        ),
        /* Darker Magenta/Pink Accents */
        radial-gradient(
            circle 550px at 15% 75%, 
            rgba(139, 15, 88, 0.28) 0%, 
            rgba(139, 15, 88, 0.14) 42%,
            transparent 68%
        ),
        radial-gradient(
            circle 500px at 85% 30%, 
            rgba(159, 28, 82, 0.26) 0%, 
            rgba(159, 28, 82, 0.12) 45%,
            transparent 70%
        ),
        /* Dark Blue-Violet */
        radial-gradient(
            circle 580px at 60% 80%, 
            rgba(70, 35, 120, 0.3) 0%, 
            rgba(70, 35, 120, 0.15) 43%,
            transparent 68%
        ),
        /* Additional Dark Blue-Purple Colors */
        radial-gradient(
            circle at 30% 30%, 
            rgba(55, 40, 115, 0.24) 0%, 
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 70%, 
            rgba(60, 55, 140, 0.22) 0%, 
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%, 
            rgba(55, 80, 150, 0.18) 0%, 
            transparent 60%
        ),
        /* Darker depth gradient */
        linear-gradient(
            180deg, 
            rgba(10, 10, 18, 0.6) 0%, 
            rgba(10, 10, 18, 0.3) 40%,
            transparent 100%
        ),
        /* Darker base background */
        #050508;
    background-attachment: fixed;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Remove ::before gradient since it's now on body */
body::before {
    content: none;
}

::selection {
    background-color: rgba(0, 245, 212, 0.3);
    color: var(--color-text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ---------- Utility Classes ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-highlight {
    position: relative;
    display: inline-block;
}

.text-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px; /* نزّل الخط لتحت أكثر */
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}


/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-inner {
    text-align: center;
}

.preloader-circuit {
    width: 60px;
    height: 60px;
    position: relative;
    margin: 0 auto 1.5rem;
}

.preloader-circuit span {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: preloader-spin 1.2s linear infinite;
}

.preloader-circuit span:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--color-secondary);
    animation-duration: 1s;
    animation-direction: reverse;
}

.preloader-circuit span:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--color-accent);
    animation-duration: 0.8s;
}

.preloader-circuit span:nth-child(4) {
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
    border-top-color: var(--color-primary);
    animation-duration: 0.6s;
    animation-direction: reverse;
}

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

.preloader-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Custom Cursor ---------- */
.cursor,
.cursor-follower {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .cursor,
    .cursor-follower {
        display: block;
    }
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, background-color 0.2s ease;
}

.cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 245, 212, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

/* ---------- Header ---------- */
/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}


.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.logo-ai {
    color: var(--color-text-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    transition: color var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: var(--radius-full);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 245, 212, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(0, 245, 212, 0.1);
}

.btn-ghost {
    color: var(--color-text-primary);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-icon-left {
    width: 16px;
    height: 16px;
    margin-right: var(--space-xs);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* No transition needed - both sections share same gradient */
.hero::after {
    content: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero .hero-image-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-image: url('../images/h1.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    opacity: 0.95;
    z-index: 1;
    /* Smooth fade on all edges including bottom - no sharp borders */
    mask-image: radial-gradient(
        ellipse 85% 95% at 80% 50%,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.95) 35%,
        rgba(0,0,0,0.75) 55%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0.15) 90%,
        transparent 100%
    );
    -webkit-mask-image: radial-gradient(
        ellipse 85% 95% at 80% 50%,
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.95) 35%,
        rgba(0,0,0,0.75) 55%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0.15) 90%,
        transparent 100%
    );
}

/* Smooth harmonious fade from left - blends with dark background */
.hero .hero-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 150%;
    height: 100%;
    background: radial-gradient(
        ellipse 100% 100% at 0% 50%,
        rgba(10, 10, 15, 1) 0%,
        rgba(10, 10, 15, 0.95) 20%,
        rgba(10, 10, 15, 0.7) 35%,
        rgba(10, 10, 15, 0.4) 50%,
        rgba(10, 10, 15, 0.15) 65%,
        transparent 80%
    );
    z-index: 1;
}

/* Fluorescent circular lighting - turquoise & purple */
.hero .hero-image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(
            circle 600px at 15% 40%,
            rgba(123, 44, 191, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle 500px at 25% 70%,
            rgba(0, 245, 212, 0.25) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle 450px at 10% 20%,
            rgba(64, 224, 208, 0.2) 0%,
            transparent 50%
        );
    z-index: 2;
    mix-blend-mode: screen;
}



.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 20%, black 40%, transparent 100%);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(123, 44, 191, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, rgba(0, 245, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(247, 37, 133, 0.08) 0%, transparent 40%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-xl);
}

.hero-title span {
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2xl);
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: var(--space-xs);
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ---------- Hero Visual ---------- */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-inner {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
}

.ai-brain {
    position: relative;
    width: 100%;
    height: 100%;
}

.brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 
        0 0 40px rgba(0, 245, 212, 0.5),
        0 0 80px rgba(123, 44, 191, 0.3);
    animation: brain-pulse 3s ease-in-out infinite;
}

@keyframes brain-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.brain-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ring-rotate 20s linear infinite;
}

.brain-ring-1 {
    width: 160px;
    height: 160px;
    border-color: rgba(0, 245, 212, 0.3);
}

.brain-ring-2 {
    width: 240px;
    height: 240px;
    border-color: rgba(123, 44, 191, 0.3);
    animation-direction: reverse;
    animation-duration: 25s;
}

.brain-ring-3 {
    width: 320px;
    height: 320px;
    border-color: rgba(247, 37, 133, 0.2);
    animation-duration: 30s;
}

@keyframes ring-rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    animation: node-pulse 2s ease-in-out infinite;
}

.node-1 { top: 10%; left: 50%; animation-delay: 0s; }
.node-2 { top: 30%; right: 15%; animation-delay: 0.3s; }
.node-3 { top: 70%; right: 15%; animation-delay: 0.6s; }
.node-4 { bottom: 10%; left: 50%; animation-delay: 0.9s; }
.node-5 { top: 70%; left: 15%; animation-delay: 1.2s; }
.node-6 { top: 30%; left: 15%; animation-delay: 1.5s; }

@keyframes node-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

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

.brain-connections svg {
    width: 100%;
    height: 100%;
}

.connection {
    fill: none;
    stroke: url(#logoGradient);
    stroke-width: 1;
    stroke-dasharray: 100;
    animation: connection-flow 3s linear infinite;
}

@keyframes connection-flow {
    to { stroke-dashoffset: -200; }
}

/* ---------- Floating Cards ---------- */
.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(18, 18, 26, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.float-card svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.float-card span {
    font-size: 0.875rem;
    font-weight: 600;
}

.float-card-1 {
    top: 15%;
    right: 0;
    animation-delay: 0s;
}

.float-card-2 {
    top: 45%;
    left: -5%;
    animation-delay: 2s;
}

.float-card-3 {
    bottom: 20%;
    right: 5%;
    animation-delay: 4s;
}

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

/* ---------- Hero Scroll Indicator ---------- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-primary), transparent);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ---------- Section Styles ---------- */
section {
    padding: var(--space-5xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-4xl);
}

.section-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-subtle);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
}

/* ---------- Services Section ---------- */
.services {
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Services Section - h1-3.jpg background only at bottom */
.services::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background-image: url('../images/h1-3.jpg');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.75;
    z-index: 0;
    /* Strong fade at top - visible only at bottom */
    mask-image: 
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,0.1) 15%,
            rgba(0,0,0,0.3) 30%,
            rgba(0,0,0,0.5) 45%,
            rgba(0,0,0,0.7) 60%,
            rgba(0,0,0,0.85) 75%,
            rgba(0,0,0,0.95) 90%,
            rgba(0,0,0,1) 100%
        ),
        radial-gradient(
            ellipse 100% 100% at 50% 100%,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.9) 40%,
            rgba(0,0,0,0.5) 70%,
            transparent 100%
        );
    -webkit-mask-image: 
        linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0,0,0,0.1) 15%,
            rgba(0,0,0,0.3) 30%,
            rgba(0,0,0,0.5) 45%,
            rgba(0,0,0,0.7) 60%,
            rgba(0,0,0,0.85) 75%,
            rgba(0,0,0,0.95) 90%,
            rgba(0,0,0,1) 100%
        ),
        radial-gradient(
            ellipse 100% 100% at 50% 100%,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.9) 40%,
            rgba(0,0,0,0.5) 70%,
            transparent 100%
        );
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
    pointer-events: none;
}

/* Subtle glow at bottom only */
.services::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    right: -30px;
    height: 40%;
    background: 
        radial-gradient(
            ellipse 85% 75% at 50% 100%,
            rgba(0, 206, 209, 0.18) 0%,
            rgba(138, 43, 226, 0.14) 30%,
            rgba(219, 39, 119, 0.1) 55%,
            transparent 80%
        );
    filter: blur(70px);
    opacity: 0.6;
    z-index: 0;
    pointer-events: none;
}

.services .container {
    position: relative;
    z-index: 1;
}
/* ==========================================
   MODAL POPUP STYLES
   ========================================== */

/* Modal Overlay & Container */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

/* Dark Semi-Transparent Background */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

/* Modal Content Container */
.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    background: var(--color-bg-card);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.9),
        0 0 100px rgba(123, 44, 191, 0.6),
        inset 0 0 80px rgba(123, 44, 191, 0.15);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10001;
}

/* Purple Glow Effect */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(123, 44, 191, 0.15) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 1;
}

/* Close Button */
.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 44, 191, 0.2);
    border: 2px solid rgba(123, 44, 191, 0.5);
    border-radius: 0;
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-normal);
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(123, 44, 191, 0.4);
    border-color: var(--color-primary);
    color: #00f5d4;
    transform: rotate(90deg);
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.8);
}

/* Modal Body */
.modal-body {
    position: relative;
    overflow-y: auto;
    max-height: 85vh;
    z-index: 2;
    scrollbar-width: thin;
    scrollbar-color: rgba(123, 44, 191, 0.5) rgba(10, 10, 15, 0.3);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(10, 10, 15, 0.3);
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(123, 44, 191, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(123, 44, 191, 0.7);
}

/* Modal Image */
.modal-body img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.85) contrast(1.2);
}

/* Modal Info Section */
.modal-info {
    padding: var(--space-2xl);
    background: linear-gradient(
        180deg,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.98) 100%
    );
}

.modal-info h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-shadow: 
        0 4px 20px rgba(0, 0, 0, 1),
        0 0 40px rgba(123, 44, 191, 0.6);
}

.modal-info p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.modal-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-info ul li {
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-md);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.modal-info ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
    text-shadow: 0 0 20px rgba(0, 245, 212, 0.8);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        top: var(--space-md);
        right: var(--space-md);
        font-size: 1.75rem;
    }
    
    .modal-info {
        padding: var(--space-xl);
    }
    
    .modal-info h3 {
        font-size: 1.6rem;
    }
    
    .modal-info p {
        font-size: 1rem;
    }
    
    .modal-info ul li {
        font-size: 0.95rem;
    }
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* ==========================================
   ADVERTISING MODAL STYLES
   ========================================== */

.ad-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ad-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Dark Overlay */
.ad-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

/* Modal Content */
.ad-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10001;
    animation: modalScaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 20px 80px rgba(0, 0, 0, 0.9),
        0 0 80px rgba(123, 44, 191, 0.4),
        inset 0 0 60px rgba(123, 44, 191, 0.15);
}

/* Subtle Purple Lighting */
.ad-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(123, 44, 191, 0.2) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 1;
}

.ad-modal-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 0;
}

/* Close Button */
.ad-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(123, 44, 191, 0.25);
    border: 2px solid rgba(123, 44, 191, 0.6);
    border-radius: 0;
    color: var(--color-primary);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.ad-modal-close:hover {
    background: rgba(123, 44, 191, 0.5);
    border-color: var(--color-primary);
    color: #00f5d4;
    transform: rotate(90deg);
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.8);
}

/* Animations */
@keyframes modalScaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ad-modal-content {
        max-width: 95vw;
    }
    
    .ad-modal-close {
        width: 40px;
        height: 40px;
        top: -45px;
        font-size: 1.75rem;
    }
}

/* ==========================================
   SECTION GRADIENT LIGHTING - Much Stronger with Purple Circles
   ========================================== */

/* Add strong gradient lighting to all major sections */
section {
    position: relative;
}

/* Subtle gradient overlays for better visibility */
.hero,
.products-gallery,
.services-section,
.about-section,
.solutions-section,
.partners-section,
.contact-section {
    position: relative;
}

/* Hero Section - Uses unified body gradient */
.hero::before {
    content: none;
}

/* Products Gallery - Uses unified body gradient */
.products-gallery::before {
    content: none;
}

/* Services Section - Similar to Products with slight variations */

/* About Section - Purple Circles on Sides */

/* Solutions Section - Multiple Purple Circles */

/* Partners Section - Subtle Purple Circles */

/* Contact Section - Purple Circles */

/* Ensure content is above lighting */
section > .container {
    position: relative;
    z-index: 2;
}

/* Brighten card backgrounds more */
.service-card,
.product-card,
.solution-card,
.partner-logo {
    background: rgba(34, 40, 56, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Add stronger glow to section headers */
.section-title {
    text-shadow: 
        0 0 50px rgba(0, 245, 212, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Brighten text more */
.section-description {
    color: rgba(220, 225, 235, 0.95);
}

/* Brighten section tags */
.section-tag {
    background: rgba(0, 245, 212, 0.15) !important;
    color: rgba(0, 245, 212, 1) !important;
}

/* ==========================================
   GLOBAL BRIGHTNESS BOOST
   ========================================== */

/* Add overall brightness to body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(26, 31, 46, 0.3) 0%,
        transparent 30%,
        transparent 70%,
        rgba(26, 31, 46, 0.3) 100%
    );
    pointer-events: none;
    z-index: 0;
}

/* Ensure all sections are above overlay */
main {
    position: relative;
    z-index: 1;
}

/* Make all sections transparent to show body gradient */
section {
    background: transparent !important;
}

/* Brighten all text globally */
body {
    color: rgba(230, 235, 245, 0.95);
}

/* Make headings brighter */
h1, h2, h3, h4, h5, h6 {
    color: rgba(255, 255, 255, 0.98);
}

/* Brighten links */
a {
    color: rgba(0, 245, 212, 1);
}

/* Make buttons more visible */
.btn {
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.btn:hover {
    box-shadow: 0 6px 30px rgba(0, 245, 212, 0.5);
}
