/* ==========================================================================
   AGJ INNOVATIONS V2.5 — MASTER DESIGN SYSTEM
   Premium Tech Aesthetic (Dark Navy, Champagne Gold, Electric Cyan)
   ========================================================================== */

:root {
    /* Color System */
    --bg-main: #060F1A;
    --bg-darker: #02070D;
    --bg-card: #0D1B2A;
    --glass-bg: rgba(13, 27, 42, 0.6);
    
    --accent-gold: #D4AF37;
    --accent-gold-hover: #F3E5AB;
    --accent-cyan: #00E5FF;
    
    --text-pure: #FFFFFF;
    --text-main: #E6F1FF;
    --text-muted: #8892B0;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 175, 55, 0.3);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background-color: var(--bg-main); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text-pure); font-weight: 600; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utilities */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 5%; }
.section-pad { padding: 120px 0; }
.text-center { text-align: center; }
.bg-darker { background-color: var(--bg-darker); }
.text-gold { color: var(--accent-gold); }
.text-cyan { color: var(--accent-cyan); }
.text-white { color: var(--text-pure); }
.mb-lg { margin-bottom: 60px; }
.mt-4 { margin-top: 30px; }

/* Typography Classes */
.heading { font-size: 2.5rem; margin-bottom: 15px; font-weight: 600; }
.heading-massive { font-size: 4.5rem; line-height: 1.1; margin-bottom: 20px; }
.sub-heading { font-size: 1.5rem; color: var(--text-main); margin-bottom: 20px; font-weight: 500; }
.sub-heading-text { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 50px; }
.intro-copy { font-size: 1.25rem; color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.8; }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; background-color: var(--text-pure); color: var(--bg-main); padding: 14px 28px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; border-radius: 4px; transition: var(--transition); border: 1px solid var(--text-pure); }
.btn-primary:hover { background-color: transparent; color: var(--text-pure); }
.btn-secondary { display: inline-flex; align-items: center; gap: 10px; background-color: transparent; color: var(--text-pure); padding: 14px 28px; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; border-radius: 4px; border: 1px solid var(--border-subtle); transition: var(--transition); }
.btn-secondary:hover { border-color: var(--text-pure); }

/* Header */
header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: var(--transition); border-bottom: 1px solid transparent; }
header.scrolled { background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border-subtle); padding: 5px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-logo img { height: 35px; }
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 1px; color: var(--text-pure); }
.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text-pure); }
.btn-cta-nav { color: var(--accent-gold) !important; border: 1px solid var(--border-subtle); padding: 8px 20px; border-radius: 4px; }
.btn-cta-nav:hover { border-color: var(--accent-gold) !important; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-pure); font-size: 1.5rem; cursor: pointer; }

/* Mobile Menu */
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--bg-darker); z-index: 999; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 25px; transform: translateY(-100%); transition: transform 0.4s ease; }
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a { font-size: 1.5rem; font-family: var(--font-heading); color: var(--text-muted); }
.mobile-menu a.active { color: var(--text-pure); }

/* Hero Section */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 80px; }
.hero-glow-cyan { position: absolute; top: -10%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 70%); pointer-events: none; }
.hero-glow-gold { position: absolute; bottom: 10%; right: -5%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%); pointer-events: none; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; z-index: 2; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 25px; color: var(--text-muted); }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-tags { margin-top: 40px; font-size: 0.8rem; color: var(--text-muted); letter-spacing: 1px; font-weight: 500; }
.hero-tags .dot { color: var(--accent-gold); margin: 0 10px; }

