/* Root variables for consistent colors */
:root {
    --primary-color: #002945;
    --primary-light: rgba(0, 41, 69, 0.05);
    --primary-transparent: rgba(0, 38, 64, 0.95);
    --accent-color: #1e8449;
    --text-light: #fff;
    --text-dark: #333;
    --text-muted: #666;
    --background-light: #f9f9f9;
    --background-white: #fff;
    --shadow-small: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Ensures anchors don't hide under fixed header */
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.5s ease;
}

.header.sticky {
    background: var(--primary-transparent);
    padding: 15px 40px;
    box-shadow: var(--shadow-small);
}

.logo {
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.logo-icon {
    font-size: 1.2em;
    margin-right: 8px;
    color: var(--accent-color);
}

nav {
    display: flex;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1em;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 1.5em;
    background: none;
    border: none;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('main.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: 1.2em;
    margin-bottom: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInDown 1s ease forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title {
    color: var(--text-light);
    font-size: 5em;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.adventure-subtitle {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation-delay: 0.5s;
}

.hero-description {
    color: var(--text-light);
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    background: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    transition: 0.3s ease;
    z-index: -1;
}

.btn:hover {
    color: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn:hover::before {
    width: 100%;
}

.social-icons {
    position: absolute;
    bottom: 50px;
    left: 50px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    opacity: 0;
    animation: fadeInLeft 1s ease 1.2s forwards;
}

.social-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    margin: 8px 0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5em;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    right: 50px;
    opacity: 0;
    animation: fadeInRight 1s ease 1.2s forwards;
    z-index: 10;
}

.scroll-down a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.scroll-down .arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--text-light);
    border-bottom: 3px solid var(--text-light);
    transform: rotate(45deg);
    margin-top: 10px;
    animation: scrollDown 2s infinite;
    transition: all 0.3s ease;
}

.scroll-down:hover .arrow {
    border-color: var(--accent-color);
}

/* Main Content Sections */
.section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: var(--primary-color);
    position: relative;
    font-weight: 700;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--accent-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    margin-top: -40px;
    margin-bottom: 60px;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Pattern Background */
.bg-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 30px 30px;
    pointer-events: none;
}

/* About Section */
.about {
    background-color: var(--background-light);
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    position: relative;
}

/* Removed the initial transform and opacity for proper display */
/* Animation classes are handled by JavaScript/AOS later */
.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-color) 0%, transparent 100%);
    opacity: 0.3;
    transition: all 0.3s ease;
}

.about-image:hover::before {
    opacity: 0.5;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
    min-width: 300px;
    /* Removed the initial transform and opacity for proper display */
}

.about-text h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-muted);
}

/* For proper animation with AOS */
[data-aos="fade-right"] {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos="fade-left"] {
    transform: translateX(50px);
    opacity: 0;
    transition: all 0.8s ease 0.2s;
}

[data-aos].aos-animate {
    transform: translateX(0);
    opacity: 1;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
    gap: 20px;
}

.feature-item {
    flex: 1 0 45%;
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature-text p {
    margin-bottom: 0;
    font-size: 0.9em;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
    }
    
    .about-image, 
    .about-text {
        min-width: 100%;
    }
    
    .feature-item {
        flex: 1 0 100%;
    }
}
/* Services Section */
.services {
    background-color: var(--background-white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    transform: translateY(50px);
    opacity: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.services-grid.animated .service-card {
    transform: translateY(0);
    opacity: 1;
}

.services-grid.animated .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid.animated .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid.animated .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid.animated .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: var(--accent-color);
    background: var(--primary-light);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--text-light);
    background: var(--accent-color);
}

.service-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover .service-content h3 {
    color: var(--accent-color);
}

.service-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.service-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: 0.3s;
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover {
    color: var(--primary-color);
}

/* Gallery Section */
.gallery {
    background-color: var(--background-light);
    position: relative;
}

.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 12px 24px;
    margin: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
    position: relative;
    border-radius: 30px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--accent-color);
}

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

.filter-btn:hover::after,
.filter-btn.active::after {
    width: 70%;
}

/* Masonry Layout */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 300px;
    grid-auto-flow: dense;
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow-small);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s ease;
    cursor: pointer;
    height: 100%;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-masonry.animated .gallery-item {
    transform: scale(1);
    opacity: 1;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 41, 69, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 100%;
}

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

