/* --- Global Styles & Variables --- */
:root {
    --primary-font: 'SUSE', sans-serif;
    --heading-font: 'Audiowide', sans-serif;
    --primary-color: #000000; /* Black */
    --secondary-color: #ffffff; /* White */
    --accent-color: #E30613; /* Swiss Red */
    --silver-color: #C0C0C0; /* Silver */
    --silver-dark: #909090; /* Darker Silver */
    --light-bg-color: #f8f8f8;
    --border-color: #e0e0e0;
    --text-light: #555;
    --section-padding: 60px 0;
    --gradient-silver: linear-gradient(135deg, #f5f5f5 0%, #C0C0C0 50%, #808080 100%);
    --gradient-red: linear-gradient(135deg, #E30613 0%, #b00510 100%);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.15);
    --shadow-dark: 0 10px 25px rgba(0, 0, 0, 0.2);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--primary-font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

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

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

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

h1 {
    font-size: 3.2rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
    box-shadow: 0 2px 5px rgba(227, 6, 19, 0.3);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

p {
    margin-bottom: 15px;
    color: var(--text-light);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

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

.logo-container {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);    
}

.logo-container img {
    height: 50px;
    margin-right: 10px;
    transition: var(--transition-fast);
}

.logo-text {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.section-padding {
    padding: var(--section-padding);
}

.section-light-bg {
    background-color: var(--light-bg-color);
    position: relative;
    overflow: hidden;
}

.section-light-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-silver);
    opacity: 0.05;
    z-index: 0;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-red);
    color: var(--secondary-color);
    padding: 14px 28px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.cta-button:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button.secondary {
    background: var(--gradient-silver);
    color: var(--primary-color);
}

.cta-button.secondary:hover {
    background: linear-gradient(135deg, #C0C0C0 0%, #909090 100%);
}

/* --- Navigation --- */
#main-nav {
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    padding: 15px 0;
    transition: var(--transition-fast);
}

#main-nav.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.9);
}

#main-nav.scrolled .logo-text {
    background: var(--gradient-silver);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#main-nav.scrolled a {
    color: var(--silver-color);
}

#main-nav.scrolled a:hover {
    color: var(--accent-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul {
    list-style: none;
    display: flex;
}

.nav-menu ul li {
    margin-left: 25px;
    position: relative;
}

.nav-menu ul li a {
    color: var(--primary-color);
    font-weight: 500;
    padding-bottom: 5px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: var(--transition-fast);
}

#main-nav.scrolled .mobile-menu-toggle .bar {
    background-color: var(--silver-color);
}

/* When menu is open */
.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px;
        width: 300px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    .nav-menu ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-menu ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--silver-color);
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu ul li a:hover,
    .nav-menu ul li a.active {
        color: var(--accent-color);
        background-color: rgba(255, 255, 255, 0.05);
    }

    .nav-menu ul li a::after {
        display: none;
    }
}

//* Hero section - ensure it starts right after the navbar */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    margin-top: 0; /* Ensure no gap */
    padding-top: 0; /* Ensure no gap */
}

/* Video container - keep at full height */
.video-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* The video itself - position it to hide the top 20% */
#hero-video {
    position: absolute;
    width: 100%;
    height: 125%; /* Make video taller than container */
    top: -25%; /* Move video up to hide top portion */
    left: 0;
    object-fit: cover;
}

/* Make sure overlay covers the entire visible area */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}
.hero-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px 20px;
    color: var(--secondary-color);
    z-index: 2;
}

.hero-content {
    width: 90%;
    max-width: 1100px;
    text-align: center;
    animation: fadeInUp 1.5s ease;
    background: transparent;
    border-radius: 10px;
    padding: 25px 30px;
}

#hero h1 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9); /* Enhanced text shadow for better readability */
}

#hero .tagline {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 400; /* Slightly bolder for better readability as overlay */
    color: var(--secondary-color);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8); /* Stronger text shadow for overlay */
}

#hero .cta-button {
    padding: 15px 35px;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.scroll-indicator {
    margin-top: 20px;
    color: var(--secondary-color);
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    background-color: rgba(227, 6, 19, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

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

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- Forms (Valuation & Contact) --- */
.valuation-form, .contact-form {
    max-width: 800px;
    margin: 30px auto 0 auto;
    background-color: var(--secondary-color);
    padding: 35px;
    border-radius: 10px;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
    transition: var(--transition-medium);
    transform: translateY(20px);
    opacity: 0;
}

.valuation-form.animated, .contact-form.animated {
    transform: translateY(0);
    opacity: 1;
}

.valuation-form::before, .contact-form::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--gradient-silver);
    z-index: -1;
    border-radius: 12px;
    opacity: 0.7;
}