/* Abstract Portal Animation */
.hero-visual { position: relative; height: 400px; display: flex; justify-content: center; align-items: center; }
.abstract-portal { position: relative; width: 300px; height: 300px; }
.portal-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 1px solid var(--border-subtle); animation: spin linear infinite; }
.ring-1 { border-top-color: var(--accent-gold); animation-duration: 20s; }
.ring-2 { border-right-color: var(--accent-cyan); width: 80%; height: 80%; top: 10%; left: 10%; animation-duration: 15s; animation-direction: reverse; }
.portal-core { position: absolute; top: 25%; left: 25%; width: 50%; height: 50%; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), rgba(0,0,0,0.5)); backdrop-filter: blur(5px); border: 1px solid rgba(255,255,255,0.05); box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.1); }
.node { position: absolute; width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: var(--text-pure); font-size: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.node-android { top: -20px; left: 130px; color: #3DDC84; }
.node-web { bottom: 40px; right: -20px; color: var(--accent-cyan); }
.node-360 { bottom: -20px; left: 130px; color: var(--accent-gold); }
.node-ai { top: 40px; left: -20px; color: #9C27B0; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Trust Strip */
.trust-strip { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); padding: 30px 0; background: rgba(0,0,0,0.2); }
.strip-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.strip-item { font-family: var(--font-heading); font-size: 0.85rem; letter-spacing: 1px; color: var(--text-muted); display: flex; align-items: center; gap: 10px; }

/* Grids */
.grid-2x2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.grid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Premium Cards */
.premium-card { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 40px; border-radius: 8px; transition: var(--transition); position: relative; overflow: hidden; }
.premium-card:hover { transform: translateY(-4px); border-color: var(--border-hover); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-icon { font-size: 2rem; color: var(--text-pure); margin-bottom: 25px; }
.premium-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.premium-card p { color: var(--text-muted); margin-bottom: 25px; font-size: 0.95rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.card-tags span { font-size: 0.75rem; padding: 4px 10px; border: 1px solid var(--border-subtle); border-radius: 30px; color: var(--text-muted); }
.card-link { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--accent-gold); display: flex; align-items: center; gap: 8px; }
.card-link i { transition: transform 0.3s ease; }
.premium-card:hover .card-link i { transform: translateX(5px); }

/* Editorial Grid (Why AGJ) */
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.editorial-item h4 { font-size: 1rem; color: var(--accent-gold); margin-bottom: 10px; letter-spacing: 1px; }
.editorial-item p { font-size: 1.1rem; color: var(--text-muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; }
.project-card { border: 1px solid var(--border-subtle); border-radius: 8px; overflow: hidden; background: var(--bg-card); transition: var(--transition); }
.project-card:hover { border-color: rgba(255,255,255,0.2); }
.project-img { height: 250px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid var(--border-subtle); font-size: 3rem; color: var(--border-subtle); }
.project-info { padding: 30px; }
.project-status { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 15px; }
.status-live { background: rgba(0, 229, 255, 0.1); color: var(--accent-cyan); }
.status-dev { background: rgba(212, 175, 55, 0.1); color: var(--accent-gold); }
.status-concept { background: rgba(255, 255, 255, 0.05); color: var(--text-muted); border: 1px solid var(--border-subtle); }
.project-category { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 1px; }
.row-card { display: grid; grid-template-columns: 1fr; }

/* Sectors List */
.sector-list { display: flex; flex-direction: column; gap: 30px; }
.list-item h4 { font-size: 1rem; color: var(--accent-cyan); margin-bottom: 5px; letter-spacing: 1px; }
.list-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Human Side */
.founder-badge { background: var(--bg-card); border: 1px solid var(--border-subtle); padding: 40px; border-radius: 8px; text-align: center; }
.founder-badge i { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 20px; }
.founder-badge h5 { font-size: 1.1rem; margin-bottom: 5px; }
.founder-badge p { color: var(--text-muted); font-size: 0.9rem; }
.fine-line { height: 1px; width: 40px; background: var(--border-subtle); margin: 20px auto; }
.founder-badge span { font-size: 0.8rem; letter-spacing: 1px; color: var(--text-muted); text-transform: uppercase; }

/* Process Timeline */
.timeline { display: flex; justify-content: space-between; position: relative; padding-top: 40px; }
.timeline::before { content: ''; position: absolute; top: 15px; left: 0; width: 100%; height: 1px; background: var(--border-subtle); z-index: 1; }
.step { position: relative; z-index: 2; width: 18%; }
.step-num { width: 30px; height: 30px; background: var(--bg-main); border: 1px solid var(--accent-gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 0.75rem; color: var(--accent-gold); margin-bottom: 20px; }
.step h4 { font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 10px; }
.step p { font-size: 0.85rem; color: var(--text-muted); }

/* Contact Form & Glass Panels */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 40px; }
.form-title { font-size: 1.2rem; font-weight: 500; color: var(--text-pure); margin-bottom: 30px; }
.input-group { margin-bottom: 20px; }
input, select, textarea { width: 100%; background: rgba(0,0,0,0.3); border: 1px solid var(--border-subtle); padding: 15px; color: var(--text-pure); border-radius: 4px; font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-cyan); background: rgba(0,0,0,0.5); }
.btn-submit { width: 100%; background: var(--text-pure); color: var(--bg-main); padding: 16px; border: none; font-family: var(--font-heading); font-weight: 600; font-size: 1rem; border-radius: 4px; cursor: pointer; transition: var(--transition); display: flex; justify-content: center; align-items: center; gap: 10px; }
.btn-submit:hover { background: var(--accent-gold); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .portal-ring { animation: none; } }

/* Mobile Responsive */
@media (max-width: 1024px) {
    .grid-2x2, .grid-split, .portfolio-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-actions { justify-content: center; }
    .timeline { flex-direction: column; padding-top: 0; padding-left: 20px; }
    .timeline::before { top: 0; left: 0; width: 1px; height: 100%; }
    .step { width: 100%; margin-bottom: 30px; display: flex; flex-direction: column; }
    .step-num { position: absolute; left: -35px; top: 0; margin: 0; background: var(--bg-darker); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero h1 { font-size: 2.2rem; }
    .strip-container { flex-direction: column; align-items: center; }
    .editorial-grid { grid-template-columns: 1fr; gap: 30px; }
    .heading-massive { font-size: 3rem; }
}

/* Rich Footer (Included directly here so it works across all pages) */
.rich-footer { border-top: 1px solid var(--border-subtle); padding: 80px 0 30px 0; background: var(--bg-darker); }
.rich-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.rich-footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; max-width: 400px; }
.rich-footer-col h4 { font-size: 1rem; margin-bottom: 25px; color: var(--text-pure); letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-heading); }
.rich-footer-col a { color: var(--text-muted); font-size: 0.9rem; display: block; margin-bottom: 15px; transition: var(--transition); }
.rich-footer-col a:hover { color: var(--text-pure); }
.rich-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 30px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 20px; }
@media (max-width: 768px) { 
    .rich-footer-grid { grid-template-columns: 1fr; text-align: center; } 
    .rich-footer-brand p { margin: 0 auto; } 
    .rich-footer-bottom { justify-content: center; text-align: center; } 
}