/* CSS Custom Properties for Dark Mode and Mobile Flexibility */
:root {
    --primary-bg: #FFFBEE;
    --secondary-bg: #373E02;
    --text-primary: #54151A;
    --text-secondary: #54151A;
    --accent-color: #CCAA00;
    --border-color: #ddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Mobile-first responsive variables */
    --mobile-padding: clamp(0.75rem, 3vw, 1.5rem);
    --mobile-margin: clamp(0.5rem, 2vw, 1rem);
    --mobile-font-size: clamp(0.875rem, 2.5vw, 1rem);
    --mobile-line-height: 1.6;
    --mobile-touch-target: max(44px, 2.75rem);
    
    /* Flexible breakpoints */
    --bp-xs: 360px;
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
    --bp-xl: 1200px;
    
    /* Fluid spacing scale */
    --space-xs: clamp(0.25rem, 1vw, 0.5rem);
    --space-sm: clamp(0.5rem, 2vw, 1rem);
    --space-md: clamp(1rem, 3vw, 1.5rem);
    --space-lg: clamp(1.5rem, 4vw, 2rem);
    --space-xl: clamp(2rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary-bg: #1a1a1a;
        --secondary-bg: #373E02;
        --text-primary: #54151A;
        --text-secondary: #54151A;
        --accent-color: #ffcc33;
        --border-color: #444;
        --shadow-color: rgba(255, 255, 255, 0.1);
    }
}

/* Accessibility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global Styles - Mobile First */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Mozilla Headline', sans-serif;
}

body {
    color: #54151A; /* Main font color - Red to match theme */
    line-height: 1.6;
    font-size: 1rem;
    overflow-x: hidden;
}

/* Home page specific background */
body.home-page {
    background-color: #f5f5f5 !important;
    background-image: url('assets/homebg.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh !important;
}

/* Contact page specific background */
body.contact-page {
    background-color: #f5f5f5 !important;
    background-image: url('assets/homebg.png') !important;
    background-position: center center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
    min-height: 100vh !important;
}

/* Headings - Mobile First Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Special Elite', cursive;
    color: #54151A;
    margin-bottom: 1rem;
}

/* Mobile-first typography */
h1 {
    font-size: 2rem;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    body {
        font-size: 0.875rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.125rem;
    }
    
    header {
        padding: 0.5rem 2%;
    }
    
    .logo {
        margin-left: 0;
        margin-right: auto;
    }
    
    .logo img {
        height: 2.5rem;
        max-width: calc(100vw - 4rem);
    }
    
    .hamburger-menu {
        width: 1.5rem;
        height: 1rem;
    }
}

/* Small mobile devices */
@media (min-width: 361px) and (max-width: 480px) {
    body {
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    header {
        padding: 0.75rem 3%;
    }
    
    .logo {
        margin-left: 0;
        margin-right: auto;
    }
    
    .logo img {
        height: 3rem;
        max-width: calc(100vw - 5rem);
    }
    
    .hamburger-menu {
        width: 1.75rem;
        height: 1.25rem;
    }
}

/* Tablet screens */
@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header and Navigation - Mobile First */
header {
    background-color: var(--secondary-bg);
    padding: 0.75rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0.125rem 0.625rem var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile-first hamburger menu - visible by default */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-menu span {
    display: block;
    height: 0.1875rem;
    width: 100%;
    background-color: #FFFBEE;
    border-radius: 0.125rem;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 0;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 3.125rem;
    width: auto;
    max-width: calc(100vw - 6rem);
}

/* Hide desktop navigation on mobile */
.nav-links {
    display: none;
}

/* Auth buttons styling - hidden on mobile */
.auth-buttons {
    display: none;
}

/* Tablet and larger - show desktop navigation */
@media (min-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    .logo {
        margin-left: -30px;
    }
    
    .logo img {
        height: 4.5rem;
        max-width: none;
    }
    
    .hamburger-menu {
        display: none;
    }
    
    .nav-links {
        display: flex;
        gap: 1rem;
        list-style: none;
    }
    
    .nav-links li a {
        color: #FFFBEE;
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.0625rem;
        transition: all 0.3s ease;
        padding: 0.5rem 0.75rem;
        border-radius: 0.25rem;
        min-height: 2rem;
        display: flex;
        align-items: center;
    }
    
    .nav-links li a:hover, .nav-links li a.active {
        color: #FFD700;
        background-color: rgba(255, 215, 0, 0.1);
        transform: translateY(-0.125rem);
    }
    
    .auth-buttons {
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }
}

/* Mobile-first button styles with larger touch targets */
.log-in-btn {
    background-color: var(--accent-color);
    color: #54151A;
    border: 0.125rem solid var(--accent-color);
    padding: 0.375rem 0.875rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    min-height: 1.75rem;
    min-width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.log-in-btn:hover {
    background-color: #B8960A;
    color: #FFFBEE;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.5rem rgba(204, 170, 0, 0.3);
}

.sign-up-btn {
    background-color: #54151A;
    color: white;
    border: 0.125rem solid #54151A;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    min-height: 1.75rem;
    min-width: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-up-btn:hover {
    background-color: #3f1013;
    border-color: #3f1013;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.5rem rgba(84, 21, 26, 0.3);
}

/* Desktop - smaller buttons */
@media (min-width: 1024px) {
    .log-in-btn,
    .sign-up-btn {
        padding: 0.4rem 0.875rem;
        font-size: 0.7rem;
        min-height: 2rem;
        min-width: 5.5rem;
    }
}

/* Sign-out button and welcome message styles */
.logged-in-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.welcome-user {
    color: #d4a574;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Static user display for contact page */
.user-display {
    display: flex;
    align-items: center;
}

.static-username {
    color: #d4a574;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.edit-profile-btn {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 10px;
}

.edit-profile-btn:hover {
    background-color: #654321;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sign-out-btn {
    background-color: #54151A;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sign-out-btn:hover {
    background-color: #3f1013;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Login Modal Form - Brown Coffee Theme */
#loginModal .form-group label {
    color: #3E2723;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

#loginModal .form-group input[type="text"],
#loginModal .form-group input[type="password"] {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(139, 115, 85, 0.4);
    color: #3E2723;
    backdrop-filter: blur(2px);
}

#loginModal .form-group input[type="text"]:focus,
#loginModal .form-group input[type="password"]:focus {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: #8B7355;
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.2);
}

#loginModal .checkbox-group label {
    color: #5D4037;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    font-weight: 500;
}

#loginModal .login-submit-btn {
    background-color: #8B4513;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#loginModal .login-submit-btn:hover {
    background-color: #A0522D;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#loginModal .signup-link {
    border-top: 1px solid rgba(94, 39, 35, 0.2);
}

#loginModal .signup-link p {
    color: #5D4037;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

#loginModal .signup-link a {
    color: #8B4513;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
}

#loginModal .signup-link a:hover {
    color: #A0522D;
    text-decoration: underline;
}

