/* ==========================================================================
   CSS Variables & Typography
   ========================================================================== */
   :root {
    --primary-color: #0f172a;       /* Slate 900 base */
    --primary-light: #1e293b;
    --accent-color: #0ea5e9;        /* Sky Blue 500 for trust/professionalism */
    --accent-light: #38bdf8;
    --accent-dark: #0284c7;
    --success: #10b981;             /* Emerald */
    --text-primary: #334155;        /* Slate 700 */
    --text-muted: #64748b;          /* Slate 500 */
    --bg-main: #ffffff;
    --bg-light: #f8fafc;            /* Slate 50 */
    --bg-dark: #0f172a;             /* Slate 900 */
    
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition-fast: 0.2s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -1px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.5px; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

a { text-decoration: none; color: var(--accent-color); transition: var(--transition-fast); }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.pd-y-lg { padding: 6rem 0; }
.mg-t { margin-top: 3rem; }

.text-center { text-align: center; }
.text-accent { color: var(--accent-color); }
.text-white { color: #ffffff; }

.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); }

.grid { display: grid; gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

/* Animations */
.hover-lift {
    transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.fade-in { opacity: 0; animation: fadeIn 1s forwards ease-out; }
.fade-in-up { opacity: 0; transform: translateY(20px); animation: fadeInUp 0.8s forwards ease-out; }

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
    color: white;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg { padding: 1rem 2.25rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: padding var(--transition-fast);
}

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

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.brand span { color: var(--accent-color); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}
.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}
.nav-links a:not(.btn):hover::after { width: 100%; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.hamburger {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.3s;
}

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

/* Background blob */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-grid { grid-template-columns: 1fr 1fr; align-items: center; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-content h1 { margin-bottom: 1.5rem; }
.hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 500px; }

.hero-actions { display: flex; gap: 1rem; margin-bottom: 3rem; }

.trust-indicators { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.trust-item .icon { color: var(--success); margin-right: 0.25rem; font-weight: bold; }

.hero-image { position: relative; display: flex; justify-content: center; }

.blob {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite, gradient 5s ease infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.decorative-card {
    position: absolute;
    bottom: 20px;
    left: -40px;
    width: 280px;
    z-index: 2;
    background: rgba(255,255,255,0.95);
}
.decorative-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.decorative-card p { font-size: 0.875rem; margin-bottom: 1rem; }

.chart-mockup { display: flex; align-items: flex-end; gap: 10px; height: 100px; padding-top: 10px; border-bottom: 2px solid var(--bg-light); }
.chart-mockup .bar { width: 40px; background: rgba(14, 165, 233, 0.2); border-radius: 4px 4px 0 0; transition: height 1s; }

/* ==========================================================================
   Cards & Sections Layout
   ========================================================================== */
.section-header { max-width: 700px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.125rem; }

.card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.services-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card-icon { font-size: 2.5rem; margin-bottom: 1.5rem; display: inline-block; padding: 1rem; background: var(--bg-light); border-radius: var(--radius-sm); }
.services .card h3 { margin-bottom: 1rem; }

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
    text-align: center;
}
.step-line {
    position: absolute;
    top: 30px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    z-index: 0;
}
.step { position: relative; z-index: 1; }
.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--accent-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 0 10px var(--bg-main);
}
.step h3 { margin-bottom: 1rem; }

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }
.why-content h2 { color: white; }
.why-content p { color: #cbd5e1; font-size: 1.125rem; margin-bottom: 2rem; }
.feature-list li { margin-bottom: 1rem; padding-left: 2rem; position: relative; color: #f8fafc; }
.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}
.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition-fast);
}
.stat-box:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.stat-box h3 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.stat-box p { color: #cbd5e1; margin: 0; font-weight: 500; }

/* ==========================================================================
   Proof / Sample Work
   ========================================================================== */
.proof-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.proof-card { position: relative; overflow: hidden; }
.proof-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--accent-color); }
.proof-tag { display: inline-block; padding: 0.25rem 0.75rem; background: var(--bg-light); color: var(--accent-dark); font-size: 0.75rem; font-weight: 600; border-radius: 50px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
.proof-card h3 { margin-bottom: 1rem; }
.proof-outcomes { margin-top: 1.5rem; border-top: 1px solid var(--bg-light); padding-top: 1.5rem; }
.proof-outcomes li { margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--text-primary); font-weight: 500; }

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.blog-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.blog-img { height: 200px; background-size: cover; background-position: center; background-color: var(--primary-light); }
.placeholder-bg1 { background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%); }
.placeholder-bg2 { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.placeholder-bg3 { background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%); }
.blog-content { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.blog-category { font-size: 0.75rem; font-weight: 700; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.75rem; }
.blog-content h3 { font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.4; }
.blog-content h3 a { color: var(--primary-color); }
.blog-content h3 a:hover { color: var(--accent-color); }
.blog-content p { margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { font-weight: 600; font-size: 0.9rem; }

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-methods { margin-top: 2rem; display: grid; gap: 1rem; }
.method-card { display: flex; align-items: center; padding: 1.5rem; border-radius: var(--radius-md); background: white; border: 1px solid rgba(0,0,0,0.05); color: var(--text-primary); }
.method-card:hover { transform: translateX(5px); box-shadow: var(--shadow-sm); border-color: rgba(0,0,0,0.1); }
.method-icon { font-size: 2rem; margin-right: 1.5rem; }
.method-card h4 { margin-bottom: 0.25rem; color: var(--primary-color); }
.method-card span { font-size: 0.875rem; color: var(--text-muted); }

.whatsapp { border-left: 4px solid #25D366; }
.email { border-left: 4px solid var(--accent-color); }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; color: var(--primary-color); }
.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: var(--bg-light);
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    background-color: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { padding: 4rem 0 2rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-links a { color: #cbd5e1; font-weight: 500; }
.footer-links a:hover { color: white; }
.copyright { color: #64748b; font-size: 0.875rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }

/* ==========================================================================
   Article Detail Page Enhancements
   ========================================================================== */
.article-header { padding-top: 150px; padding-bottom: 3rem; text-align: center; }
.article-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.article-content { max-width: 800px; margin: 0 auto; font-size: 1.125rem; line-height: 1.8; }
.article-content h2 { margin-top: 3rem; margin-bottom: 1.5rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content strong { color: var(--primary-color); }
.callout { background: rgba(14, 165, 233, 0.05); border-left: 4px solid var(--accent-color); padding: 1.5rem; margin: 2rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
.show-mobile { display: none; }

@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero::before { width: 400px; height: 400px; right: auto; left: 50%; transform: translateX(-50%); }
    .hero-actions { justify-content: center; }
    .trust-indicators { justify-content: center; }
    .decorative-card { left: auto; right: -20px; }
    
    .why-grid { grid-template-columns: 1fr; text-align: center; }
    .feature-list { text-align: left; display: inline-block; }
    
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at top right);
        transition: clip-path 0.4s ease-in-out;
        gap: 1.5rem;
    }
    .nav-links.active { clip-path: circle(150% at top right); }
    .menu-toggle { display: block; }
    .menu-toggle.active .hamburger:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .menu-toggle.active .hamburger:nth-child(2) { opacity: 0; }
    .menu-toggle.active .hamburger:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .steps-container { grid-template-columns: 1fr; gap: 2rem; }
    .step-line { display: none; }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    .hidden-mobile { display: none; }
    .show-mobile { display: block; }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .pd-y-lg { padding: 4rem 0; }
}

@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .blob { width: 300px; height: 300px; }
    .decorative-card { display: none; }
}
