/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --bg-dark: #0b1120;
    --bg-card: rgba(30, 41, 59, 0.45);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-primary: #0ea5e9;
    --accent-secondary: #8b5cf6;
    --accent-glow: rgba(14, 165, 233, 0.4);
    --border-glass: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

/* =========================================
   2. Ambient Background Animations
   ========================================= */
.ambient-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.15), transparent 30%),
                radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.15), transparent 30%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 25s infinite ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: var(--accent-secondary); top: -150px; left: -100px; }
.orb-2 { width: 600px; height: 600px; background: var(--accent-primary); bottom: -200px; right: -150px; animation-delay: -8s; }
.orb-3 { width: 350px; height: 350px; background: #ec4899; top: 50%; left: 50%; animation-delay: -15s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -60px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* =========================================
   3. Utility Classes & Glassmorphism
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
    font-size: 2.75rem; margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800;
}
.section-header p { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.highlight { color: var(--accent-primary); }

/* =========================================
   4. Buttons
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px; border-radius: 12px; font-weight: 600;
    text-decoration: none; transition: var(--transition); cursor: pointer;
    border: none; font-size: 1rem;
}
.btn-primary { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px var(--accent-glow); }
.glow { box-shadow: 0 0 20px rgba(14, 165, 233, 0.3); }
.glow:hover { box-shadow: 0 0 35px rgba(14, 165, 233, 0.6); }
.btn-outline { background: transparent; border: 1px solid var(--border-glass); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-primary); }

/* =========================================
   5. Navigation
   ========================================= */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 20px 0; transition: var(--transition); }
.navbar.scrolled { background: rgba(11, 17, 32, 0.9); backdrop-filter: blur(20px); padding: 14px 0; border-bottom: 1px solid var(--border-glass); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 800; color: var(--text-primary); text-decoration: none; letter-spacing: -0.5px; }
.nav-links { display: flex; list-style: none; gap: 36px; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent-primary); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; }
.mobile-toggle span { display: block; width: 28px; height: 2px; background: var(--text-primary); transition: var(--transition); }

/* =========================================
   6. Hero Section
   ========================================= */
.hero { padding: 180px 0 120px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 50px; color: var(--accent-primary); font-size: 0.9rem; font-weight: 600; margin-bottom: 24px;
}
.hero h1 { font-size: 3.2rem; line-height: 1.15; margin-bottom: 24px; font-weight: 800; }
.hero-desc { font-size: 1.2rem; color: var(--text-secondary); margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.trust-indicators { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }

.hero-visual { position: relative; height: 400px; }
.floating-card {
    position: absolute; padding: 20px; display: flex; align-items: center; gap: 16px;
    animation: floatCard 6s infinite ease-in-out;
}
.card-1 { top: 20%; left: 10%; }
.card-2 { bottom: 25%; right: 5%; animation-delay: -3s; }
.card-icon {
    font-size: 2rem; background: rgba(14, 165, 233, 0.1); width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
}
.floating-card strong { display: block; font-size: 1rem; }
.floating-card span { font-size: 0.85rem; color: var(--text-secondary); }
.stats-preview { position: absolute; bottom: 0; left: 20%; padding: 24px 32px; display: flex; gap: 40px; }
.stat { text-align: center; }
.stat .counter { font-size: 2rem; font-weight: 800; color: var(--accent-primary); }
.stat small { display: block; color: var(--text-secondary); font-size: 0.8rem; margin-top: 4px; }

@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; animation: slideUp 0.8s forwards; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; } .delay-4 { animation-delay: 0.4s; }

/* =========================================
   7. Services & Cards
   ========================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.service-card { padding: 36px; transition: var(--transition); cursor: default; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-8px); border-color: var(--accent-primary); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }
.icon-wrap { font-size: 2.5rem; margin-bottom: 24px; }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.feature-list { list-style: none; margin-bottom: 24px; }
.feature-list li { color: var(--text-secondary); font-size: 0.9rem; padding: 4px 0 4px 20px; position: relative; }
.feature-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-primary); }
.text-link { color: var(--accent-primary); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: var(--transition); }
.text-link:hover { padding-left: 5px; }

/* =========================================
   8. Process Timeline
   ========================================= */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary)); }
.timeline-item { position: relative; padding: 32px; margin-bottom: 32px; transition: var(--transition); }
.timeline-item:hover { transform: translateX(10px); border-color: var(--accent-secondary); }
.timeline-marker {
    position: absolute; left: -56px; top: 32px; width: 44px; height: 44px;
    background: var(--bg-dark); border: 2px solid var(--accent-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-primary); font-size: 0.9rem; z-index: 2;
}
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 8px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.95rem; }

/* =========================================
   9. Portfolio (CSS Abstract)
   ========================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.portfolio-card { position: relative; overflow: hidden; height: 320px; cursor: pointer; padding: 0; }
.abstract-art { width: 100%; height: 100%; transition: var(--transition); }
.art-1 { background: linear-gradient(135deg, #1e293b, #0f172a), repeating-linear-gradient(45deg, transparent, transparent 15px, rgba(14, 165, 233, 0.1) 15px, rgba(14, 165, 233, 0.1) 30px); }
.art-2 { background: radial-gradient(circle at 30% 30%, #8b5cf6, transparent 50%), radial-gradient(circle at 70% 70%, #0ea5e9, transparent 50%), #1e293b; }
.art-3 { background: conic-gradient(from 0deg at 50% 50%, #1e293b, #334155, #1e293b); }
.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
    background: linear-gradient(to top, rgba(11, 17, 32, 0.95), transparent);
    transform: translateY(30px); opacity: 0; transition: var(--transition);
}
.portfolio-card:hover .portfolio-overlay { transform: translateY(0); opacity: 1; }
.portfolio-card:hover .abstract-art { transform: scale(1.05); }

/* =========================================
   10. Article Section (Fixed Visibility)
   ========================================= */
