/* --- VARIABLES & RESET --- */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.accent { color: var(--primary); }
.tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* --- GLASSMORPHISM --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.2);
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-glass {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid var(--glass-border);
}
.btn-glass:hover { background: rgba(255,255,255,0.1); }
.glow-btn { position: relative; overflow: hidden; }
.glow-btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}
.glow-btn:hover::after { left: 100%; }

/* --- BACKGROUND SHAPES --- */
.bg-gradient-orb {
    position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.4;
}
.orb-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; left: -100px; }
.orb-2 { width: 300px; height: 300px; background: var(--accent); bottom: 10%; right: -50px; }
.orb-3 { width: 500px; height: 500px; background: #ec4899; top: 40%; left: 30%; opacity: 0.15; }

/* --- NAVIGATION --- */
.navbar {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 1rem 0; transition: 0.3s;
}
.navbar.scrolled { background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(10px); padding: 0.8rem 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: white; font-weight: 700; font-size: 1.5rem; }
.logo-icon {
    width: 40px; height: 40px; background: var(--gradient-main); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: white; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.3s; }

/* --- HERO --- */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero-content { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
    background: rgba(255,255,255,0.05); border-radius: 50px; margin-bottom: 2rem;
    border: 1px solid var(--glass-border);
}
.pulse-dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }
.hero-title { font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.2rem; color: var(--gray); margin-bottom: 2.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 15px; justify-content: center; margin-bottom: 3rem; }
.trust-bar { display: flex; justify-content: center; gap: 30px; margin-bottom: 4rem; color: var(--gray); font-size: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 800px; margin: 0 auto; }
.stat-card { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: white; font-family: var(--font-heading); }
.stat-label { font-size: 0.9rem; color: var(--gray); }

