/* ==========================================================================
   Ultra Modern Design System 2026
   ========================================================================== */

   :root {
    /* Dark Theme (Default) */
    --bg-color: #050505;
    --surface: #111111;
    --surface-hover: #1a1a1a;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f3f3f3;
    --text-muted: #888888;
    --brand-primary: #6d28d9; 
    --brand-secondary: #2563eb; 
    --brand-glow: rgba(109, 40, 217, 0.4);
    --nav-bg: rgba(5, 5, 5, 0.8);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --max-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface: #ffffff;
    --surface-hover: #f1f5f9;
    --border: rgba(0, 0, 0, 0.1);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --brand-glow: rgba(109, 40, 217, 0.15);
    --nav-bg: rgba(248, 250, 252, 0.8);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; cursor: none; }
html { scroll-behavior: smooth; background-color: var(--bg-color); }
body {
    background-color: var(--bg-color); color: var(--text-main); font-family: var(--font-body);
    line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
}
::selection { background: var(--text-main); color: var(--bg-color); }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #60a5fa, #f472b6);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    background-size: 200% auto; animation: gradientFlow 5s linear infinite;
}
@keyframes gradientFlow { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed; top: 0; left: 0; height: 4px; 
    background: linear-gradient(90deg, #a78bfa, #f472b6);
    z-index: 999999; width: 0%; transition: width 0.1s ease;
}

/* Preloader */
#preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-color); z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.loader-logo { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 900; color: var(--text-main); animation: pulseLoader 1.5s infinite; }
.loader-logo span { color: var(--brand-primary); }
@keyframes pulseLoader { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.95); } }

/* Background */
.mesh-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.2), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(37, 99, 235, 0.2), transparent 25%);
    filter: blur(80px); opacity: 0.8;
}
#particles-canvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
}
nav, section, footer {
    position: relative;
    z-index: 1;
}

/* Custom Cursor */
.cursor-dot { width: 6px; height: 6px; background: var(--text-main); border-radius: 50%; position: fixed; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); transition: background-color 0.5s ease; }
.cursor-ring { width: 30px; height: 30px; border: 1px solid var(--text-main); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.5s; opacity: 0.5; }
.cursor-ring.hover { width: 60px; height: 60px; background-color: var(--border); border-color: transparent; backdrop-filter: blur(2px); }

/* Navigation */
.navbar { position: fixed; top: 0; left: 0; right: 0; padding: 20px 0; z-index: 100; transition: var(--transition); }
.navbar.scrolled { padding: 15px 0; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 900; color: var(--text-main); text-decoration: none; }
.logo span { color: var(--brand-primary); }
.nav-links { display: flex; gap: 30px; background: var(--surface); padding: 12px 32px; border-radius: 100px; border: 1px solid var(--border); }
.hover-link { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: var(--transition); }
.hover-link:hover { color: var(--text-main); }
.nav-controls { display: flex; gap: 10px; align-items: center; }
.icon-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-main); width: 42px; height: 42px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: 600; font-size: 0.9rem; transition: var(--transition); }
.icon-btn:hover { background: var(--text-main); color: var(--bg-color); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 100px; text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.btn-outline { border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { background: var(--text-main); color: var(--bg-color); }
.btn-primary { background: var(--text-main); color: var(--bg-color); border: none; }
.btn-primary:hover { transform: scale(1.02); opacity: 0.9; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-xl { padding: 20px 40px; font-size: 1.1rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 60px; }
.hero-content { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.pill-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; font-size: 0.85rem; color: var(--text-muted); }
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse 2s infinite; }
.hero-title { font-size: clamp(3.5rem, 8vw, 6.5rem); }
.hero-subtitle { font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-muted); max-width: 600px; }

/* Tech Marquee */
.tech-marquee { width: 100%; overflow: hidden; padding: 40px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; white-space: nowrap; }
.tech-marquee::before, .tech-marquee::after { content: ''; position: absolute; top: 0; width: 100px; height: 100%; z-index: 2; }
.tech-marquee::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.tech-marquee::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }
.marquee-content { display: inline-block; animation: marquee 25s linear infinite; }
.marquee-content span { font-size: 1.5rem; color: var(--text-muted); font-weight: 600; margin: 0 40px; display: inline-flex; align-items: center; gap: 12px; transition: var(--transition); }
.marquee-content span:hover { color: var(--text-main); }
.marquee-content span i { font-size: 2rem; color: var(--brand-primary); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Tilt Effect Helper */
.tilt-effect { transform-style: preserve-3d; }
.tilt-effect > * { transform: translateZ(30px); }

/* Bento Grid */
.bento-section { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.section-title { font-size: 3rem; margin-bottom: 60px; text-align: center; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(280px, auto); gap: 24px; }
.bento-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px; transition: var(--transition); display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.bento-icon { font-size: 2.5rem; margin-bottom: 20px; }
.bento-card h3 { font-size: 1.8rem; margin-bottom: 12px; }
.bento-card p { color: var(--text-muted); font-size: 1rem; }
.bento-large { grid-column: span 2; grid-row: span 2; background: linear-gradient(145deg, var(--surface) 0%, var(--brand-glow) 200%); }
.bento-wide { grid-column: span 2; }

/* About Me */
.about-section { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.about-container { display: flex; align-items: center; gap: 80px; }
.about-visual { position: relative; flex: 1; }
.founder-image img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); display: block; filter: grayscale(20%); transition: var(--transition); }
.founder-image:hover img { filter: grayscale(0%); }
.experience-badge { position: absolute; bottom: -30px; right: -30px; background: var(--surface); border: 1px solid var(--border); padding: 30px; border-radius: var(--radius-md); text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.experience-badge span { font-size: 2.5rem; font-weight: 900; color: var(--brand-primary); display: block; line-height: 1; margin-bottom: 5px; }
.about-content { flex: 1.2; }
.about-content .section-title { text-align: left; margin-bottom: 30px; }
.about-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }

/* Projects */
.projects { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.project-list { display: flex; flex-direction: column; gap: 120px; }
.project-row { display: flex; align-items: center; gap: 80px; }
.project-row.reverse { flex-direction: row-reverse; }
.project-content { flex: 1; }
.project-meta { font-family: var(--font-heading); font-size: 0.9rem; color: var(--brand-primary); font-weight: 600; margin-bottom: 24px; letter-spacing: 2px; }
.project-content h3 { font-size: 3.5rem; margin-bottom: 24px; }
.project-content p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 40px; }
.project-link { display: inline-block; color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 1.1rem; border-bottom: 2px solid var(--text-main); padding-bottom: 5px; transition: var(--transition); }
.project-link:hover { color: var(--brand-primary); border-color: var(--brand-primary); }
.project-visual { flex: 1.2; }
.img-wrapper { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: var(--transition); }
.img-wrapper img { width: 100%; display: block; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }

/* Process */
.process-section { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px 30px; position: relative; transition: var(--transition); }
.process-step { font-family: var(--font-heading); font-size: 4rem; font-weight: 900; color: var(--border); position: absolute; top: 20px; right: 30px; line-height: 1; transition: color 0.3s; }
.process-card:hover .process-step { color: var(--brand-glow); }
.process-card h3 { font-size: 1.4rem; margin-bottom: 15px; margin-top: 20px; position: relative; z-index: 1; }
.process-card p { color: var(--text-muted); font-size: 0.95rem; position: relative; z-index: 1; }

/* Testimonials */
.testimonials-section { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px; position: relative; display: flex; flex-direction: column; justify-content: space-between; transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--brand-glow); }
.quote-icon { font-size: 2rem; color: var(--brand-glow); margin-bottom: 20px; }
.testimonial-card p { font-size: 1.15rem; color: var(--text-main); font-style: italic; margin-bottom: 30px; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border); padding-top: 20px; }
.author-info h4 { font-size: 1.1rem; margin-bottom: 5px; }
.author-info span { font-size: 0.9rem; color: var(--text-muted); }

