:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --accent-color: #ff6b6b;
    --success-color: #20c997;
    --warning-color: #ffc107;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

/* Header Styles */
.brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.top-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.navbar {
    padding: 10px 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(78, 84, 200, 0.1);
}

/* Hero Slider */
.carousel-item {
    height: 80vh;
    min-height: 500px;
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    filter: brightness(0.7);
}

.carousel-caption {
    bottom: 30%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(78, 84, 200, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
section {
    padding: 80px 0;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3436, #000);
}

.social-icons a {
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
    color: var(--primary-color) !important;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Contact Form */
.contact-info i {
    width: 40px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Captcha */
.captcha-container {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    font-weight: bold;
    letter-spacing: 3px;
    border-radius: 5px;
    user-select: none;
}

.captcha-text {
    font-size: 1.2rem;
    font-family: 'Courier New', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-item {
        height: 60vh;
        min-height: 400px;
    }

    section {
        padding: 60px 0;
    }

    .navbar-nav {
        text-align: center;
        background: white;
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h2 {
        font-size: 1.5rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--secondary-color), var(--primary-color));
}

/* ============================================
   FIX HEADER GAP - MINIMAL FIXES ONLY
   ============================================ */

/* Fix the gap by targeting the first section after header */
.hero-slider {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove any default margin from carousel */
.carousel {
    margin-top: 0 !important;
}

/* Ensure carousel starts right after navbar */
.navbar+.hero-slider {
    margin-top: 0 !important;
}

/* Remove any potential spacing from section */
section {
    padding-top: 0 !important;
}

/* Target only the home page carousel */
#mainCarousel {
    margin: 0 !important;
    padding: 0 !important;
}

/* For mobile: ensure no gap */
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 0 !important;
    }

    .carousel {
        margin-top: 0 !important;
    }
}