/* styles.css */

/* --- Variables (Green-Themed) --- */
:root {
    --primary-brand-dark-green: #1A3B2F;
    --secondary-brand-green: #2D5442;
    --accent-vibrant-green: #4CAF50;
    --accent-vibrant-light-green: #8BC34A;
    --text-on-dark: #E2E8F0;
    --text-on-light-green: #214D3C;
    --bg-light: #FFFFFF;
    --bg-light-alt: #F7FAFC;
    --border-color-subtle: #CBD5E0;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-strong: rgba(0, 0, 0, 0.25);
    --primary-color: var(--accent-vibrant-green);
    --secondary-color: var(--primary-brand-dark-green);
    --accent-color: var(--accent-vibrant-light-green);
    --text-color-dark: var(--text-on-light-green);
    --text-color-light: var(--text-on-dark);
    --bg-dark: var(--primary-brand-dark-green);
    --bg-alt-dark: var(--secondary-brand-green);
    --font-family-primary: 'Inter', sans-serif;
    --font-family-display: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.7;
    color: var(--text-color-dark);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Placeholder styles for missing images */
div[style*="background-color: #ccc;"] {
    background-color: var(--bg-light-alt) !important;
    color: var(--text-color-dark) !important;
    border: 1px solid var(--border-color-subtle);
    font-size: 0.9rem;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Utility Classes --- */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padded {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
    color: var(--text-color-dark);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-color-light);
}

.section-title {
    font-family: var(--font-family-display);
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: inherit;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-family: var(--font-family-primary);
    font-size: 1.35rem;
    color: var(--text-color-dark);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.bg-dark .section-subtitle {
    color: var(--text-color-light);
    opacity: 0.85;
}

.section-secondary-title {
    font-family: var(--font-family-display);
    font-size: 2.5rem; 
    font-weight: 700;
    margin-bottom: 2rem; 
    color: var(--text-color-dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-brand-green);
    color: var(--text-color-light);
}

.btn-secondary:hover {
    background-color: var(--primary-brand-dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.btn-large {
    padding: 1.3rem 2.8rem;
    font-size: 1.2rem;
}

.btn-white-outline {
    background-color: transparent;
    color: var(--text-color-light);
    border-color: var(--text-color-light);
}

.btn-white-outline:hover {
    background-color: var(--text-color-light);
    color: var(--primary-brand-dark-green);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

/* --- Header & Navigation --- */
.main-header {
    background-color: var(--secondary-color);
    padding: 0.3rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 15px var(--shadow-medium);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 0;
}

.logo img {
    max-height: 140px; 
    height: auto;
    width: auto;
    display: block;
}


.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
}

.main-nav li {
    margin-left: 2.8rem;
    
}

.main-nav a {
    color: var(--text-color-light);
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.4rem 0;
    position: relative;
    opacity: 0.9;
    line-height: 1;
    display: inline-block;
    box-sizing: border-box;
}

.main-nav a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color-light);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


.header-mobile-cta {
    display: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .main-header {
        /* Also adjust padding for smaller screens if you have specific heights in mind */
        padding: 0.5rem 0; /* Even less padding for mobile */
    }
    .logo img {
        max-height: 50px; /* Ensure logo is proportionally smaller */
    }
    section[id] {
        scroll-margin-top: 70px; /* Adjust for mobile header height */
    }
}

/* --- Hero Section --- */
.hero-section {
    background: var(--bg-dark) url('images/balloon.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    position: relative;
    padding-top: 80px;
    
}

#drive-hero {
    background-image: url('images/Drive4.jpg'); 
}

#impact-hero {
    background-image: url('images/Balloonschool1.jpg');
}

#entrepeneurs-hero {
    background-image: url('images/Duda_on_ballon.jpg');
}

#contact-hero {
    background-image: url('images/car_with_logo.jpg');
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: var(--font-family-display);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.8rem;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-family: var(--font-family-primary);
    font-size: 1.6rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.expedition-banner {
    padding: 16rem 2rem; /* Controls the height of the banner */
    background: url('images/Duda_on_ballon.jpg') no-repeat center center/cover;
    color: var(--text-color-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* This adds a dark overlay so the white text is readable */
.expedition-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* This ensures the text appears on top of the overlay */
.expedition-banner .container {
    position: relative;
    z-index: 2;
}

.expedition-banner .section-title,
.expedition-banner .section-subtitle {
    color: var(--text-color-light); 
}

.expedition-details-container {
    padding-top: 0; 
}



/* --- Grid Layouts (General) --- */
/* Removing .grid-2-cols from the About Us section's main wrapper */
.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

/* --- About Us Section --- */

/* Max width for the main text content, so it doesn't get too wide on large screens */
.about-content {
    max-width: 1000px; /* Adjust as needed for desired text width */
    margin: 0 auto; /* Center the content */
    text-align: left; /* Ensure text is left-aligned within this block */
}

.about-content > p { /* Target the introductory paragraph only */
    font-size: 1.15rem;
    margin-bottom: 3rem; /* Increased margin for the intro paragraph */
    line-height: 1.7;
    text-align: left; /* Ensure it's left-aligned */
}

.about-content h3 { /* Applies to h3s within about-point-text */
    font-family: var(--font-family-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* Styles for the new "points" layout */
.about-points-wrapper {
    display: flex; /* Use flexbox to stack the pairs vertically */
    flex-direction: column;
    gap: 4rem; /* Space between each point pair */
    margin-top: 3rem;
}

.about-point-pair {
    display: block; /* Changed from grid to block for vertical stacking */
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-point-pair:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.about-point-text p {
    font-size: 1.05rem; /* Revert to original size for better fit */
    margin-bottom: 1.5rem; /* No bottom margin on the last paragraph */
}

.about-point-pair .video-thumbnail-wrapper {
    aspect-ratio: 16 / 9;
    height: auto; /* Override fixed height */
    border-radius: 8px;
}

.about-point-image-placeholder {
    width: 100%; /* Take full width of its grid cell */
    height: 350px; /* Adjustable height for images. Change as desired. */
    background-color: var(--bg-light-alt);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-dark);
    font-size: 0.9rem;
    overflow: hidden; /* Ensures any image fits */
    
}

.about-point-image-placeholder img {
    max-width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    border-radius: 8px; /* Apply border-radius to the image itself */
}


/* --- Card Styles (Video, Expedition Preview, Blog, Philanthropy) --- */
.video-card, .expedition-preview-card, .blog-card, .philanthropy-card {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-card:hover, .expedition-preview-card:hover, .blog-card:hover, .philanthropy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.video-thumbnail-wrapper, .expedition-preview-card > div[style*="background-color"],
.philanthropy-card > div[style*="background-color"], .blog-card > div[style*="background-color"] {
    width: 100%;
    height: 250px;
    overflow: hidden;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-thumbnail-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-card h3, .expedition-preview-card h4, .blog-card h4, .philanthropy-card h3 {
    font-family: var(--font-family-primary);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.video-card p, .expedition-preview-card p, .blog-card p, .philanthropy-card p {
    font-size: 1.05rem;
    color: var(--text-color-dark);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.video-card .read-more, .expedition-preview-card .btn-secondary, .blog-card .read-more, .philanthropy-card .btn-secondary {
    margin-top: auto;
    padding-bottom: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    align-self: flex-start;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-button svg {
    fill: var(--primary-color);
    width: 30px;
    height: 30px;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Specific card styles */
.spotlight-expedition .spotlight-image > div {
    height: 400px;
}
.expedition-preview-card > div {
    height: 200px;
}


/* =================================================================== */
/* ==               CSS Styling for the Contact Modal             == */
/* =================================================================== */

/* --- Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
}

/* --- Modal Content & Form --- */
.modal-content {
    background: var(--bg-light);
    color: var(--text-color-dark);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    width: 100%;
    max-width: 600px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-close-btn:hover {
    color: #333;
}

#modal-title {
    font-family: var(--font-family-display);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    font-family: var(--font-family-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.form-legal-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.5rem;
}
.form-legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

#submit-inquiry-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* --- Utility & Message States --- */
.hidden {
    display: none !important;
}

#thank-you-message {
    text-align: center;
    padding: 2rem 0;
}

/* --- Responsive Design for Modal --- */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw;
        padding: 2rem 1.5rem;
    }
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* --- 1. Base Styles for ALL Horizontal Scroll Containers --- */
.innovators-scroll-container,
.insights-scroll-container,
.expeditions-scroll-container,
.philanthropy-cards {
    display: flex;             
    flex-wrap: nowrap;         
    overflow-x: auto;          /* Enables horizontal scrolling on mouse drag or trackpad */
    -webkit-overflow-scrolling: touch; /* Adds smooth scrolling momentum on iOS */
    
    /* Optional: Adds "snapping" so cards align nicely when scrolling stops */
    scroll-snap-type: x mandatory; 
    
    gap: 2rem;                 /* Defines the space between each card */
    padding: 2rem 0;           /* Adds some vertical space above and below the cards */

    /* Hide the scrollbar for a cleaner look */
    scrollbar-width: none;     /* For Firefox */
    -ms-overflow-style: none;  /* For Internet Explorer and Edge */
}

/* Hides scrollbar for Chrome, Safari, and Opera */
.innovators-scroll-container::-webkit-scrollbar,
.insights-scroll-container::-webkit-scrollbar,
.expeditions-scroll-container::-webkit-scrollbar, 
.philanthropy-cards::-webkit-scrollbar {
    display: none;
}

.innovators-scroll-container {
    flex-direction: row-reverse;
}

.upcoming-expeditions {
    justify-content: center;
}

/* --- 3. Styles for the Cards Inside the Scroll Containers --- */
.video-card,
.blog-card,
.expedition-preview-card,
.philanthropy-card {
    
    flex: 0 0 500px; 
    scroll-snap-align: start; 
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}


/* ==       4. RESPONSIVE STAKING STYLES (MOBILE)                    == */
/* =================================================================== */

@media (max-width: 1024px) {
    /* --- General Tablet Adjustments --- */
    .container {
        padding: 0 1.5rem;
    }
    .section-title {
        font-size: 3.2rem;
    }
    .section-subtitle {
        font-size: 1.2rem;
    }
    .hero-content h1 {
        font-size: 4.2rem;
    }
    .hero-content p {
        font-size: 1.4rem;
    }

    /* --- Tablet Navigation --- */
    .main-nav {
        display: none;
    }
    .menu-toggle,
    .header-mobile-cta {
        display: inline-flex;
    }
    .header-mobile-cta {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    /* --- Mobile Navigation Menu --- */
    .main-nav {
        flex-direction: column;
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 5px 15px var(--shadow-medium);
        padding: 1rem 0;
        text-align: center;
    }
    
    .main-nav.active {
        display: flex; 
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        margin: 0.8rem 0;
    }

    /* --- Stacking for Horizontal Scroll Sections --- */
    .innovators-scroll-container,
    .insights-scroll-container,
    .expeditions-scroll-container,
    .philanthropy-cards {
        flex-wrap: wrap;
        overflow-x: visible;
        scroll-snap-type: none;
        justify-content: center;
        gap: 2rem;
    }

    /* This makes the cards inside those sections take up the full width */
    .innovators-scroll-container .video-card,
    .insights-scroll-container .blog-card,
    .expeditions-scroll-container .expedition-preview-card,
    .philanthropy-cards .philanthropy-card {
        width: 100%;
        max-width: 400px;
        flex-basis: auto;
    }

    /* --- Expedition Section Responsiveness --- */
    .spotlight-expedition {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* --- Small Mobile Adjustments --- */
    .container {
        padding: 0 1rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .btn {
        padding: 0.8rem 1.6rem;
        font-size: 0.9rem;
    }
}


/* --- Why Choose Us Section (Features Grid) --- */
.features-grid {
    gap: 2.5rem;
    padding-top: 2rem;
}

.feature-item {
    background-color: var(--bg-alt-dark);
    color: var(--text-color-light);
    padding: 3rem;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 20px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.feature-item h3 {
    font-family: var(--font-family-primary);
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-item p {
    font-size: 1.05rem;
    opacity: 0.9;
    line-height: 1.6;
}

.why-us-background {
    position: relative;
    background: url('images/Drive3.jpg') no-repeat center center/cover; 
    z-index: 1;
}

/* Adds a dark overlay so the white text is readable */
.why-us-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1; /* Place it behind the content */
}

/* Ensure the title in this section is also light-colored */
.why-us-background .section-title {
    color: var(--text-color-light);
}

/* --- Gallery Section (Horizontal Scrolling - Full Image Display) --- */
.gallery-grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem; /* Add some padding if scrollbar appears */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) var(--bg-light-alt); /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-grid::-webkit-scrollbar {
    height: 8px; /* Adjust height of the scrollbar */
}

/* Track */
.gallery-grid::-webkit-scrollbar-track {
    background: var(--bg-light-alt);
    border-radius: 10px;
}

/* Handle */
.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Handle on hover */
.gallery-grid::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.gallery-item {
    flex-shrink: 0;
    width: 600px; /* Define a fixed width for each item */
    height: 600px; /* Define a fixed height for each item (creates the "frame") */
    position: relative;
    overflow: hidden; /* Important for hiding any overflow if contain isn't enough */
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    /* Optional: Add a background color to the item to fill empty space around the image */
    background-color: var(--bg-light-alt); /* Or var(--bg-light) or a darker shade if on dark background */
    display: flex; /* Use flex to center the image within the item */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.gallery-item img {
    max-width: 100%; /* Ensure image doesn't exceed item width */
    max-height: 100%; /* Ensure image doesn't exceed item height */
    object-fit: contain; /* KEY CHANGE: Ensures the whole image is visible, scales down if needed */
    display: block;
    transition: transform 0.4s ease;
    /* Remove the hover scale for img if you want to avoid visual cropping with "contain" */
    /* If you keep the scale, be aware it might still push content outside the viewable area if not handled carefully */
    transform: scale(1); /* Reset initial scale */
}

/* Responsive adjustments for horizontal gallery */
@media (max-width: 768px) {
    .gallery-item {
        /* --- ADJUST THESE VALUES FOR TABLETS AND MEDIUM SCREENS --- */
        width: 300px; /* Adjusted for tablets */
        height: 300px; /* Adjusted for tablets */
        /* --------------------------------------------------------- */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        /* --- ADJUST THESE VALUES FOR MOBILE PHONES --- */
        width: 250px; /* Adjusted for mobile phones */
        height: 250px; /* Adjusted for mobile phones */
        /* ------------------------------------------- */
    }
}



/* --- CTA Section --- */
.cta-section {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 5rem 2rem;
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-family-display);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-section .text-xs {
    margin-top: 2rem; /* Adjusted from mt-4 for better control */
    font-size: 1.25rem; /* A slightly more readable small font size */
    line-height: 1.5; /* Ensures the line has enough vertical space */
    opacity: 0.9;
}

/* This ensures the email link is visible and styled correctly */
.cta-section .text-xs a {
    color: var(--text-color-light);
    text-decoration: underline;
}

.cta-section .text-xs a:hover {
    opacity: 1;
}





/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 2rem 0; /* Reduced from 4rem */
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem; /* Reduced from 2.5rem */
    margin-bottom: 2rem; /* Reduced from 3.5rem */
}

.footer-grid h3 {
    font-family: var(--font-family-primary);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem; /* Reduced from 1.5rem */
    color: var(--primary-color);
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 0.5rem; /* Reduced from 0.8rem */
}
.footer-grid ul li a {
    color: var(--text-color-light);
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-grid ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.social-icons a {
    color: var(--text-color-light);
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
    opacity: 1;
    color: var(--accent-color);
}


.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color-subtle);
    opacity: 0.8;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
}

.footer-bottom a {
    color: var(--text-color-light);
    margin: 0 0.6rem;
    opacity: 0.8;
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--accent-color);
}


/* --- Contact Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-light);
    color: var(--text-color-dark);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    width: 100%;
    max-width: 500px;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal-overlay.hidden .modal-content {
    transform: scale(0.9);
}

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

.modal-content h2 {
    font-family: var(--font-family-display);
    margin-bottom: 1rem;
}

.modal-content .form-group {
    margin-bottom: 1.5rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color-subtle);
    border-radius: 8px;
    font-size: 1rem;
}
