/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    /* Background image - using your Schlomo photo */
    background-image: url('images/IMG_1.jpeg');
    
    /* Background image settings */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

/* Overlay for better text readability with background image */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(30, 40, 60, 0.6) 100%);
    z-index: 0;
    display: block; /* Enabled for background image */
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-intro {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    opacity: 0.95;
}

/* Navigation */
.nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav .container {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link:hover {
    color: #667eea;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: #2d3748;
    font-weight: 700;
}

/* About Section */
.about-section {
    background-color: #f7fafc;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h3 {
    font-size: 1.5rem;
    color: #667eea;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.about-content h3:first-of-type {
    margin-top: 0;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
    color: #4a5568;
}

.about-content strong {
    color: #2d3748;
    font-weight: 600;
}

/* Gallery Section */
.gallery-section {
    background-color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

/* Calendar Section */
.calendar-section {
    background-color: #fff;
}

.calendar-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

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

.calendar-month-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.calendar-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.calendar-btn:active {
    transform: translateY(0);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    font-size: 1rem;
    padding: 10px 0;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #f7fafc;
    font-weight: 500;
}

.calendar-day:hover {
    background-color: #e6e9f0;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #cbd5e0;
    background-color: transparent;
}

.calendar-day.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 700;
}

.calendar-day.selected {
    background-color: #667eea;
    color: white;
    font-weight: 700;
}

.calendar-day.selected:hover {
    background-color: #764ba2;
}

.calendar-day.blocked {
    background-color: #ffeaea;
    color: #e53e3e;
    position: relative;
    text-decoration: line-through;
    opacity: 0.6;
}

.calendar-day.blocked:hover {
    background-color: #ffd5d5;
    transform: none;
}

.calendar-day.blocked::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Contact Section */
.contact-section {
    background-color: #f7fafc;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.contact-item p {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.8;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-intro {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav .container {
        gap: 25px;
    }
    
    .nav-link {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    /* Hero Section Mobile */
    .hero {
        padding: 50px 0 40px;
        background-attachment: scroll; /* Better performance on mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }
    
    .hero-intro {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    /* Navigation Mobile */
    .nav {
        padding: 12px 0;
    }
    
    .nav .container {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    /* Sections Mobile */
    .section {
        padding: 50px 0 40px;
    }
    
    .section-title {
        font-size: 1.9rem;
        margin-bottom: 35px;
    }
    
    /* About Section Mobile */
    .about-content h3 {
        font-size: 1.3rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    
    .about-content p {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.7;
    }
    
    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    /* Calendar Mobile */
    .calendar-container {
        padding: 20px 15px;
    }
    
    .calendar-header {
        margin-bottom: 20px;
    }
    
    .calendar-month-year {
        font-size: 1.4rem;
    }
    
    .calendar-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .calendar-weekday {
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    .calendar-days {
        gap: 8px;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    /* Contact Section Mobile */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-item {
        padding: 25px 20px;
    }
    
    .contact-item h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .contact-item p {
        font-size: 0.95rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 25px 0;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
}

/* Extra Mobile Optimization for very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-intro {
        font-size: 0.95rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .calendar-container {
        padding: 15px 10px;
    }
    
    .calendar-weekday {
        font-size: 0.75rem;
    }
    
    .calendar-day {
        font-size: 0.85rem;
    }
}

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

/* Selection Color */
::selection {
    background-color: #667eea;
    color: white;
}