.contact-form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 5px;
    position: relative;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: var(--primary-font);
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
    transform: translateY(-2px);
}

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

.form-submit-container {
    text-align: center;
    margin-top: 30px;
    grid-column: 1 / -1;
}

/* --- Why Choose Us Section (IMPROVED) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.benefit-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.benefit-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(227, 6, 19, 0.2);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

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

.benefit-icon {
    width: 300px;
    height: 180px;
    margin: 0 auto 30px;
    display: block;
    transition: all 0.5s ease;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Adding fading effect instead of white frame */
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 95%);
    mask-image: radial-gradient(ellipse 90% 90% at center, black 60%, transparent 95%);
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(227, 6, 19, 0.15);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at center, black 80%, transparent 95%);
    mask-image: radial-gradient(ellipse 90% 90% at center, black 80%, transparent 95%);
}

.benefit-item h3 {
    margin-bottom: 18px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.benefit-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.benefit-item:hover h3::after {
    width: 70px;
}

.benefit-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* --- Nationwide Coverage Section --- */
.canton-list {
    list-style: none;
    padding: 0;
    column-count: 4;
    column-gap: 20px;
    max-width: 800px;
    margin: 30px auto 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.canton-list li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text-light);
    transition: var(--transition-fast);
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

.canton-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    transition: var(--transition-fast);
}

.canton-list li:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.canton-list li:hover::before {
    transform: scale(1.5);
}

/* --- Contact Section --- */
.contact-details {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.contact-details p {
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.contact-details a {
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
}

.contact-details a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.contact-details a:hover::after {
    width: 100%;
}

.contact-form-heading {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--silver-color);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-red);
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

footer p {
    margin-bottom: 15px;
    color: var(--silver-color);
}

footer a {
    color: var(--silver-color);
    margin: 0 10px;
    position: relative;
    transition: var(--transition-fast);
}

footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--secondary-color);
}

footer a:hover::after {
    width: 100%;
}

/* --- Swiss cross animation in the background --- */
/*
.swiss-cross {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    opacity: 0.03;
    z-index: -1;
    animation: rotate 60s linear infinite;
}

.swiss-cross::before,
.swiss-cross::after {
    content: '';
    position: absolute;
    background-color: var(--accent-color);
}

.swiss-cross::before {
    top: 40%;
    left: 0;
    width: 100%;
    height: 20%;
}

.swiss-cross::after {
    top: 0;
    left: 40%;
    width: 20%;
    height: 100%;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}*/
/* reCAPTCHA Styling */
.g-recaptcha {
    display: inline-block;
    margin: 15px 0;
    transform-origin: left top;
}

/* Responsive reCAPTCHA */
@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media screen and (max-width: 350px) {
    .g-recaptcha {
        transform: scale(0.75);
    }
}

/* --- Responsiveness --- */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    #hero h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
    .container { max-width: 90%; }
    .canton-list { column-count: 3; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group-full { grid-column: auto; }
    .hero-content-wrapper { padding-bottom: 60px; }
    .benefits-grid { gap: 30px; }
    
    .benefit-icon {
        width: 280px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    body { font-size: 15px; }
    .section-padding { padding: 50px 0; }
    #hero h1 { font-size: 2rem; }
    #hero .tagline { font-size: 1.1rem; }
    h2 { font-size: 1.8rem; }
    .canton-list { column-count: 2; }

    .valuation-form, .contact-form { padding: 25px; }
    
    .benefit-item {
        padding: 30px 25px;
    }
    
    .benefit-icon {
        width: 260px;
        height: 150px;
    }
    
    .hero-content-wrapper { padding-bottom: 50px; }
    .hero-content { padding: 15px; }
    .benefits-grid { grid-template-columns: 1fr; } /* Single column on tablets and below */
}

@media (max-width: 480px) {
    #hero h1 { font-size: 1.8rem; }
    #hero .tagline { font-size: 1rem; }
    h2 { font-size: 1.6rem; }
    .benefits-grid { grid-template-columns: 1fr; }
    .canton-list { column-count: 1; text-align: left; padding-left: 20px;}
    .cta-button { padding: 12px 20px; font-size: 0.9rem; }
    #hero .cta-button { padding: 14px 25px; font-size: 1rem; }
    footer { font-size: 0.8rem; }
    footer p { margin-bottom: 10px; }
    .hero-content { padding: 15px 10px; }
    .hero-content-wrapper { padding-bottom: 40px; }
    .scroll-indicator {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
        margin-top: 15px;
    }
    
    .benefit-icon {
        width: 240px;
        height: 140px;
    }
}
/* Add these styles to your style.css file */
.logo-container {
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
    gap: 0px; /* Space between logo and text */
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}
/* Adjust for scrolled state */
#main-nav.scrolled .logo-img {
    height: 35px; /* Slightly smaller on scroll */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
    
    #main-nav.scrolled .logo-img {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    
    #main-nav.scrolled .logo-img {
        height: 25px;
    }
}
/* --- Canton Cards Styling with Fixed Animation --- */
.canton-container {
    margin: 40px 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.canton-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    /* No fixed width here - we'll use animation differently */
}

