/* Custom CSS Variables */
:root {
    --primary-color: 210 100% 45%; /* #0066CC */
    --secondary-color: 210 15% 25%; /* #3A4A5C */
    --accent-color: 195 100% 50%; /* #00BFFF */
    --background-light: 210 11% 98%; /* #F5F7FA */
    --background-white: 0 0% 100%; /* #FFFFFF */
    --text-dark: 210 15% 15%; /* #1E2A3A */
    --text-muted: 210 10% 45%; /* #6B7A8C */
    --text-light: 0 0% 100%; /* #FFFFFF */
    --border-color: 210 15% 85%; /* #D1D9E6 */
    --shadow-light: 210 25% 5% / 0.1; /* rgba(13, 19, 33, 0.1) */
    --shadow-medium: 210 25% 5% / 0.15; /* rgba(13, 19, 33, 0.15) */
    --shadow-heavy: 210 25% 5% / 0.25; /* rgba(13, 19, 33, 0.25) */
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: hsl(var(--text-dark));
    background-color: hsl(var(--background-white));
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.display-4, .display-5 {
    font-weight: 700;
}

.lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Custom Bootstrap Overrides */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: hsl(210 100% 40%);
    border-color: hsl(210 100% 40%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px hsl(var(--shadow-medium));
}

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

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

.btn-outline-light {
    border-color: hsl(var(--text-light));
    color: hsl(var(--text-light));
}

.btn-outline-light:hover {
    background-color: hsl(var(--text-light));
    border-color: hsl(var(--text-light));
    color: hsl(var(--primary-color));
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    background-color: hsl(var(--primary-color)) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px hsl(var(--shadow-light));
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--text-light)) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    color: hsl(var(--text-light)) !important;
}

.navbar-nav .nav-link:hover {
    background-color: hsla(var(--text-light) / 0.1);
    transform: translateY(-1px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(210 100% 35%) 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="300" cy="700" r="120" fill="url(%23a)"/><circle cx="700" cy="800" r="80" fill="url(%23a)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, hsla(var(--primary-color) / 0.1) 0%, hsla(var(--accent-color) / 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border-radius: 1rem;
    box-shadow: 0 20px 40px hsl(var(--shadow-heavy));
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Services Section */
.bg-light {
    background-color: hsl(var(--background-light)) !important;
}

.service-card {
    background: hsl(var(--background-white));
    border-radius: 1rem;
    padding: 0;
    box-shadow: 0 5px 20px hsl(var(--shadow-light));
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid hsl(var(--border-color));
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px hsl(var(--shadow-medium));
}

.service-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-content {
    padding: 2rem;
    position: relative;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(var(--accent-color)) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px hsl(var(--shadow-light));
    position: absolute;
    top: -30px;
    left: 2rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: hsl(var(--text-light));
}

.service-content h3 {
    margin-top: 2rem;
    color: hsl(var(--text-dark));
}

.service-content ul li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* About Section */
.about-image img {
    border-radius: 1rem;
    box-shadow: 0 10px 30px hsl(var(--shadow-medium));
}

.stat-item {
    padding: 1rem;
    border-radius: 0.5rem;
    background: hsl(var(--background-light));
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px hsl(var(--shadow-light));
}

.stat-number {
    color: hsl(var(--primary-color));
}

.why-choose-us ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid hsl(var(--border-color));
}

.why-choose-us ul li:last-child {
    border-bottom: none;
}

/* Contact Section */
.bg-primary {
    background: linear-gradient(135deg, hsl(var(--primary-color)) 0%, hsl(210 100% 35%) 100%) !important;
}

.contact-item {
    padding: 2rem 1rem;
    border-radius: 1rem;
    background: hsla(var(--text-light) / 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid hsla(var(--text-light) / 0.2);
}

.contact-item:hover {
    background: hsla(var(--text-light) / 0.15);
    transform: translateY(-3px);
}

.contact-icon i {
    opacity: 0.9;
}

/* Footer */
.bg-dark {
    background-color: hsl(var(--secondary-color)) !important;
}

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

/* Section Padding */
section {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .service-icon {
        left: 1.5rem;
    }
    
    .contact-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-icon {
        left: 1rem;
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Selection */
::selection {
    background-color: hsl(var(--accent-color));
    color: hsl(var(--text-light));
}

::-moz-selection {
    background-color: hsl(var(--accent-color));
    color: hsl(var(--text-light));
}

/* Focus Styles */
.btn:focus,
.nav-link:focus {
    outline: 2px solid hsl(var(--accent-color));
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: hsl(var(--background-light));
}

::-webkit-scrollbar-thumb {
    background: hsl(var(--primary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: hsl(210 100% 40%);
}
