@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@700;800&display=swap');

:root {
    --brand-primary: #2563eb;
    --brand-secondary: #0f172a;
    --brand-accent: #22c55e;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass: rgba(255, 255, 255, 0.7);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Entrance Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Glassmorphism floating button --- */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 60px;
    height: 60px;
    background: var(--brand-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(34, 197, 94, 0.4);
    text-decoration: none;
    font-size: 24px;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.fab:hover {
    transform: scale(1.1) rotate(10deg);
}

/* --- Modern Card Styling --- */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-card {
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

/* --- Testimonials --- */
.testimonial-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 60px;
    color: var(--brand-primary);
    opacity: 0.1;
    font-family: serif;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: var(--brand-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- Stats --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-primary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
}

h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-secondary);
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header & Nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--brand-secondary);
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(135deg, var(--brand-primary), #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--brand-primary);
}

/* --- Header dropdown --- */
.main-nav .dropdown {
    position: relative;
    display: inline-block;
}
.main-nav .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 600;
    text-decoration: none;
}
.main-nav .dropdown-toggle:hover,
.main-nav .dropdown-toggle:focus {
    color: var(--brand-primary);
}
.main-nav .dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--surface);
    min-width: 220px;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(2,6,23,0.08);
    padding: 6px;
    z-index: 200;
}
.main-nav .dropdown-content a {
    display: block;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
}
.main-nav .dropdown-content a:hover,
.main-nav .dropdown-content a:focus {
    background: var(--bg-light);
    color: var(--brand-primary);
}
.main-nav .dropdown:hover .dropdown-content,
.main-nav .dropdown:focus-within .dropdown-content {
    display: block;
}

/* Mobile — make dropdown expand inside the vertical nav */
@media (max-width: 768px) {
    .main-nav .dropdown-content {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 12px;
        display: none;
    }
    .main-nav .dropdown.open .dropdown-content {
        display: block;
    }
    .main-nav .dropdown-content a { padding: 8px 0; color: var(--text-muted); }
}

.whatsapp-pill {
    background: var(--brand-accent);
    color: white;
    padding: 10px 20px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
} 

.whatsapp-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.3);
}

/* --- Hero Section --- */
.hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
                radial-gradient(circle at bottom left, rgba(34, 197, 94, 0.05), transparent 40%);
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-primary);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    color: var(--brand-secondary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: var(--brand-primary);
}

/* --- Services Grid --- */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--surface);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--brand-primary);
    color: white;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* --- Footer --- */
.site-footer {
    background: var(--brand-secondary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    font-weight: 800;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.copyright {
    padding-top: 40px;
    border-top: 1px solid #1e293b;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--brand-secondary);
}

/* container padding for medium screens */
@media (max-width: 1024px) {
    .container { padding: 0 20px; }
}

@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .header-inner {
        gap: 12px;
        flex-wrap: wrap;
        align-items: center;
    }

    .logo { font-size: 1rem; }
    .logo img { width: 36px; height: 36px; }

    /* hide the WhatsApp pill on smaller screens to avoid header overflow */
    .whatsapp-pill { display: none; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px;
        flex-direction: column;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 90;
    }

    .main-nav.open { display: flex; }
    .menu-toggle { display: block; }

    /* Hero & typography scaling */
    .hero { padding: 60px 0; }
    .hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
    .hero p { font-size: 1rem; }

    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 1rem; }

    /* Services — stack, reduce padding & image height */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-card { padding: 24px; }
    .service-image { height: 160px; margin-bottom: 16px; border-radius: var(--radius-md); }
    .icon-box { width: 56px; height: 56px; font-size: 22px; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.95rem; }
    .service-card:hover { transform: none; box-shadow: var(--shadow-sm); }

    /* Other components */
    .testimonial-card { padding: 20px; }
    .stat-number { font-size: 2rem; }

    .btn-group { flex-direction: column; }
    .btn { width: 100%; padding: 12px 18px; }

    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 480px) {
    .hero { padding: 48px 0; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 1rem; }

    .service-image { height: 140px; }
    .icon-box { width: 48px; height: 48px; font-size: 20px; }

    .header-inner { padding: 8px 0; }
    .logo img { width: 32px; height: 32px; }

    .btn { padding: 10px 14px; }
    .stat-number { font-size: 1.6rem; }
    .testimonial-card::before { font-size: 40px; left: 12px; }
}

/* --- Image & Layout Enhancements --- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?auto=format&fit=crop&q=80&w=2000') no-repeat center center;
    background-size: cover;
    color: white;
}

.hero h1, .hero p {
    color: white;
}

.hero .badge {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.img-fluid {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    height: 300px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
}
