/* ==========================================================================
   IMRANAI.STORE // ULTRA-PREMIUM TECHNICAL DESIGN SYSTEM & ANIMATIONS
   ========================================================================== */

:root {
    --bg-primary: #040711;
    --bg-secondary: #0b0f19;
    --bg-card: rgba(13, 20, 38, 0.85);
    --bg-card-hover: rgba(20, 32, 60, 0.95);
    --bg-glass: rgba(11, 19, 36, 0.85);
    --bg-input: rgba(4, 7, 17, 0.9);
    
    --neon-cyan: #00f3ff;
    --neon-blue: #1877f2;
    --neon-magenta: #ff0055;
    --neon-purple: #9d4edd;
    --neon-green: #00ff66;
    --neon-gold: #ffbd2e;
    
    --silver-primary: #cbd5e1;
    --silver-dim: #94a3b8;
    --text-main: #e2e8f0;
    --text-dim: #94a3b8;
    
    --border-glow: rgba(0, 243, 255, 0.35);
    --border-silver: rgba(148, 163, 184, 0.2);
    --border-card: rgba(0, 243, 255, 0.2);
    
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* --- RESET & GLOBAL STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 900px) {
    body.has-custom-cursor,
    body.has-custom-cursor * {
        cursor: none !important;
    }
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
}

/* --- ULTRA-SLOW & DYNAMIC SCROLL ANIMATIONS (BI-DIRECTIONAL UP & DOWN FOR PC & MOBILE) --- */
.cyber-pop,
.scroll-reveal,
.project-card,
.stat-box,
.stat-hud-box,
.hud-card,
.feature-card,
.step-card {
    opacity: 0;
    transform: translateY(60px) scale(0.92);
    transition: opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1), transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.cyber-pop.active, .cyber-pop.is-visible,
.scroll-reveal.active, .scroll-reveal.is-visible,
.project-card.active, .project-card.is-visible,
.stat-box.active, .stat-box.is-visible,
.stat-hud-box.active, .stat-hud-box.is-visible,
.hud-card.active, .hud-card.is-visible,
.feature-card.active, .feature-card.is-visible,
.step-card.active, .step-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- ULTRA-SLOW DISTINCT UNIQUE ANIMATION STYLES FOR EACH TOOL CARD --- */
.anim-slide-left {
    opacity: 0;
    transform: translateX(-80px) scale(0.88);
    transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-slide-right {
    opacity: 0;
    transform: translateX(80px) scale(0.88);
    transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-flip-3d {
    opacity: 0;
    transform: perspective(1000px) rotateX(50deg) translateY(70px);
    transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scale-up {
    opacity: 0;
    transform: scale(0.75) translateY(60px);
    transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-rotate-in {
    opacity: 0;
    transform: perspective(1000px) rotateY(-40deg) translateY(70px);
    transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-bounce-up {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 2.4s cubic-bezier(0.16, 1, 0.3, 1), transform 2.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-slide-left.active, .anim-slide-left.is-visible,
.anim-slide-right.active, .anim-slide-right.is-visible,
.anim-flip-3d.active, .anim-flip-3d.is-visible,
.anim-scale-up.active, .anim-scale-up.is-visible,
.anim-rotate-in.active, .anim-rotate-in.is-visible,
.anim-bounce-up.active, .anim-bounce-up.is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateX(0) translateY(0) scale(1);
}

/* --- CONTINUOUS LIVE AMBIENT ANIMATIONS --- */
@keyframes cyberCardPulse {
    0% { border-color: rgba(0, 243, 255, 0.2); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
    50% { border-color: rgba(0, 243, 255, 0.65); box-shadow: 0 10px 30px rgba(0, 243, 255, 0.3); }
    100% { border-color: rgba(0, 243, 255, 0.2); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
}

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

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

.tool-card {
    animation: cyberCardPulse 8s infinite ease-in-out;
}

.tool-icon-box {
    animation: iconFloat 5s infinite ease-in-out;
}

.status-badge {
    animation: badgeGlow 4s infinite ease-in-out;
}

/* --- CYBER MOUSE CURSOR --- */
#cyber-cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--neon-cyan), 0 0 30px var(--neon-cyan);
    transition: transform 0.08s ease-out, background-color 0.2s ease;
}

#cyber-cursor-ring {
    position: fixed;
    width: 44px;
    height: 44px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    pointer-events: none !important;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out, width 0.25s ease, height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.35);
}

body.cursor-hover #cyber-cursor {
    background: var(--neon-magenta);
    transform: translate(-50%, -50%) scale(1.8);
    box-shadow: 0 0 25px var(--neon-magenta);
}

body.cursor-hover #cyber-cursor-ring {
    width: 68px;
    height: 68px;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.75);
}

@media (max-width: 899px) {
    #cyber-cursor, #cyber-cursor-ring { display: none !important; }
}

/* --- CANVAS & BACKGROUND GRID --- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* --- HEADER & NAVIGATION --- */
header.main-header, header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(4, 7, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glow);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.brand-container, .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.brand-logo-img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.6));
}

