:root { 
    --bg-body: #050505; 
    --bg-card: #0a0a0a; 
    --bg-nav: rgba(5,5,5,0.95);
    --text-main: #e0e0e0; 
    --text-muted: #888; 
    --accent-orange: #ff6600; 
    --border-color: #333; 
    --font-heading: 'Rajdhani', sans-serif; 
    --font-mono: 'Space Mono', monospace; 
}
[data-theme="light"] { 
    --bg-body: #f4f4f4; 
    --bg-card: #ffffff; 
    --bg-nav: rgba(255,255,255,0.95);
    --text-main: #111111; 
    --text-muted: #555555; 
    --border-color: #ccc; 
    --accent-orange: #d15400; 
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    background: var(--bg-body); 
    color: var(--text-main); 
    font-family: var(--font-heading); 
    overflow-x: hidden; 
    line-height: 1.6; 
    transition: background 0.3s, color 0.3s; 
}

/* --- ANIMATIONS --- */
@keyframes glow-green {
    0%, 100% { text-shadow: 0 0 5px #00ff00; opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* --- POINTER --- */
html, body { cursor: url('/img/pointer.png') 0 0, auto; }
a, button, input, .industrial-clip, iframe, .btn-forge { cursor: url('/img/pointer.png') 0 0, pointer; }
.cursor-follower { 
    position: fixed; top: 0; left: 0; width: 40px; height: 40px; 
    border: 1px solid var(--accent-orange); border-radius: 50%; 
    pointer-events: none; z-index: 9999; 
    transform: translate(-50%, -50%); transition: width 0.1s, height 0.1s, opacity 0.2s; opacity: 0; 
}
.cursor-active { width: 60px; height: 60px; background: rgba(255,102,0,0.1); border-color: #fff; }

/* --- NAV --- */
.forge-nav { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 20px 40px; 
    background: var(--bg-nav); 
    backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; 
    border-bottom: 1px solid var(--border-color); 
}
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { 
    text-decoration: none; color: var(--text-main); 
    font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; 
    transition: color 0.3s; 
}
.nav-links a:hover { color: var(--accent-orange); }
.theme-toggle { background: none; border: 1px solid var(--border-color); color: var(--text-main); padding: 8px 12px; cursor: pointer; }

/* --- HERO --- */
.hero { padding: 140px 0 100px; text-align: center; }
.glitch-text { 
    font-size: 3.5rem; line-height: 1; margin-bottom: 20px; text-transform: uppercase; font-weight: 700; color: var(--text-main);
}
.glitch-text:hover { animation: glitch 0.3s infinite; color: var(--accent-orange); }
.subtitle { color: var(--text-muted); font-family: var(--font-mono); margin-bottom: 40px; }
.stat-grid { display: flex; justify-content: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
.stat { padding: 15px 30px; background: var(--bg-card); border: 1px solid var(--border-color); }
.stat .val { display: block; font-size: 1.5rem; color: var(--accent-orange); font-weight: 700; }
.stat .label { color: var(--text-muted); }

/* --- SECTIONS & CARDS --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; border-bottom: 1px solid var(--border-color); }
/* Added spacing for paragraphs in the new About section */
#about p { margin-bottom: 1.5rem; }
.ai-grid, .portfolio-grid, .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 50px; }

.industrial-clip { 
    background: var(--bg-card); border: 1px solid var(--border-color); padding: 30px; 
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); 
    transition: 0.3s; position: relative; 
}
.industrial-clip:hover { border-color: var(--accent-orange); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* --- IFRAME CONTAINER --- */
.browser-window { 
    height: 250px; 
    background: #000; 
    overflow: hidden; 
    margin-bottom: 20px; 
    border-bottom: 1px solid var(--border-color); 
    position: relative;
    display: block;
}
.live-frame { 
    width: 200%; 
    height: 200%; 
    border: 0; 
    transform: scale(0.5); 
    transform-origin: 0 0; 
}

/* --- CONTENT --- */
.ai-card { text-align: center; } 
.ai-card h3 { color: var(--text-main); } 
.ai-card p { color: var(--text-muted); }
.ai-icon { font-size: 2rem; color: var(--accent-orange); margin-bottom: 15px; }

.price-card { text-align: center; display: flex; flex-direction: column; justify-content: space-between; min-height: 350px; }
.price-card h3 { color: var(--text-main); }
.price-card p { color: var(--text-muted); }
.price-tag { display: inline-block; background: #222; padding: 5px 10px; margin: 10px 0; color: var(--accent-orange); font-family: var(--font-mono); font-size: 0.8rem; border: 1px solid #333; }

.btn-forge { 
    border: 1px solid var(--accent-orange); color: var(--accent-orange); padding: 12px 25px; background: transparent; 
    font-family: var(--font-mono); font-weight: bold; text-transform: uppercase; cursor: pointer; transition: 0.3s; 
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); 
    display: inline-block; text-decoration: none; margin-top: 15px; 
}
.btn-forge:hover { background: var(--accent-orange); color: #000; }

.site-info h3 { color: var(--text-main); }
.site-info p { color: var(--text-muted); }
.git-stats { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin: 10px 0; } 
.git-stats i { margin-left: 10px; color: var(--accent-orange); }

/* --- FOOTER --- */
.footer-newsletter { 
    max-width: 600px; margin: 100px auto 60px; 
    text-align: center; padding: 40px; background: var(--bg-card); border: 1px solid var(--border-color); 
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.footer-newsletter h4 { color: var(--text-main); }
.footer-newsletter p { color: var(--text-muted); }
.newsletter-form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter-form input { flex: 1; padding: 10px; background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-main); }
.footer-row { display: flex; justify-content: space-between; border-top: 1px solid var(--border-color); padding-top: 40px; margin-top: 40px; }
.footer-left, .footer-right { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.footer-brand { font-family: var(--font-heading); font-size: 1rem; color: var(--text-main); font-weight: 700; margin-bottom: 10px; }

/* --- STATUS GLOW --- */
.status .online { 
    color: #00ff00; 
    animation: glow-green 2s infinite alternate; 
    font-weight: bold; 
    text-shadow: 0 0 5px #00ff00;
}

/* --- MOBILE --- */
@media(max-width:768px) { .cursor-follower { display: none; } .forge-nav { flex-direction: column; gap: 20px; } .nav-links { flex-direction: column; gap: 15px; } .newsletter-form { flex-direction: column; } .footer-row { flex-direction: column; gap: 30px; text-align: center; } }
.animate-block { opacity: 0; transform: translateY(20px); transition: 0.8s ease-out; }
.animate-block.is-visible { opacity: 1; transform: translateY(0); }
/* MODAL */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.modal-content { margin: 15% auto; padding: 40px; width: 80%; max-width: 600px; background: var(--bg-card); border: 1px solid var(--accent-orange); color: var(--text-main); }
.close { color: var(--text-muted); float: right; font-size: 28px; font-weight: bold; cursor: pointer; }
