/* ===== Base Styles ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* ===== Navbar Styles ===== */
#mainNav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

/* Navbar always has background on non-home pages */
body:not(.home-page) #mainNav {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#mainNav.navbar-scrolled {
    background: rgba(0, 0, 0, 0.9) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#mainNav .navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

#mainNav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Carousel Section ===== */
.carousel-section {
    position: relative;
}

.carousel-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); /* 90% dark overlay with a tinge of blue */
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2; /* Ensure content appears above overlay */
}

.carousel-content {
    width: 100%;
    padding-top: 80px;
}

.carousel-icon {
    animation: float 3s ease-in-out infinite;
}

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

.carousel-illustration {
    text-align: center;
}

.carousel-illustration i {
    font-size: 20rem;
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.8;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ===== Services Section ===== */
.service-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: #fff;
}

/* ===== Projects Section ===== */
.project-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-image {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.project-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.project-content {
    padding: 1.5rem;
}

/* ===== About Section ===== */
.about-image {
    position: relative;
}

.about-shape {
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    z-index: -1;
}

.about-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stat-box {
    text-align: center;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-box h2 {
    font-size: 2.5rem;
}

.certification-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

/* ===== Contact Section ===== */
.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.25rem;
}

.contact-form {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius:8px;
}

.contact-form .form-control {
    border: 2px solid #eee;
    padding: 0.75rem 1rem;
}

.contact-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ===== Footer ===== */
footer {
    background: #1a1a2e !important;
}

footer .social-links a {
    transition: opacity 0.3s ease;
}

footer .social-links a:hover {
    opacity: 0.7;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
    .carousel-slide {
        padding: 2rem 0;
    }
    
    .carousel-content h1 {
        font-size: 2.5rem;
    }
    
    #mainNav {
        background: rgba(0, 0, 0, 0.9) !important;
    }
    
    .stat-box h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .carousel-content h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .project-card {
        margin-bottom: 1rem;
    }
    
    .about-shape {
        display: none;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content .row {
        gap: 0.75rem;
    }

    .stat-box {
        padding: 0.5rem;
    }

    .certification-logo {
        max-height: 120px;
    }
}

/* ===== Admin Styles ===== */
.admin-sidebar {
    min-height: 100vh;
    background: #1a1a2e;
}

.admin-sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
    width: 24px;
}

.admin-content {
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.admin-stat-card {
    border: none;
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-5px);
}

.table-admin {
    border-radius: 0.5rem;
    overflow: hidden;
}

.table-admin th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
}

.table-admin td {
    vertical-align: middle;
}

.btn-action {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.carousel-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
