/* Base Styles & Variables */
:root {
    --primary: #0ca6e9;
    --primary-light: #3fd3ff;
    --primary-dark: #0284c7;
    --secondary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --background: #ffffff;
    --bg-alt: #f8fafc;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --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-glow: 0 0 20px rgba(12, 166, 233, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--secondary);
    line-height: 1.2;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(12, 166, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(12, 166, 233, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #eaeaea;
    /* Match logo background */
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 110px;
    padding: 0.2rem 2rem;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    min-height: 80px;
    padding: 0.1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
}

.navbar.scrolled .logo-img {
    height: 85px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.lang-switch:hover {
    color: var(--primary);
}

.lang-switch.mobile-lang {
    color: var(--primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-phone-center {
    display: none;
}

.sticky-mobile-cta {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 600;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    padding-top: 150px;
    padding-bottom: 10rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    margin-top: 80px;
    /* Offset for navbar */
}

/* Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.65));
    z-index: 1;
}

.relative-z {
    position: relative;
    z-index: 2;
}

/* Hero Section */
.hero-image-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 400px;
    margin-top: 110px;
    /* Accounts for navbar height */
    background: url('hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 5px solid var(--primary);
}

.hero-section {
    padding: 6rem 0;
    background-color: var(--background);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(12, 166, 233, 0.25);
    color: var(--primary-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(12, 166, 233, 0.4);
    backdrop-filter: blur(5px);
}

.hero-slider-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.highlight {
    color: var(--primary);
}

.hero-slider-section p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-slider-section .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

.hero-slider-section .btn-secondary:hover {
    background-color: var(--white);
    color: var(--secondary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.star {
    color: #facc15;
    font-size: 1.2rem;
    margin-left: 4px;
}

.stat-label {
    font-size: 1rem;
    color: #cbd5e1;
}

/* Services */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(12, 166, 233, 0.3);
}

.service-img-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    box-shadow: none;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.learn-more {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-card:hover .learn-more {
    gap: 0.75rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Service Detail Page Premium Styles */
.service-hero {
    padding: 160px 0 80px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
    text-align: center;
}

.service-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(12, 166, 233, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.service-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.service-main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
    margin-bottom: 4rem;
}

.service-grid-details {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
}

.service-content-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.service-content-card h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-weight: 500;
}

.service-feature-item i {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.sidebar-card {
    background: var(--secondary);
    color: var(--white);
    padding: 3rem;
    border-radius: 24px;
    position: sticky;
    top: 120px;
}

.sidebar-card h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.process-steps {
    margin: 3rem 0;
}

.process-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e2e8f0;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.bg-light {
    background-color: #f8fafc;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .service-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    .logo {
        margin-right: 0;
        margin-left: 0;
        order: 1;
    }

    .nav-container {
        position: relative;
        justify-content: space-between !important;
    }

    .mobile-phone-center {
        display: none !important;
    }

    .sticky-mobile-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 0.8rem;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        z-index: 10000;
        justify-content: center;
        align-items: center;
        border-top: 2px solid var(--primary);
    }

    .sticky-mobile-cta a {
        color: var(--primary);
        font-weight: 700;
        text-decoration: none;
        font-size: 1.4rem;
        font-family: 'Outfit', sans-serif;
        letter-spacing: -0.01em;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    /* Add padding to bottom of body on mobile to prevent content being hidden behind sticky bar */
    body {
        padding-bottom: 70px;
    }

    .logo-img {
        height: 80px;
    }

    .navbar.scrolled .logo-img {
        height: 70px;
    }

    .hero-slider-section h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    /* Service Detail Mobile Fixes */
    .service-hero {
        padding: 120px 0 40px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .service-main-image {
        height: 300px;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .service-grid-details {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .service-content-card {
        padding: 1.5rem;
    }

    .service-content-card h2 {
        font-size: 1.6rem;
    }

    .service-feature-list {
        grid-template-columns: 1fr;
    }

    .sidebar-card {
        padding: 2rem;
        position: static;
    }
}