/* Improved Left to Right Animation */
.canton-row-ltr {
    animation: scroll-ltr 40s linear infinite;
}

/* Improved Right to Left Animation */
.canton-row-rtl {
    animation: scroll-rtl 40s linear infinite;
}

/* Create enough duplication of cards for smooth scrolling */
.canton-row::before,
.canton-row::after {
    content: "";
    flex: 0 0 100px; /* Space padding at start and end */
}

.canton-card {
    flex: 0 0 180px;
    height: 180px;
    margin: 0 10px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Modified Animation Keyframes */
@keyframes scroll-ltr {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-190px * 13)); } /* Card width + margin */
}

@keyframes scroll-rtl {
    0% { transform: translateX(calc(-190px * 13)); }
    100% { transform: translateX(0); }
}

/* Make sure everything else remains the same */
.canton-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.canton-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.canton-card:hover::before {
    transform: scaleX(1);
}

.canton-flag {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.15));
    transition: all 0.3s ease;
    border-radius: 8px;
}

.canton-card:hover .canton-flag {
    transform: scale(1.05);
}

.canton-name {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.canton-card:hover .canton-name {
    color: var(--accent-color);
}

/* Pause animation on hover */
.canton-row:hover {
    animation-play-state: paused;
}
/* --- Testimonials Section Styling --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    padding: 30px;
    padding-top: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.testimonial-item.animated {
    transform: translateY(0);
    opacity: 1;
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(227, 6, 19, 0.2);
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.testimonial-item:hover::before {
    transform: scaleX(1);
}

/* Improved Star Rating Styling */
.star-rating {
    margin-bottom: 25px;
    text-align: center; /* Center the stars */
    width: 100%;
    color: #FFD700; /* More vivid gold color */
    font-size: 2.2rem; /* Larger stars */
    letter-spacing: 5px; /* More spacing between stars */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.star {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Add hover animation for the stars */
.testimonial-item:hover .star {
    transform: scale(1.1);
    color: #FFDF00; /* Brighter gold on hover */
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.7); /* Glowing effect */
}

.testimonial-content {
    flex-grow: 1;
    position: relative;
    padding-left: 25px;
    margin-bottom: 20px;
    margin-top: 5px;
}

.testimonial-content::before {
    content: '"';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    top: -30px;
    left: -5px;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.testimonial-author {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    position: relative;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-details {
    font-size: 0.9rem;
    color: var(--silver-dark);
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .star-rating {
        font-size: 2rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-item {
        padding: 25px;
    }
    
    .star-rating {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }
}

/* WhatsApp Button Styles */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000; /* Ensure it's above other elements */
    transition: all 0.3s ease;
}

.whatsapp-button:hover, .whatsapp-button:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-button:active {
    transform: scale(0.95);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Subtle pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-button {
    animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}
/* Car Brands Carousel */
.brands-carousel {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 5%, rgba(255,255,255,0) 95%, rgba(255,255,255,1) 100%);
}

.brands-track {
    display: flex;
    animation: scroll-brands 30s linear infinite;
}

.brand-item {
    flex: 0 0 150px;
    height: 100px;
    margin: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.brand-logo {
    max-width: 100%;
    max-height: 90px;
    filter: grayscale(0%) brightness(100%);
    opacity: 0.1;
    transition: all 0.3s ease;
}

.brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-190px * 10)); } /* Adjust based on item width + margin */
}

/* Pause animation on hover */
.brands-carousel:hover .brands-track {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .brand-item {
        flex: 0 0 120px;
        height: 70px;
        margin: 0 15px;
    }
    
    .brand-logo {
        max-height: 50px;
    }
}
/* Replace the existing car silhouette styles with this */
.car-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/car-silhouette.png');
    background-size: 600px auto;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Optional: You can add a slight parallax effect if desired */
@media (min-width: 768px) {
    .car-background {
        background-attachment: fixed;
    }
}

/* Hide any remaining car silhouette elements */
.car-silhouette {
    display: none;
}
/* Navigation container for flexible layout */
.nav-container {
    display: flex;
    align-items: center;
    position: relative; /* For positioning elements */
}

/* Language Toggle Button Styles */
.lang-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: var(--transition-fast);
    z-index: 5; /* Ensure button is above other elements */
}

