
/* Header Spacing Fix for Laptop Screens */
@media (min-width: 992px) {
    .main-nav ul li:first-child {
        margin-left: 40px; /* Add left margin to the first navigation item (Home) */
    }
}

/* Base Styles & Variables */
:root {
    /* Orange and White Color Palette */
    --primary: #FF6B00;       /* Primary orange */
    --primary-light: #FF8C42; /* Lighter orange */
    --primary-dark: #E65C00;  /* Darker orange */
    --secondary: #FFA64D;     /* Secondary orange */
    --accent: #FF8C1A;        /* Accent orange */
    --light: #FFF5EE;         /* Light orange tint */
    --dark: #2A2A2A;          /* Dark gray for text */
    --white: #FFFFFF;
    --off-white: #FFF9F5;     /* Slightly off-white with orange tint */
    --gray: #F5F5F5;
    --text: #333333;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Border Radius */
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Box Shadow */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* LAND DRONE VIEW */
.drone-video {
    background-color: var(--off-white);
    position: relative;
    overflow: hidden;
}

.drone-video-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: #000;
}

.drone-video-player {
    width: 100%;
    display: block;
    background-color: #000;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-overlay:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(255, 102, 0, 0.85);
    border: 3px solid rgba(255, 255, 255, 0.9);
    color: white;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    outline: none;
    opacity: 0.9;
}

.play-button:hover {
    transform: scale(1.1);
    opacity: 1;
    background-color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.play-button i {
    margin-left: 5px; /* Adjust play icon position */
}

.drone-video-caption {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--dark);
    font-size: 1.1rem;
    line-height: 1.7;
}

.drone-video-caption p {
    margin-bottom: 0;
}

/* Hide overlay when video is playing */
.drone-video.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Video Carousel */
.testimonials {
    position: relative;
    background-color: var(--off-white);
    padding: 80px 0;
}

.video-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-carousel-slide {
    display: none;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
}

.video-carousel-slide.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.testimonial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    background-color: #000;
}

.video-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-controls.auto-hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.play-pause-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(255, 102, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    outline: none;
    opacity: 0.9;
    backdrop-filter: blur(2px);
}

/* Mobile-specific styles for smaller, less intrusive controls */
@media (max-width: 768px) {
    .play-pause-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        background-color: rgba(255, 102, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.6);
    }
    
    .video-controls.playing {
        opacity: 0.3;
    }
}

.play-pause-btn:hover {
    background-color: rgba(255, 102, 0, 0.85);
    transform: scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-pause-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    background-color: rgba(255, 102, 0, 0.9);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    transform: translateY(-50%);
    z-index: 3;
    pointer-events: none;
}

.carousel-prev,
.carousel-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #ff6600;
    color: white;
    transform: scale(1.1);
}

.carousel-prev:focus,
.carousel-next:focus {
    outline: 3px solid rgba(255, 102, 0, 0.5);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    z-index: 3;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    outline: none;
}

.carousel-dot.active {
    background-color: #ff6600;
    transform: scale(1.2);
}

.carousel-dot:hover {
    transform: scale(1.3);
}

.carousel-dot:focus {
    outline: 2px solid #ff6600;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.video-container:focus-within .video-controls {
    opacity: 1 !important;
}

/* Hide default controls */
.testimonial-video::-webkit-media-controls {
    display: none !important;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    z-index: -1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 6px rgba(255, 107, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 0, 0.15);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    height: 70px; /* Fixed height for better control */
    display: flex;
    align-items: center;
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    height: 100%;
}

