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

:root {
    /* Logo-inspired color palette */
    --primary-color: #DC143C; /* Red wagon */
    --accent-blue: #4169E1; /* Blue gift */
    --accent-yellow: #FFD700; /* Yellow gift */
    --accent-green: #32CD32; /* Green gift */
    --secondary-color: #FAF0E6; /* Light beige background */
    --dark-color: #2C2C2C; /* Dark charcoal text */
    --light-color: #ffffff;
    --text-color: #2C2C2C;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, #DC143C 0%, #FF6B6B 50%, #FFD700 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding-bottom: 40px;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 20px 0;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    z-index: 1001;
}

.nav-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 1001;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin-top: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: var(--light-color);
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--light-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--secondary-color);
}

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

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Gallery Section */
.gallery {
    background: linear-gradient(to bottom, var(--secondary-color), var(--light-color));
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    -webkit-user-select: none;
    user-select: none;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: var(--light-color);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: var(--light-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-details {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--secondary-color);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 0;
}

.footer p:first-child {
    color: var(--accent-yellow);
    font-weight: 600;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

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

/* Modal for Gallery Images */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--light-color);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .navbar .container {
        padding: 0.75rem 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        min-height: 44px; /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar {
        padding-bottom: 20px;
    }
    
    .nav-logo {
        height: 80px;
    }
    
    .nav-brand {
        gap: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-brand span {
        font-size: 1.1rem;
        margin-top: -10px;
    }
    
    .navbar .container {
        align-items: flex-start;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
        padding: 8px;
        min-width: 44px; /* Better touch target */
        min-height: 44px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 1.5rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        min-height: 44px; /* Better touch target */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        padding: 0 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .about-content {
        padding: 0 1rem;
    }

    .about-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .gallery-item {
        border-radius: 10px;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
        padding: 1.5rem;
    }

    .gallery-overlay h3 {
        font-size: 1.25rem;
    }

    .modal-close {
        top: 10px;
        right: 20px;
        font-size: 2.5rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85%;
    }

    .footer {
        padding: 1.5rem 0;
    }

    .footer p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .navbar .container {
        padding: 0.5rem 12px;
    }

    .nav-logo {
        height: 60px;
    }
    
    .nav-brand span {
        font-size: 0.95rem;
        margin-top: -8px;
    }
    
    .navbar {
        padding-bottom: 15px;
    }

    .hero {
        padding: 70px 0 30px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.3;
        padding: 0 0.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        min-width: 200px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .gallery-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-overlay h3 {
        font-size: 1.1rem;
    }

    .modal-close {
        top: 5px;
        right: 15px;
        font-size: 2rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 120px;
    }

    .nav-menu a {
        min-height: 44px;
    }

    .gallery-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* Remove hover effects on touch devices */
    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:active {
        transform: scale(0.98);
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