.article-section { padding: 40px 0; }
.article-wrapper { padding: 56px; max-width: 960px; margin: 0 auto; }
.article-wrapper h2 { font-size: 2.2rem; margin-bottom: 28px; color: var(--accent-primary); line-height: 1.3; }
.article-wrapper h3 { font-size: 1.5rem; margin: 40px 0 16px; color: var(--text-primary); }
.article-wrapper p { margin-bottom: 20px; color: var(--text-secondary); font-size: 1.05rem; }
.article-wrapper a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 4px; transition: var(--transition); }
.article-wrapper a:hover { color: var(--accent-secondary); }

.callout-box { padding: 24px 28px; border-radius: 12px; margin: 32px 0; border-left: 4px solid; font-size: 1.05rem; }
.tip-box { background: rgba(14, 165, 233, 0.08); border-color: var(--accent-primary); }
.warning-box { background: rgba(239, 68, 68, 0.08); border-color: #ef4444; color: #fca5a5; }
.checklist { list-style: none; margin: 24px 0; }
.checklist li { padding: 10px 0; color: var(--text-secondary); font-size: 1.05rem; border-bottom: 1px solid var(--border-glass); }
.checklist li:last-child { border-bottom: none; }

.comparison-table-container { padding: 32px; margin: 40px 0; overflow-x: auto; }
.comparison-table-container h4 { margin-bottom: 16px; font-size: 1.2rem; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 16px; text-align: left; border-bottom: 1px solid var(--border-glass); }
.comparison-table th { color: var(--accent-primary); font-weight: 600; }
.comparison-table td { color: var(--text-secondary); }

/* =========================================
   11. FAQ Section
   ========================================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { margin-bottom: 16px; overflow: hidden; }
.faq-question {
    width: 100%; padding: 24px 28px; background: transparent; border: none;
    color: var(--text-primary); font-size: 1.1rem; font-weight: 600; text-align: left;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition);
}
.faq-question:hover { color: var(--accent-primary); }
.faq-icon { font-size: 1.5rem; transition: var(--transition); color: var(--accent-primary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; padding: 0 28px; }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 24px; }
.faq-answer p { color: var(--text-secondary); line-height: 1.7; }

/* =========================================
   12. Testimonials
   ========================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { padding: 36px; transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-5px); border-color: var(--accent-primary); }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 20px; letter-spacing: 2px; }
.testimonial-card > p { color: var(--text-secondary); font-style: italic; margin-bottom: 28px; line-height: 1.8; font-size: 1.05rem; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 1.1rem;
}
.testimonial-author strong { display: block; color: var(--text-primary); font-size: 1rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-secondary); }

/* =========================================
   13. Contact Section
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding: 56px; }
.contact-info h3, .contact-form-container h3 { margin-bottom: 32px; font-size: 1.6rem; }
.info-item { display: flex; gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.info-icon {
    font-size: 1.5rem; background: rgba(14, 165, 233, 0.1); width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0;
}
.info-item strong { display: block; color: var(--text-primary); margin-bottom: 6px; font-size: 1rem; }
.info-item a, .info-item p { color: var(--text-secondary); text-decoration: none; transition: var(--transition); font-size: 1rem; }
.info-item a:hover { color: var(--accent-primary); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 10px; color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 18px; background: rgba(11, 17, 32, 0.6);
    border: 1px solid var(--border-glass); border-radius: 10px; color: var(--text-primary);
    font-family: inherit; font-size: 1rem; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15); }

/* =========================================
   14. Footer
   ========================================= */
.footer { background: rgba(11, 17, 32, 0.9); border-top: 1px solid var(--border-glass); padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; margin-bottom: 56px; }
.footer-col h3 { font-size: 1.5rem; margin-bottom: 20px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 24px; color: var(--text-primary); }
.footer-col p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a { color: var(--text-secondary); text-decoration: none; transition: var(--transition); font-size: 0.95rem; }
.footer-col ul li a:hover { color: var(--accent-primary); padding-left: 6px; }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border-glass); color: var(--text-secondary); font-size: 0.9rem; }

/* =========================================
   15. Animations & Responsive (FOOLPROOF)
   ========================================= */
/* Pure CSS animation ensures text is ALWAYS visible even if JS fails */
.reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from { opacity: 0.8; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-desc, .hero-actions, .trust-indicators { justify-content: center; margin-left: auto; margin-right: auto; }
    .hero-visual { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px);
        background: rgba(11, 17, 32, 0.98); flex-direction: column; align-items: center;
        justify-content: center; gap: 32px; transition: var(--transition);
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: flex; }
    .navbar .btn { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .article-wrapper { padding: 28px; }
    .section-header h2 { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}