/* ------------------------------------------------------------------
   VARIABLES & RESET
   ------------------------------------------------------------------ */
:root {
    --bg-dark: #080808;
    --bg-card: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --neon-green: #39ff14;
    --electric-grad: linear-gradient(135deg, #39ff14 0%, #00cc6a 100%);
    
    /* FONTS */
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-logo: 'Pacifico', cursive; /* New Font */
    
    --ease-smooth: cubic-bezier(0.23, 1, 0.32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* Re-enabled default cursor for mobile usability, custom cursor hides on touch */
@media (hover: hover) { * { cursor: none; } }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-active { overflow: hidden; }

/* ------------------------------------------------------------------
   GLOBAL ELEMENTS
   ------------------------------------------------------------------ */
.logo-watermark {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
    background-image: url('logo.webp'); background-repeat: repeat; background-size: 300px;
    opacity: 0.03; pointer-events: none; filter: grayscale(100%);
    will-change: transform; /* Performance hint */
}

#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; }

/* Custom Cursor (Desktop Only) */
#cursor-dot, #cursor-ring { 
    position: fixed; top: 0; left: 0; border-radius: 50%; 
    pointer-events: none; z-index: 9999; mix-blend-mode: difference; 
    display: none; /* Hidden by default, shown via media query */
}
#cursor-dot { width: 8px; height: 8px; background: var(--neon-green); transform: translate(-50%, -50%); }
#cursor-ring { width: 40px; height: 40px; border: 1px solid rgba(57, 255, 20, 0.5); transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s; }

@media (hover: hover) and (pointer: fine) {
    #cursor-dot, #cursor-ring { display: block; }
    body.hover-active #cursor-ring { width: 60px; height: 60px; background-color: rgba(57, 255, 20, 0.1); border-color: transparent; }
}

/* ------------------------------------------------------------------
   NAVIGATION (Mobile Optimized)
   ------------------------------------------------------------------ */
nav {
    position: absolute; top: 0; width: 100%; padding: 1.5rem 5%;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
}

.nav-left { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; }
.header-logo { width: 35px; height: auto; }

/* PACIFICO FONT UPDATE */
.studio-name { 
    font-family: var(--font-logo); 
    font-weight: 400; 
    font-size: 1.4rem; 
    letter-spacing: 0;
    text-transform: none; /* No Capitals */
}

.menu-btn {
    font-family: var(--font-head); font-weight: 700; letter-spacing: 2px;
    border: 1px solid rgba(255,255,255,0.2); padding: 8px 16px; border-radius: 4px;
    transition: 0.3s; z-index: 1001; background: rgba(0,0,0,0.8);
    position: fixed; right: 5%; top: 1.5rem; cursor: pointer;
}
.menu-btn:hover { border-color: var(--neon-green); color: var(--neon-green); }

/* Menu Overlay */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(8, 8, 8, 0.98); backdrop-filter: blur(20px); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-100%); transition: transform 0.6s var(--ease-smooth);
    will-change: transform;
}
.menu-overlay.active { transform: translateY(0); }
.menu-links { display: flex; flex-direction: column; text-align: center; gap: 1.5rem; }
.nav-link {
    font-family: var(--font-head); font-size: clamp(2.5rem, 5vw, 4rem); 
    text-decoration: none; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    text-transform: uppercase; font-weight: 700; transition: 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--neon-green); -webkit-text-stroke: 1px transparent; letter-spacing: 2px; }

/* ------------------------------------------------------------------
   LAYOUT HELPERS
   ------------------------------------------------------------------ */
section { 
    min-height: 100vh; 
    padding: 100px 5vw 60px; /* Reduced side padding for mobile */
    position: relative; 
}
.section-header { margin-bottom: 40px; }
.section-header h2 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; line-height: 1.1; }
.line-accent { width: 60px; height: 4px; background: var(--electric-grad); margin-top: 10px; }

.btn-electric {
    display: inline-block; background: var(--electric-grad); color: #000;
    font-weight: 700; padding: 14px 30px; text-decoration: none;
    font-family: var(--font-head); text-transform: uppercase; letter-spacing: 1px;
    clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
    transition: transform 0.2s; border: none; font-size: 0.9rem; cursor: pointer;
}
.btn-electric:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(57, 255, 20, 0.4); }
.btn-electric.locked { filter: grayscale(100%); opacity: 0.7; cursor: not-allowed; }

/* ------------------------------------------------------------------
   CARDS & GRIDS
   ------------------------------------------------------------------ */
.founders-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Better fit for mobile */
    gap: 20px; 
}

.founder-card, .project-card, .news-card, .social-card {
    background: #0f0f0f; border: 1px solid #222; border-radius: 12px;
    transition: transform 0.3s, border-color 0.3s; position: relative; overflow: hidden;
}

.founder-card { padding: 30px 15px; text-align: center; }
.founder-card:hover, .project-card:hover { border-color: var(--neon-green); transform: translateY(-5px); }

/* Avatars */
.founder-avatar-container { width: 100px; height: 100px; margin: 0 auto 15px; }
.founder-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #222; }

