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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* Visually hidden (accessible) */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.brand-mark { flex: 0 0 auto; }
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}
.brand-logo--header {
    transform: scale(4);
    transform-origin: left center;
    margin-right: 33px;
    margin-left: -44px;
}
.brand-logo--footer {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
    transform: scale(4);
    transform-origin: left center;
    margin-right: 39px;
    margin-left: -67px;
}

/* Footer brand container alignment */
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Brand text styling */
.brand-text {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    font-weight: 800;
    color: #808be5;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
}

/* Light variant for dark backgrounds (e.g., footer) */
.brand-text--light { 
    color: #ffffff;
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    margin-bottom: 4px;
}

.nav-menu { display: flex; list-style: none; gap: 1.25rem; align-items: center; }

.nav-menu a.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 10px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a.nav-link:hover,
.nav-menu a.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.06);
}

.nav-menu a:focus-visible { outline: 3px solid rgba(59,130,246,0.35); outline-offset: 2px; border-radius: 10px; }
.nav-cta-item { margin-left: 0.5rem; }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: #2563eb;
    background-image: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    color: #fff !important;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    line-height: 1;
    border: 1px solid rgba(37,99,235,0.2);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease, filter 0.2s ease;
}
.nav-cta:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}
.nav-cta:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.nav-cta:focus-visible {
    outline: 3px solid rgba(59,130,246,0.35);
    outline-offset: 2px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #111827;
    display: block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(1200px 600px at 0% -10%, rgba(37,99,235,0.06), transparent 60%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #0f172a;
    padding: 6rem 0 3.5rem; /* account for fixed navbar */
    position: relative;
    overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: center; }

.hero:before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 60vmax;
    height: 60vmax;
    background: radial-gradient(circle at center, rgba(37,99,235,0.08), transparent 55%);
    filter: blur(60px);
    z-index: 0;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1vw + 0.6rem, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
    color: #475569;
}



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

/* Hero slogan badge */
.hero-slogan {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(37,99,235,0.08), rgba(37,99,235,0.04));
    border: 1px solid rgba(37,99,235,0.18);
    color: #1f2937;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
    width: fit-content;
}
.hero-content .hero-slogan { margin-bottom: 14px; }
.slogan-accent {
    display: inline-grid;
    place-items: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.slogan-text { letter-spacing: 0.2px; }
.cta-button.secondary {
        background: transparent;
        color: #1f2937;
        border: 2px solid rgba(31,41,55,0.15);
        box-shadow: none;
    }
    .cta-button.secondary:hover { background: rgba(31,41,55,0.06); }

.cta-button {
        background: #2563eb;
        color: white;
        border: none;
        padding: 0.9rem 1.6rem;
        font-size: 1.05rem;
        font-weight: 700;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
    }

    .cta-button:hover { 
        transform: translateY(-1px); 
        box-shadow: 0 10px 28px rgba(37, 99, 235, 0.3); 
    }
    .cta-button:active { 
        transform: translateY(0); 
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25); 
    }

.hero-visual {
    display: grid;
    place-items: center;
    z-index: 1;
    perspective: 1000px;
    perspective-origin: 50% 40%;
}

.floating-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(1.25rem, 2vw, 2rem);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.08);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.floating-card::before {
    content: "";
    position: absolute;
    inset: -10% -10% -20% -10%;
    background: radial-gradient(circle at 30% 20%, rgba(59,130,246,0.18), transparent 60%);
    filter: blur(30px);
    transform: translateZ(-40px);
    pointer-events: none;
}

.floating-card::after {
    content: "";
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 26px;
    background: linear-gradient(90deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12));
    mask: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.15), transparent 40%);
    transform: translateZ(15px);
    pointer-events: none;
}

.card-content { position: relative; transform: translateZ(35px); }

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

.sales-metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    font-weight: 800;
    color: #2563eb;
    text-shadow: 0 6px 22px rgba(37, 99, 235, 0.25);
}

.metric-label {
    display: block;
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* Decorative 3D hero background orbs */
.hero::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -200px; bottom: -120px;
    background: radial-gradient(circle at center, rgba(14,165,233,0.18), transparent 60%);
    filter: blur(30px);
    transform: translateZ(-120px);
    pointer-events: none;
}

.hero-trust { color: #64748b; margin-top: 0.9rem; font-size: 0.95rem; }

/* Section Styles */
section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section-title {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
    color: #1f2937;
    letter-spacing: -0.3px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #6b7280;
    margin-bottom: 2.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* Services Section */
.services {
    background: #f8fafc;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 3rem;
    align-items: stretch;
}

.service-card {
    background: white;
    padding: clamp(1.75rem, 2.5vw, 2.5rem);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    border: 1px solid rgba(2, 6, 23, 0.06);
    /* Align content like the reference: icon centered, text left */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    gap: 0.25rem; /* consistent vertical rhythm */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    /* Reserve equal space so headings line up across cards */
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center the emoji/icon while keeping text left */
    align-self: center;
}

.service-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.service-features {
    list-style: none;
    text-align: left;
    display: grid;
    gap: 0.6rem;
}

.service-features li {
    color: #374151;
    position: relative;
    padding-left: 1.6rem;
    font-size: 1.05rem;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 800;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 3rem;
}

.case-study {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.case-study:hover {
    transform: translateY(-5px);
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.case-study-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
}

.case-study-tag {
    background: #dbeafe;
    color: #2563eb;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.case-study-content p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
}

.case-study-results {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

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

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

/* Why Us Section */
.why-us {
    background: #f8fafc;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1rem, 2.5vw, 2rem);
    margin-top: 3rem;
}

.why-us-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.why-us-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.why-us-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}

.why-us-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: start;
}

.contact-info h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    color: #10b981;
    font-weight: bold;
}

/* WhatsApp CTA (icon-only, classy) */
.whatsapp-cta {
    margin-top: 1rem;
    display: inline-grid;
    place-items: center;
    width: 48px; height: 48px;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(2,6,23,0.12);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.whatsapp-cta:hover { transform: translateY(-1px); filter: brightness(1.02); box-shadow: 0 10px 22px rgba(2,6,23,0.16); }
.whatsapp-cta:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(2,6,23,0.14); }
.whatsapp-icon { width: 22px; height: 22px; display: block; object-fit: contain; image-rendering: -webkit-optimize-contrast; }

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.submit-button {
    width: 100%;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: #131423;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero { padding-top: 7rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-content { text-align: center; }
    .hero-visual { order: -1; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: absolute;
        top: 64px;
        right: 16px;
        left: 16px;
        flex-direction: column;
        background: white;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 12px;
        padding: 8px;
        gap: 0.5rem;
        display: none;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        transform-origin: top right;
        animation: menuIn 240ms ease forwards;
    }
    .nav-menu.show { display: flex; }
    .nav-cta { width: 100%; text-align: center; }


@keyframes menuIn {
    from { opacity: 0; transform: scale(0.98) translateY(-8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
    .services-grid,
    .portfolio-grid,
    .why-us-grid { grid-template-columns: 1fr; }

    .contact-content { grid-template-columns: 1fr; }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-card,
    .case-study,
    .why-us-item { padding: 1.25rem; }

    .contact-form { padding: 1.25rem; }
}
