/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --accent: #06b6d4;
    --dark: #0f172a;
    --light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Background Gradient Mesh */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    z-index: -1;
    animation: bgShift 20s ease infinite alternate;
}

@keyframes bgShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-5%, -5%); }
}

/* =========================================
   UTILITIES & COMPONENTS
   ========================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; position: relative; }
.accent { color: var(--accent); }

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.6);
}

.btn-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.full-width { width: 100%; }

/* =========================================
   NAVIGATION
   ========================================= */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
}

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn-glow) {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
}
.nav-links a:not(.btn-glow)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}
.nav-links a:not(.btn-glow):hover::after { width: 100%; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 25px; height: 3px; background: var(--dark); margin: 5px 0; transition: var(--transition); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}
.shape-1 { width: 400px; height: 400px; background: rgba(37, 99, 235, 0.2); top: 10%; right: -10%; animation-delay: 0s; }
.shape-2 { width: 300px; height: 300px; background: rgba(6, 182, 212, 0.2); bottom: 10%; left: -5%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.hero-content { max-width: 900px; margin: 0 auto; text-align: center; position: relative; z-index: 2; }

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 25px;
    background: linear-gradient(135deg, var(--dark) 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle { font-size: 1.2rem; color: #475569; margin-bottom: 40px; max-width: 700px; margin-left: auto; margin-right: auto; }

.hero-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }

.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 40px; }
.stat-card { padding: 25px; text-align: center; }
.stat-card .counter { font-size: 2.5rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.stat-card p { font-size: 0.9rem; color: #64748b; margin-top: 5px; }

/* Animations */
.animate-fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.animate-slide-up { animation: slideUp 1s ease forwards; opacity: 0; transform: translateY(30px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }

/* =========================================
   SERVICES GRID
   ========================================= */
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: #64748b; font-size: 1.1rem; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.service-card { padding: 40px 30px; position: relative; overflow: hidden; }
.icon-box { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 15px; font-family: var(--font-heading); }
.service-card p { color: #475569; font-size: 0.95rem; }

/* =========================================
   ARTICLE SECTION
   ========================================= */
.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; align-items: start; }
.content-wrapper h2 { font-family: var(--font-heading); font-size: 2rem; margin: 50px 0 20px; color: var(--dark); }
.content-wrapper h3 { font-size: 1.4rem; margin: 30px 0 15px; color: var(--dark); }
.content-wrapper p { margin-bottom: 20px; color: #334155; font-size: 1.05rem; }
.content-wrapper ul, .content-wrapper ol { margin: 20px 0 30px 20px; color: #334155; }
.content-wrapper li { margin-bottom: 10px; padding-left: 10px; }

.inline-link { color: var(--primary); text-decoration: underline; font-weight: 600; }
.inline-link:hover { color: var(--primary-dark); }

.callout-box { padding: 25px; margin: 30px 0; border-left: 4px solid var(--accent); }
.tip-box strong { color: var(--primary); display: block; margin-bottom: 8px; }

.checklist { list-style: none; margin-left: 0 !important; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: bold; }

.comparison-table { padding: 30px; margin: 40px 0; overflow-x: auto; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th, .comparison-table td { padding: 15px; text-align: left; border-bottom: 1px solid rgba(0,0,0,0.05); }
.comparison-table th { color: var(--primary); font-weight: 700; }

.process-list { counter-reset: step; list-style: none; margin-left: 0 !important; }
.process-list li { position: relative; padding-left: 50px; margin-bottom: 25px; }
.process-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.sidebar { position: sticky; top: 100px; }
.widget { padding: 30px; margin-bottom: 30px; }
.widget h3 { font-family: var(--font-heading); margin-bottom: 15px; }
.cta-widget { background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(6,182,212,0.05) 100%); border-color: rgba(37,99,235,0.2); }
.area-list { list-style: none; margin-left: 0 !important; }
.area-list li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); gap: 20px; }
.faq-item { padding: 25px 30px; cursor: pointer; }
.faq-item summary { font-weight: 600; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--primary); transition: var(--transition); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 15px; color: #475569; line-height: 1.6; }

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card { padding: 40px; }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 15px; letter-spacing: 3px; }
.testimonial-card p { font-style: italic; color: #334155; margin-bottom: 25px; }
.author { display: flex; align-items: center; gap: 15px; }
.avatar { width: 50px; height: 50px; background: var(--gradient-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; }
.author strong { display: block; font-size: 1rem; }
.author span { font-size: 0.85rem; color: #64748b; }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info { padding: 50px; }
.contact-info h2 { font-family: var(--font-heading); font-size: 2.2rem; margin-bottom: 20px; }
.info-item { display: flex; gap: 20px; margin: 25px 0; align-items: flex-start; }
.info-item .icon { font-size: 1.5rem; }
.info-item a, .info-item span { display: block; color: #334155; text-decoration: none; font-size: 1.1rem; }
.info-item a:hover { color: var(--primary); }
.map-btn { margin-top: 30px; width: 100%; }

.contact-form { padding: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-family: inherit;
    background: rgba(255,255,255,0.5);
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; }

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: var(--dark); color: white; padding: 80px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.brand-col .logo { color: white; display: inline-block; margin-bottom: 20px; }
.brand-col p { color: #94a3b8; line-height: 1.7; }
.footer-col h4 { font-family: var(--font-heading); margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-col ul a:hover { color: white; padding-left: 5px; }
.footer-link { display: inline-block; margin-top: 15px; color: var(--accent); text-decoration: none; font-weight: 600; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; color: #64748b; font-size: 0.9rem; }

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .article-layout, .contact-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { 
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh; 
        background: white; flex-direction: column; justify-content: center; 
        padding: 40px; transition: var(--transition); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; z-index: 1001; }
    .hero h1 { font-size: 2.2rem; }
    .stats-row { grid-template-columns: 1fr; }
    .sidebar { grid-template-columns: 1fr; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .section { padding: 60px 0; }
}