.founder-name { font-size: 1.3rem; font-weight: 700; color: white; }
.founder-handle { color: #666; font-size: 0.85rem; margin-bottom: 15px; display: block; }
.role-badge {
    display: inline-block; background: rgba(57, 255, 20, 0.1); color: var(--neon-green);
    padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    border: 1px solid rgba(57, 255, 20, 0.3); margin-bottom: 20px;
}

/* News Cards */
.article-list { display: flex; flex-direction: column; gap: 20px; }
.news-card { display: flex; flex-direction: row; } /* Desktop Default */
.news-img { width: 300px; min-width: 300px; object-fit: cover; filter: grayscale(100%); transition: 0.3s; }
.news-card:hover .news-img { filter: grayscale(0%); }
.news-content { padding: 25px; flex: 1; }
.news-date { color: var(--neon-green); font-size: 0.8rem; margin-bottom: 8px; display: block; }
.news-content h3 { font-size: 1.5rem; margin-bottom: 10px; font-family: var(--font-head); }

/* Socials */
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-top: 40px; }
.social-card { padding: 25px; text-align: center; text-decoration: none; color: white; }
.social-card i { font-size: 2rem; margin-bottom: 10px; color: var(--text-muted); transition: 0.3s; }
.social-card:hover i { color: var(--neon-green); }

/* ------------------------------------------------------------------
   WINDOWS MODAL
   ------------------------------------------------------------------ */
.win-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.win-modal-overlay.active { opacity: 1; pointer-events: auto; }

.win-window {
    width: 90%; max-width: 500px; background: #0a0a0a;
    border: 1px solid var(--neon-green); box-shadow: 0 0 40px rgba(57, 255, 20, 0.1);
    display: flex; flex-direction: column; transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh; /* Prevent overflow on mobile */
}
.win-modal-overlay.active .win-window { transform: scale(1); }

.win-header { background: #1a1a1a; height: 35px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #333; }
.win-title { display: flex; align-items: center; padding-left: 10px; gap: 8px; font-size: 12px; color: white; }
.win-icon { width: 14px; height: 14px; }
.win-controls { display: flex; height: 100%; }
.win-ctrl { width: 45px; display: flex; justify-content: center; align-items: center; color: white; cursor: pointer; }
.win-ctrl.close:hover { background: #e81123; }

.win-body { padding: 25px; text-align: left; background: radial-gradient(circle at top, rgba(57, 255, 20, 0.05) 0%, #0a0a0a 80%); overflow-y: auto; }
.win-main-logo { width: 60px; height: 60px; object-fit: contain; margin: 0 auto 15px; display: block; }
.win-body h3 { font-family: var(--font-head); font-size: 1.5rem; text-align: center; margin-bottom: 10px; color: white; }
.win-desc { color: var(--text-muted); font-size: 0.9rem; text-align: center; margin-bottom: 20px; line-height: 1.5; }

/* Velocity X List */
.vx-features { margin-bottom: 20px; background: #111; border-radius: 8px; padding: 15px; border: 1px solid #222; }
.vx-feature-item { display: flex; gap: 12px; margin-bottom: 12px; }
.vx-icon { min-width: 30px; height: 30px; background: rgba(57, 255, 20, 0.1); color: var(--neon-green); display: flex; align-items: center; justify-content: center; border-radius: 5px; font-size: 0.9rem; }
.vx-text h4 { color: white; font-size: 0.95rem; margin-bottom: 2px; }
.vx-text p { color: #888; font-size: 0.8rem; line-height: 1.3; }

.win-actions { display: flex; gap: 10px; justify-content: center; margin-top: 15px; flex-wrap: wrap; }
.btn-cancel {
    background: transparent; border: 1px solid #333; color: #fff; padding: 14px 25px;
    font-weight: 700; font-family: var(--font-head); text-transform: uppercase; cursor: pointer; transition: 0.3s;
}
.btn-cancel:hover { border-color: #fff; background: #fff; color: #000; }

/* Footer */
footer { padding: 50px 5vw; text-align: center; border-top: 1px solid #222; margin-top: 40px; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin: 25px 0; }
.footer-socials a { color: #666; font-size: 1.4rem; transition: 0.3s; padding: 10px; }
.footer-socials a:hover { color: var(--neon-green); transform: scale(1.1); }
.copyright { color: #555; font-size: 0.8rem; }

/* ------------------------------------------------------------------
   MOBILE MEDIA QUERIES
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    /* Stack News Cards Vertically on Mobile */
    .news-card { flex-direction: column; }
    .news-img { width: 100%; height: 200px; min-width: auto; }
    
    /* Adjust Fonts */
    h1 { font-size: 3rem !important; }
    .studio-name { font-size: 1.2rem; }
    
    /* Center text on mobile usually looks better */
    section { text-align: center; }
    .section-header p { margin: 15px auto 0; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .pill-badge { align-self: center !important; }
    
    /* Navigation Adjustments */
    .menu-btn { top: 1.2rem; padding: 6px 14px; font-size: 0.9rem; }
}