.brand-title {
    font-family: var(--font-heading);
    font-size: clamp(1.0rem, 3vw, 1.25rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1.2px;
    white-space: nowrap;
}

.brand-title span.accent-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.7);
}

.header-status, .hud-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-green);
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.3);
    padding: 6px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

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

@keyframes statusPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.25); opacity: 1; }
}

.nav-links, .nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

.nav-links a, .nav-desktop a {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active, .nav-desktop a:hover, .nav-desktop a.active {
    color: var(--neon-cyan);
    text-shadow: 0 0 12px var(--neon-cyan);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* --- INTERACTIVE BUTTONS WITH ELEGANT RED HOVER HIGHLIGHTS --- */
.cyber-btn {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 20px;
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.06);
    border: 1px solid var(--neon-cyan);
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
}

.cyber-btn:hover, .cyber-btn:active {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
    color: #ffffff;
    border-color: var(--neon-magenta);
    box-shadow: 0 0 25px rgba(255, 0, 85, 0.5), 0 0 45px rgba(0, 243, 255, 0.5);
    transform: translateY(-3px) scale(1.03);
}

.cyber-btn-outline {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: transparent;
}

.cyber-btn-outline:hover {
    background: rgba(255, 0, 85, 0.18);
    border-color: var(--neon-magenta);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

.cyber-btn-sm {
    padding: 7px 14px;
    font-size: 0.76rem;
}

.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    width: 100%;
}

/* --- MOBILE MENU TOGGLE & DRAWER CLEANUP --- */
.mobile-toggle, .mobile-menu-btn {
    display: none;
    background: rgba(0, 243, 255, 0.12);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 1002;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.mobile-menu-drawer, .mobile-nav-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(4, 7, 17, 0.98) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease !important;
    padding: 30px 20px !important;
}

.mobile-menu-drawer.active, .mobile-nav-drawer.active {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.mobile-menu-drawer a, .mobile-nav-drawer a {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.mobile-menu-drawer a:hover, .mobile-nav-drawer a:hover {
    color: var(--neon-cyan);
    border-color: var(--border-glow);
    background: rgba(0, 243, 255, 0.1);
}

/* CRITICAL MOBILE HEADER RULE (< 899px): HIDE ALL HEADER BUTTONS FROM HEADER BAR */
@media (max-width: 899px) {
    .nav-links, .nav-desktop, .header-status, .hud-status, .header-actions a.cyber-btn { 
        display: none !important; 
    }
    .mobile-toggle, .mobile-menu-btn { 
        display: flex !important; 
    }
    header.main-header, header {
        padding: 10px 16px;
    }
}

/* --- MAIN LAYOUT CONTAINER --- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px;
    width: 100%;
}

/* --- HERO SECTION --- */
.hero-section, .store-hero {
    text-align: center;
    padding: 50px 16px 30px 16px;
    max-width: 1050px;
    margin: 0 auto;
    width: 100%;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 2.8vw, 0.88rem);
    color: var(--neon-cyan);
    background: rgba(0, 243, 255, 0.08);
    border: 1px solid var(--border-glow);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 22px;
    letter-spacing: 1px;
    max-width: 100%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-title span.cyan-glow {
    color: var(--neon-cyan);
    text-shadow: 0 0 25px rgba(0, 243, 255, 0.65);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.0rem, 3vw, 1.25rem);
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 35px;
    width: 100%;
}

/* --- HERO STATS STRIP --- */
.hero-stats-strip, .stats-banner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 35px 0 45px 0;
    width: 100%;
}

.stat-box, .stat-hud-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: transform 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    width: 100%;
}