/* Special styling for left-positioned language toggle */
.lang-toggle.left-positioned {
    margin-left: -30px; /* Pulls it slightly more left than the container padding */
    margin-right: 5px;
    order: 1; /* First item in flex container */
}

.lang-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--accent-color);
}

.lang-toggle i {
    margin-right: 6px;
    font-size: 16px;
}

#main-nav.scrolled .lang-toggle {
    color: var(--silver-color);
}

#main-nav.scrolled .lang-toggle:hover {
    color: var(--accent-color);
}

/* Logo container */
.logo-container {
    order: 2; /* Second item in flex container */
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    order: 3; /* Third item in flex container */
    margin-left: auto; /* Push to the right */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

/* Navigation menu */
.nav-menu {
    order: 4; /* Fourth item, will be positioned based on media queries */
}

/* Media Queries */
@media (max-width: 768px) {
    /* Keep the basic structure but adjust for mobile */
    .nav-container {
        padding: 0 10px;
    }
    
    /* Maintain left positioning of language button */
    .lang-toggle.left-positioned {
        margin-right: 10px;
        padding: 8px;
    }
    
    /* Make language button more compact on mobile */
    .lang-toggle i {
        margin-right: 4px;
        font-size: 14px;
    }
    
    /* Ensure the language button text is still visible */
    #current-lang {
        font-size: 14px;
    }
    
    /* Adjust the logo size for better fit */
    .logo-container .logo-img {
        height: 30px; /* Smaller logo on mobile */
    }
    
    .logo-container .logo-text {
        font-size: 1.5rem; /* Smaller text on mobile */
    }
    
    /* Make sure the mobile menu toggle is visible */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Adjust the nav menu for mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -300px; /* Hide offscreen initially */
        width: 280px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        transition: right 0.3s ease;
        padding-top: 70px;
    }
    
    .nav-menu.active {
        right: 0; /* Show when active */
    }
    
    .nav-menu ul {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu ul li {
        width: 100%;
        margin: 0;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 15px 20px;
        color: var(--silver-color);
        text-align: center;
    }
}

@media (min-width: 769px) {
    /* Desktop specific adjustments */
    .nav-container {
        justify-content: space-between;
    }
    
    .logo-container {
        margin: 0 auto 0 0; /* Center logo */
    }
    
    .mobile-menu-toggle {
        display: none; /* Hide menu toggle on desktop */
    }
    
    .nav-menu {
        display: flex;
        margin-left: auto; /* Push to the right */
    }
    
    .nav-menu ul {
        display: flex;
        align-items: center;
    }
    
    .nav-menu ul li {
        margin-left: 25px;
    }
}

/* Very small screens (under 375px) */
@media (max-width: 375px) {
    /* Further reduce sizes for very small screens */
    .lang-toggle.left-positioned {
        padding: 5px;
        margin-right: 5px;
    }
    
    .logo-container .logo-img {
        height: 25px;
    }
    
    .logo-container .logo-text {
        font-size: 1.2rem;
    }
}

