/* =========================================
   GLOBAL STYLES & VARIABLES
========================================= */
:root {
    --bg-dark: #070b14;
    --neon-green: #5eead4;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Syne', sans-serif; }

.glass-dark {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.7);
}

/* =========================================
   TOP BANNER
========================================= */
.top-banner {
    background: rgba(94, 234, 212, 0.05);
    border-bottom: 1px solid rgba(94, 234, 212, 0.2);
    color: var(--text-gray);
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1001; 
}

.top-banner strong {
    color: var(--neon-green);
    letter-spacing: 1px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-green);
    animation: pulse-dot-anim 1.5s infinite;
}

@keyframes pulse-dot-anim {
    0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 234, 212, 0); }
}

/* =========================================
   NAVIGATION & LOGO
========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

nav .logo { 
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none; 
}

.logo-square {
    width: 14px;
    height: 14px;
    border: 2px solid var(--neon-green);
    box-shadow: 0 0 12px rgba(94, 234, 212, 0.6);
    background-color: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.logo-square::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--neon-green);
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.logo-text {
    color: var(--text-white);
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

nav .logo:hover .logo-square {
    transform: rotate(90deg);
    box-shadow: 0 0 20px var(--neon-green);
}

nav .logo:hover .logo-text {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.3);
}

nav ul { list-style: none; display: flex; align-items: center; gap: 35px; }
nav a { color: var(--text-gray); text-decoration: none; font-weight: 500; transition: color 0.3s; }
nav a:hover { color: var(--neon-green); }

.btn-nav-desktop { 
    border: 1px solid var(--text-white); 
    color: var(--text-white); 
    padding: 10px 20px; 
    border-radius: 8px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center;
    font-weight: 500;
    transition: all 0.3s;
}
.btn-nav-desktop:hover { background: var(--text-white); color: var(--bg-dark); }

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
    z-index: 1002;
}

.mobile-only-btn { display: none; }

/* =========================================
   HERO SECTION
========================================= */
.hero-section { padding: 80px 5% 120px; max-width: 1400px; margin: 0 auto; }
.hero-content { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.hero-text-block { flex: 1.1; z-index: 2; }
.tech-title { font-size: clamp(3.5rem, 6vw, 5.5rem); line-height: 1.1; letter-spacing: -2px; margin-bottom: 30px; }
.neon-text { color: var(--neon-green); }
.tech-description { display: flex; gap: 15px; margin-bottom: 40px; max-width: 500px; }
.tech-description p { color: var(--text-gray); font-size: 1.05rem; }
.hero-features { margin-bottom: 40px; border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); padding: 20px 0; max-width: 500px; }
.feature-item { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.9rem; }
.feature-item strong { color: var(--text-white); }
.feature-item span { color: var(--text-gray); }

.btn-neon {
    background-color: var(--neon-green);
    color: var(--bg-dark);
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-neon:hover { box-shadow: 0 0 25px rgba(94, 234, 212, 0.5); transform: translateY(-2px); }

.hero-image-block { flex: 1.3; position: relative; display: flex; justify-content: center; align-items: center; min-height: 550px; }
.green-backdrop { position: absolute; right: -10vw; top: -5%; width: 50vw; height: 110%; background-color: var(--neon-green); z-index: -1; mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0)); -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0)); }
.main-tech-img { max-width: 110%; height: auto; object-fit: contain; z-index: 1; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)); animation: floatingHand 6s infinite ease-in-out; }
.floating-stat-card { position: absolute; bottom: -10px; left: -20px; padding: 20px; display: flex; align-items: center; gap: 20px; max-width: 380px; z-index: 3; background: rgba(7, 11, 20, 0.9); }
.stat-num { color: var(--neon-green); font-size: 2.2rem; font-weight: 800; }
.stat-desc { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--text-gray); }
.stat-desc strong { color: var(--text-white); font-size: 1rem; }

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

/* =========================================
   PORTFOLIO (PHONES)
========================================= */
.solutions-section { padding: 100px 5% 80px; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; }
.section-header p { color: var(--text-gray); font-size: 1.1rem; }

.phone-grid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    flex-wrap: nowrap; 
    width: 100%;
    margin-top: 40px;
}