.stat-box:hover, .stat-hud-box:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.25);
}

.stat-num, .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--neon-cyan);
    text-shadow: 0 0 15px var(--neon-cyan);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-top: 6px;
}

/* --- SECTION HEADERS --- */
.section-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 0;
    width: 100%;
}

.section-header {
    margin-bottom: 35px;
    text-align: center;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-cyan);
    letter-spacing: 2px;
    margin-bottom: 6px;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3.8vw, 2.4rem);
    font-weight: 800;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-title span {
    color: var(--neon-cyan);
}

.section-desc {
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    color: var(--text-dim);
    max-width: 720px;
    margin: 0 auto;
}

/* --- AI TOOLS CATALOG STORE --- */
.catalog-controls {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    backdrop-filter: blur(14px);
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
    width: 100%;
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
}

.search-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-silver);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.98rem;
    padding: 10px 14px 10px 42px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.4s ease;
}

.search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chip-btn {
    background: rgba(13, 20, 38, 0.8);
    border: 1px solid var(--border-silver);
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s ease;
    white-space: nowrap;
}

.chip-btn:hover, .chip-btn.active {
    background: rgba(0, 243, 255, 0.15);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 243, 255, 0.3);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
}

.tool-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow: 0 15px 40px rgba(0, 243, 255, 0.3) !important;
}

.tool-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.tool-card-desc {
    font-size: 0.92rem;
    color: var(--text-dim);
    margin-bottom: 14px;
    min-height: 50px;
    line-height: 1.5;
}

.tag-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tag-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    background: rgba(0, 243, 255, 0.1);
    color: var(--neon-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(0, 243, 255, 0.25);
    white-space: nowrap;
}

/* FIX BUTTON WRAPPING IN TOOL CARD FOOTER */
.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: nowrap;
}

.tool-card-footer .cyber-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.74rem;
}

/* --- HUD CARDS & ANALYTICS --- */
.hud-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
    width: 100%;
}

.skill-item { margin-bottom: 16px; }
.skill-info { display: flex; justify-content: space-between; margin-bottom: 6px; font-family: var(--font-mono); font-size: 0.9rem; }

.progress-bar-bg {
    width: 100%; height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px; overflow: hidden;
    border: 1px solid rgba(0, 243, 255, 0.2);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
    box-shadow: 0 0 12px var(--neon-cyan);
    border-radius: 5px;
    width: 0%;
    transition: width 3.0s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* --- CRITICAL MODAL OVERLAY FIX: PREVENT BLEED THROUGH AT BOTTOM --- */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(2, 6, 18, 0.92) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    z-index: 999999 !important;
    display: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    padding: 16px;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-container {
    background: var(--bg-secondary);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-lg);
    width: 100%; max-width: 750px; max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.35);
    padding: 24px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container { transform: scale(1); }

.modal-close-btn {
    position: absolute; top: 16px; right: 16px;
    background: transparent; border: none;
    color: var(--text-dim); font-size: 1.4rem; cursor: pointer;
}

.modal-close-btn:hover { color: var(--neon-magenta); }

.output-box {
    background: #020617;
    border: 1px dashed var(--neon-cyan);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--neon-cyan);
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
}

/* PORTFOLIO HERO & AVATAR FRAME */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 70vh;
    padding: 30px 0;
    width: 100%;
}

.hero-text { flex: 1.2; width: 100%; }
.hero-text h2 { font-family: var(--font-mono); font-size: 0.95rem; color: var(--neon-cyan); margin-bottom: 10px; letter-spacing: 2px; }
.hero-text h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 900; color: #fff; margin-bottom: 15px; }

.typing-role-wrapper {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3.5vw, 1.4rem);
    color: var(--neon-magenta);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.typing-cursor {
    display: inline-block;
    width: 8px;
    height: 1.2rem;
    background: var(--neon-magenta);
    animation: blink 0.8s infinite;
}

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

