/* Hero Section Background */
.hero-section {
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* Hero Images Right Side */
.hero-images-right {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    z-index: 10;
    padding-left: 1rem;
    padding-right: 0;
    box-sizing: border-box;
    display: flex;
    align-items: flex-end;
}

@media (max-width: 767px) {
    .hero-images-right {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        margin-top: 0;
        padding: 0 1rem;
        align-items: flex-end;
        justify-content: center;
    }
}

/* Hero Image Wrapper */
.hero-image-wrapper {
    height: 280px;
    width: 100%;
}

@media (min-width: 375px) {
    .hero-image-wrapper {
        height: 320px;
    }
}

@media (min-width: 640px) {
    .hero-image-wrapper {
        height: 380px;
    }
}

@media (min-width: 768px) {
    .hero-image-wrapper {
        height: 450px;
    }
}

@media (min-width: 1024px) {
    .hero-image-wrapper {
        height: 550px;
    }
}

@media (min-width: 1280px) {
    .hero-image-wrapper {
        height: 650px;
    }
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 0;
    margin-right: 0;
}

@media (max-width: 767px) {
    .hero-image-container {
        border-radius: 12px 12px 0 0;
    }
}

@media (min-width: 768px) {
    .hero-image-container {
        width: calc(100% + 1rem);
        border-radius: 12px 0 0 0;
        margin-right: -1rem;
    }
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-image.active {
    opacity: 1;
    z-index: 2;
}

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

/* Animation for sections on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button Hover Effects */
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Header/Navigation Styles */
header {
    transition: all 0.3s ease;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

/* Scroll offset for fixed header */
section[id] {
    scroll-margin-top: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: auto;
    }
    
    section[id] {
        scroll-margin-top: 100px;
    }
    
    /* Mobile form adjustments */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile button adjustments */
    button {
        min-height: 44px; /* Touch-friendly size */
        min-width: 44px;
    }
    
    /* Mobile gallery adjustments */
    .gallery-item img {
        height: 200px;
    }
    
    /* Mobile padding adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    /* Smaller text on very small screens */
    .text-4xl {
        font-size: 1.75rem;
    }
    
    .text-3xl {
        font-size: 1.5rem;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
}

