/* Base Styles */
html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

:root {
    --kwik-yellow: #f2b500;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

/* Navbar Styles */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none;
    width: 100%;
    transition: all 0.3s ease;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

#navbar.scrolled {
    background-color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

#logo {
    color: #f59e0b;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

/* Mobile Logo Responsiveness - Fixed */
@media (max-width: 640px) {
    #logo {
        font-size: 1.25rem !important;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 120px);
    }
}

@media (max-width: 480px) {
    #logo {
        font-size: 1.1rem !important;
    }
}

/* Navigation Links */
#navLinks {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
    padding-left: 300px;
}

/* Mobile Menu - Fixed */
#navLinks.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: rgba(255, 255, 255, 0.95);
    color: #374151;
    padding: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    margin-top: 0.5rem;
    z-index: 999;
}

#navLinks.active .nav-link {
    padding: 0.5rem 1rem;
    color: #374151;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0.25rem 0;
}

#navLinks.active .nav-link:hover {
    background-color: #fef3c7;
    color: #d97706;
}

.nav-link {
    color: white;
    transition: color 0.3s ease;
    text-decoration: none;
}

.nav-link:hover {
    color: #f59e0b;
}

/* Hamburger Menu Button - Fixed */
#menuButton {
    flex-shrink: 0;
    margin-left: 1rem;
}

/* Scrolled Navbar */
#navbar.scrolled #logo {
    color: #1f2937;
}

@media (min-width: 768px) {
    #navbar.scrolled .nav-link {
        color: #1f2937;
    }
}

/* Desktop Navigation */
@media (min-width: 768px) {
    #navLinks {
        display: flex !important;
        position: static;
        background-color: transparent;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        padding: 0;
        margin: 0;
    }
    
    #navLinks li {
        margin-left: 2rem;
    }
    
    #menuButton {
        display: none;
    }
}

/* Animation Keyframes */
@keyframes slideFadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideFadeUp {
    animation: slideFadeUp 1s ease-out forwards;
}

/* Section Styles */
#about {
    background-color: #0f0d140d;
}

#services {
    background-color: rgba(25, 24, 25, 0.687);
}

#clients {
    background-color: rgba(25, 24, 25, 0.687);
}

/* Film Strip Styles */
.film-strip-wrapper {
    overflow-x: auto;
    display: flex;
    justify-content: center;
    min-height: 320px;
    scroll-behavior: smooth;
}

.film-strip {
    display: flex;
    gap: 2.5rem;
    padding: 1rem;
}

/* Client Scroll Animation */
@keyframes clientLoop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-client-loop {
    animation: clientLoop 20s linear infinite;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .film-strip {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .film-frame {
        min-width: 280px;
        max-width: 90vw;
    }
}

/* Smooth Transitions for All Interactive Elements */
button, a, .nav-link, .film-frame, .client-card {
    transition: all 0.3s ease;
}

/* Focus States for Accessibility */
button:focus, a:focus, .nav-link:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

/* Loading Animation for Images */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}