.avatar-frame-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.avatar-frame {
    position: relative;
    width: 330px;
    height: 330px;
    max-width: 85vw;
    max-height: 85vw;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.cyber-train-track {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px dashed rgba(0, 243, 255, 0.4);
    border-radius: 50%;
    animation: spinTrack 35s linear infinite;
}

@keyframes spinTrack { 100% { transform: rotate(360deg); } }

.avatar-core {
    width: 230px;
    height: 230px;
    max-width: 65vw;
    max-height: 65vw;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 35px var(--neon-cyan);
    z-index: 2;
}

.avatar-core img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
    margin-bottom: 45px;
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    width: 100%;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 24px;
    backdrop-filter: blur(14px);
    width: 100%;
}

/* --- CONTACT FORM & FIXED ICON COLORS --- */
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 28px;
    width: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: all 0.4s ease;
    width: 100%;
    margin-bottom: 14px;
}

.contact-icon {
    width: 42px; height: 42px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--neon-cyan) !important;
    background: rgba(0, 243, 255, 0.12) !important;
    border: 1px solid var(--border-glow);
    flex-shrink: 0;
}

.social-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-top: 25px;
}

.social-icon {
    color: var(--neon-cyan) !important;
    font-size: 1.35rem;
    transition: all 0.35s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.social-icon:hover {
    color: #ffffff !important;
    background: var(--neon-magenta) !important;
    border-color: var(--neon-magenta) !important;
    box-shadow: 0 0 25px var(--neon-magenta);
    transform: translateY(-4px);
}

.form-group { margin-bottom: 16px; width: 100%; }
.form-group label, .form-label { display: block; font-family: var(--font-heading); font-size: 0.78rem; color: var(--neon-cyan); margin-bottom: 6px; }

.form-control {
    width: 100%;
    background: rgba(4, 7, 17, 0.8);
    border: 1px solid rgba(0, 243, 255, 0.3);
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.98rem;
    outline: none;
}

.terminal-card {
    background: #04060d;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 15px 40px rgba(0,0,0,0.7);
    margin-bottom: 45px;
    width: 100%;
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title { color: var(--text-dim); font-size: 0.8rem; margin-left: auto; }
.terminal-body { padding: 16px; height: 200px; overflow-y: auto; color: var(--neon-green); font-size: 0.88rem; line-height: 1.5; }
.term-input-wrapper { display: flex; gap: 10px; align-items: center; padding: 0 16px 12px 16px; }
.terminal-input { background: transparent; border: none; outline: none; color: var(--neon-cyan); font-family: var(--font-mono); font-size: 0.88rem; flex: 1; width: 100%; }

/* --- FOOTER CENTERED HORIZONTALLY FOR BOTH PC & MOBILE --- */
footer, footer.main-footer {
    border-top: 1px solid var(--border-glow);
    padding: 35px 16px;
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    background: rgba(4, 7, 17, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px;
    width: 100%;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* --- COMPREHENSIVE RESPONSIVE MOBILE OVERRIDES (< 899px) --- */
@media (max-width: 899px) {
    .container { padding: 16px 12px; }
    .hero-section, .store-hero { padding: 25px 10px 15px 10px; }
    .hero { flex-direction: column; gap: 20px; text-align: center; min-height: auto; padding: 15px 0; }
    .hero-stats-strip, .stats-banner { grid-template-columns: 1fr; gap: 12px; }
    .analytics-grid, .contact-grid, .catalog-grid, .projects-grid, .testimonials-grid, .features-grid { grid-template-columns: 1fr; gap: 18px; }
    .section-title { font-size: 1.3rem; margin-bottom: 18px; }
    .hud-card, .contact-card, .tool-card, .project-card, .feature-card, .step-card { padding: 18px 14px; }
    .btn-group, .hero-ctas { flex-direction: column; gap: 10px; width: 100%; }
    .cyber-btn { width: 100%; justify-content: center; padding: 12px 16px; }
    
    .tool-card-footer {
        flex-direction: column;
        gap: 10px;
    }
    .tool-card-footer .cyber-btn {
        width: 100%;
    }
}
