:root {
    --primary-hue: 220;
    --primary: hsl(var(--primary-hue), 90%, 54%);
    /* Royal Blue */
    --primary-dark: hsl(var(--primary-hue), 90%, 35%);
    --secondary: #0f172a;
    /* Slate 900 */
    --text-main: #334155;
    /* Slate 700 */
    --text-light: #64748b;
    /* Slate 500 */
    --bg-body: #f8fafc;
    /* Slate 50 */
    --white: #ffffff;
    --accent-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);

    --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-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --container-width: 1200px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

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

img,
svg {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4 {
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    display: inline-block;
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn-nav {
    background: var(--secondary);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: var(--white);
    overflow: hidden;
}

/* Background Abstract Shape */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(29, 78, 216, 0.1) 100%);
    border-radius: 50% 0 0 50%;
    transform: skewX(-12deg);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 20px -3px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

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

.hero-image {
    position: relative;
}

.image-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #ffffff, #f1f5f9);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.image-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.image-card img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

/* Stats Ribbon */
.stats-section {
    background: var(--secondary);
    padding: 3rem 0;
    color: var(--white);
}

.stats-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Services / Features */
.features-section {
    min-height: 100vh;
    padding: 3rem 0;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-section {
    min-height: 100vh;
    padding: 3rem 0;
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.badge {
    display: inline-block;
    background: #dbeafe;
    color: var(--primary);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-link:hover {
    gap: 0.75rem;
}

/* Email CTA Section */
.cta-section {
    padding: 6rem 0;
}

.cta-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    background: var(--gradient, linear-gradient(120deg, #1e3a8a 0%, #3b82f6 100%));
    border-radius: 24px;
    padding: 5rem 3rem;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Abstract circles for CTA bg */
.cta-container::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    border: 40px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 5;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    background: var(--white);
    border-top: 1px solid #e2e8f0;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 3rem auto 0;
    padding: 2rem 2rem 0;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive & Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--secondary);
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    display: block;
}

@media (max-width: 968px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        margin: 0 auto 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        justify-content: center;
    }

    .stats-container {
        grid-template-columns: 1fr 1fr;
    }

    .image-card {
        max-width: 600px;
        margin: 0 auto;
        transform: none;
    }

    .image-card:hover {
        transform: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Mobile Menu Logic */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(12px);
    }

    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-container {
        padding: 0 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.about-header badge {
    background: #f1f5f9;
    color: #475569;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.about-card {
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.about-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-main);
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem !important;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .cta-container {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-white {
        width: 100%;
        display: block;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}