/* ==========================================
   Amsterdam Schilderwerken - Custom Styles
   ========================================== */

/* Root Variables */
:root {
    --rolex-black: #0a0a0a;
    --rolex-green: #1E3A3F;
    --charcoal: #3a3a3a;
    --light-gray: #f5f5f5;
    --accent-gold: #d4af37;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* ==========================================
   Navigation Styles
   ========================================== */

#navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 0.5rem 0;
}

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

.nav-link:hover {
    color: var(--rolex-green);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    background-color: var(--light-gray);
    color: var(--rolex-green);
}

/* Language Switcher */
.lang-btn,
.lang-btn-mobile {
    padding: 0.375rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--charcoal);
    background: transparent;
    border: 2px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn-mobile:hover {
    color: var(--rolex-green);
}

.lang-btn.active,
.lang-btn-mobile.active {
    color: white;
    background-color: var(--rolex-green);
    border-color: var(--rolex-green);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero-section {
    background: url('images/hero-bg.svg') no-repeat center center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

/* Hero Logo Styling */
.hero-logo-container {
    transition: opacity 0.5s ease, transform 0.5s ease;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-logo {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    object-fit: contain;
}

/* Scroll animation states */
.hero-logo-container.scroll-fade {
    opacity: 0;
    transform: translateY(-30px);
}

#hero-title {
    transition: transform 0.5s ease;
}

#hero-title.scroll-up {
    transform: translateY(-80px);
}

@media (max-width: 768px) {
    .hero-logo-container {
        max-width: 90%;
    }
    
    #hero-title.scroll-up {
        transform: translateY(-60px);
    }
}

@media (min-width: 1024px) {
    .hero-logo-container {
        max-width: 700px;
    }
}

@media (min-width: 1280px) {
    .hero-logo-container {
        max-width: 800px;
    }
}

/* ==========================================
   Section Styles
   ========================================== */

.section-title {
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rolex-black);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--rolex-green);
    font-weight: 600;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
}

/* ==========================================
   Button Styles (shadcn-inspired)
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--rolex-green);
    color: white;
    border-color: var(--rolex-green);
}

.btn-primary:hover {
    background-color: #004533;
    border-color: #004533;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 86, 63, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--rolex-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 100;
}

.whatsapp-float:hover {
    background-color: #1da851;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* ==========================================
   Card Styles (shadcn-inspired)
   ========================================== */

.value-card,
.service-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
}

.value-card:hover,
.service-card:hover {
    border-color: var(--rolex-green);
    box-shadow: 0 20px 40px rgba(0, 86, 63, 0.1);
    transform: translateY(-5px);
}

/* Featured Service Card */
.service-card-featured {
    border: 2px solid var(--rolex-green);
    background: linear-gradient(135deg, rgba(0, 86, 63, 0.02), rgba(0, 86, 63, 0.05));
}

.service-card-featured:hover {
    box-shadow: 0 25px 50px rgba(0, 86, 63, 0.15);
}

.value-icon,
.service-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--rolex-green), #007a54);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.value-card:hover .value-icon,
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==========================================
   Portfolio Gallery
   ========================================== */

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 86, 63, 0.9), rgba(0, 86, 63, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay-content {
    transform: translateY(0);
}

/* ==========================================
   Lightbox
   ========================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background-color: var(--rolex-green);
    border-color: var(--rolex-green);
    transform: scale(1.1);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* ==========================================
   Form Styles (shadcn-inspired)
   ========================================== */

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--charcoal);
    background-color: white;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--rolex-green);
    box-shadow: 0 0 0 3px rgba(0, 86, 63, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #9ca3af;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233a3a3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Form Messages */
.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-top: 1rem;
}

.form-message.success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.form-message.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* ==========================================
   Social Icons
   ========================================== */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
}

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

/* ==========================================
   Scroll to Top Button
   ========================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--rolex-green);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 86, 63, 0.3);
    z-index: 100;
}

.scroll-top:hover {
    background-color: #004533;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 86, 63, 0.4);
}

.scroll-top.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================
   Animations
   ========================================== */

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

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

/* Scroll-triggered animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays for grid items */
.fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.fade-in-section:nth-child(3) { transition-delay: 0.3s; }
.fade-in-section:nth-child(4) { transition-delay: 0.4s; }
.fade-in-section:nth-child(5) { transition-delay: 0.5s; }
.fade-in-section:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    max-width: 1280px;
}

/* ==========================================
   Loading States
   ========================================== */

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.75rem 0 0 -0.75rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==========================================
   Responsive Design
   ========================================== */

@media (max-width: 768px) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .lightbox-nav {
        display: none;
    }
}

/* ==========================================
   Print Styles
   ========================================== */

@media print {
    .no-print,
    #navbar,
    #scroll-top,
    .btn {
        display: none !important;
    }
}

/* ==========================================
   Accessibility
   ========================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--rolex-green);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 3px solid currentColor;
    }
    
    .form-input:focus {
        outline: 3px solid currentColor;
    }
}

