/* ========================================
   DMC Website - Navigation & Slider Styles
   ======================================== */

/* ========================================
   NAVIGATION WITH DROPDOWNS
   ======================================== */

/* Main Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo img:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Nav Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--color-gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--color-secondary);
    background: var(--color-gray-50);
}

.nav-link.active {
    color: var(--color-secondary);
    background: rgba(0, 212, 255, 0.1);
}

.nav-link.nav-cta {
    background: var(--color-secondary);
    color: var(--color-white);
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    background: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Dropdown Container */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle .fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 300px;
    background: var(--color-white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 0.5rem;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    color: var(--color-secondary);
    font-size: 1rem;
}

.dropdown-item:hover {
    background: var(--color-gray-50);
    color: var(--color-secondary);
    transform: translateX(5px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SLIDER
   ======================================== */

.hero-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    margin-top: 70px; /* Navbar height offset */
}

.slider-container {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Placeholder background for slides without images */
.slide-background:not([style*="url"]) {
    background: linear-gradient(135deg, #0a1628 0%, #1a2942 50%, #0f2847 100%) !important;
}

/* Hero Content */
.slide .hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--color-white);
    padding: 5rem 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-secondary);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Slider Navigation Buttons - REMOVED (Using Drag Instead) */
.slider-nav {
    display: none !important;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    width: 35px;
    border-radius: 10px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* ========================================
   RESPONSIVE DESIGN FOR NAVIGATION
   ======================================== */

@media (max-width: 1023px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link,
    .dropdown-toggle {
        width: 100%;
        justify-content: flex-start; /* keep text aligned/organized to the left */
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 0.25rem;
        text-align: left;
    }
    
    .nav-dropdown {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .nav-dropdown.active .dropdown-toggle {
        background: var(--color-gray-50);
        color: var(--color-secondary);
    }
    
    .dropdown-toggle .fa-chevron-down {
        margin-left: auto; /* keep chevron to the right while text stays left */
    }
    .nav-dropdown.active .dropdown-toggle .fa-chevron-down {
        transform: rotate(180deg);
    }
    
    /* FIX: Make dropdown menu work on mobile */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        margin-top: 0.5rem !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        border-left: 3px solid var(--color-secondary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .nav-dropdown.active .dropdown-menu {
        max-height: 800px;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        margin-top: 0.5rem !important;
        margin-left: 1rem !important;
    }
    
    .dropdown-item {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        margin-bottom: 0.25rem;
        background: var(--color-white);
    }
    
    .dropdown-item:hover {
        background: var(--color-gray-100);
        transform: translateX(5px);
    }
    
    .mobile-menu-toggle {
        display: block;
    }
}

/* Hide Our Projects links across nav and footers */
.navbar-menu a[href$="our-projects.html"] { display: none !important; }
.footer a[href$="our-projects.html"] { display: none !important; }

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .slider-dots {
        bottom: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 30px;
    }
}
