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

/* ==========================================================================
   CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Plus Jakarta Sans', sans-serif;

    /* Color Palette */
    --color-primary: #060097;
    --color-accent: #ffcd57;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-bg-white: #ffffff;
    --color-bg-light: #f9f6fe;
    --color-bg-gray: #f8fafc;
    --color-border: #e2e8f0;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #060097 0%, #8204ff 73%, #c10fff 100%);
    --gradient-accent: linear-gradient(135deg, #ffcd57 0%, #ffa500 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Spacing */
    --section-padding: 100px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.65;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    color: var(--color-text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Layout & Reusable Components
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--color-text-dark);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-text-dark);
}

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

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

.btn-outline:hover {
    background: var(--color-bg-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition-normal);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-normal);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Mobile Toggle button */
.mobile-menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-text-dark);
}

.mobile-menu-trigger svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding-top: 120px;
    display: flex;
    align-items: center;
    color: var(--color-bg-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-media {
    display: flex;
    justify-content: center;
    animation: fadeIn 1.2s ease;
}

.hero-media img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.15));
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    background-color: var(--color-bg-white);
    position: relative;
    z-index: 10;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-card {
    background: var(--color-bg-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(130, 4, 255, 0.2);
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: 50%;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--gradient-hero);
}

.feature-card:hover .feature-icon-wrapper img {
    filter: brightness(0) invert(1);
}

.feature-icon-wrapper img {
    width: 32px;
    height: 32px;
    transition: var(--transition-normal);
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.feature-desc {
    font-size: 0.95rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    background-color: var(--color-bg-gray);
}

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

.service-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

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

.service-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.08);
}

.service-content {
    padding: 30px;
}

.service-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background-color: var(--color-bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    margin-bottom: 24px;
    font-size: 2.5rem;
}

.about-text {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-media img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

/* ==========================================================================
   Reviews (Testimonials) Section
   ========================================================================== */
.reviews {
    background-color: var(--color-bg-light);
    text-align: center;
}

.review-container {
    max-width: 800px;
    margin: 0 auto;
}

.review-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin: 0 auto 30px;
    border: 4px solid var(--color-bg-white);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-quote {
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 24px;
    font-family: var(--font-heading);
}

.review-author {
    font-size: 1.1rem;
    color: var(--color-primary);
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */
.why-us {
    background-color: var(--color-bg-white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.why-us-card {
    text-align: center;
    padding: 20px;
}

.why-us-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background-color: var(--color-bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.why-us-icon-wrapper img {
    width: 40px;
    height: 40px;
}

.why-us-title {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.why-us-desc {
    font-size: 0.95rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ==========================================================================
   Contact CTA Section
   ========================================================================== */
.contact-cta {
    background: var(--gradient-hero);
    color: var(--color-bg-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.contact-cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--color-text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer img {
    width: 20px;
    height: auto;
}

.footer a {
    color: rgba(255, 255, 255, 0.85);
}

.footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-title { font-size: 3rem; }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-trigger {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--color-bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 40px;
        transform: translateX(-100%);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.25rem;
    }

    /* Grids to single columns */
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-media {
        order: -1; /* Image first on mobile */
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    
    .hero-title { font-size: 2.4rem; }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}
