/* --- Global Styles & Variables --- */
:root {
    --bg-color: #0d1117; /* GitHub Dark-like background */
    --text-color: #EAEAEA;
    --primary-accent: #D4AF37;
    --disabled-color: #444;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
}

/* --- FIX: Background container to prevent overflow --- */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden; /* This clips the blobs and fixes the space */
}

/* --- Animated Background Blobs --- */
.background-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.blob1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
    background: #4a90e2; /* A cool blue */
    animation: moveBlob1 20s infinite alternate;
}

.blob2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    background: var(--primary-accent);
    animation: moveBlob2 25s infinite alternate;
}

@keyframes moveBlob1 {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 200px) rotate(180deg); }
}

@keyframes moveBlob2 {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-200px, -100px) rotate(360deg); }
}

/* --- Reusable Glassmorphism Class --- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); /* For Safari */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}


.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff; /* Default white, but overridden for hero h1 */
}

h1 { font-size: 3.5rem; text-shadow: 0 2px 15px rgba(0,0,0,0.2); }
h2 { font-size: 2.5rem; text-align: center; }
p { font-size: 1.1rem; }

section {
    padding: 100px 0;
}

/* --- Header --- */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

/* --- Hero Section --- */
#hero {
    text-align: center;
    padding: 120px 0;
}

/* GOLDEN GRADIENT FOR HERO HEADLINE */
#hero h1 {
    background: linear-gradient(45deg, #FFD700, #DAA520, #B8860B); /* Gold, Goldenrod, DarkGoldenrod */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(212, 175, 55, 0.4); /* Enhanced shadow for depth */
}

#hero .subtitle {
    max-width: 700px;
    margin: 20px auto 40px;
    color: #b0b0b0;
}

.cta-button {
    display: inline-flex; /* Changed to inline-flex for icon alignment */
    align-items: center;
    justify-content: center;
    gap: 10px; /* Space between icon and text */
    background: linear-gradient(45deg, #e7c569, var(--primary-accent));
    color: #000000;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background-color: var(--primary-accent);
    color: #000;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}


/* --- Calendar Section --- */
#schedule p {
    text-align: center;
    max-width: 600px;
    margin: 15px auto 40px;
    color: #b0b0b0;
}

.calendar-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    color: var(--primary-accent);
    font-size: 2rem;
    cursor: pointer;
}

.calendar-header h3 {
    font-size: 1.5rem;
}

.calendar-weekdays, .calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-weekdays div {
    text-align: center;
    font-weight: 700;
    color: #aaa;
}

.calendar-days div {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    text-align: center;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.calendar-days .day.disabled {
    color: var(--disabled-color);
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.5;
}

.calendar-days .day.available {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary-accent);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.calendar-days .day.available:hover {
    background-color: var(--primary-accent);
    color: #000;
}

/* --- Telegram Section Styles --- */
#telegram {
    text-align: center;
}

.telegram-content-box {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    /* FIX: Added flex properties to perfectly center all content */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#telegram p {
    max-width: 600px;
    margin: 15px auto 30px;
    color: #b0b0b0;
}

/* --- Modal & Overlay Styles --- */
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#modal-overlay.active {
    display: flex;
    opacity: 1;
}

#booking-modal {
    padding: 40px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#close-modal-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    cursor: pointer;
}

#booking-modal h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
}

#booking-modal p {
    margin-bottom: 30px;
    color: #b0b0b0;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Contact & Footer --- */
#contact {
    text-align: center;
}

#contact p {
    max-width: 600px;
    margin: 15px auto 30px;
    color: #b0b0b0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-divider {
    font-size: 0.9rem;
    color: #777;
    margin: 5px 0 !important;
}

.contact-link {
    font-size: 1.2rem;
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 700;
}


footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #777;
}

/* =================================================================== */
/* --- COMPREHENSIVE MOBILE RESPONSIVE STYLES --- */
/* =================================================================== */
@media (max-width: 768px) {
    /* --- General Layout & Text --- */
    .container {
        padding: 0 20px; /* Reduces side padding to give content more space */
    }

    h1, #hero h1 {
        font-size: 2.2rem; /* Significantly smaller H1 for readability */
        line-height: 1.2;
    }

    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }
    p, #hero .subtitle { font-size: 1rem; } /* Standardize paragraph text size */

    section {
        padding: 80px 0; /* Consistent vertical padding for all sections */
    }

    /* --- Specific Sections --- */
    header .logo {
        font-size: 1.2rem; /* Prevent header text from wrapping */
    }

    #hero {
        padding: 90px 0 80px; /* Custom padding for the hero section */
    }
    
    #hero .subtitle {
        max-width: 90%;
    }

    .cta-button {
        padding: 14px 30px; /* Slightly smaller buttons */
        font-size: 1rem;
    }

    .calendar-container {
        padding: 20px;
    }

    .calendar-days div {
        height: 45px; /* Adjust height for touch targets */
        font-size: 0.9rem;
    }

    .calendar-weekdays div {
        font-size: 0.8rem;
    }

    /* --- Telegram Section Mobile --- */
    .telegram-content-box {
        padding: 50px 0;
    }
    
    #telegram p {
        max-width: 95%;
        /* FIX: Increased vertical margin for more spacing on mobile */
        margin-top: 20px;
        margin-bottom: 35px;
    }

    /* --- Modal & Contact --- */
    #booking-modal {
        width: 95%; /* Use almost full width on small screens */
        padding: 30px 20px;
    }
    
    #booking-modal h3 { font-size: 1.5rem; }
    #booking-modal p { font-size: 0.9rem; }
    .modal-buttons { flex-direction: column; }
    
    .contact-link { font-size: 1.1rem; }

    /* --- Background Blobs --- */
    .background-blob {
        filter: blur(120px); /* Slightly less blur on mobile to save performance */
    }

    .blob1 { width: 350px; height: 350px; }
    .blob2 { width: 400px; height: 400px; }
}