:root {
    --primary-color: #0F596C;
    /* Deep Blue */
    --secondary-color: #f7b924;
    /* Construction Yellow/Gold */
    --accent-color: #e74c3c;
    /* Alert/Action Red */
    --text-dark: #333333;
    --text-light: #f8f9fa;
    --bg-light: #f4f6f9;
    --bg-dark: #1a1a1d;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

/* General Styles */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0A404E;
    border-color: #0A404E;
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: #e0a800;
    border-color: #e0a800;
    color: var(--text-dark);
}

/* Top Bar */
.top-bar {
    background: linear-gradient(90deg, #0F596C 0%, #177C94 100%);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Navbar */
.navbar {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Softer, deeper shadow */
    padding: 10px 0;
    /* More breathing room */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color) !important;
}

/* Navbar Menu Styles */
.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 12px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    /* Use the heading font for menu */
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    /* Make it look more professional */
    letter-spacing: 1px;
    color: #2c3e50 !important;
    padding: 10px 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active,
/* Add this specific selector */
.nav-item.active .nav-link {
    color: #ffc107 !important;
}

/* Remove old underline */
.nav-link::after {
    display: none;
}

/* Triangle Indicator - Adjusted for new text style */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0);
    /* Start hidden below */
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--secondary-color);
    /* Pointing up */
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover::before,
.nav-item.active .nav-link::before,
.nav-item.dropdown:hover .nav-link::before {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 10px 0;
    margin-top: 10px !important;
    /* Reduced slightly for better usability */
    animation: fadeInDropdown 0.3s ease;
}

/* Invisible bridge to prevent menu from closing when moving mouse across gap */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s;
    position: relative;
    /* Ensure z-index works if needed */
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 25px;
    /* Subtle slide effect */
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide Bootstrap default dropdown arrow */
.dropdown-toggle::after {
    display: none !important;
}

/* Navbar Hover Dropdown */
@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        display: block;
    }
}


/* Hero Section */
.hero-section {
    position: relative;
    /* height: 80vh; */
    /* Adjust as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 89, 108, 0.8), rgba(15, 89, 108, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
    animation: fadeInUp 1.2s ease-out;
}

/* Services */
.service-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Projects */
.project-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
    background: #fff;
    border-top: 4px solid var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
}

footer h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
}

footer a:hover {
    color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Admin Panel Styles */
#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
    background-color: var(--primary-color);
    /* Admin sidebar color */
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
    color: white;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 100vw;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

.sidebar-link:hover,
.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
}
/* Desktop */
.slider-img {
    height: 100vh;
    object-fit: contain;
    background: #000;
}

/* Mobile */
@media (max-width: 768px) {
    .slider-img {
        height: auto;
        object-fit: cover;
        background: none;
    }
}
.responsive-mt {
  margin-top: 150px; /* Default (Desktop) */
}

@media (max-width: 576px) {
  .responsive-mt {
    margin-top: 115px; /* Mobile */
  }
}