/* Floating Cards */
.floating-card {
    position: absolute; padding: 15px 25px; display: flex; align-items: center; gap: 10px;
    animation: float 6s ease-in-out infinite; z-index: 1;
}
.fc-1 { top: 30%; left: 5%; animation-delay: 0s; }
.fc-2 { top: 40%; right: 5%; animation-delay: 2s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* --- SECTIONS GENERAL --- */
section { padding: 100px 0; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { color: var(--gray); max-width: 600px; margin: 0 auto; }

/* --- SERVICES GRID --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.card-icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.service-card p { color: var(--gray); margin-bottom: 1.5rem; font-size: 0.95rem; }
.features { list-style: none; margin-bottom: 1.5rem; }
.features li { position: relative; padding-left: 20px; margin-bottom: 8px; color: var(--gray); font-size: 0.9rem; }
.features li::before { content: '•'; color: var(--primary); position: absolute; left: 0; font-weight: bold; }
.card-link { color: var(--primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; }

/* --- TIMELINE --- */
.timeline { position: relative; max-width: 800px; margin: 50px auto 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
    background: var(--glass-border); transform: translateX(-50%);
}
.timeline-item { display: flex; justify-content: flex-end; padding-right: 50%; margin-bottom: 40px; position: relative; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; padding-right: 0; padding-left: 50%; }
.timeline-marker {
    position: absolute; left: 50%; top: 20px; width: 40px; height: 40px;
    background: var(--dark); border: 2px solid var(--primary); border-radius: 50%;
    transform: translateX(-50%); display: flex; align-items: center; justify-content: center;
    font-weight: bold; z-index: 2; color: var(--primary);
}
.timeline-content { width: 85%; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { text-align: left; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.timeline-content p { font-size: 0.9rem; color: var(--gray); }

/* --- PORTFOLIO --- */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.portfolio-card { position: relative; height: 250px; border-radius: 16px; overflow: hidden; cursor: pointer; }
.portfolio-placeholder { width: 100%; height: 100%; transition: 0.5s; }
.p-bg-1 { background: linear-gradient(45deg, #3b82f6, #1e293b); }
.p-bg-2 { background: linear-gradient(45deg, #8b5cf6, #1e293b); }
.p-bg-3 { background: linear-gradient(45deg, #ec4899, #1e293b); }
.p-bg-4 { background: linear-gradient(45deg, #10b981, #1e293b); }
.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%); transition: 0.3s;
}
.portfolio-card:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-card:hover .portfolio-placeholder { transform: scale(1.1); }

/* --- ARTICLE STYLES --- */
.article-section { background: rgba(15, 23, 42, 0.5); }
.article-container { max-width: 900px; margin: 0 auto; }
.article-header { text-align: center; margin-bottom: 4rem; }
.article-header h1 { font-family: var(--font-heading); font-size: 2.8rem; margin-bottom: 1rem; }
.article-meta { color: var(--gray); font-size: 0.9rem; }
.article-body h2 { font-family: var(--font-heading); font-size: 2rem; margin: 3rem 0 1.5rem; color: white; }
.article-body h3 { font-size: 1.5rem; margin: 2rem 0 1rem; color: var(--light); }
.article-body p { margin-bottom: 1.5rem; color: #cbd5e1; font-size: 1.1rem; }
.article-body ul, .article-body ol { margin-bottom: 1.5rem; padding-left: 1.5rem; color: #cbd5e1; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--primary); text-decoration: underline; }
.callout-box {
    padding: 20px; border-left: 4px solid var(--primary); background: rgba(59, 130, 246, 0.1);
    margin: 2rem 0; border-radius: 0 8px 8px 0;
}
.quote-box {
    font-style: italic; font-size: 1.3rem; text-align: center; padding: 3rem;
    border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border);
    margin: 3rem 0; color: var(--light);
}
.comparison-table { overflow-x: auto; margin: 2rem 0; }
.comparison-table table { width: 100%; border-collapse: collapse; min-width: 600px; }
.comparison-table th, .comparison-table td { padding: 15px; text-align: left; border-bottom: 1px solid var(--glass-border); }
.comparison-table th { color: var(--primary); }
.pricing-widget { display: flex; gap: 20px; flex-wrap: wrap; margin: 2rem 0; }
.price-item { flex: 1; min-width: 200px; text-align: center; }
.price-item span { display: block; font-size: 1.5rem; font-weight: 700; color: var(--primary); margin: 10px 0; }

/* --- FAQ --- */
.faq-grid { max-width: 800px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 15px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question {
    width: 100%; padding: 20px; background: none; border: none; color: white;
    text-align: left; font-size: 1.1rem; font-weight: 600; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question .icon { font-size: 1.5rem; color: var(--primary); transition: 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 20px; }
.faq-answer p { padding-bottom: 20px; color: var(--gray); }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .icon { transform: rotate(45deg); }

/* --- TESTIMONIALS --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.stars { color: #fbbf24; margin-bottom: 1rem; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; margin-bottom: 1.5rem; color: #cbd5e1; }
.client-info { display: flex; align-items: center; gap: 15px; }
.initials {
    width: 40px; height: 40px; background: var(--gradient-main); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}

/* --- CONTACT --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.contact-info { padding: 4rem; background: rgba(59, 130, 246, 0.05); }
.contact-form-wrapper { padding: 4rem; }
.info-list { margin: 2rem 0; display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-item .icon { font-size: 1.5rem; }
.info-item a { color: white; text-decoration: none; display: block; }
.info-item a:hover { color: var(--primary); }
.contact-buttons { display: flex; gap: 15px; margin-top: 2rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--gray); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 8px; color: white; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.full-width { width: 100%; }

/* --- FOOTER --- */
.footer { background: #020617; padding: 80px 0 30px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-col p { color: var(--gray); margin: 20px 0; font-size: 0.9rem; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; font-size: 0.8rem;
}
.footer-col h4 { margin-bottom: 20px; color: white; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); color: var(--gray); font-size: 0.85rem; }

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Add JS toggle logic */
    .mobile-toggle { display: block; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-right: 0; padding-left: 60px; width: 100%; justify-content: flex-start; }
    .timeline-item:nth-child(even) { flex-direction: row; padding-left: 60px; }
    .timeline-marker { left: 20px; }
    .timeline-content { width: 100%; text-align: left; }
    .floating-card { display: none; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .stats-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .pricing-widget { flex-direction: column; }
}

/* Animation Classes */
.animate-fade-up { opacity: 0; transform: translateY(30px); animation: fadeUp 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; }
.delay-5 { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }