/* Reset & Base Styles */
:root {
    --primary: #0598e5; /* User requested primary color */
    --primary-dark: #0476B3;
    --secondary: #009FE3; /* Sky Blue from logo */
    --secondary-light: #E0F7FA;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(65, 105, 225, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: white;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 20px;
}

.top-info a {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.top-info a:hover {
    color: var(--secondary);
}

.top-social {
    display: flex;
    gap: 15px;
}

.top-social a {
    transition: var(--transition);
}

.top-social a:hover {
    color: var(--secondary);
}

/* Header */
.header {
    background-color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.logo img {
    height: 55px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    z-index: 100;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 25px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Slider Section */
.hero-slider-section {
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    height: 600px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-content {
    flex: 1;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.hero-slide.active .hero-visual {
    transform: scale(1);
    opacity: 1;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 3/4;
    object-fit: cover;
    /* Modern geometric shape/mask */
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 40px rgba(5, 152, 229, 0.15); /* Updated to match new primary color */
    animation: blob-float 8s ease-in-out infinite;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: var(--primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
    transition: var(--transition);
    opacity: 0;
}

.hero-slider-section:hover .slider-control {
    opacity: 1;
}

.slider-control:hover {
    background: var(--primary);
    color: white;
}

.slider-control.prev { left: 30px; }
.slider-control.next { right: 30px; }

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

@keyframes blob-float {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(0); }
    50% { border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%; transform: translateY(-15px); }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: translateY(0); }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections Base */
.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Service Grid */
.services-grid {
    display: grid;
    /* 3 columns on desktop to comfortably fit 6 items */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    z-index: -1;
    transform: translateY(100%);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(65, 105, 225, 0.15);
}

.service-card:hover::before {
    transform: translateY(0);
}

.service-card:hover h3, 
.service-card:hover p, 
.service-card:hover .service-icon {
    color: white;
}

.service-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    color: var(--text-muted);
    transition: var(--transition);
}

/* Why Choose Us & Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.stat-item {
    padding: 30px 20px;
    text-align: center;
    border-right: 1px solid var(--bg-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.video-section {
    margin-top: 60px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
}

.video-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 35, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.play-btn {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.play-btn:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* Case Studies Slider */
.cases-slider {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px 0 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-light);
}

.cases-slider::-webkit-scrollbar {
    height: 8px;
}

.cases-slider::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

.cases-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.case-card {
    min-width: 350px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    scroll-snap-align: start;
}

.case-images {
    display: flex;
    height: 200px;
}

.case-single-image {
    height: 250px;
    width: 100%;
}

.case-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-images div {
    flex: 1;
    position: relative;
}

.case-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.case-info {
    padding: 20px;
    text-align: center;
}

.case-info h4 {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Footer & Appointment */
.footer-wrapper {
    background-color: #1A1A1A;
    color: white;
}

.footer-top {
    display: flex;
    gap: 50px;
    padding: 60px 0;
}

.footer-appointment {
    flex: 1;
    background: white;
    color: var(--text-main);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 -20px 40px rgba(0,0,0,0.2);
    transform: translateY(-80px);
}

.footer-appointment h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.quick-form .form-group {
    margin-bottom: 15px;
}

.quick-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-light);
}

.quick-form .form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.footer-info {
    flex: 1;
}

.footer-info h4 {
    color: white;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.footer-info p {
    color: #bbb;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links {
    margin-top: 30px;
}

.footer-links a {
    display: block;
    color: #bbb;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-map {
    margin-top: 30px;
    border-radius: 8px;
    overflow: hidden;
    height: 150px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-slider-container {
        height: 850px;
    }
    
    .hero-container, .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content {
        text-align: center;
        padding-top: 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        border-bottom: 1px solid var(--bg-light);
    }
    
    .footer-appointment {
        transform: translateY(0);
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header .btn {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        max-height: 0;
        overflow: hidden;
        transition: var(--transition);
    }
    
    .nav.active {
        max-height: 500px;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }
    
    .nav-link {
        padding: 15px 20px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: var(--bg-light);
    }
    
    .nav-item:hover .dropdown-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image {
        max-width: 320px;
    }
    
    .hero-slider-container {
        height: 800px;
    }
    
    .slider-control {
        display: none; /* Hide arrows on mobile to save space, dots will be used */
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        border-right: none;
    }
}
