@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Primary Neon Colors */
    --neon-green: #00FF88;
    --neon-green-glow: rgba(0, 255, 136, 0.4);
    
    --neon-blue: #00D4FF;
    --neon-blue-glow: rgba(0, 212, 255, 0.4);
    
    --neon-purple: #B44AFF;
    --neon-yellow: #FFD700;
    
    /* Backgrounds */
    --bg-deep: #030712; /* Deeper blue-black */
    --bg-card: rgba(0, 255, 136, 0.03); /* Deep green tint */
    
    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8; /* Slate 400 */
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(circle at center, #0a1f1a 0%, #050505 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100vw;
    /* Prevent text selection and image dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 10px; }

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(10, 31, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 8px 15px;
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    box-shadow: inset 0 0 5px rgba(0,255,136,0.2), 0 0 5px rgba(0,255,136,0.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a.link-text {
    color: rgba(0, 255, 136, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a.link-text:hover { 
    color: var(--neon-green); 
    text-shadow: 0 0 10px var(--neon-green-glow);
}

.nav-links a.link-text i {
    font-size: 1rem;
    filter: drop-shadow(0 0 5px var(--neon-green-glow));
}

.btn-neon {
    padding: 8px 20px;
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 5px rgba(0,255,136,0.2), 0 0 5px rgba(0,255,136,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-neon:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 15px var(--neon-green-glow);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--neon-green);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    text-shadow: 0 0 10px var(--neon-green-glow);
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 31, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: var(--transition-smooth);
    border-left: 1px solid rgba(0, 255, 136, 0.1);
}

.mobile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 1.5rem;
    color: var(--neon-green);
    cursor: pointer;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 6px;
    padding-bottom: 20px;
    /* custom thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,0.35) transparent;
}
.drawer-links::-webkit-scrollbar { width: 6px; }
.drawer-links::-webkit-scrollbar-track { background: transparent; }
.drawer-links::-webkit-scrollbar-thumb {
    background: rgba(0,255,136,0.3);
    border-radius: 3px;
}
.drawer-links::-webkit-scrollbar-thumb:hover { background: rgba(0,255,136,0.55); }

.drawer-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 15px;
}

.drawer-link i {
    color: var(--neon-green);
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
    filter: drop-shadow(0 0 5px var(--neon-green-glow));
}

.drawer-link:hover {
    color: var(--neon-green);
    padding-left: 15px;
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.05), transparent);
}

.drawer-link:hover i {
    transform: scale(1.1);
}

/* ── Drawer submenu section (Pages: Demo / Source Code / Hire) ── */
.drawer-section-title {
    font-size: 0.7rem;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(0, 255, 136, 0.8);
    font-weight: 700;
    margin-top: 22px;
    margin-bottom: 4px;
    padding: 10px 10px 10px 12px;
    border-top: 1px solid rgba(0, 255, 136, 0.14);
    display: flex;
    align-items: center;
    gap: 10px;
}
.drawer-section-title i {
    color: var(--neon-green);
    filter: drop-shadow(0 0 5px var(--neon-green-glow));
    font-size: 0.95rem;
}
.drawer-link.drawer-sublink {
    align-items: flex-start;
    padding: 12px 12px 12px 14px;
    background: rgba(0, 255, 136, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.12);
    gap: 12px;
    font-size: 0.95rem;
    transition: background 0.25s ease, border-color 0.25s ease, padding-left 0.25s ease;
}
.drawer-link.drawer-sublink:hover {
    background: rgba(0, 255, 136, 0.09);
    border-color: rgba(0, 255, 136, 0.4);
    padding-left: 16px;
}
.drawer-link.drawer-sublink > i {
    font-size: 1.15rem;
    margin-top: 3px;
    flex-shrink: 0;
}
.drawer-link.drawer-sublink .dsl-wrap { flex: 1; min-width: 0; }
.drawer-link.drawer-sublink .dsl-title {
    font-size: 0.98rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    line-height: 1.2;
}
.drawer-link.drawer-sublink .dsl-desc {
    font-size: 0.73rem;
    color: var(--text-secondary);
    line-height: 1.45;
    font-weight: 400;
}
.drawer-link.drawer-sublink:hover .dsl-title { color: var(--neon-green); }

.btn-explore {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    z-index: 1;
    border: none;
    background: transparent;
}

.btn-explore::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: conic-gradient(var(--neon-green), #ff4d4d, var(--neon-blue), var(--neon-green));
    animation: rotateBorder 2s linear infinite;
    z-index: -2;
}

.btn-explore::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: #05140f; /* Dark green base to cover the inner gradient and create a border */
    border-radius: 6px;
    z-index: -1;
}