.phone-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; 
}

.phone-mockup {
    width: 320px;       
    height: 660px;      
    border: 10px solid #161f30; 
    border-radius: 36px;
    background: #0b111a;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 15px rgba(94, 234, 212, 0.05);
    animation: floatPhone 6s infinite ease-in-out;
    overflow: hidden;
}

.iframe-wrapper, .phone-screen {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #121212;
    border-radius: 24px;
    overflow: hidden;
}

.live-iframe {
    position: absolute;
    top: 0; left: 0;
    width: 375px; height: 800px;        
    transform: scale(0.8); 
    transform-origin: top left;
    border: none;
    display: block;
    background-color: #121212;
    pointer-events: none; 
}

.phone-screen { padding: 30px 15px; }
.mini-app-header { text-align: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mini-app-header h3 { font-size: 1.2rem; color: var(--text-white); }
.mini-app-header p { font-size: 0.8rem; color: var(--neon-green); }
.mini-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 15px; margin-bottom: 15px; }
.mini-card h4 { font-size: 0.95rem; margin-bottom: 10px; }
.mini-label { display: block; font-size: 0.75rem; color: var(--text-gray); margin-bottom: 4px; }
.mini-select { width: 100%; background: #000; border: 1px solid rgba(255,255,255,0.1); color: white; padding: 8px; border-radius: 6px; font-size: 0.8rem; }
.mini-btn { background: var(--neon-green); color: #000; border: none; padding: 10px; border-radius: 6px; font-weight: 700; font-size: 0.85rem; width: 100%; margin-top: 5px; }
.status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.status-badge { padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
.status-badge.success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.status-badge.pending { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.progress-bar { width: 100%; height: 5px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 8px; }
.progress { height: 100%; background: var(--neon-green); border-radius: 4px;}

.phone-actions { display: flex; justify-content: center; align-items: center; width: 100%; }

.app-store-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 10px 20px;
    text-decoration: none;
    gap: 12px;
    transition: all 0.3s ease;
}
.app-store-btn:hover { background: #fff; color: #000; transform: scale(1.05); }
.app-store-text { display: flex; flex-direction: column; text-align: left; }
.app-store-text small { font-size: 0.65rem; line-height: 1; color: inherit; opacity: 0.8; }
.app-store-text strong { font-size: 1.1rem; line-height: 1.1; }

@keyframes floatPhone { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.phone-column:nth-child(2) .phone-mockup { animation-delay: 1.5s; }
.phone-column:nth-child(3) .phone-mockup { animation-delay: 3s; }

/* =========================================
   TECH MARQUEE
========================================= */
.tech-strip-section { 
    padding: 60px 0; 
    text-align: center; 
    border-top: 1px solid var(--glass-border); 
    border-bottom: 1px solid var(--glass-border); 
    margin: 80px 0; 
    overflow: hidden; 
    position: relative;
    background: rgba(0, 0, 0, 0.2); 
}

.tech-strip-title { 
    color: var(--text-gray); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 40px; 
}

.tech-strip-section::before, .tech-strip-section::after {
    content: ""; position: absolute; top: 0; width: 15vw; height: 100%; z-index: 2; pointer-events: none;
}
.tech-strip-section::before { left: 0; background: linear-gradient(to right, var(--bg-dark), transparent); }
.tech-strip-section::after { right: 0; background: linear-gradient(to left, var(--bg-dark), transparent); }

.logo-slider { display: flex; width: max-content; animation: scrollLogos 35s linear infinite; }
.logo-slider:hover { animation-play-state: paused; }
.logo-strip { display: flex; justify-content: space-around; gap: 60px; padding: 0 30px; }

.tech-logo { 
    display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; color: var(--text-gray); transition: all 0.3s; white-space: nowrap;
}
.tech-logo i { font-size: 1.8rem; color: var(--neon-green); transition: all 0.3s; }
.tech-logo:hover { color: var(--text-white); transform: scale(1.05); }
.tech-logo:hover i { text-shadow: 0 0 15px var(--neon-green); color: var(--text-white); }

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

/* =========================================
   FOOTER & FORM
========================================= */
.footer-section { padding: 0 5% 40px; max-width: 1200px; margin: 0 auto; }
.footer-content { display: flex; gap: 60px; padding: 60px; margin-bottom: 40px; }
.contact-info { flex: 1; }
.contact-info h2 { font-size: clamp(2rem, 3vw, 2.5rem); margin-bottom: 20px; }
.contact-info p { color: var(--text-gray); margin-bottom: 30px; font-size: 1.1rem; }
.direct-contact p { font-size: 0.9rem; color: var(--text-gray); margin-bottom: 5px; }
.email-link { font-size: 1.5rem; font-weight: 700; color: var(--neon-green); text-decoration: none; }
.contact-form-container { flex: 1; }

.input-group { position: relative; margin-bottom: 20px; }
.input-group i {
    position: absolute; top: 18px; left: 18px; color: var(--text-gray); font-size: 1.1rem; transition: color 0.3s ease; pointer-events: none;
}
.input-group.align-top i { top: 20px; }
.input-group:focus-within i { color: var(--neon-green); }

.contact-form input, .contact-form textarea { 
    width: 100%; padding: 16px 16px 16px 48px; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(0, 0, 0, 0.4); color: var(--text-white); font-size: 1rem; transition: all 0.3s ease; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.contact-form input:focus, .contact-form textarea:focus { 
    outline: none; border-color: var(--neon-green); background: rgba(94, 234, 212, 0.02); box-shadow: 0 0 15px rgba(94, 234, 212, 0.1), inset 0 2px 4px rgba(0,0,0,0.5);
}

.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; font-size: 1.15rem; padding: 18px; letter-spacing: 0.5px; }

#formMessage { margin-top: 15px; text-align: center; font-weight: 500; }
.success-msg { color: #10b981; background: rgba(16, 185, 129, 0.1); padding: 12px; border-radius: 8px; border: 1px solid rgba(16, 185, 129, 0.3); }
.error-msg { color: #ef4444; background: rgba(239, 68, 68, 0.1); padding: 12px; border-radius: 8px; border: 1px solid rgba(239, 68, 68, 0.3); }

.copyright { text-align: center; color: var(--text-gray); font-size: 0.9rem; }

/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

/* =========================================
   MEDIA QUERIES (MOBILE)
========================================= */
@media (max-width: 992px) {
    .phone-grid { flex-direction: column; align-items: center; gap: 60px; flex-wrap: wrap; }
    .hero-content, .footer-content { flex-direction: column; gap: 50px; text-align: center; }
    .tech-description, .hero-features { margin: 0 auto 30px; }
    .hero-image-block { min-height: 450px; width: 100%; }
    .green-backdrop { right: -5%; width: 110%; }
    .floating-stat-card { left: 50%; transform: translateX(-50%); width: 90%; bottom: -30px; }
    .footer-content { padding: 40px 20px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .btn-nav-desktop { display: none; }
    
    nav ul { 
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(7, 11, 20, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 30px;
        gap: 25px;
        border-bottom: 1px solid var(--glass-border);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        pointer-events: none;
        z-index: 999;
    }
    
    nav ul.mobile-active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-only-btn {
        display: block;
        text-align: center;
        background: var(--neon-green);
        color: var(--bg-dark) !important;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
    }

    .hero-section { padding: 40px 5% 60px; }
    .tech-title { font-size: 3rem; }
    .top-banner { flex-direction: column; padding: 12px; gap: 6px; }
}

/* =========================================
   PRELOADER
========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-dark); z-index: 99999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.glow-ring {
    width: 60px; height: 60px; border: 3px solid rgba(255, 255, 255, 0.05); border-top: 3px solid var(--neon-green); border-right: 3px solid var(--neon-green); border-radius: 50%; animation: spin 1s linear infinite; box-shadow: 0 0 20px rgba(94, 234, 212, 0.4); margin-bottom: 20px;
}
.loading-text {
    color: var(--neon-green); font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 4px; animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; text-shadow: 0 0 10px var(--neon-green); } 50% { opacity: 0.4; text-shadow: none; } }

body.loaded #preloader { opacity: 0; visibility: hidden; }