/* Import Fonts - Updated to match brand logo */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --brand-light: #3b82f6;
    --brand-default: #2563eb;
    --brand-dark: #1e3a8a;
    --brand-accent: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --transition-base: all 0.3s ease;
}

/* Base Styles */
body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Heading Styles - Match Logo Brand */
h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
}

/* ===== Glass Navigation ===== */
.glass-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* ===== Hero Gradient ===== */
.hero-gradient {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 50%, #dbeafe 100%);
    position: relative;
}

/* ===== Text Gradient ===== */
.text-gradient {
    background: linear-gradient(to right, #2563eb, #1e3a8a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Card Hover Effects ===== */
.card-hover {
    transition: var(--transition-base);
    will-change: transform;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ===== Blob Animations ===== */
@keyframes blob {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== Form Styles ===== */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: var(--transition-base);
    background: white;
    color: var(--gray-800);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-default);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input::placeholder {
    color: var(--gray-600);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-error.active {
    display: block;
}

.form-input.error {
    border-color: #dc2626;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 9999px;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-dark);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    background: var(--brand-default);
    box-shadow: 0 20px 25px -5px rgba(30, 58, 138, 0.3);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--brand-default);
}

/* ===== Loading Spinner ===== */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Success/Error Messages ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.alert.active {
    display: flex;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ===== Mobile Navigation ===== */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 40;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--gray-800);
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.mobile-menu a:hover {
    background: var(--gray-100);
    color: var(--brand-default);
}

.mobile-menu .btn-primary {
    color: white !important;
}

.mobile-menu .btn-primary:hover {
    background: var(--brand-default) !important;
    color: white !important;
}

/* ===== Active Navigation Link ===== */
.nav-link-active {
    color: var(--brand-default) !important;
    position: relative;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-default);
}

/* ===== Section Divider ===== */
.section-divider {
    width: 80px;
    height: 4px;
    background: var(--brand-default);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* ===== Stats Counter ===== */
.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-default);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* ===== Image Zoom Effect ===== */
.image-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.image-zoom img {
    transition: transform 0.7s ease;
    will-change: transform;
}

.image-zoom:hover img {
    transform: scale(1.05);
}

/* ===== Testimonial Card ===== */
.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
}

.testimonial:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* ===== FAQ Accordion ===== */
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem 0;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-base);
    background: none;
    border: none;
    font-size: 1.125rem;
}

.faq-question:hover {
    color: var(--brand-default);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--gray-600);
    line-height: 1.6;
}

.faq-answer.active {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.active {
    transform: rotate(180deg);
}

/* ===== Responsive Utilities ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }

    .mobile-menu a {
        font-size: 1.125rem;
    }
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Focus Visible for Accessibility ===== */
*:focus-visible {
    outline: 2px solid var(--brand-default);
    outline-offset: 2px;
}

/* ===== Print Styles ===== */
@media print {

    .glass-nav,
    .mobile-menu,
    footer {
        display: none;
    }
}