/* Fix for landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    /* Adjust hero height to be min-height instead of fixed height */
    #hero, .video-container {
        height: auto;
        min-height: 100vh;
    }
    
    /* Add padding-top to ensure content isn't hidden behind navbar */
    #hero {
        padding-top: 70px; /* Adjust this value based on your navbar height */
    }
    
    /* Adjust hero content wrapper to not be at absolute bottom */
    .hero-content-wrapper {
        position: relative;
        padding: 20px 20px 40px;
        margin-top: 10vh; /* Adjust top margin to center content better */
    }
    
    /* Make hero content more compact */
    .hero-content {
        padding: 15px 20px;
    }
    
    /* Reduce title and text size */
    #hero h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    #hero .tagline {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    /* Make CTA button smaller */
    #hero .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Ensure video still covers the area */
    #hero-video {
        height: 140%;
        top: -40%;
    }
}
/* Call Button Styles */
.call-button {
    position: fixed;
    bottom: 25px;
    right: 95px; /* Position to the left of the WhatsApp button */
    background-color: #0066CC; /* Blue color for call */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
}

.call-button:hover, .call-button:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.call-button:active {
    transform: scale(0.95);
}

.call-icon {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(0, 102, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

/* Responsive adjustments for both buttons */
@media (max-width: 768px) {
    .call-button {
        width: 55px;
        height: 55px;
        right: 90px;
    }
    
    .call-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .call-button {
        width: 50px;
        height: 50px;
        right: 75px;
    }
    
    .call-icon {
        width: 22px;
        height: 22px;
    }
}
/* Hero Image Styling */
.image-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: absolute;
    top: 0;
    left: 0;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(0, 0, 0, 0.3) 50%, 
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

/* Call button styling for hero */
.call-hero-button {
    background: var(--gradient-red);
    padding: 15px 30px;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
}

.call-hero-button i {
    font-size: 1.2rem;
}
/* Hero Image Animation */
#hero-image {
    animation: heroZoom 20s ease infinite alternate;
    transform-origin: center center;
    transition: all 0.5s ease;
}

@keyframes heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Add a subtle shine/light effect to the overlay */
.image-overlay::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shineEffect 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineEffect {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }
    100% {
        transform: translateX(100%) rotate(30deg);
    }
}






/* Add these styles to your style.css file */

/* Fix for the hero section on mobile devices */
#hero {
    padding-top: 80px; /* This value should match your navbar height or slightly more */
    box-sizing: border-box;
}

/* When in mobile portrait mode, make specific adjustments */
@media (max-width: 768px) and (orientation: portrait) {
    #hero {
        padding-top: 70px; /* Adjust based on your mobile navbar height */
    }

    /* Make the hero section height responsive */
    #hero, .image-container {
        height: calc(100vh - 70px); /* Subtract navbar height from viewport height */
        min-height: 500px; /* Ensure minimum height on smaller devices */
    }
    
    /* Adjust image position for better focal point on mobile */
    #hero-image {
        object-position: center 30%; /* Show more of the center-top of the image */
    }
    
    /* Improve text visibility on mobile */
    .hero-content-wrapper {
        bottom: 30%; /* Position content higher for better visibility */
    }
    
    /* Enhance text shadows for better readability */
    #hero h1, #hero .tagline {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }
}

/* For very small screens */
@media (max-width: 480px) and (orientation: portrait) {
    #hero {
        padding-top: 60px; /* Slightly smaller for very small screens */
    }
    
    #hero, .image-container {
        height: calc(100vh - 60px);
        min-height: 450px;
    }
}

/* Fix for iPhone and other devices with notches */
@supports (padding-top: env(safe-area-inset-top)) {
    #hero {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
    
    @media (max-width: 768px) and (orientation: portrait) {
        #hero {
            padding-top: calc(70px + env(safe-area-inset-top));
        }
    }
}

/* Combined fixes for mobile display issues */

/* ===== HERO SECTION FIXES ===== */
/* Fix for the hero section on mobile devices */
#hero {
    padding-top: 80px; /* This value should match your navbar height or slightly more */
    box-sizing: border-box;
}

/* When in mobile portrait mode, make specific adjustments */
@media (max-width: 768px) and (orientation: portrait) {
    #hero {
        padding-top: 70px; /* Adjust based on your mobile navbar height */
    }

    /* Make the hero section height responsive */
    #hero, .image-container {
        height: calc(100vh - 70px); /* Subtract navbar height from viewport height */
        min-height: 500px; /* Ensure minimum height on smaller devices */
    }
    
    /* Adjust image position for better focal point on mobile */
    #hero-image {
        object-position: center 30%; /* Show more of the center-top of the image */
    }
    
    /* Improve text visibility on mobile */
    .hero-content-wrapper {
        bottom: 30%; /* Position content higher for better visibility */
    }
    
    /* Enhance text shadows for better readability */
    #hero h1, #hero .tagline {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    }
}

