/* Custom Header and Footer Colors - Enhanced Color Scheme */
.custom-header {
    background: linear-gradient(135deg, #168bd6 0%, #36344D 100%) !important;
    padding: 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
}

.custom-footer {
    background: linear-gradient(135deg, #168bd6 0%, #36344D 100%) !important;
    position: relative;
    z-index: 1;
    padding: 30px 0 20px;
    margin-top: auto;
    border-top: 3px solid #168bd6;
}

/* Footer Text Styling */
.custom-footer p {
    color: #ecf0f1 !important;
    margin: 0;
    font-size: 1rem;
}

.custom-footer a {
    color: #3498db !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.custom-footer a:hover {
    color: #168bd6 !important;
    text-decoration: underline;
}

/* Navbar Brand - Larger Logo */
.navbar-brand {
    padding: 8px 0;
    margin-right: 30px;
}

.navbar-brand img {
    height: 65px !important; /* Increased logo size */
    width: auto;
    transition: all 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Navbar Text Colors */
.custom-header .navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 25px 20px !important;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-header .navbar-nav .nav-link:hover {
    color: #f8f9fa !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Underline Animation Effect - Enhanced */
.custom-header .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 4px;
    bottom: 20px;
    left: 50%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.custom-header .navbar-nav .nav-link:hover::after {
    width: 85%;
}

.custom-header .navbar-nav .nav-link.active::after {
    width: 85%;
    background: linear-gradient(90deg, #ffd700, #ffed4e);
    box-shadow: 0 2px 12px rgba(255, 215, 0, 0.4);
}

/* Active State Styling */
.custom-header .navbar-nav .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Navbar Container */
.custom-header .container {
    padding: 0 15px;
}

/* Navbar Toggler - Enhanced */
.custom-header .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.custom-header .navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.custom-header .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.custom-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Mobile Menu Styling */
@media (max-width: 991.98px) {
    .custom-header .navbar-nav {
        padding: 15px 0;
        text-align: center;
        background: linear-gradient(135deg, #168bd6 0%, #36344D 100%);
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
    
    .custom-header .navbar-nav .nav-link {
        padding: 15px 20px !important;
        margin: 5px 0;
        border-radius: 8px;
    }
    
    .custom-header .navbar-nav .nav-link::after {
        bottom: 10px;
        height: 3px;
    }
    
    .navbar-brand img {
        height: 55px !important;
    }
    
    .custom-header {
        padding: 5px 0;
    }
}

/* Body Styling - FIXED THE GAP ISSUE */
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Arial', sans-serif;
    padding-top: 0 !important; /* REMOVED the 80px padding that was causing the gap */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main content wrapper */
.main-content {
    flex: 1;
    margin-top: 80px; /* Add margin only to main content, not the entire body */
}

/* Fullscreen Image Styles - Home Page */
.fullscreen-image {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* Account for fixed navbar */
    overflow: hidden;
    margin-top: 0; /* Ensure no additional margin */
}

.fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image Overlay Content */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
}

.image-overlay h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.image-overlay .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.image-overlay h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* ===== CAROUSEL STYLES ===== */
/* Fullscreen Carousel Styles */
.fullscreen-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - 80px); /* Account for fixed navbar */
    overflow: hidden;
    margin-top: 0;
}

.fullscreen-carousel .carousel-inner,
.fullscreen-carousel .carousel-item {
    height: 100%;
}

.fullscreen-carousel .fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Caption Styling */
.fullscreen-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fullscreen-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    animation: fadeInUp 0.8s ease;
}

.fullscreen-carousel .carousel-caption .lead {
    font-size: 1.0rem;
    margin-bottom: 0;
    color: #f8f9fa;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    animation: fadeInUp 1s ease;
}

/* Carousel Controls Styling */
.fullscreen-carousel .carousel-control-prev,
.fullscreen-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(22, 139, 214, 0.8);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.fullscreen-carousel .carousel-control-prev:hover,
.fullscreen-carousel .carousel-control-next:hover {
    background: rgba(22, 139, 214, 1);
    transform: translateY(-50%) scale(1.1);
}

.fullscreen-carousel .carousel-control-prev {
    left: 20px;
}

.fullscreen-carousel .carousel-control-next {
    right: 20px;
}

/* Carousel Indicators Styling */
.fullscreen-carousel .carousel-indicators {
    bottom: 30px;
    margin: 0;
}

.fullscreen-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.fullscreen-carousel .carousel-indicators button.active {
    background-color: #168bd6;
    transform: scale(1.2);
    border-color: white;
}

.fullscreen-carousel .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Carousel Item Animation */
.carousel-item {
    transition: transform 1.2s ease-in-out;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Page Styles */
.about-hero {
    position: relative;
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../img/about3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 80px; /* Account for fixed navbar */
}

.about-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero .lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.about-hero img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 5px solid rgba(255,255,255,0.1);
}

/* Fullscreen Image Section for About Page */
.fullscreen-image-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px; /* Account for fixed navbar */
}

.fullscreen-image-section .fullscreen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fullscreen-image-section .image-overlay {
    background: rgba(0, 0, 0, 0.5);
}

/* Statistics Items */
.stat-item {
    padding: 20px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.stat-item p {
    font-size: 1.1rem;
    color: #f8f9fa;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Feature Icons */
.feature-icon {
    color: #2c3e50;
}

/* Container max width */
.container {
    max-width: 1200px;
}

/* Navigation active state */
.navbar-nav .nav-link.active {
    font-weight: bold;
    color: #fff !important;
}

/* Zig Zag Section Styles */
.zigzag-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.zigzag-item {
    margin-bottom: 80px;
}

.zigzag-item:last-child {
    margin-bottom: 0;
}

.zigzag-img-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.zigzag-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.zigzag-img-container:hover .zigzag-img {
    transform: scale(1.05);
}

.zigzag-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}

.zigzag-img-overlay h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.zigzag-content {
    padding: 30px;
}

.zigzag-content h3 {
    color: #168bd6;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2rem;
}

.zigzag-content p {
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .zigzag-section {
        padding: 60px 0;
    }
    
    .zigzag-item {
        margin-bottom: 60px;
    }
    
    .zigzag-img {
        height: 350px;
    }
    
    .zigzag-img-overlay {
        padding: 20px;
    }
    
    .zigzag-img-overlay h3 {
        font-size: 1.7rem;
    }
    
    .zigzag-content {
        padding: 20px 15px;
    }
    
    .zigzag-content h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .zigzag-section {
        padding: 50px 0;
    }
    
    .zigzag-item {
        margin-bottom: 50px;
    }
    
    .zigzag-img {
        height: 300px;
    }
    
    .zigzag-img-overlay h3 {
        font-size: 1.5rem;
    }
    
    .zigzag-content h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .zigzag-content {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .zigzag-section {
        padding: 40px 0;
    }
    
    .zigzag-item {
        margin-bottom: 40px;
    }
    
    .zigzag-img {
        height: 250px;
    }
    
    .zigzag-img-overlay {
        padding: 15px;
    }
    
    .zigzag-img-overlay h3 {
        font-size: 1.3rem;
    }
    
    .zigzag-content h3 {
        font-size: 1.3rem;
    }
    
    .zigzag-content p {
        font-size: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-content {
        margin-top: 70px; /* Adjusted for mobile */
    }
    
    .fullscreen-image {
        height: calc(100vh - 70px);
    }
    
    .fullscreen-carousel {
        height: calc(100vh - 70px);
    }
    
    .about-hero {
        margin-top: 70px;
        padding: 80px 0;
        min-height: 80vh;
    }
    
    .fullscreen-image-section {
        margin-top: 70px;
        height: 70vh;
    }
    
    .image-overlay h1 {
        font-size: 2rem;
    }
    
    .image-overlay h2 {
        font-size: 1.8rem;
    }
    
    .image-overlay .lead {
        font-size: 1.2rem;
    }
    
    .fullscreen-carousel .carousel-caption {
        padding: 20px;
        width: 95%;
    }
    
    .fullscreen-carousel .carousel-caption h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .fullscreen-carousel .carousel-caption .lead {
        font-size: 1.3rem;
    }
    
    .fullscreen-carousel .carousel-control-prev,
    .fullscreen-carousel .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 10px;
    }
    
    .fullscreen-carousel .carousel-indicators {
        bottom: 20px;
    }
    
    .fullscreen-carousel .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    .about-hero h1 {
        font-size: 2.5rem;
    }
    
    .about-hero {
        text-align: center;
        min-height: 80vh;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    .custom-footer {
        padding: 25px 0 15px;
    }
}

@media (max-width: 576px) {
    .main-content {
        margin-top: 65px;
    }
    
    .fullscreen-image-section {
        height: 60vh;
    }
    
    .fullscreen-image {
        height: calc(100vh - 65px);
    }
    
    .fullscreen-carousel {
        height: calc(100vh - 65px);
    }
    
    .about-hero {
        margin-top: 65px;
        min-height: 70vh;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .navbar-brand img {
        height: 50px !important;
    }
    
    .custom-header .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 1rem;
    }
    
    .fullscreen-carousel .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .fullscreen-carousel .carousel-caption .lead {
        font-size: 1.1rem;
    }
    
    .fullscreen-carousel .carousel-control-prev,
    .fullscreen-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 5px;
    }
    
    .fullscreen-carousel .carousel-indicators {
        bottom: 15px;
    }
}

/* Pause carousel on hover */
.fullscreen-carousel:hover .carousel-control-prev,
.fullscreen-carousel:hover .carousel-control-next {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header when scrolling to anchors */
}