#loginModal .forgot-password a {
    color: #795548;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2);
}

#loginModal .forgot-password a:hover {
    color: #8B4513;
    text-decoration: underline;
}

/* Login form styles */
.login-submit-btn {
    width: 100%;
    background-color: #54151A;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #3f1013;
    transform: translateY(-2px);
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.signup-link p {
    color: #4a4a4a;
    margin-bottom: 0;
}

.signup-link a {
    color: #d4a574;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #54151A;
    text-decoration: underline;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #666666;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #54151A;
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding-top: 0;
}

/* Transparent backgrounds for main sections */
.hero-section,
.recipes-container,
.premium-container,
.brewing-tips,
.testimonials,
.faq-section,
.discussion-section,
.baristas-choice-section {
    background-color: transparent;
}

/* Hero Section - Mobile First Layout with Original Content */
.hero-section {
    padding: 2rem 5%;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    margin-left: -30px; /* Align with logo positioning */
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

/* Home page specific hero text styling */
body.home-page .hero-text h1 {
    color: #54151A;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

body.home-page .hero-text p {
    color: #54151A;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Default hero text for other pages */
.hero-text h1 {
    color: #54151A;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    color: #54151A;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}





.cta-button {
    background-color: #54151A; /* Original color */
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 300px;
    margin-top: 3rem;
}

.cta-button:hover {
    background-color: #3f1013; /* Original hover color */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 21, 26, 0.3);
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    

    
    .cta-button {
        width: auto;
        max-width: none;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .hero-section {
        padding: 4rem 5%;
        min-height: 400px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    

}



/* Contact Page Section Styling */
.contact-section {
    padding: 2rem 1rem;
    background: #f8fafc;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Left Section */
.contact-left-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info-and-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.5rem;
    gap: 0.5rem;
}

/* Contact Header */
.contact-header {
    text-align: center;
    margin-bottom: 0.3rem;
}

.contact-header h2 {
    color: #54151A;
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0;
    font-family: 'Special Elite', cursive;
    letter-spacing: 1px;
}

/* Contact Details */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    color: #54151A;
}

.contact-item i {
    color: #54151A;
    font-size: 1.2rem;
    min-width: 1.5rem;
}

.contact-item span {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

/* Contact page specific header styling - ensuring consistency */
body.contact-page header {
    background-color: var(--secondary-bg);
    padding: 0.75rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0.125rem 0.625rem var(--shadow-color);
}

body.contact-page .logo img {
    height: 3.125rem;
    width: auto;
}

body.contact-page .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Contact page tablet and larger */
@media (min-width: 768px) {
    body.contact-page header {
        padding: 1rem 5%;
    }
    
    body.contact-page .logo img {
        height: 4.5rem;
    }
}

.contact-form-wrapper {
    width: 100%;
    padding: 0.1rem 0;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.form-group {
    margin-bottom: 0.5rem;
    position: relative;
    width: 100%;
}

.form-group label {
    display: block;
    color: #54151A;
    font-weight: 600;
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1px;
}



.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 0.8rem;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
    color: #333;
    display: block;
    margin-bottom: 0.1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #54151A;
    background: white;
    box-shadow: 0 0 0 3px rgba(84, 21, 26, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 50px;
    line-height: 1.2;
}

.submit-btn {
    background: #54151A;
    color: white;
    padding: 0.5rem 0.8rem;
    border: 1px solid #54151A;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Raleway', sans-serif;
    margin-top: 0.3rem;
    display: block;
}

.submit-btn:hover {
    background: transparent;
    color: #54151A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 21, 26, 0.2);
}

/* Contact details in hero-text */
.hero-text .contact-details {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-text .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: #54151A;
}

.hero-text .contact-item i {
    color: #54151A;
    font-size: 1.2rem;
    min-width: 1.5rem;
}

.hero-text .contact-item span {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
}

/* Contact Image Section */
.contact-image-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

.contact-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Contact form styles for new layout */
.brand-info {
    padding: 20px 30px;
    text-align: center;
}

.brand-info h3 {
    font-family: 'Special Elite', cursive;
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    font-weight: 400;
}

.nav-links-small {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links-small a {
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links-small a:hover {
    color: #CCAA00;
}

.contact-form-content {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

.contact-form-content h2 {
    color: #54151A;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-family: 'Special Elite', cursive;
    font-weight: 400;
}

/* Contact Form Styles - Hero Layout */
.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    color: #54151A;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Raleway', sans-serif;
    background-color: white;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #54151A;
    box-shadow: 0 0 0 2px rgba(84, 21, 26, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form textarea {
    resize: vertical;
    min-height: 6rem;
}

.submit-btn {
    background-color: #54151A;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Raleway', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    width: 100%;
}

.submit-btn:hover {
    background-color: #3f1013;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(84, 21, 26, 0.3);
}

/* Desktop form styles */
@media (min-width: 768px) {
    .contact-form label {
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 0.9375rem;
        font-size: 0.9rem;
    }
    
    .contact-form textarea {
        min-height: 6.25rem;
    }
    
    .submit-btn {
        padding: 0.9375rem 1.875rem;
        font-size: 0.9rem;
        width: auto;
        align-self: flex-end;
        min-width: 7.5rem;
    }
}

/* Contact Information Section */
.contact-info-section h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Special Elite', cursive;
    font-weight: 400;
    text-align: left;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-item i {
    color: white;
    font-size: 1.2rem;
    margin-top: 0.2rem;
    min-width: 1.5rem;
}

.contact-item span {
    color: white;
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
}

/* Contact Page Responsive Design */
@media (max-width: 1024px) {
    .contact-container {
        gap: 60px;
    }
    
    .chat-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        justify-content: center;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
        padding: 1.5rem;
        margin: 0;
    }
    
    .hero-text .contact-details {
        margin-top: 1.5rem;
        align-items: center;
    }
    
    .hero-text .contact-item {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Contact Page Additional Media Queries */
@media (min-width: 769px) {
    .hero-section {
        flex-direction: row;
        text-align: left;
        gap: 4rem;
        padding: 4rem 5%;
    }
    
    .hero-text {
        order: 0;
        flex: 1;
    }
    
    .hero-visual {
        order: 0;
        flex: 1;
        justify-content: flex-end;
    }
    
    .contact-form-wrapper {
        max-width: 600px;
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        gap: 5rem;
        padding: 5rem 5%;
    }
    
    .contact-form-wrapper {
        max-width: 700px;
        padding: 3rem;
    }
    
    .hero-text .contact-details {
        margin-top: 2.5rem;
    }
    
    .hero-text .contact-item {
        font-size: 1.1rem;
    }
}

@media (max-width: 375px) {
    .contact-section {
        padding: 0.25rem;
        min-height: auto;
    }
    
    .contact-container {
        margin: 0;
        border-radius: 6px;
        min-height: 350px;
    }
    
    .contact-image-section {
        height: 150px;
        min-height: 150px;
        padding: 0.25rem;
    }
    
    .contact-info-and-form {
        padding: 0.75rem 0.5rem;
        gap: 0.75rem;
    }
    
    .contact-header h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.75rem;
        padding: 0.3rem;
        margin-bottom: 0.5rem;
    }
    
    .contact-item i {
        font-size: 0.8rem;
        margin-right: 0.5rem;
    }
    
    .form-group {
        margin-bottom: 0.6rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
    
    .form-group textarea {
        min-height: 60px;
    }
    
    .submit-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
        border-radius: 4px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .contact-container {
        flex-direction: column;
        height: auto;
        min-height: 450px;
        margin: 0 0.5rem;
        border-radius: 12px;
    }
    
    .contact-image-section {
        height: 200px;
        min-height: 200px;
        padding: 1rem;
    }
    
    .contact-left-section {
        flex-direction: column;
    }
    
    .contact-info-and-form {
        padding: 1.5rem 1rem;
        justify-content: flex-start;
        gap: 1.5rem;
    }
    
    .contact-header h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .contact-details {
        margin-bottom: 1.5rem;
        padding: 0;
    }
    
    .contact-item {
        margin-bottom: 1rem;
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .contact-item i {
        font-size: 1rem;
        margin-right: 1rem;
    }
    
    .contact-form-wrapper {
        padding: 0;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Contact Page Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 1rem 0.5rem;
        min-height: 500px;
    }
    
    .contact-container {
        flex-direction: column;
        height: auto;
        min-height: 450px;
    }
    
    .contact-image-section {
        height: 250px;
        min-height: 200px;
    }
    
    .contact-left-section {
        flex-direction: column;
    }
    
    .contact-form-section {
        padding: 2rem 1rem;
        min-height: 300px;
    }
    
    .contact-form-wrapper {
        max-width: 100%;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1rem 0.5rem;
        min-height: 400px;
    }
    
    .contact-container {
        margin: 0 0.5rem;
        border-radius: 8px;
        min-height: 350px;
    }
    
    .contact-image-section {
        height: 180px;
        min-height: 150px;
        padding: 0.5rem;
    }
    
    .contact-info-and-form {
        padding: 1rem 0.75rem;
        gap: 1rem;
    }
    
    .contact-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
        padding: 0.4rem;
        margin-bottom: 0.75rem;
    }
    
    .contact-item i {
        font-size: 0.9rem;
        margin-right: 0.6rem;
    }
    
    .contact-form-wrapper {
        padding: 0;
    }
    
    .form-group {
        margin-bottom: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.8rem;
        border-radius: 6px;
        letter-spacing: 0.5px;
    }
}

/* Footer - Mobile First */
footer {
    background-color: var(--secondary-bg);
    color: #FFFBEE;
    padding: 2rem 5% 1.25rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    height: 3rem;
    margin-bottom: 1rem;
}

.footer-links {
    text-align: center;
}

.footer-links h3, .footer-newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
    color: #FFFBEE;
}

.footer-newsletter {
    text-align: center;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    footer {
        padding: 3.125rem 5% 1.25rem;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1.875rem;
        margin-bottom: 2.5rem;
    }
    
    .footer-logo {
        flex: 1;
        min-width: 12.5rem;
        text-align: left;
    }
    
    .footer-logo img {
        height: 3.125rem;
        margin-bottom: 0.9375rem;
    }
    
    .footer-links {
        flex: 1;
        min-width: 12.5rem;
        text-align: left;
    }
    
    .footer-links h3, .footer-newsletter h3 {
        margin-bottom: 0.9375rem;
        font-size: 1.2rem;
    }
    
    .footer-newsletter {
        flex: 1;
        min-width: 18.75rem;
        text-align: left;
    }
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: white;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: white; /* Secondary font color - White */
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
}

.footer-newsletter input {
    padding: 0.875rem 1rem;
    border: 0.125rem solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    min-height: 3rem;
}

.footer-newsletter button {
    background-color: var(--text-primary);
    color: white;
    border: none;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
    min-height: 3rem;
}

.footer-newsletter button:hover {
    background-color: #3f1013;
    transform: translateY(-0.0625rem);
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .footer-newsletter form {
        flex-direction: row;
        gap: 0;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.9375rem;
    }
    
    .footer-newsletter input {
        flex: 1;
        padding: 0.625rem;
        border-radius: 0.25rem 0 0 0.25rem;
        font-size: 0.875rem;
        min-height: auto;
    }
    
    .footer-newsletter button {
        padding: 0.625rem 0.9375rem;
        border-radius: 0 0.25rem 0.25rem 0;
        font-size: 0.875rem;
        min-height: auto;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Removed - will be consolidated below */

/* Modal Styles - Mobile First */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.modal-content {
    background-color: transparent;
    margin: 2rem auto;
    padding: 0;
    border-radius: 1rem;
    width: 100%;
    max-width: 90vw;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 0.5rem 2rem var(--shadow-color);
    border: 0.0625rem solid var(--border-color);
    max-height: 600px;
    overflow-y: auto;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .modal {
        padding: 2rem;
    }
    
    .modal-content {
        margin: 3% auto;
        width: 85%;
        max-width: 43.75rem;
        border-radius: 0.75rem;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .modal-content {
        max-width: 50rem;
    }
}



/* Login Modal Specific Styling - White Background */
#loginModal .modal-content {
    background-color: white;
}

/* Sign Up Modal Specific Styling - White Background */
#signUpModal .modal-content {
    background-color: white;
}

/* Home Modal Color Theme - White Background */
.modal-content.home-modal {
    position: relative;
    background-color: white;
}

/* Cafe Modal Color Theme - Dark Red Brown Background */
.modal-content.cafe-modal {
    position: relative;
    background-color: #54151A;
}

/* Cafe Modal Text Color - White for better readability on red-brown background */
.modal-content.cafe-modal .modal-body {
    color: white;
}

.modal-content.cafe-modal .modal-body h2,
.modal-content.cafe-modal .modal-body h3,
.modal-content.cafe-modal .modal-body p,
.modal-content.cafe-modal .modal-body ul li,
.modal-content.cafe-modal .modal-body ol li {
    color: white;
}

.modal-content.cafe-modal .prep-time {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Instructions heading styling for all modals */
.modal-body h3:contains("Instructions") {
    color: #54151A !important;
}

/* Alternative approach using nth-child if contains doesn't work */
.modal-body .recipe-details h3:nth-of-type(2) {
    color: #54151A !important;
}

/* Ingredients heading styling for all modals - Mustard Yellow */
.modal-body h3:contains("Ingredients") {
    color: #CCAA00 !important;
}

/* Alternative approach using first h3 for ingredients */
.modal-body .recipe-details h3:first-of-type {
    color: #CCAA00 !important;
}

.modal-body {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    color: var(--text-primary);
    font-family: 'Arial', sans-serif;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .modal-body {
        padding: 2.5rem;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .modal-body {
        padding: 3.125rem;
    }
}

.prep-time {
    background-color: transparent;
    border-left: 4px solid #d4a574;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: #555555;
    font-family: 'Special Elite', cursive;
}

.prep-time i {
    color: #d4a574;
    margin-right: 8px;
}

.modal-body h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    margin-top: 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.03125rem;
    text-transform: uppercase;
    border-bottom: 0.125rem solid var(--border-color);
    padding-bottom: 0.9375rem;
}

/* Tablet and larger screens */
@media (min-width: 768px) {
    .modal-body h2 {
        font-size: 1.75rem;
        margin-bottom: 1.875rem;
    }
}

/* Desktop screens */
@media (min-width: 1024px) {
    .modal-body h2 {
        font-size: 2rem;
        margin-bottom: 1.875rem;
    }
}

.modal-body h3 {
    color: #555555;
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-body p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #4a4a4a;
}

.modal-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.modal-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f8f8;
    color: #555555;
    font-size: 0.95rem;
    position: relative;
    padding-left: 20px;
}

.modal-body ul li:before {
    content: "•";
    color: #d4a574;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.modal-body ol {
    padding-left: 20px;
    margin-bottom: 25px;
}

.modal-body ol li {
    padding: 8px 0;
    color: #555555;
    font-size: 0.95rem;
    line-height: 1.6;
}



@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Modal Close Button (X) Styles */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 20;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(84, 21, 26, 0.3);
}

/* Login Modal X Button - Brown Theme */
#loginModal .modal-close {
    color: #8B4513;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(139, 69, 19, 0.3);
}

#loginModal .modal-close:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #5D2F0A;
    border-color: rgba(139, 69, 19, 0.5);
}

/* Recipe Buttons Styles */
.recipe-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.recipe-btn {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #ffffff;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-btn {
    border-color: #d4a574;
    color: #d4a574;
}

.home-btn:hover {
    background-color: #d4a574;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.cafe-btn {
    border-color: #8b7355;
    color: #8b7355;
}

.cafe-btn:hover {
    background-color: #8b7355;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.3);
}

/* Sign Up Form Styles */
.signup-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555555;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: #d4a574;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
    font-size: 0.9rem;
}

.signup-submit-btn {
    width: 100%;
    background-color: #54151A;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.signup-submit-btn:hover {
    background-color: #3f1013;
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-link p {
    color: #4a4a4a;
    margin-bottom: 0;
}

.login-link a {
    color: #d4a574;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: #54151A;
    text-decoration: underline;
}

/* Comment Form Styles */
.comment-form {
    margin-top: 30px;
}

.comment-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.comment-submit-btn {
    background-color: #54151A;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.comment-submit-btn:hover {
    background-color: #3f1013;
    transform: translateY(-2px);
}

.comment-skip-btn {
    background-color: transparent;
    color: #4a4a4a;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-skip-btn:hover {
    border-color: #d4a574;
    color: #d4a574;
    transform: translateY(-2px);
}

/* Comment Reactions Styles */
.comment-reactions {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #666;
}

.thumbs-up-btn,
.thumbs-down-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1rem;
}

.thumbs-up-btn:hover {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.1);
}

.thumbs-up-btn.active {
    color: #27ae60;
    background-color: rgba(39, 174, 96, 0.15);
}

.thumbs-down-btn:hover {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
}

.thumbs-down-btn.active {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.15);
}

.thumbs-up-btn:disabled,
.thumbs-down-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.thumbs-up-btn:disabled:hover,
.thumbs-down-btn:disabled:hover {
    color: #666;
    background-color: transparent;
}

.comment-reactions span {
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}



/* Modal Header Styles */
.modal-header {
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #54151A;
    margin-bottom: 20px;
    position: relative;
    z-index: 15;
}

.modal-header h2 {
    color: #3E2723;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'Special Elite', cursive;
    font-weight: 700;
}

.modal-header p {
    color: #3E2723;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(62, 39, 35, 0.2);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Login Modal Header - Brown Coffee Theme */
#loginModal .modal-header h2 {
    color: #3E2723;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

#loginModal .modal-header p {
    color: #5D4037;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

#loginModal .modal-header {
    border-bottom: 1px solid rgba(94, 39, 35, 0.2);
}

/* Welcome Message Styles */
#welcomeMessage {
    color: #54151A; /* Red color to match theme */
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    font-family: 'Special Elite', cursive;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* ========================================
   HAMBURGER MENU & MOBILE NAVIGATION
   Enhanced Mobile-First Design
   ======================================== */

/* Hamburger Menu Button - Modern 3-line design */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #FFFBEE;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

/* Enhanced hamburger animation */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background-color: #c4a574;
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background-color: #c4a574;
}

/* Mobile Menu Overlay - App-like full-screen design */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 700px;
    background: linear-gradient(135deg, #1a1f00 0%, #2d3201 50%, #1a1f00 100%);
    z-index: 1000;
    padding: 0;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mobile-menu-overlay.active {
    display: flex;
    flex-direction: column;
    animation: slideInFromRight 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Mobile menu content container */
.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 24px 24px;
    position: relative;
}



/* Mobile menu header */
.mobile-menu-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(196, 165, 116, 0.2);
}

.mobile-menu-header h2 {
    color: #FFD700;
    font-size: 1.5rem;
    font-weight: 300;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Enhanced mobile navigation links */
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFFBEE;
    font-weight: 500;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 20px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 165, 116, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.mobile-nav-links li a::after {
    content: '›';
    font-size: 1.4rem;
    color: #c4a574;
    transition: transform 0.3s ease;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a.active {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.mobile-nav-links li a:hover::after,
.mobile-nav-links li a.active::after {
    transform: translateX(4px);
}

/* Enhanced mobile auth buttons */
.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0 0;
    border-top: 1px solid rgba(196, 165, 116, 0.2);
    margin-top: auto;
}

.mobile-auth-buttons .mobile-login-btn,
.mobile-auth-buttons .mobile-signup-btn {
    width: 100%;
    padding: 6px 12px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 12px;
    border: 2px solid #54151A;
    background: #54151A;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(5px);
    min-height: 32px;
}

.mobile-auth-buttons .mobile-login-btn:hover,
.mobile-auth-buttons .mobile-signup-btn:hover {
    background: #3f1013;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 165, 116, 0.3);
}

.mobile-auth-buttons .mobile-signup-btn {
    background: #c4a574;
    color: #1a1f00;
}

.mobile-auth-buttons .mobile-signup-btn:hover {
    background: transparent;
    color: #c4a574;
}

/* Mobile Menu Media Queries */

/* Small mobile devices (320px - 480px) */
@media (max-width: 480px) {
    .mobile-menu-content {
        padding: 70px 16px 16px;
    }
    
    .mobile-menu-header h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }
    
    .mobile-nav-links li a {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .mobile-auth-buttons .mobile-login-btn,
    .mobile-auth-buttons .mobile-signup-btn {
        padding: 6px 12px;
        font-size: 0.65rem;
        min-height: 32px;
    }
}

/* Medium mobile devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .mobile-menu-content {
        padding: 85px 20px 20px;
    }
    
    .mobile-nav-links li a {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
    
    .mobile-auth-buttons .mobile-login-btn,
    .mobile-auth-buttons .mobile-signup-btn {
        padding: 7px 14px;
        font-size: 0.7rem;
        min-height: 34px;
    }
}

/* Hide mobile menu on larger screens */
@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none !important;
    }
    
    .hamburger-menu {
        display: none !important;
    }
}

/* Ensure hamburger menu shows on mobile */
@media (max-width: 767px) {
    .hamburger-menu {
        display: flex !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    .auth-buttons {
        display: none !important;
    }
}

/* ========================================
   RESPONSIVE LAYOUT UTILITIES
   ======================================== */

/* Small mobile devices - Enhanced spacing and layout */
@media (max-width: 480px) {
    /* Reduce padding and margins for small screens */
    .contact-section {
        padding: 1.25rem 0.625rem;
    }
    
    .modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        margin: 1rem auto;
        border-radius: 0.75rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-body h2 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Stack all flex containers vertically */
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Increase touch targets for very small screens */
    .mobile-nav-links li a {
        padding: 1.25rem 1.5rem;
        font-size: 1.25rem;
        min-height: 4rem;
    }
    

}

/* Medium mobile devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    /* Optimize for medium mobile screens */
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
    
    .mobile-nav-links li a {
        font-size: 1.0625rem;
        min-height: 3.75rem;
    }
}

/* Tablet landscape and small desktop */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Optimize for tablet screens */
    .navbar {
        padding: 1rem 4%;
    }
    
    .footer {
        padding: 2.5rem 4% 1rem;
    }
    
    .modal-content {
        max-width: 40rem;
    }
}

/* Large desktop screens */
@media (min-width: 1200px) {
    .modal-content {
        max-width: 55rem;
    }
    
    .footer-content {
        max-width: 75rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

/* Hide decorative elements on mobile */
@media (max-width: 768px) {
    /* Hide non-essential decorative elements */
    .decorative-border,
    .decorative-icon,
    .background-pattern,
    .hero-decoration {
        display: none !important;
    }
    
    /* Simplify complex layouts */
    .complex-grid {
        display: block !important;
    }
    
    /* Reduce visual complexity */
    .box-shadow-heavy {
        box-shadow: 0 0.125rem 0.25rem var(--shadow-color) !important;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure all interactive elements have adequate touch targets */
    button,
    .btn,
    a[role="button"],
    input[type="submit"],
    input[type="button"] {
        min-height: 2.75rem;
        min-width: 2.75rem;
        padding: 0.75rem 1rem;
    }
    
    /* Increase spacing between interactive elements */
    .button-group button,
    .button-group .btn {
        margin-bottom: 0.75rem;
    }
    
    /* Optimize form elements for touch */
    input,
    textarea,
    select {
        min-height: 2.75rem;
        font-size: 1rem;
    }
    
    /* Improve readability */
    p, li {
        line-height: 1.6;
        font-size: 1rem;
    }
    
    /* Stack navigation elements */
    .nav-horizontal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Enhanced touch targets for very small screens */
@media (max-width: 480px) {
    button,
    .btn,
    a[role="button"],
    input[type="submit"],
    input[type="button"] {
        min-height: 3rem;
        min-width: 3rem;
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    input,
    textarea,
    select {
        min-height: 3rem;
        padding: 1rem;
        font-size: max(16px, 1rem); /* Prevents zoom on iOS */
    }
    
    /* Increase text size for better readability */
    p, li {
        font-size: 1.0625rem;
        line-height: 1.7;
    }
}

/* ========================================
   ENHANCED MOBILE FLEXIBILITY
   Advanced responsive utilities
   ======================================== */

/* Fluid typography using clamp() */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.125rem, 3.5vw, 1.75rem);
    }
    
    /* Fluid spacing */
    .section {
        padding: clamp(1rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    }
    
    /* Flexible containers */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: clamp(0.75rem, 3vw, 1.5rem);
        padding-right: clamp(0.75rem, 3vw, 1.5rem);
    }
    
    /* Responsive grid system */
    .responsive-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
        gap: clamp(0.75rem, 3vw, 1.5rem);
    }
    
    /* Flexible modal sizing */
    .modal-content {
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        margin: 1rem;
    }
}

/* Orientation-specific optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 700px;
        padding: 1rem clamp(1rem, 5vw, 3rem);
    }
    
    .mobile-menu-overlay {
        padding: 1rem;
    }
}

@media (max-width: 768px) and (orientation: portrait) {
    .hero-section {
        min-height: 550px;
        padding: 2rem clamp(1rem, 4vw, 2rem);
    }
}

/* High DPI display optimizations */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 768px) {
    /* Ensure focus indicators are visible */
    button:focus,
    input:focus,
    textarea:focus,
    select:focus,
    a:focus {
        outline: 2px solid #FFD700;
        outline-offset: 2px;
    }
    
    /* Improve contrast for better readability */
    .text-secondary {
        color: #333;
    }
    
    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 80px 50px 60px;
    color: white;
    position: relative;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.02"/><circle cx="40" cy="80" r="1" fill="%23ffffff" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
}



.mobile-menu-header {
    margin-bottom: 60px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.mobile-menu-header h2 {
    color: #c4a574;
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
    font-family: 'Mozilla Headline', sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-nav-links li {
    margin-bottom: 35px;
    text-align: center;
    position: relative;
}

.mobile-nav-links li::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    transition: width 0.3s ease;
}

.mobile-nav-links li:hover::after {
    width: 80%;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: 'Raleway', sans-serif;
    transition: all 0.3s ease;
    display: block;
    padding: 15px 0;
    position: relative;
}

.mobile-nav-links a:hover {
    color: #FFD700;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.mobile-nav-links a.active {
    color: #FFD700;
    font-weight: 400;
}

.mobile-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: auto;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-login-btn,
.mobile-signup-btn {
    padding: 10px 20px;
    border: 1px solid #54151A;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Raleway', sans-serif;
    background: #54151A;
    color: white;
    position: relative;
    overflow: hidden;
}

.mobile-login-btn::before,
.mobile-signup-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(196, 165, 116, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-login-btn:hover::before,
.mobile-signup-btn:hover::before {
    left: 100%;
}

.mobile-login-btn {
    color: #c4a574;
    border-color: #c4a574;
}

.mobile-login-btn:hover {
    background-color: rgba(196, 165, 116, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 165, 116, 0.2);
}

.mobile-signup-btn {
    color: white;
    border-color: #54151A;
}

.mobile-signup-btn:hover {
    background-color: #3f1013;
    border-color: #3f1013;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(84, 21, 26, 0.3);
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ========================================
   HOMEPAGE LAYOUT MEDIA QUERIES
   Organized responsive design for homepage template
   ======================================== */

/* Large Desktop Devices (1200px and above) */
@media (min-width: 1200px) {
    .hero-section {
        padding: 5rem 5%;
        min-height: 600px;
    }
    
    .hero-container {
        max-width: 1400px;
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
        line-height: 1.1;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        line-height: 1.7;
    }
    
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
    }
    

    

}

/* Desktop Devices (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-section {
        padding: 4rem 5%;
        min-height: 80vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    

    

}

/* Tablet Landscape (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 3rem 4%;
        min-height: 500px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-left: -20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    

    

    
    .cta-button {
        width: auto;
        max-width: none;
    }
}

/* Tablet Portrait (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-section {
        padding: 2.5rem 4%;
        min-height: 70vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-text {
        background: rgba(255, 255, 255, 0.4);
        padding: 2rem;
        border-radius: 8px;
        backdrop-filter: blur(2px);
    }
    
    body.home-page .hero-text h1 {
        font-size: 2.25rem;
        color: #54151A;
    }
    
    body.home-page .hero-text p {
        font-size: 0.95rem;
        max-width: 600px;
        margin: 0 auto 1.5rem;
        color: #54151A;
    }
    
    .hero-text h1 {
        font-size: 2.25rem;
        color: #FFFBEE;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        max-width: 600px;
        margin: 0 auto 1.5rem;
        color: #FFFBEE;
    }
    

    
    .cta-button {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}

/* Mobile Landscape (321px - 480px) */
@media (min-width: 321px) and (max-width: 480px) {
    .hero-section {
        padding: 2rem 5%;
        min-height: 400px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
        margin-left: 0;
    }
    
    .hero-text {
        background: rgba(255, 255, 255, 0.4);
        padding: 1.5rem;
        border-radius: 8px;
        backdrop-filter: blur(2px);
    }
    
    body.home-page .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #54151A;
    }
    
    body.home-page .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        color: #54151A;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        color: #FFFBEE;
    }
    
    .hero-text p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.25rem;
        color: #FFFBEE;
    }
    

    
    .cta-button {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Small Mobile (320px and below) */
@media (max-width: 320px) {
    .hero-section {
        padding: 1.5rem 3%;
        min-height: 350px;
    }
    
    .hero-container {
        gap: 1rem;
        margin-left: 0;
    }
    
    .hero-text {
        background: rgba(255, 255, 255, 0.4);
        padding: 1.25rem;
        border-radius: 8px;
        backdrop-filter: blur(2px);
    }
    
    body.home-page .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        color: #54151A;
    }
    
    body.home-page .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        color: #54151A;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        color: #FFFBEE;
    }
    
    .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        color: #FFFBEE;
    }
    
    .cta-button {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* ========================================
   MOBILE-FIRST UTILITY CLASSES
   Flexible responsive design system
   ======================================== */

/* Responsive display utilities */
.hide-mobile { display: none !important; }
.show-mobile { display: block !important; }
.hide-tablet { display: block !important; }
.hide-desktop { display: block !important; }

@media (min-width: 481px) {
    .hide-mobile { display: block !important; }
    .show-mobile { display: none !important; }
}

@media (min-width: 768px) {
    .hide-tablet { display: none !important; }
    .show-tablet { display: block !important; }
}

@media (min-width: 1024px) {
    .hide-desktop { display: none !important; }
    .show-desktop { display: block !important; }
}

/* Flexible spacing utilities */
.p-fluid { padding: var(--mobile-padding); }
.m-fluid { margin: var(--mobile-margin); }
.gap-fluid { gap: var(--space-md); }

/* Responsive text utilities */
.text-fluid { font-size: var(--mobile-font-size); }
.text-responsive {
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    line-height: var(--mobile-line-height);
}

/* Flexible container utilities */
.container-fluid {
    width: 100%;
    padding-left: var(--mobile-padding);
    padding-right: var(--mobile-padding);
    margin-left: auto;
    margin-right: auto;
}

/* Touch-friendly interactive elements */
.touch-target {
    min-height: var(--mobile-touch-target);
    min-width: var(--mobile-touch-target);
    padding: var(--space-sm);
}

/* Responsive grid utilities */
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-md);
}

.grid-mobile-1 { grid-template-columns: 1fr; }
.grid-mobile-2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

@media (min-width: 768px) {
    .grid-tablet-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-tablet-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-desktop-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-desktop-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Flexible flex utilities */
.flex-mobile-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .flex-tablet-row {
        flex-direction: row;
        gap: var(--space-md);
    }
}

/* ========================================
   ADDITIONAL RESPONSIVE UTILITIES
   ======================================== */




















/* Profile Picture Selection Styles */
.profile-selection {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin: 10px 0;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #8B4513 #f0f0f0;
}

/* Custom scrollbar for webkit browsers */
.profile-selection::-webkit-scrollbar {
    width: 8px;
}

.profile-selection::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.profile-selection::-webkit-scrollbar-thumb {
    background: #8B4513;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.profile-selection::-webkit-scrollbar-thumb:hover {
    background: #654321;
}

.profile-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    overflow: hidden;
}

.profile-option:hover {
    border-color: #8B4513;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

.profile-option.selected {
    border-color: #8B4513;
    border-width: 3px;
    background-color: #f5f5dc;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.4);
}

.profile-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Clickable Profile Picture Styles */
.clickable-profile {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.clickable-profile:hover {
    border-color: #8B4513;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.3);
}

/* Edit Profile Modal Styles */
.current-profile-display {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.current-profile-display h3 {
    margin-bottom: 15px;
    color: #8B4513;
    font-family: 'Playfair Display', serif;
}

.current-profile-pic {
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-profile-pic img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #8B4513;
    object-fit: cover;
}

.edit-profile-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.cancel-edit-btn {
    background-color: #ccc;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.cancel-edit-btn:hover {
    background-color: #bbb;
}

.save-profile-btn {
    background-color: #8B4513;
    color: #FFFBEE;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.save-profile-btn:hover {
    background-color: #654321;
}