/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Palette */
    --bg: #f8fafc;            /* slate-50 */
    --bg-elev: #ffffff;       /* white */
    --text: #0f172a;          /* slate-900 */
    --text-muted: #475569;    /* slate-600 */
    --border: #e2e8f0;        /* slate-200 */
    --primary: #2563eb;       /* blue-600 */
    --primary-600: #1d4ed8;   /* blue-700 */
    --accent: #0ea5e9;        /* sky-500 */

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

img, svg { display: block; max-width: 100%; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.nav-logo h2 {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-toggle { display: none; }

/* Hero */
.hero {
    background: var(--bg);
    padding: 120px 0 80px;
    border-bottom: 1px solid var(--border);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.gradient-text { color: var(--primary); -webkit-text-fill-color: initial; }

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }

.btn-secondary { background: #fff; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }

.hero-visual { 
    position: relative; 
    height: 360px; 
    min-height: 300px;
}
.floating-card {
    position: absolute;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    padding: 20px;
    min-width: 180px;
    max-width: 200px;
}

.floating-card i { 
    color: var(--primary); 
    font-size: 22px; 
    margin-bottom: 8px; 
    display: block;
}
.floating-card h3 { 
    font-size: 16px; 
    font-weight: 600; 
    margin: 0;
}

.floating-card:nth-child(1) { top: 0; left: 0; }
.floating-card:nth-child(2) { top: 45%; right: 0; }
.floating-card:nth-child(3) { bottom: 0; left: 35%; }

/* Sections */
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.section-description { color: var(--text-muted); font-size: 18px; }

/* Services */
.services { padding: 72px 0; background: var(--bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: box-shadow 0.2s ease, transform 0.06s ease, border-color 0.2s ease;
}

.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dbe3ee; }

.service-icon {
    width: 56px; height: 56px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--primary); margin-bottom: 14px;
}

.service-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.service-card p { color: var(--text-muted); margin-bottom: 10px; }
.service-card ul { list-style: none; display: grid; gap: 6px; }
.service-card li { color: var(--text-muted); font-size: 14px; }

/* About */
.about { padding: 72px 0; }
.about-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.about-description { color: var(--text-muted); font-size: 18px; margin: 12px 0 24px; }

.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat h3 { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat p { color: var(--text-muted); font-weight: 600; font-size: 13px; }

.tech-stack { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.tech-stack h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.tech-items { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-item { background: #eef2ff; color: #3730a3; border: 1px solid #e0e7ff; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }

/* Contact (home section) */
.contact { padding: 72px 0; background: var(--bg); }
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; }
.contact-item i { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.contact-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.contact-item p { color: var(--text-muted); font-size: 14px; }

.contact-form { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.form-group { margin-bottom: 12px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
    background: #fff; font-size: 14px; color: var(--text); font-family: inherit; transition: border-color 0.15s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 40px 0 20px; margin-top: 40px; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 12px; }
.footer-section h3, .footer-section h4 { color: #e2e8f0; margin-bottom: 10px; }
.footer-section p, .footer-section a { color: #94a3b8; text-decoration: none; }
.footer-section a:hover { color: #e2e8f0; }
.footer-bottom { border-top: 1px solid #1f2a44; text-align: center; padding-top: 12px; color: #94a3b8; }

/* Pages */
.page-header { padding: 120px 0 64px; background: var(--bg); border-bottom: 1px solid var(--border); text-align: center; }
.page-header h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 10px; }
.page-header p { color: var(--text-muted); font-size: 18px; }

/* Services page highlight */
.services-showcase { margin-top: 28px; }
.service-highlight { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; box-shadow: var(--shadow-sm); }
.service-visual { display: grid; gap: 16px; }
.service-icon-large { width: 96px; height: 96px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: #fff; margin: 0 auto; }
.service-icon-large i { font-size: 34px; }
.service-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-item { background: #f1f5f9; border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.stat-number { font-size: 22px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.service-content h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.service-content p { color: var(--text-muted); margin-bottom: 14px; }
.service-areas { display: grid; gap: 10px; }
.area-item { display: flex; gap: 10px; background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.area-item i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #e2e8f0; color: #0f172a; }
.area-item h4 { font-size: 15px; font-weight: 700; }
.area-item p { color: var(--text-muted); font-size: 14px; }

/* Services: process & pricing */
.development-process { padding: 72px 0; background: var(--bg); }
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.process-step { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }
.step-number { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; margin: 0 auto 10px; }
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step-content p { color: var(--text-muted); font-size: 14px; }

.pricing { padding: 72px 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.pricing-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.pricing-card.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.pricing-badge { display: inline-block; background: var(--primary); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.pricing-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.price { font-size: 28px; font-weight: 800; color: var(--primary); margin-bottom: 14px; }
.pricing-features ul { list-style: none; display: grid; gap: 8px; margin-bottom: 16px; }
.pricing-features li { color: var(--text-muted); font-size: 14px; }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-muted); }

/* Contact page */
.contact-page { padding: 72px 0; }
.contact-info h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.contact-intro { color: var(--text-muted); margin-bottom: 20px; }
.contact-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 18px; }
.social-icons { display: flex; gap: 10px; }
.social-link { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #e2e8f0; color: #0f172a; text-decoration: none; }
.social-link:hover { background: #cbd5e1; }
.contact-form-section { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-group { display: flex; gap: 8px; align-items: flex-start; }
.checkbox-label { color: var(--text-muted); font-size: 14px; }
.privacy-link { color: var(--primary); text-decoration: none; }

/* CTA */
.cta-section { padding: 64px 0; background: #eef2ff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.cta-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.cta-content p { color: var(--text-muted); margin-bottom: 14px; }
.cta-section .btn { background: var(--primary); color: #fff; }
.cta-section .btn:hover { background: var(--primary-600); }

/* Utilities */
html { scroll-behavior: smooth; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .about-content, .service-highlight { 
        grid-template-columns: 1fr; 
        gap: 32px;
    }
    .hero-visual { 
        height: auto; 
        min-height: 200px;
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .floating-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    .nav-menu {
        position: fixed; left: -100%; top: 72px; width: 100%; background: #fff; border-bottom: 1px solid var(--border);
        display: flex; flex-direction: column; gap: 0; padding: 12px 0; box-shadow: var(--shadow-sm);
    }
    .nav-menu.active { left: 0; }
    .nav-toggle { display: flex; flex-direction: column; gap: 5px; cursor: pointer; }
    .bar { width: 24px; height: 2px; background: var(--text); }

    .hero { padding: 80px 0 40px; }
    .hero-title { font-size: 32px; }
    .section-title { font-size: 24px; }
    .page-header { padding: 80px 0 32px; }
    .page-header h1 { font-size: 28px; }
    
    .contact-content, .services-grid, .about-stats, .service-stats, .form-row { 
        grid-template-columns: 1fr; 
        gap: 16px;
    }
    
    .about-content { gap: 24px; }
    .service-highlight { padding: 20px; }
}