.btn-explore:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green-glow);
}

@keyframes rotateBorder {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 5%;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem); /* Dynamic responsive scaling */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.title-line-white {
    display: block;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
}

.title-line-green {
    display: block;
    white-space: nowrap;
}

/* Specialized Entrance Animations */
.animate-typing {
    width: 0;
    animation: typingEffect 1.5s steps(30, end) forwards;
    animation-delay: 0.2s;
}

.animate-circle-reveal {
    clip-path: circle(0% at 50% 50%);
    animation: circleRevealEffect 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes typingEffect {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes circleRevealEffect {
    from { clip-path: circle(0% at 50% 50%); }
    to { clip-path: circle(100% at 50% 50%); }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.7;
}

/* Hero 3D Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.cube-container { 
    perspective: 1000px; 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.mini-cube-wrapper {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.cube-container.mini {
    transform: scale(0.09); /* Reduced size to be slightly smaller than the text */
}

.cube {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-text {
    position: absolute;
    font-size: 5rem;
    font-weight: 800;
    color: var(--neon-green);
    text-shadow: 0 0 25px var(--neon-green-glow);
    z-index: 10;
}

.cube .face {
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(0, 255, 136, 0.02);
    border: 1px solid rgba(0, 255, 136, 0.5);
    box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube .face::before, .cube .face::after {
    content: '';
    position: absolute;
    background: rgba(0, 255, 136, 0.3);
}

.cube .face::before { width: 100%; height: 1px; }
.cube .face::after { width: 1px; height: 100%; }

.cube .front  { transform: rotateY(0deg) translateZ(140px); }
.cube .back   { transform: rotateY(180deg) translateZ(140px); }
.cube .right  { transform: rotateY(90deg) translateZ(140px); }
.cube .left   { transform: rotateY(-90deg) translateZ(140px); }
.cube .top    { transform: rotateX(90deg) translateZ(140px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(140px); }

@keyframes rotateCube {
    0%   { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* Sections */
.section {
    padding: 100px 5%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
}

/* Features Stacked/Hexagon Design */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding-top: 50px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 40px 40px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    /* overflow: hidden removed to allow hexagon icons to protrude */
}

/* Click/Touch Reaction */
.feature-card:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
}

/* Spotlight Hover Effect */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 255, 136, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
    border-radius: inherit; /* Conform glow to card corners */
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card * {
    position: relative;
    z-index: 2; /* Ensure content stays above the spotlight */
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    border-top-color: var(--neon-green);
}

.hex-icon {
    position: absolute;
    top: -45px;
    left: 40px;
    width: 90px;
    height: 105px;
    background: linear-gradient(135deg, var(--neon-green), #034522);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}

.hex-inner {
    width: 100%;
    height: 100%;
    background: #05140f; /* very dark green base */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hex-inner i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--neon-green), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

/* Info Section (Added per request) */
.info-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 20px;
    padding: 60px 5%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.info-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up { transform: translateY(40px); }
.reveal-down { transform: translateY(-40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-zoom { transform: scale(0.9); }
.reveal-flip { transform: perspective(1000px) rotateY(90deg); }
.reveal-rotate { transform: rotate(-10deg) scale(0.95); }
.reveal-spin { transform: rotateY(180deg); }
.reveal-slide-zoom { transform: translateY(40px) scale(0.8); }
.reveal-tilt-right { transform: perspective(1000px) rotateX(10deg) rotateY(10deg); }

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1) rotate(0) rotateY(0) rotateX(0);
}

/* --- MOBILE SPECIFIC FIXES --- */
@media (max-width: 992px) {
    .mobile-hide { display: none; }
    .nav-links a.link-text { display: none; } /* Hide text links, keep CTA */
    .menu-toggle { display: flex; }
    
    .hero {
        flex-direction: column;
        min-height: auto; /* Removed 100vh to eliminate empty space */
        padding: 120px 20px 40px; /* Adjusted bottom padding for a clean break */
        text-align: center;
        gap: 0;
    }
    
    .hero-content {
        padding-right: 0;
    }

    .hero-title {
        font-size: clamp(2.3rem, 11vw, 2.5rem);
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 30px;
    }

    /* Hide big visual cube on mobile completely */
    .hero-visual {
        display: none !important; 
    }
    
    .section {
        padding: 20px 20px 60px; /* Reduced top padding to move section up */
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 80px; /* Increased to account for -45px icon protrusion */
    }
    
    .feature-card {
        padding: 50px 25px 30px;
    }

    .hex-icon {
        left: 25px; /* Adjust for mobile padding */
    }

    .info-flex {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; } /* Further reduced to ensure single-line fit */
    .logo-text { font-size: 1.05rem; white-space: nowrap; line-height: 1; }
    .logo-wrapper { height: 36px; padding: 0 12px; gap: 6px; border-radius: 6px; display: flex; align-items: center; }
    .mini-cube-wrapper { width: 16px; height: 16px; }
    .cube-container.mini { transform: scale(0.055); }
    .btn-neon { height: 36px; padding: 0 15px; font-size: 0.85rem; white-space: nowrap; border-radius: 6px; display: inline-flex; align-items: center; }
    .nav-right-group { gap: 10px; } /* Tightened gap between button and hamburger */
    .navbar { padding: 12px 3%; gap: 5px; }
    .menu-toggle { font-size: 1.2rem; }
}

/* ─── Live News Ticker ─────────────────────────────── */
.nt-bar {
    position: sticky;
    top: 65px;
    z-index: 998;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: stretch;
    height: 32px;
    background: #040c07;
    border-top: 1px solid rgba(0,255,136,0.07);
    border-bottom: 1px solid rgba(0,255,136,0.14);
    overflow: hidden;
    margin-bottom: 25px;
}
.nt-live {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    background: linear-gradient(135deg,rgba(0,255,136,0.1),rgba(0,255,136,0.04));
    border-right: 1px solid rgba(0,255,136,0.22);
    white-space: nowrap;
}
.nt-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff3333;
    box-shadow: 0 0 6px #ff3333;
    flex-shrink: 0;
    animation: ntDotBlink 1.2s ease-in-out infinite;
}
@keyframes ntDotBlink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }
.nt-logo-wrap { position:relative; width:20px; height:20px; border-radius:50%; flex-shrink:0; border:1.5px solid var(--neon-green,#39ff14); box-shadow:0 0 6px rgba(57,255,20,0.4); overflow:hidden; }
.nt-fav { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:contain; border-radius:50%; }
.nt-fav-a { animation:ntFavSwap 4s ease-in-out infinite; }
.nt-fav-b { animation:ntFavSwap 4s ease-in-out infinite 2s; }
@keyframes ntFavSwap { 0%,45%{opacity:1;} 55%,100%{opacity:0;} }
/* Fix: hero content must not stack above sticky ticker */
.hero { position:relative; z-index:0; }
.nt-live-txt {
    color: var(--neon-green, #39ff14);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.nt-overflow {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.nt-overflow::before,.nt-overflow::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 26px;
    z-index: 2;
    pointer-events: none;
}
.nt-overflow::before { left:0; background:linear-gradient(to right,#040c07,transparent); }
.nt-overflow::after  { right:0; background:linear-gradient(to left,#040c07,transparent); }
.nt-track {
    display: flex;
    align-items: center;
    animation: ntScroll 110s linear infinite;
    will-change: transform;
    width: max-content;
}
@keyframes ntScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.nt-bar:hover .nt-track { animation-play-state: paused; }
.nt-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    flex-shrink: 0;
    white-space: nowrap;
}
.nt-item-lbl { color:rgba(255,215,80,0.88); font-size:0.58rem; font-weight:600; letter-spacing:0.3px; }
.nt-item-img {
    width: 18px; height: 18px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
    filter: sepia(0.4) saturate(2) hue-rotate(8deg) brightness(1.2);
}
.nt-sep { flex-shrink:0; color:rgba(0,255,136,0.28); font-size:0.5rem; padding:0 5px; user-select:none; }
.nt-grp-sep {
    flex-shrink: 0;
    padding: 0 12px;
    color: rgba(255,200,50,0.55);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-left: 1px solid rgba(0,255,136,0.18);
    border-right: 1px solid rgba(0,255,136,0.18);
    margin: 0 6px;
    white-space: nowrap;
    user-select: none;
}
@media (max-width: 768px) {
    .nt-bar { top: 58px; height: 28px; margin-bottom: 20px; }
    .nt-live { padding: 0 9px; gap: 5px; }
    .nt-live-dot { width: 5px; height: 5px; }
    .nt-live-txt { font-size: 0.5rem; letter-spacing: 2px; }
    .nt-item { padding: 0 7px; gap: 4px; }
    .nt-item-lbl { font-size: 0.5rem; }
    .nt-item-img { width: 18px; height: 18px; }
    .nt-grp-sep { padding: 0 8px; font-size: 0.46rem; }
}
@media (max-width: 480px) { .nt-bar { height: 26px; top: 54px; margin-bottom: 15px; } }

