/* Hero Section Styles */

.hero-section {
    height: 95vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    /* Remove the existing fadeInUp animation to control individual elements */
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero-title .welcome-text {
    font-size: 2.5rem;
    font-style: italic;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0; /* Start hidden */
    animation: fadeInFirst 1s ease-out 0.5s both;
    rotate: -18deg;
    margin: 0 15rem 0rem 0rem;
    font-family: 'Sedgwick Ave Display';
}

.hero-title .business-name {
    font-family: 'Sedgwick Ave Display', cursive;
    font-size: 5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    position: relative;
    opacity: 0; /* Start hidden */
    animation: paintBuild 4s ease-in-out 1.5s both;
}

/* Gradual Paint Build Animation for Business Name */
.hero-title .business-name::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 40% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    animation: paintSplatter 4s ease-in-out 1.5s both;
    z-index: -1;
    filter: blur(2px);
    pointer-events: none;
}

.hero-subtitle {
    font-family: 'Sedgwick Ave Display';
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0; /* Start hidden */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    animation: fadeInFirst 1s ease-out 3s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #D03995, #2196f3);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-shadow: none;
    opacity: 0; /* Start hidden */
    animation: fadeInFirst 1s ease-out 3.5s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

/* Social Icons */
.social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0; /* Start hidden */
    animation: fadeInFirst 1s ease-out 4s both;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background: #e91e63;
    color: white;
    transform: scale(1.1);
}

.social-icon.facebook:hover {
    background: #3b5998;
}

.social-icon.instagram:hover {
    background: linear-gradient(45deg, #f56040, #ff6b9d);
}

/* About Section with Image */
.about-with-image {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

/* Gallery Section */
.gallery-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.front-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.content-section.front-page-content {
    padding: 80px 0;
}


.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

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

/* Feature Cards with Images */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.feature-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

/* Secondary button style */
.btn.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-with-image {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-image {
        order: -1;
        max-width: 100%;
    }
    
    .front-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .feature-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .front-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item img {
        height: 150px;
    }
}

#front-bottom-section {
    padding: 55px 0;
    margin: 0 auto;
}

/* NEW ANIMATIONS */
@keyframes fadeInFirst {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes paintBuild {
    0% { 
        opacity: 0;
        filter: blur(4px);
        transform: scale(0.9);
    }
    25% { 
        opacity: 0.3;
        filter: blur(2px);
        transform: scale(0.95);
    }
    50% { 
        opacity: 0.7;
        filter: blur(1px);
        transform: scale(0.98);
    }
    75% { 
        opacity: 0.9;
        filter: blur(0.5px);
        transform: scale(1);
    }
    100% { 
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes paintSplatter {
    0% { 
        opacity: 0;
        transform: scale(0.7);
    }
    25% { 
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% { 
        opacity: 0.4;
        transform: scale(0.9);
    }
    75% { 
        opacity: 0.6;
        transform: scale(1);
    }
    100% { 
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* EXISTING ANIMATIONS (kept for compatibility) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Optional: Reduce animation on mobile for performance */
@media (max-width: 768px) {
    .hero-title .business-name::before {
        display: none;
    }
    
    .hero-title .business-name {
        animation: paintBuildSimple 3s ease-in-out 1.5s both;
    }
    
    @keyframes paintBuildSimple {
        0% { 
            opacity: 0;
            transform: scale(0.95);
        }
        100% { 
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-title .welcome-text,
    .hero-title .business-name,
    .hero-subtitle,
    .cta-button,
    .social-icons {
        animation: none !important;
        opacity: 1 !important;
    }
    
    .hero-title .business-name::before {
        display: none;
    }
}