/* For very small screens */
@media (max-width: 480px) and (orientation: portrait) {
    #hero {
        padding-top: 60px; /* Slightly smaller for very small screens */
    }
    
    #hero, .image-container {
        height: calc(100vh - 60px);
        min-height: 450px;
    }
}

/* Fix for iPhone and other devices with notches */
@supports (padding-top: env(safe-area-inset-top)) {
    #hero {
        padding-top: calc(80px + env(safe-area-inset-top));
    }
    
    @media (max-width: 768px) and (orientation: portrait) {
        #hero {
            padding-top: calc(70px + env(safe-area-inset-top));
        }
    }
}

/* ===== BRANDS SECTION FIXES ===== */
/* Fix for brands section overflow */
.brands-carousel {
    width: 100%;
    overflow: hidden;
    margin: 30px 0;
    position: relative;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 5%, rgba(255,255,255,0) 95%, rgba(255,255,255,1) 100%);
}

/* Adjust the container to prevent overflow */
#brands .container {
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Adjust for mobile screens */
@media (max-width: 768px) {
    /* Contain the brands carousel within the viewport */
    .brands-carousel {
        width: 100%;
        overflow: hidden;
        margin: 20px 0; /* Reduce vertical margins */
    }
    
    /* Adjust individual brand items */
    .brand-item {
        flex: 0 0 100px; /* Make brand items smaller on mobile */
        height: 70px;
        margin: 0 10px; /* Reduce horizontal margins */
    }
    
    /* Decrease logo size */
    .brand-logo {
        max-height: 40px;
        max-width: 70px; /* Control maximum width */
    }
    
    /* Adjust animation speed for better visual effect on small screens */
    .brands-track {
        animation-duration: 25s; /* Slightly faster animation */
    }
    
    /* Update the animation to account for smaller items */
    @keyframes scroll-brands {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-120px * 10)); } /* Adjust based on smaller item width + margin */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 480px) {
    .brand-item {
        flex: 0 0 80px; /* Even smaller on very small screens */
        height: 60px;
        margin: 0 8px;
    }
    
    .brand-logo {
        max-height: 35px;
        max-width: 60px;
    }
    
    /* Make sure the section padding is appropriate */
    #brands.section-padding {
        padding: 40px 0; /* Less padding on small screens */
    }
    
    /* Adjust the container padding */
    #brands .container {
        padding: 0 10px;
    }
    
    @keyframes scroll-brands {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-96px * 10)); } /* Adjust based on even smaller item width + margin */
    }
}

/* Global fix for horizontal overflow */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Ensure sections don't cause overflow */
section {
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Base styles for both hero images */
.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Default - hide portrait image */
#hero-image-portrait {
    display: none;
}

/* For landscape orientation */
@media (orientation: landscape) {
    #hero-image-landscape {
        display: block;
    }
    
    #hero-image-portrait {
        display: none;
    }
}

/* For portrait orientation */
@media (orientation: portrait) {
    #hero-image-landscape {
        display: none;
    }
    
    #hero-image-portrait {
        display: block;
        object-position: center top; /* Adjust the focal point for portrait images */
    }
}
/* Photo Upload Styling */
.photo-upload-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.photo-upload {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.photo-input {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.photo-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    border-radius: 5px;
    padding: 25px 15px;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.photo-label i {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--silver-color);
}

.photo-label:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.8);
}

.photo-preview {
    width: 100%;
    margin-top: 10px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    max-width: 100%;
    max-height: 150px;
    display: none;
}

.photo-preview.has-image img {
    display: block;
}

.photo-preview .remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.photo-preview .remove-photo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .photo-upload-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .photo-upload {
        width: 100%;
    }
}
.powered-by {
    margin-top: 15px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.powered-by a {
    color: var(--silver-color);
    font-weight: 500;
    transition: var(--transition-fast);
}

.powered-by a:hover {
    color: var(--secondary-color);
    opacity: 1;
}
/* Loading states for cached content */
.loading-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Fade in effect for cached images */
img {
  transition: opacity 0.3s ease;
}

img[data-src] {
  opacity: 0;
}

img:not([data-src]) {
  opacity: 1;
}

/* Preload spinner */
.preload-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #E30613;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}