/* Custom Premium Style for Malermeister */

:root {
    --primary: #f59e0b; /* Golden Amber */
    --primary-hover: #d97706;
    --dark: #0f172a; /* Slate 900 */
    --light: #f8fafc; /* Slate 50 */
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
    font-family: var(--font-sans);
    color: var(--dark);
    background-color: #ffffff;
    scroll-behavior: smooth;
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Gradient Hero Section */
.hero-section {
    background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 1) 0%, rgba(243, 244, 246, 1) 90%);
    position: relative;
    overflow: hidden;
    padding: 7rem 0 5rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    letter-spacing: -1px;
}

/* Cards & Glassmorphism elements */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.card-title {
    font-weight: 600;
    color: var(--dark);
}

/* Button Upgrades */
.btn-warning {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    border-radius: 30px;
    padding: 0.75rem 2rem;
    transition: all 0.2s ease;
}

.btn-warning:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.btn-outline-dark {
    border-radius: 30px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    transform: translateY(-2px);
}

/* Section styling */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Portfolio Filters */
.filter-btn-group .btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    margin: 0.25rem;
    transition: all 0.2s ease;
}

.filter-btn-group .btn.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Lightbox Modal custom styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-modal.show .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* Footer redesign */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #090d16 !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Comparison Drag Slider */
.comparison-slider {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 12px;
}

.comparison-slider img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

.comparison-slider .resize-img {
    width: 50%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid #fbbf24;
    transition: width 0.05s ease-out;
}

.comparison-slider .slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #fbbf24;
    z-index: 10;
    pointer-events: none;
    transform: translateX(-50%);
    transition: left 0.05s ease-out;
}

.comparison-slider .slider-handle::after {
    content: '↔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #fbbf24;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.comparison-slider .range-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 11;
}

/* Card Image Hover Effects */
.portfolio-item .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}
.portfolio-item .card:hover img {
    transform: scale(1.05);
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Comparison Modal custom styles */
.comparison-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 15px;
}

.comparison-modal.show {
    opacity: 1;
}

.comparison-modal-content {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comparison-modal.show .comparison-modal-content {
    transform: scale(1);
}

.comparison-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s ease;
}

.comparison-modal-close:hover {
    color: #ffffff;
}

/* Modal slider needs a larger height */
.comparison-slider.modal-slider {
    height: 450px;
    max-height: 60vh;
}

@media (max-width: 768px) {
    .comparison-slider.modal-slider {
        height: 300px;
    }
}


/* High Contrast Theme */
body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.high-contrast .navbar,
body.high-contrast footer,
body.high-contrast .card,
body.high-contrast section,
body.high-contrast .modal-content,
body.high-contrast .accessibility-menu {
    background-color: #000000 !important;
    background: #000000 !important;
    color: #ffff00 !important;
    border: 3px solid #ffff00 !important;
    box-shadow: none !important;
}

body.high-contrast a,
body.high-contrast p,
body.high-contrast h1,
body.high-contrast h2,
body.high-contrast h3,
body.high-contrast h4,
body.high-contrast h5,
body.high-contrast h6,
body.high-contrast span,
body.high-contrast label,
body.high-contrast td,
body.high-contrast th,
body.high-contrast input,
body.high-contrast textarea,
body.high-contrast select {
    color: #ffff00 !important;
    background-color: #000000 !important;
    border-color: #ffff00 !important;
}

body.high-contrast .btn-warning,
body.high-contrast .btn-primary,
body.high-contrast .btn-dark,
body.high-contrast .btn-outline-dark,
body.high-contrast .btn-outline-secondary {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: 3px solid #ffffff !important;
    font-weight: 800 !important;
}

body.high-contrast .btn-warning:hover,
body.high-contrast .btn-primary:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Accessibility Floating Widget */
.accessibility-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 2000;
}

.accessibility-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f172a;
    color: #fbbf24;
    border: 2px solid #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    transform: scale(1.08);
}

.accessibility-menu {
    display: none;
    position: absolute;
    bottom: 75px;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    width: 200px;
}

.accessibility-menu.show {
    display: block;
}

.accessibility-menu button {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    margin: 4px 0;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s ease;
}

.accessibility-menu button:hover {
    background: #f1f5f9;
}

/* Testimonial Section */
.testimonial-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.05);
    max-width: 750px;
    margin: 0 auto;
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 1.4rem;
}

/* Cookie Consent styles */
.cookie-banner-popup {
    background: rgba(15, 23, 42, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    animation: slideUpCookie 0.4s ease-out forwards;
}

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

.hover-warning:hover {
    color: var(--primary) !important;
}