.header.scrolled {
    padding: 0.3rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

/* Header scroll animations */
.header.scroll-up {
    transform: translateY(0);
}

.header.scroll-down {
    transform: translateY(-100%);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Navigation Styles */
.main-nav {
    flex-grow: 1;
    overflow: hidden;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.main-nav ul::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.main-nav > ul > li {
    position: relative;
    flex-shrink: 0;
}

.main-nav > ul > li > a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 8px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-radius: 4px;
    margin: 0 2px;
    gap: 4px;
    white-space: nowrap;
    font-size: 0.85rem;
}

.main-nav > ul > li > a:hover {
    color: var(--primary);
    background-color: var(--light);
}

.main-nav > ul > li > a.active {
    color: var(--primary);
    font-weight: 600;
}

.main-nav > ul > li > a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 8px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav > ul > li:hover > a:after {
    width: 100%;
}

/* Dropdown Menu */
/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown > a i {
    transition: transform 0.3s ease;
    font-size: 0.7em;
    margin-left: 5px;
}

/* Main dropdown menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 12px 0;
    margin-top: 10px;
    pointer-events: none;
    display: block;
}

/* Show dropdown on hover */
.dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Active state for mobile */
.dropdown.active > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: static;
    box-shadow: none;
    margin-top: 0;
    padding-left: 15px;
    max-height: 1000px;
}

.dropdown-menu {
    margin: 0;
    padding: 0;
    display: block;
}

.dropdown-menu > a {
    display: block;
    padding: 10px 24px;
    color: var(--dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu > a:last-child {
    border-bottom: none;
}

.dropdown-menu > a i {
    font-size: 0.7em;
    margin-left: 8px;
    transition: transform 0.2s ease;
    color: rgba(0, 0, 0, 0.5);
}

.dropdown-menu > a:hover {
    background: rgba(255, 107, 0, 0.03);
    color: var(--primary) !important;
    padding-left: 28px;
}

.dropdown-menu > a:hover i {
    color: var(--primary);
    transform: translateX(3px);
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    position: relative;
    padding-right: 40px;
}

.dropdown-submenu > a i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.dropdown-submenu-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: white;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    padding: 10px 0;
    pointer-events: none;
    margin-top: 5px;
    display: block !important;
    width: 100%;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Show submenu on hover */
.dropdown-submenu:hover > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Active state for mobile */
.dropdown-submenu.active > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    position: static;
    box-shadow: none;
    margin-left: 15px;
    max-height: 1000px;
    width: 100%;
}

.dropdown-submenu-menu li a {
    display: block;
    padding: 12px 24px 12px 36px; /* Increased left padding to 36px to match indentation */
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Remove left padding for direct child links in the main dropdown */
.dropdown-menu > li > a {
    padding: 12px 24px;
    display: block;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-menu > li > a:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
}

.dropdown-menu > li > a:hover:before {
    transform: scaleY(1);
}

.dropdown-submenu-menu li a:hover {
    background: rgba(255, 107, 0, 0.05);
    color: var(--primary);
    padding-left: 28px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.dropdown.active > .dropdown-menu,
.dropdown:hover > .dropdown-menu {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    position: relative;
}

.dropdown-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu > li > a:hover {
    background-color: #f8f9fa;
    color: #ff6b00;
    padding-left: 25px;
}

/* Submenu styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    position: absolute;
    left: 100%;
    top: -8px;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.dropdown-submenu:hover > .dropdown-menu,
.dropdown-submenu.active > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Mobile styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none !important;
    }
    
    .dropdown.active > .dropdown-menu,
    .dropdown-submenu.active > .dropdown-menu {
        display: block !important;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown-submenu > .dropdown-menu {
        position: static;
        transform: none;
        padding-left: 20px;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        display: none;
    }
    
    .dropdown.active > .dropdown-menu {
        display: block;
        padding-left: 15px;
    }
    
    .dropdown-submenu > .dropdown-submenu-menu {
        position: static;
        box-shadow: none;
        transform: none;
        padding-left: 15px;
    }
    
    .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        box-shadow: none;
        padding-left: 20px;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > .dropdown-submenu-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transform: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
        transition: all 0.3s ease;
    }
    
    .dropdown.active > .dropdown-menu {
        opacity: 1;
        max-height: 1000px;
        padding: 10px 0 10px 15px;
    }
    
    .dropdown-submenu-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
        transition: all 0.3s ease;
    }
    
    .dropdown-submenu.active > .dropdown-submenu-menu {
        opacity: 1;
        max-height: 1000px;
        padding: 10px 0 10px 15px;
    }
}

/* Ensure proper spacing and visibility */
.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li > a {
    padding: 15px 20px;
    margin: 0 2px;
    display: block;
    transition: all 0.3s ease;
}

.main-nav > ul > li > a:hover {
    color: var(--primary);
}

/* Fix for dropdown positioning */
.main-nav > ul > li.dropdown > .dropdown-menu {
    left: 50%;
    transform: translateX(-50%) translateY(15px);
}

.main-nav > ul > li.dropdown:hover > .dropdown-menu {
    transform: translateX(-50%) translateY(5px);
}

/* Dropdown Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-submenu-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-submenu:hover > .dropdown-submenu-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Ensure submenu stays visible when hovering */
.dropdown-submenu-menu {
    margin-left: 10px;
}

/* Add a small gap between menu and submenu */
.dropdown-submenu:hover > .dropdown-submenu-menu {
    margin-left: 10px;
}

/* Fix for mobile menu */
/* Desktop hover styles */
@media (min-width: 992px) {
    .dropdown:hover > .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .dropdown-submenu:hover > .dropdown-submenu-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease-in-out;
    }
    
    .dropdown-submenu-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease-in-out;
    }
}

/* Mobile styles */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-submenu > a i {
        right: 10px;
    }
    
    .dropdown-submenu-menu {
        position: static;
        transform: none !important;
        display: none;
        padding-left: 15px;
        margin: 0;
        width: 100%;
        box-shadow: none;
    }
    
    .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block;
    }
    
    .dropdown-menu > li > a {
        padding: 10px 20px;
    }
    
    .dropdown-submenu-menu li a {
        padding: 10px 20px;
    }
}