.category-tag {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 10px;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.gallery-item:hover .category-tag {
    transform: translateY(0);
    opacity: 1;
}

.gallery-overlay h3 {
    color: var(--text-light);
    font-size: 1.5em;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.15s;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9em;
    margin-bottom: 15px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.2s;
}

.gallery-item:hover .gallery-overlay h3,
.gallery-item:hover .gallery-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.view-btn {
    display: inline-block;
    color: var(--text-light);
    background: var(--accent-color);
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.25s;
}

.gallery-item:hover .view-btn {
    transform: translateY(0);
    opacity: 1;
}

.gallery-load-more {
    text-align: center;
    margin-top: 20px;
}

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

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

.contact-info {
    transform: translateX(-50px);
    opacity: 0;
    transition: all 0.8s ease;
}

.contact-info.animated {
    transform: translateX(0);
    opacity: 1;
}

.contact-info h3 {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: var(--accent-color);
    color: var(--text-light);
    transform: rotateY(180deg);
}

.contact-text h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-text p,
.contact-text a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.6;
    transition: all 0.3s ease;
}

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

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2em;
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: translateY(-5px);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    height: 300px;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 70px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1.4em;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-light);
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-about p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-gallery-item {
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.footer-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-small);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes scrollDown {
    0% {
        transform: rotate(45deg) translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: rotate(45deg) translate(10px, 10px);
        opacity: 0;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Lightbox Custom Styling */
.lb-data .lb-caption {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-light);
}

.lb-data .lb-details {
    text-align: center;
    width: 100%;
}

/* Responsive styles - IMPROVED FOR MOBILE */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 4em;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-icons {
        left: 20px;
    }

    .scroll-down {
        right: 20px;
    }

    .section-title {
        font-size: 2.2em;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 15px 30px;
    }

    .header.sticky {
        padding: 10px 30px;
    }

    .hero-title {
        font-size: 3.5em;
    }

    .section {
        padding: 80px 0;
    }

    .contact-form {
        margin-top: 40px;
    }
    
    /* Fix background attachment on mobile */
    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header.sticky {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.5em;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002; /* Ensure it's above the nav when active */
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%; /* Adjust width to be percentage-based */
        max-width: 300px;
        height: 100vh;
        background: var(--primary-transparent);
        padding: 80px 30px 30px;
        transition: 0.5s;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        display: block;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        display: block;
        font-size: 1.2em;
        padding: 12px 0; /* Increased padding for better touch targets */
    }

    .hero-title {
        font-size: 3em;
    }

    .hero-description {
        font-size: 1em;
    }

    .social-icons {
        bottom: 20px;
        left: 20px;
        flex-direction: row;
    }

    .social-icon {
        width: 45px; /* Larger touch targets */
        height: 45px;
        font-size: 1.2em;
        margin: 0 5px;
    }

    .scroll-down {
        bottom: 20px;
        right: 20px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 250px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Improve form elements for mobile */
    input, textarea, select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px;
    }
    
    /* Better filter button spacing */
    .filter-btn {
        padding: 12px 18px;
        margin: 5px 3px;
    }
    
    /* Better pagination buttons for touch */
    .pagination-btn {
        width: 45px;
        height: 45px;
    }
    
    /* Improved footer links */
    .footer-links a {
        padding: 8px 0;
    }
}

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

    .hero-title {
        font-size: 2.5em;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 1em;
        letter-spacing: 3px;
    }

    .hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95em;
    }

    .social-icons {
        position: relative;
        left: 0;
        bottom: 0;
        justify-content: center;
        margin-top: 30px;
    }
    
    .scroll-down {
        display: none;
    }

    .section-title {
        font-size: 1.8em;
    }
    
    .section-subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }
    
    .gallery-item.wide {
        grid-column: auto;
    }
    
    .gallery-item.tall {
        grid-row: auto;
    }

    .gallery-filter {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        margin-bottom: 10px;
        width: 90%;
        text-align: center;
    }
    
    .gallery-overlay h3 {
        font-size: 1.3em;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}
        
/* Extra small mobile devices */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9em;
        letter-spacing: 2px;
    }
    
    .hero-description {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6em;
        margin-bottom: 30px;
    }
    
    .section-subtitle {
        font-size: 0.9em;
        margin-bottom: 40px;
    }
    
    .about-text h3,
    .contact-info h3,
    .footer-col h3 {
        font-size: 1.4em;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    .feature-item {
        flex: 1 0 100%;
    }
    
    .footer-gallery-item {
        height: 60px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 40px;
        height: 40px;
    }
}
/* Add these styles to your existing styles.css file */

/* Hero Background Overlay for Smooth Transitions */
.hero {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: -1;
}

/* Slide Indicators (optional) */
.slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slide-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero, .hero-background-overlay {
        background-attachment: scroll !important; /* Better performance on mobile */
    }
    
    .slide-indicators {
        bottom: 15px;
    }
    
    .slide-indicator {
        width: 8px;
        height: 8px;
    }
}
/* Update the services grid to display items in a single row */
.services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 20px; /* Add padding to account for potential scrollbar */
    scrollbar-width: thin; /* For Firefox */
}

/* Make the service cards more compact for row display */
.service-card {
    flex: 0 0 250px; /* Fixed width to ensure consistent sizing */
    max-width: 250px;
    background: var(--background-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-small);
    transition: all 0.3s ease;
    transform: translateY(50px);
    opacity: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Add styling for scrollbar in Webkit browsers */
.services-grid::-webkit-scrollbar {
    height: 6px;
}

.services-grid::-webkit-scrollbar-track {
    background: var(--background-light);
    border-radius: 10px;
}

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

/* Adjust for smaller screens */
@media (max-width: 1200px) {
    .services-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .service-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .service-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}