/* Critical CSS - Above the fold content */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(245, 166, 35, 0.3);
    border-top: 3px solid #f5a623;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo img {
    height: 40px;
    width: 40px;
    object-fit: contain;
    z-index: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #f5a623;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: #f5a623;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Slider Section */
.hero-slider {
    height: 70vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

/* Slide backgrounds with optimized images */
.slide:nth-child(1) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/herobg_optimized.jpg') no-repeat center center/cover;
}

.slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/skimming_optimized.jpg') no-repeat center center/cover;
}

.slide:nth-child(3) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/herobg3_optimized.jpg') no-repeat center center/cover;
}

.slide:nth-child(4) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/360.jpeg') no-repeat center center/cover;
}

.slide:nth-child(5) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/herobg5_optimized.jpg') no-repeat center center/cover;
}

.slide:nth-child(6) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/construction.png') no-repeat center center/cover;
}

.slide-content {
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
}

.slide h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #f5a623;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.slide .service-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #f5a623;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(135deg, #f5a623, #e8941a);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

/* Simple Slider Arrows */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    user-select: none;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.arrow.prev {
    left: 20px;
}

.arrow.next {
    right: 20px;
}

.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 10px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(245, 166, 35, 0.7);
    transform: scale(1.1);
    border-color: rgba(245, 166, 35, 0.5);
}

.nav-dot.active {
    background: linear-gradient(135deg, #f5a623, #e8941a);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.3);
}

.nav-dot.active::before {
    opacity: 1;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #e8941a);
    width: 0;
    border-radius: 0 0 15px 15px;
    animation: progress 5s linear infinite;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(44, 44, 44, 0.95);
        padding: 1rem 0;
        backdrop-filter: blur(10px);
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .slide h1 {
        font-size: 2.5rem;
    }

    .slide .service-title {
        font-size: 2rem;
    }

    .slide p {
        font-size: 1.1rem;
    }

    .slide-content {
        padding: 0 1rem;
    }

    .arrow {
        padding: 8px 12px;
        font-size: 16px;
    }

    .arrow.prev {
        left: 10px;
    }

    .arrow.next {
        right: 10px;
    }

    .slider-nav {
        bottom: 20px;
        padding: 12px 20px;
        gap: 12px;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }

    .nav-dot.active {
        transform: scale(1.2);
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #f5a623, #e8941a);
    z-index: 9999;
    transition: width 0.1s ease;
}