:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #e94560;
    --gold-color: #ffffff;
    --text-light: #f5f5f5;
}

/* Fix overflow issues */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

.hero-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.3);
    border-color: var(--accent-color);
}

.gold-text {
    color: var(--gold-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--gold-color);
}

.contact-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.feature-highlight {
    position: relative;
    overflow: hidden;
}

.feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-highlight:hover::before {
    left: 100%;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* Mobile overflow fixes */
@media (max-width: 768px) {
    .container {
        padding-left: clamp(0.5rem, 2vw, 1rem);
        padding-right: clamp(0.5rem, 2vw, 1rem);
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .hero-gradient {
        padding-left: clamp(0.5rem, 2vw, 1rem);
        padding-right: clamp(0.5rem, 2vw, 1rem);
    }
    
    .hero-gradient h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-gradient p {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .flex.flex-col.sm\\:flex-row.gap-4 {
        flex-direction: column;
        gap: clamp(0.5rem, 2vw, 1rem);
    }
    
    .flex.flex-col.sm\\:flex-row.gap-4 button {
        width: 100%;
        max-width: clamp(200px, 80vw, 280px);
    }
    
    section {
        padding-left: clamp(0.5rem, 2vw, 1rem);
        padding-right: clamp(0.5rem, 2vw, 1rem);
    }
    
    /* Contact section mobile fixes */
    .contact-section .container {
        padding-left: clamp(0.25rem, 1.5vw, 0.5rem);
        padding-right: clamp(0.25rem, 1.5vw, 0.5rem);
    }
    
    .contact-section .grid {
        gap: clamp(0.5rem, 2vw, 1rem);
    }
    
    .contact-section .bg-gray-800 {
        padding: clamp(0.75rem, 3vw, 1rem);
    }
    
    .contact-section .bg-gray-900 {
        padding: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    .contact-section .text-sm {
        font-size: clamp(0.7rem, 2vw, 0.75rem);
    }
    
    /* Quick Services grid mobile fix */
    .contact-section .grid.grid-cols-2 {
        gap: clamp(0.25rem, 1.5vw, 0.5rem);
    }
    
    .contact-section .grid.grid-cols-2 .text-center {
        padding: clamp(0.375rem, 1.5vw, 0.5rem);
    }
}

/* Carousel responsive fixes */
#ppt-carousel, #project-carousel {
    height: auto;
    min-height: 400px;
    max-height: 80vh;
}

#ppt-carousel .carousel-slide,
#project-carousel .carousel-slide {
    padding: 2rem;
}

#ppt-carousel img,
#project-carousel img {
    max-width: 100%;
    max-height: none;
    height: auto;
    object-fit: contain;
    width: auto;
}

/* Laptop screens (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    #ppt-carousel, #project-carousel {
        min-height: 500px;
        max-height: 70vh;
    }
    
    #ppt-carousel .carousel-slide,
    #project-carousel .carousel-slide {
        padding: 1.5rem;
    }
}

/* Large screens (1024px+) */
@media (min-width: 1024px) {
    #ppt-carousel, #project-carousel {
        min-height: 600px;
        max-height: 75vh;
    }
    
    #ppt-carousel .carousel-slide,
    #project-carousel .carousel-slide {
        padding: 2rem;
    }
}

/* Extra large screens (1440px+) */
@media (min-width: 1440px) {
    #ppt-carousel, #project-carousel {
        min-height: 700px;
        max-height: 80vh;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .contact-section .grid.grid-cols-2 {
        grid-template-columns: 1fr;
        gap: clamp(0.25rem, 2vw, 0.5rem);
    }
    
    .contact-section .grid.grid-cols-2 .text-center {
        padding: clamp(0.5rem, 2vw, 0.75rem);
    }
    
    #ppt-carousel, #project-carousel {
        min-height: 300px;
        max-height: 60vh;
    }
    
    #ppt-carousel .carousel-slide,
    #project-carousel .carousel-slide {
        padding: 1rem;
    }
}