/* FAQ */
.faq-section { max-width: 800px; margin: 0 auto; padding: 120px 24px; }
.faq-container { display: flex; flex-direction: column; gap: 15px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: var(--transition); }
.faq-question { padding: 24px 30px; display: flex; justify-content: space-between; align-items: center; }
.faq-question h3 { font-size: 1.2rem; font-weight: 600; }
.faq-icon { color: var(--text-muted); transition: transform 0.3s ease; }
.faq-item.active { border-color: var(--brand-primary); }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--text-main); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 30px 30px 30px; color: var(--text-muted); }

/* Dynamic Cost Estimator */
.contact-section { max-width: var(--max-width); margin: 0 auto; padding: 120px 24px; }
.calculator-container { display: flex; gap: 60px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px; align-items: center; }
.calc-info { flex: 1; }
.calc-info h2 { font-size: 3rem; margin-bottom: 20px; }
.calc-info p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 40px; }
.total-box { background: rgba(0,0,0,0.2); border: 1px solid var(--border); padding: 30px; border-radius: var(--radius-md); margin-bottom: 30px; }
[data-theme="light"] .total-box { background: rgba(0,0,0,0.03); }
.total-box span { color: var(--text-muted); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 10px; }
.total-box h3 { font-size: 3.5rem; color: var(--text-main); font-variant-numeric: tabular-nums; }
.calc-disclaimer { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 24px; margin-top: -15px; }
.calc-form { flex: 1.2; display: flex; flex-direction: column; gap: 24px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.form-group select { width: 100%; padding: 18px 24px; background: var(--bg-color); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-main); font-family: var(--font-body); font-size: 1.1rem; outline: none; transition: var(--transition); appearance: none; }
.form-group select:focus { border-color: var(--brand-primary); }
.checkboxes { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.custom-checkbox { display: flex; align-items: center; gap: 15px; cursor: pointer; position: relative; }
.custom-checkbox input { opacity: 0; position: absolute; }
.checkmark { width: 24px; height: 24px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 6px; display: flex; justify-content: center; align-items: center; transition: var(--transition); }
.custom-checkbox input:checked ~ .checkmark { background: var(--brand-primary); border-color: var(--brand-primary); }
.custom-checkbox input:checked ~ .checkmark::after { content: '✓'; color: white; font-size: 14px; font-weight: bold; }
.custom-checkbox span:not(.checkmark) { font-size: 1.1rem; color: var(--text-main); transition: var(--transition); }

/* Footer */
.modern-footer { border-top: 1px solid var(--border); padding: 40px 24px; }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.socials { display: flex; gap: 24px; }
.socials a { color: var(--text-main); text-decoration: none; transition: var(--transition); }
.socials a:hover { color: var(--brand-primary); }

/* WhatsApp */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); z-index: 1000; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.3s ease; animation: pulse-wa 2s infinite; }
.whatsapp-float:hover { transform: translateY(-5px) scale(1.05); color: white; }

/* Reveals */
.reveal-up { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-down { opacity: 0; transform: translateY(-40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-wide { grid-column: span 2; }
    .project-row, .project-row.reverse, .about-container, .calculator-container { flex-direction: column; gap: 40px; text-align: center; }
    .about-content .section-title { text-align: center; }
    .experience-badge { bottom: -20px; right: 0; }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .calc-form { width: 100%; text-align: left; }
}
@media (max-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-large, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .project-content h3 { font-size: 2.5rem; }
    .process-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
    .cursor-dot, .cursor-ring { display: none; }
    * { cursor: auto !important; }
}
