/* ===========================================
   THE WHISKERY - BAKERY WEBSITE STYLES
   =========================================== */

/* ===========================================
   1. IMPORTS & ROOT VARIABLES
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Chewy&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Chewy', cursive;
    --primary-color: #fe8e9e;
    --secondary-color: white;
    --form-text-color: black;
}

/* ===========================================
   2. GLOBAL STYLES
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

html {
    scroll-behavior: smooth;
}

/* ===========================================
   3. NAVIGATION
   =========================================== */
.navbar {
    padding: 0.5rem 1.5rem !important;
}

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

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500 !important;
}

/* ===========================================
   4. HERO SECTION
   =========================================== */
.hero-section {
    width: 100%;
    height: 90vh;
    background-color: var(--primary-color);
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/sprinkles.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}

.title {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    font-size: 4rem;
    letter-spacing: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.title-image {
    width: 80vh;
    height: 80vh;
    border-radius: 50%;
    object-fit: cover;
    animation: float 3s ease-in-out infinite;
}

.landing-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.cta {
    align-self: flex-start;
    color: var(--primary-color) !important;
    font-weight: 500 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 50px !important;
    margin: 0 !important;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta:hover {
    background-color: var(--secondary-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ===========================================
   5. GALLERY SECTION
   =========================================== */
.gallery-section {
    padding: 4rem 0rem;
    text-align: center;
}

.gallery-section h2 {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 3rem;
}

.carousel-container {
    width: 100%;
    height: auto;
    margin: 0 auto;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.carousel-slide {
    flex: 0 0 300px;
    height: 400px;
    margin-right: 20px;
    overflow: hidden;
}

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

.carousel-slide img:hover {
    transform: scale(1.05);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(254, 142, 158, 0.9);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease-in-out;
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* ===========================================
   6. QUOTE SECTION
   =========================================== */
.quote-section {
    background-color: var(--primary-color);
    padding: 3rem 2rem;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/sprinkles.png') no-repeat center center/cover;
    opacity: 0.2;
    z-index: -1;
}

.quote-header {
    margin-bottom: 2rem;
}

.quote-section h3 {
    font-family: var(--font-secondary);
    color: var(--secondary-color);
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.quote-section p {
    line-height: 1.5;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.quote-form-container {
    background-color: var(--secondary-color);
    color: var(--form-text-color);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive Form Container Styling */
@media (max-width: 768px) {
    .quote-section {
        padding: 2rem 1rem;
    }
    
    .quote-form-container {
        padding: 2rem 1.5rem;
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .quote-section {
        padding: 1.5rem 0.5rem;
    }
    
    .quote-form-container {
        padding: 1.5rem 1rem;
        margin: 0;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .quote-section {
        padding: 1rem 0.25rem;
    }
    
    .quote-form-container {
        padding: 1rem 0.75rem;
    }
}

.quote-title {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

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

.quote-form{
        text-align: start;
    }

.form-label {
    font-weight: 600;
    color: var(--form-text-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

/* Responsive Form Controls */
@media (max-width: 768px) {
    .form-control, .form-select {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .form-control, .form-select {
        padding: 0.75rem 1rem;
    }
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(254, 142, 158, 0.25);
}

.btn-dark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-dark:hover {
    background-color: #e67a8a;
    border-color: #e67a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 142, 158, 0.4);
}

/* ===========================================
   7. TESTIMONIALS SECTION
   =========================================== */
.testimonials-section {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
    text-align: center;
}

.testimonials-header {
    margin-bottom: 3rem;
}

.testimonials-title {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.testimonials-subtitle {
    color: #666666;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #e67a8a);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    text-align: left;
}

.stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.stars i {
    color: #ffc107;
    font-size: 1.1rem;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 1.5rem;
    font-style: italic;
    text-align: center;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    text-align: center;
}

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

.author-location {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

/* ===========================================
   8. FOOTER SECTION
   =========================================== */
.footer-section {
    background-color: #ffffff;
    color: #333333;
    padding: 3rem 2rem 2rem;
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand {
    text-align: center;
    margin-bottom: 3rem;
}

.footer-title {
    font-family: var(--font-secondary);
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #666666;
    font-size: 1.1rem;
    font-style: italic;
    margin: 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

.footer-column p {
    color: #666666;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #e67a8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 142, 158, 0.4);
}

.footer-bottom {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================================
   8. BACK TO TOP BUTTON
   =========================================== */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(254, 142, 158, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top-btn:hover {
    background-color: #e67a8a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 142, 158, 0.4);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===========================================
   9. ANIMATIONS
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        transform: translateY(-50%) scale(1.1);
    }
    50% {
        transform: translateY(-50%) scale(1.2);
    }
    100% {
        transform: translateY(-50%) scale(1.1);
    }
}

/* ===========================================
   9. RESPONSIVE DESIGN
   =========================================== */

/* Tablet screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet and smaller screens */
@media (max-width: 768px) {
    /* Hero Section */
    .title-image {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 1rem;
        text-align: center;
        height: auto;
        min-height: 70vh;
    }
    
    .hero-section .row {
        justify-content: center;
    }
    
    .hero-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .landing-text {
        align-items: center;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .title {
        font-size: 2.5rem;
        letter-spacing: 5px;
        width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .cta {
        align-self: center;
        margin-top: 1rem;
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
    
    /* Gallery Section */
    .gallery-section {
        padding: 2rem 1rem;
    }
    
    .gallery-section h2 {
        font-size: 2rem;
    }
    
    .carousel-container {
        margin: 1rem 0;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    /* Quote Section */
    .quote-section h3 {
        font-size: 2rem;
    }
    
    /* Testimonials Section */
    .testimonials-section {
        padding: 3rem 1rem;
    }
    
    .testimonials-title {
        font-size: 2.2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    
    .quote-title {
        font-size: 1.8rem;
    }
    
    /* Footer Section */
    .footer-section {
        padding: 2rem 1rem 1.5rem;
    }
    
    .footer-title {
        font-size: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        text-align: center;
    }
    
    .footer-column:last-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 1rem;
    }
    
    
    .social-icons {
        justify-content: center;
        gap: 1rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    /* Back to Top Button */
    .back-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    /* Hero Section */
    .hero-section {
        padding: 1.5rem 0.5rem;
        height: auto;
        min-height: 60vh;
    }
    
    .title {
        font-size: 1.8rem;
        letter-spacing: 3px;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        align-self: center;
        margin-top: 1rem;
    }
    
    /* Gallery Section */
    .gallery-section h2 {
        font-size: 1.8rem;
    }
    
    /* Quote Section */
    .quote-section h3 {
        font-size: 1.8rem;
    }
    
    .quote-title {
        font-size: 1.5rem;
    }
    
    /* Testimonials Section */
    .testimonials-section {
        padding: 2rem 0.5rem;
    }
    
    .testimonials-title {
        font-size: 1.8rem;
    }
    
    .testimonials-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: 1.2rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    .author-name {
        font-size: 1rem;
    }
    
    .author-location {
        font-size: 0.8rem;
    }
    
    
    /* Footer Section */
    .footer-title {
        font-size: 1.8rem;
    }
    
    .footer-section {
        padding: 1.5rem 0.5rem 1rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    
    .footer-column h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-column p {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    /* Back to Top Button */
    .back-to-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Extra small screens (phones in portrait) */
@media (max-width: 360px) {
    .footer-section {
        padding: 1rem 0.25rem 0.75rem;
    }
    
    .footer-title {
        font-size: 1.5rem;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column p {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}