/* Modern Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #66A6D9;
    --primary-light: #91c2d8;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --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 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px 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);
}

* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 166, 217, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 166, 217, 0.4);
    color: white;
}

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

.btn-outline:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

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

.nav-link {
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
}

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

/* Hero Section */
.hero-section {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(145, 194, 216, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

.blob-1 {
    top: -100px;
    right: -100px;
}

.blob-2 {
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.hero-image-container {
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s infinite ease-in-out;
}

/* Cards */
.modern-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.modern-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
    transition: transform 0.3s;
}

.modern-card:hover .icon-box {
    transform: rotate(10deg) scale(1.1);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
}

/* Features Section */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse .feature-content {
    direction: ltr;
}

.feature-img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s;
}

.feature-img:hover {
    transform: scale(1.02);
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Form */
.contact-form-wrapper {
    background: white;
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.form-control {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s;
}

.form-control:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 166, 217, 0.1);
    outline: none;
}

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

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Mobile Menu Custom */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    /* Slide from right */
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.active {
    right: 0;
}

.mobile-nav-link {
    color: var(--dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: color 0.2s;
}

.mobile-nav-link:hover {
    color: var(--primary);
    padding-left: 5px;
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    margin-bottom: 1rem;
}

/* Form Elements Replacement */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.btn-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* Mobile Responsive */
.mobile-menu-btn {
    display: none !important;
}

@media (max-width: 991px) {

    .hero-grid,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .form-row {
        grid-template-columns: 1fr;
    }

    /* .hero-image-container { order: -1; } Removed: Image will now be below text */

    .feature-row.reverse {
        direction: ltr;
    }

    .navbar-nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .contact-form-wrapper {
        padding: 2rem !important;
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero-content p {
        font-size: 1rem !important;
    }

    .hero-content>div:first-child {
        font-size: 0.85rem !important;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 0.9rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .flex-wrap {
        flex-direction: column;
    }

    .hero-content>div:last-of-type {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .stat-value {
        font-size: 2.5rem !important;
    }

    .container {
        padding: 0 1rem;
    }
}