:root {
    --primary-color: #000080; /* Specific Navy Blue */
    --secondary-color: #6c757d;
    --accent-color: #ff9800; /* Subtle Orange accent */
    --dark-bg: #001a33;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --navy-gradient: linear-gradient(135deg, #000080 0%, #00004d 100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Header Adjustments */
header h1 {
    letter-spacing: 1px;
    color: var(--primary-color) !important;
}

/* Navbar Premium Look */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-bottom: 3px solid var(--accent-color);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 12px 20px !important;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 4px solid var(--accent-color);
    animation: dropdownFadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    min-width: 220px;
}

@keyframes dropdownFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(15px) scale(0.95); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.dropdown-item {
    padding: 10px 15px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '\f105'; /* FontAwesome Angle Right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--accent-color) !important;
    padding-left: 20px;
}

.dropdown-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:active {
    background-color: var(--primary-color);
    color: #white !important;
}

/* Hover effect for the parent nav-item to keep dropdown open smoothly */
.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.nav-item.dropdown:hover > .nav-link {
    color: var(--accent-color) !important;
}

/* Staggered animation for dropdown items */
.dropdown-menu .dropdown-item {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-item {
    opacity: 1;
    transform: translateX(0);
}

/* Add delays to create a staggered effect */
.nav-item.dropdown:hover .dropdown-item:nth-child(1) { transition-delay: 0.05s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(2) { transition-delay: 0.1s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(3) { transition-delay: 0.15s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(4) { transition-delay: 0.2s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(5) { transition-delay: 0.25s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(6) { transition-delay: 0.3s; }
.nav-item.dropdown:hover .dropdown-item:nth-child(7) { transition-delay: 0.35s; }

.dropdown-divider {
    margin: 5px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Slider Customization */
.carousel-item {
    height: 500px;
    background-color: #f1f1f1;
}

.carousel-item img {
    object-fit: cover;
    opacity: 1;
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    max-width: 400px;
    left: 5%;
    bottom: 10%;
    right: auto;
    text-align: left;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.carousel-caption h2 {
    font-size: 1.4rem !important;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-caption p {
    font-size: 0.85rem !important;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.carousel-caption .btn {
    padding: 6px 15px !important;
    font-size: 0.8rem !important;
    font-weight: 600;
    text-transform: uppercase;
}

/* Section Styling */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Vision/Mission Cards */
.card-modern {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
}

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

.card-modern .card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Testimonials Refined */
/* side-menu Styling */
.side-menu {
    border: none;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-radius: 15px !important;
}

.side-menu h5 {
    background: var(--navy-gradient) !important;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.side-menu .list-group-item {
    border: none;
    padding: 12px 20px;
    font-weight: 500;
    color: #555;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.side-menu .list-group-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
    border-left: 4px solid var(--accent-color);
}

.side-menu .list-group-item.active {
    background-color: #eef2ff;
    color: var(--primary-color);
    font-weight: 700;
    border-left: 4px solid var(--primary-color);
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

/* Glassmorphism utility */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    position: relative;
    border-top: 5px solid var(--primary-color);
    margin: 20px 0;
}

.testimonial-box {
    transition: all 0.3s ease;
}

.testimonial-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.btn-outline-navy {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-navy:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Marquee Styling */
.news-marquee {
    background: #f1f1f1;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 0;
    border-bottom: 1px solid #ddd;
}

.news-label {
    background: var(--primary-color);
    color: white;
    padding: 2px 12px;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 10;
    position: relative;
}

.bg-navy {
    background-color: var(--primary-color) !important;
}

.text-navy {
    color: var(--primary-color) !important;
}

.text-accent {
    color: var(--accent-color) !important;
}

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

.btn-navy:hover {
    background-color: #000066;
    border-color: #000066;
    color: white;
}

/* Footer Enhancements */
.hover-white:hover {
    color: #fff !important;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.placeholder-light::placeholder {
    color: #ccc;
    opacity: 0.7;
}

/* Recruiters Slider Animation */
.recruiters-slider {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
}

.recruiters-track {
    display: inline-block;
    animation: scroll 30s linear infinite;
}

.recruiters-track:hover {
    animation-play-state: paused;
}

.recruiter-logo {
    display: inline-block;
    height: 60px;
    width: 150px;
    object-fit: contain;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.recruiter-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Gallery Styling */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.gallery-item img, .gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: 0.5s ease;
}

.gallery-item:hover img, .gallery-item:hover video {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,128,0.8));
    padding: 20px;
    color: white;
    opacity: 0;
    transition: 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,152,0,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 0 20px rgba(255,152,0,0.5);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .carousel-item {
        height: 350px;
    }
    .carousel-caption {
        max-width: 80%;
        left: 10%;
        bottom: 5%;
        padding: 15px;
    }
    .carousel-caption h2 {
        font-size: 1.1rem !important;
    }
    .carousel-caption p {
        font-size: 0.75rem !important;
        margin-bottom: 10px;
    }
    header h1 {
        font-size: 1.5rem;
    }
}

/* Scroll to Top */
#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

#scroll-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Logo Hover Effect */
header img {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

header img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Card Shine Effect */
.card-modern {
    position: relative;
    overflow: hidden;
}

.card-modern::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.1) 50%,
        rgba(255,255,255,0) 60%,
        rgba(255,255,255,0) 100%
    );
    transform: rotate(45deg);
    transition: 0.6s;
    pointer-events: none;
}

.card-modern:hover::after {
    left: 100%;
    top: 100%;
}