/* Mobile adjustments */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        pointer-events: none;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px;
        pointer-events: auto;
    }
    
    .dropdown-submenu-menu {
        position: static;
        transform: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown-submenu.active > .dropdown-submenu-menu {
        max-height: 500px;
    }
    
    .dropdown-submenu > a:after {
        transform: rotate(90deg);
    }
    
    .dropdown-submenu.active > a:after {
        transform: rotate(270deg);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-open {
    overflow: hidden;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i.fa-bars:before {
    content: '\f00d';
}

@media (max-width: 991px) {
    /* Mobile menu button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }
    
    .mobile-menu-btn.active i:before {
        content: '\f00d';
    }
    
    /* Main navigation styles */
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #fff;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.mobile-open {
        right: 0;
    }
    
    .main-nav > ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .main-nav > ul > li {
        width: 100%;
        margin: 0;
        position: relative;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .main-nav a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        color: #333;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .main-nav a:hover {
        background-color: rgba(0, 0, 0, 0.03);
    }
    
    /* Dropdown styles */
    .dropdown > a:after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a:after {
        transform: rotate(-180deg);
    }
    
    .dropdown-menu {
        display: none;
        padding: 0;
        background: rgba(0, 0, 0, 0.03);
        list-style: none;
        margin: 0;
        overflow: hidden;
    }
    
    .dropdown.active > .dropdown-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    /* Submenu styles */
    .dropdown-submenu > a:after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 10px;
        margin-left: 8px;
        transition: transform 0.3s ease;
    }
    
    .dropdown-submenu.active > a:after {
        transform: rotate(90deg);
    }
    
    .dropdown-submenu-menu {
        display: none;
        padding-left: 15px;
        background: rgba(0, 0, 0, 0.02);
        border-left: 2px solid var(--primary);
        list-style: none;
        margin: 0;
    }
    
    .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    .dropdown-submenu-menu a {
        font-size: 0.9em;
        display: block;
        padding: 10px 15px !important;
    }
    
    /* Menu overlay */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open:after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
        pointer-events: auto;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    @keyframes slideDown {
        from { 
            opacity: 0;
            max-height: 0;
            transform: translateY(-10px);
        }
        to { 
            opacity: 1;
            max-height: 1000px;
            transform: translateY(0);
        }
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 20px 40px;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    
    .main-nav ul li {
        margin: 5px 0;
        width: 100%;
        padding: 0;
    }
    
    .main-nav > ul > li > a {
        padding: 14px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        color: var(--dark) !important;
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-weight: 500;
    }
    
    .main-nav ul li a:hover {
        color: var(--primary) !important;
        background-color: rgba(255, 107, 0, 0.05);
    }
    
    .dropdown > a:after {
        content: '\f078';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        margin-left: 10px;
        font-size: 12px;
        transition: transform 0.3s ease;
    }
    
    .dropdown.active > a:after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu, .dropdown-submenu-menu {
        position: static !important;
        display: block !important;  /* Changed from none to block */
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        background-color: rgba(0, 0, 0, 0.02) !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transition: all 0.3s ease !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        pointer-events: none !important;
    }
    
    .dropdown.active > .dropdown-menu,
    .dropdown-submenu.active > .dropdown-submenu-menu {
        display: block !important;
        max-height: 1000px !important;
        padding: 0 0 0 15px !important;
        opacity: 1 !important;
        visibility: visible !important;
        margin: 5px 0 !important;
        pointer-events: auto !important;
    }
    
    .dropdown-submenu > a:after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s;
    }
    
    .dropdown-submenu.active > a:after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu a, 
    .dropdown-submenu-menu a {
        display: block;
        padding: 12px 25px !important;
        font-size: 0.9em !important;
        color: #555 !important;
        text-decoration: none !important;
        transition: all 0.2s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .dropdown-submenu-menu a {
        padding-left: 35px !important;
    }
    
    .dropdown-menu a:hover,
    .dropdown-submenu-menu a:hover {
        background-color: rgba(255, 107, 0, 0.05) !important;
        color: var(--primary) !important;
    }
    
    .dropdown-submenu-menu {
        background: rgba(0, 0, 0, 0.02) !important;
    }
    
    .btn-contact {
        display: inline-block;
        width: auto;
        margin: 15px 0 0 0;
        padding: 10px 20px !important;
        background: var(--primary) !important;
        color: white !important;
        border-radius: 4px;
        text-align: center;
        border: none !important;
    }
    
    .btn-contact:hover {
        background: var(--primary-dark) !important;
        transform: translateY(-1px);
    }
    
    /* Prevent body scroll when menu is open */
    body.mobile-menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        z-index: 1001;
        padding: 8px 12px;
        background: transparent;
        border: 1px solid var(--primary);
        border-radius: 4px;
        color: var(--primary);
        cursor: pointer;
        transition: all 0.3s ease;
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-btn:hover {
        background: var(--primary);
        color: white;
    }
    
    .mobile-menu-btn i {
        font-size: 24px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-btn.active i.fa-bars {
        transform: rotate(90deg);
    }
    
    .menu-open {
        overflow: hidden;
    }
    
    .menu-open .main-nav {
        right: 0;
    }
    
    .dropdown-toggle::after {
        display: none;
    }
    
    .dropdown-submenu > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s;
    }
    
    .dropdown-submenu.active > a::after {
        transform: rotate(180deg);
    }
    
    .dropdown.active > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 15px;
    background-color: var(--primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.logo-text {
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Header specific logo styles */
.header .logo-link {
    background-color: transparent;
    padding: 0;
}

.header .logo-link:hover {
    transform: none;
    box-shadow: none;
    background-color: transparent;
}

.header .logo-text {
    color: var(--dark);
}

/* Contact section logo styles */
.contact .logo-link {
    margin: 15px 0;
    display: inline-flex;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    min-width: 180px;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 12px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    line-height: 1;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin-right: 15px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1599.98px) {
    .header .container {
        padding: 0 12px;
    }
    
    .logo {
        min-width: 170px;
        margin-right: 15px;
    }
    
    .logo-img {
        height: 38px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .main-nav > ul > li > a {
        padding: 8px 7px;
        font-size: 0.82rem;
    }
    
    .btn-contact {
        padding: 6px 14px !important;
        font-size: 0.8rem !important;
        margin-left: 8px;
    }
}

@media (max-width: 1199.98px) {
    .logo {
        min-width: 160px;
        margin-right: 10px;
    }
    
    .logo-img {
        height: 36px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .main-nav > ul > li > a {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .btn-contact {
        padding: 5px 12px !important;
        font-size: 0.78rem !important;
        margin-left: 6px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 991.98px) {
    .logo-img {
        height: 50px;
        margin-right: 12px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
}

@media (max-width: 767.98px) {
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 575.98px) {
    .logo-img {
        height: 40px;
        margin-right: 10px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
}

/* For very small devices */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 36px;
    }
}

/* Adjust logo when header is scrolled */
.header.scrolled .logo-img {
    height: 50px;
}

.header.scrolled .logo-text {
    font-size: 1.3rem;
}

@media (max-width: 991.98px) {
    .header.scrolled .logo-img {
        height: 40px;
    }
    
    .header.scrolled .logo-text {
        font-size: 1.1rem;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.main-nav a:hover:after,
.main-nav a.active:after {
    width: 100%;
}

/* Contact Button in Header */
.btn-contact {
    background-color: var(--primary);
    color: white !important;
    border-radius: 30px;
    padding: 7px 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
    margin-left: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    border: 2px solid var(--primary);
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-contact:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
    z-index: 1001;
    padding: 5px 10px;
    background: var(--light);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../images/front.jpeg') 
                no-repeat center center/cover;
    padding: 120px 0 60px;
    display: flex;
    align-items: center;
    text-align: left;
    color: var(--white);
    padding: 120px 0 80px;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

/* Why Choose Us Section */
.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(139, 115, 85, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-card p {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Services Section */
.services {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover i {
    color: var(--accent);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-features span {
    background: rgba(139, 115, 85, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-features i {
    font-size: 0.9em;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .project-category-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767.98px) {
    .project-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 0 10px;
    }
    
    .project-category-title {
        font-size: 1.4rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        max-width: 100%;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-details {
    padding: 1.5rem;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.project-details .location {
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-details .description {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.project-features span {
    background-color: rgba(139, 115, 85, 0.1);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-features i {
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--light);
    position: relative;
    overflow: hidden;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 0 15px;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: rgba(139, 115, 85, 0.1);
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.rating {
    color: #FFD700;
    margin-bottom: 1.5rem;
}

.rating i {
    margin-right: 3px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    color: var(--primary);
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    background-color: var(--light);
    border: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(139, 115, 85, 0.1);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question i.rotate {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.faq-answer p {
    padding: 1.5rem;
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Contact Section */
.contact .contact-item i {
    font-size: 24px;
    color: var(--primary);
    margin-right: 15px;
    opacity: 1; /* Increased from default */
    transition: all 0.3s ease;
}

.contact .contact-item:hover i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.contact {
    background-color: var(--light);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.contact-info h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-item h4 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-item a, .contact-item p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.contact-form {
    padding: 3rem;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 1rem;
}

.contact-form h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Projects List */
.projects-list {
    padding: 5rem 0;
    background-color: var(--light);
}

.projects-list .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-item {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-preview {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-preview img {
    transform: scale(1.05);
}

.project-info {
    flex: 1;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-info h2 {
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.project-info .location {
    color: var(--text);
    margin: 0 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-info .location i {
    color: var(--accent);
}

.project-info .status {
    margin-bottom: 1rem;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.ongoing {
    background-color: #e3f2fd;
    color: #1976d2;
}

.badge.upcoming {
    background-color: #fff8e1;
    color: #ff8f00;
}

.badge.planned {
    background-color: #f3e5f5;
    color: #8e24aa;
}

.project-info .description {
    color: var(--text);
    margin: 0 0 1.5rem 0;
    line-height: 1.7;
}

/* Responsive adjustments for projects */
@media (max-width: 992px) {
    .project-item {
        flex-direction: column;
    }
    
    .project-preview {
        flex: 0 0 100%;
        max-width: 100%;
        height: 300px;
    }
    
    .project-info {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .projects-list {
        padding: 3rem 0;
    }
    
    .project-info h2 {
        font-size: 1.5rem;
    }
    
    .project-info .description {
        font-size: 0.95rem;
    }
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 5rem 0 0;
    position: relative;
    border-top: 4px solid var(--primary);
    overflow: hidden;
}

.footer,
.footer p,
.footer a,
.footer li,
.footer span {
    color: #eee;
}

/* General footer link styles */
.footer a {
    color: #fff !important;
    opacity: 1;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer a:hover {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-about h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 1.5rem 0;
    padding: 0;
    position: relative;
    display: block;
    line-height: 1.3;
    word-wrap: break-word;
    white-space: normal;
}

.footer-about h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-about p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: #bbb;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.footer h3,
.footer h4 {
    color: #ffffff !important;  /* Force white color */
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding-bottom: 10px !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    letter-spacing: 0.5px !important;
}

.footer h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 1.5rem;
}

.footer-links li,
.footer-services li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Footer quick links - high specificity to override other styles */
.footer-content .footer-links a,
.footer-content .footer-services a {
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    display: block !important;
    position: relative !important;
    padding: 10px 0 10px 25px !important;
    margin: 5px 0 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    opacity: 1 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    font-size: 1.05rem !important;
    background: transparent !important;
}

.footer-links a:before,
.footer-services a:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    opacity: 1;
    transition: all 0.3s ease;
}

.footer-links a:hover,
.footer-services a:hover {
    color: #ffffff !important;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding-left: 25px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.footer-links a:hover:before,
.footer-services a:hover:before {
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
    left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #333;
    background-color: #222;
    color: #fff;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-primary);
}

.newsletter-form button {
    background-color: var(--accent);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--primary);
}

/* FAQ Section */
.faq {
    background-color: var(--off-white);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    color: var(--primary);
    background-color: rgba(255, 107, 0, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--primary);
}

.faq-question.active {
    color: var(--primary);
    background-color: rgba(255, 107, 0, 0.05);
}

.faq-question.active i {
    transform: rotate(180deg);
}

/* Founder Message Section */
.founder-message {
    background-color: #f9f9f9;
    position: relative;
}

.founder-video-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    outline: none; /* Remove focus outline - we'll handle it differently */
    background: #000; /* Fallback background */
    aspect-ratio: 16/9; /* Maintain aspect ratio */
}

/* Show controls by default, hide when video is playing and not hovering */
.founder-video-container:not(.show-controls) .video-controls {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.founder-video-container .video-controls {
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.founder-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    position: relative;
    z-index: 1;
    cursor: pointer;
    border-radius: 8px;
    margin: 0;
    object-fit: cover; /* Ensure the poster image covers the area nicely */
}

.video-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.video-control-btn {
    background: var(--primary);
    border: 2px solid white;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    margin: 0 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    z-index: 20;
    outline: none;
}

.video-control-btn:hover {
    background: #e67300; /* Slightly darker orange on hover */
    transform: scale(1.1);
    color: white;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.7);
}

.video-control-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 5px rgba(255, 107, 0, 0.5);
}

/* Focus styles for accessibility */
.video-control-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}

/* Hide default controls */
.founder-video::-webkit-media-controls {
    display: none !important;
}

/* Make sure the video is clickable */
.founder-video {
    cursor: pointer;
}

/* Loading state */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading .play-pause-btn::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    margin: -15px 0 0 -15px;
    z-index: 1;
}

.loading .play-pause-btn i {
    opacity: 0;
}

.video-progress {
    flex-grow: 1;
    margin: 0 15px;
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.video-progress:hover {
    height: 8px;
}

.progress-bar {
    width: 100%;
    height: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar::-webkit-progress-bar {
    background: transparent;
}

.progress-bar::-webkit-progress-bar {
    background: transparent;
}

.progress-bar::-webkit-progress-value {
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Custom progress bar for Firefox */
.progress-bar::-moz-progress-bar {
    background: var(--primary);
    border-radius: 3px;
}

/* Custom progress bar for IE/Edge */
.progress-bar::-ms-fill {
    background: var(--primary);
    border-radius: 3px;
}

.time-display {
    color: white;
    font-size: 0.8rem;
    min-width: 90px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-left: 5px;
}

.founder-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0;
}

.founder-quote blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2rem;
}

.founder-quote blockquote::before,
.founder-quote blockquote::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
    line-height: 1;
}

.founder-quote blockquote::before {
    top: -1rem;
    left: 0;
}

.founder-quote blockquote::after {
    bottom: -2.5rem;
    right: 0;
}

.founder-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .founder-video-container {
        margin-bottom: 2rem;
    }
    
    .founder-quote blockquote {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .video-controls {
        padding: 8px 10px;
    }
    
    .time-display {
        min-width: 80px;
        font-size: 0.8rem;
    }
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.faq-answer.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 1000px; /* Adjust based on your content */
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
}

/* Ensure FAQ items have proper spacing and borders */
.faq-item {
    border: 1px solid #eee;
    margin-bottom: 10px;
}

/* Add a subtle animation for the chevron */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer p {
    animation: fadeIn 0.3s ease forwards;
}

/* Footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 50px;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-legal {
    margin-top: 1rem;
}

.footer-legal a {
    color: #888;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px;
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-about,
    .footer-links,
    .footer-services,
    .footer-newsletter {
        margin-bottom: 2rem;
    }
    
    .footer-about h3 {
        font-size: 1.8rem;
    }
    
    .footer-links h4,
    .footer-services h4,
    .footer-newsletter h4 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .main-nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        transition: all 0.3s ease;
        padding: 2rem;
        z-index: 999;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
