/* Custom Styles for Sunshine Dry Cleaners */

:root {
    --primary-color: #FFC107;
    --secondary-color: #FF9800;
    --accent-color: #4CAF50;
    --bright-yellow: #FFEB3B;
    --light-blue: #E3F2FD;
    --warm-white: #FFFBF5;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px; /* Account for fixed navbar */
    background-color: var(--warm-white);
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 245, 0.98) 100%) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.logo-img {
    height: 50px;
    width: auto;
}

.brand-name {
    color: #333;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
    color: #444 !important;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #FFFBF7 0%, #FFF8F0 30%, #F5F0E8 60%, #E8F2F5 100%);
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.2)"/></svg>');
    opacity: 0.4;
    background-size: 50px 50px;
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    color: #2C2C2C;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.hero-subtitle {
    color: #555;
    font-size: 1.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-top: 2rem;
}

/* Service Cards with Images */
.service-card {
    overflow: hidden;
}

.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--bright-yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-image {
    transform: scale(1.1);
}

.service-icon-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

/* Show icon when image is hidden */
.service-image[style*="display: none"] ~ .service-icon-fallback,
.service-image-wrapper:not(:has(img:not([style*="display: none"]))) .service-icon-fallback {
    opacity: 1;
}

/* Gallery Section */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--bright-yellow) 100%);
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
    }
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

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

.card-body i {
    transition: transform 0.3s ease;
}

.card:hover .card-body i {
    transform: scale(1.1);
}

/* Feature Boxes */
.feature-box {
    transition: transform 0.3s ease;
    border-radius: 15px;
}

.feature-box:hover {
    transform: translateY(-5px);
    background-color: #f8f9fa;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

.contact-info i {
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #212529 !important;
}

footer a {
    transition: color 0.3s ease;
}

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

.social-links a {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
    color: var(--primary-color) !important;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
}

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

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #333;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .logo-img {
        height: 40px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Professional Entrance Animation */
.entrance-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFFBF7 0%, #FFF8F0 30%, #F5F0E8 60%, #E8F2F5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    visibility: visible;
}

.entrance-animation.fade-out {
    opacity: 0;
    visibility: hidden;
}

.entrance-content {
    text-align: center;
    position: relative;
}

.entrance-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: logoReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.entrance-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: #333;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: textReveal 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(15px);
    position: relative;
}

.entrance-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    animation: lineExpand 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 80px;
    }
}

