/* Base Styles */
:root {
    --primary-blue: #A60101;
    --secondary-blue: #9E9B9B;
    --accent-blue: #9E9B9B;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #9E9B9B;
    --text-dark: #1e293b;
    --gradient-primary: linear-gradient(135deg, #A60101 0%, #9E9B9B 100%);
    --gradient-accent: linear-gradient(135deg, #A60101 0%, #A60101 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

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

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-inner {
    position: absolute;
    border: 4px solid var(--light-blue);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    animation: spin 1s linear infinite;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.loader-logo span {
    color: var(--accent-blue);
}

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

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

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

h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Enhanced Button Styles */
.btn {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 36, 99, 0.2);
}

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

.btn:hover:before {
    left: 0;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 36, 99, 0.3);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: all 0.3s ease;
}

header.scrolled .navbar {
    padding: 15px 0;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    position: relative;
}

.logo span {
    color: var(--accent-blue);
    margin-left: 5px;
}

.logo:after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 35px;
    position: relative;
}

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

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

.nav-links a:hover {
    color: var(--accent-blue);
}

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

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 1001;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        min-width: 220px;
        padding: 10px 0;
        border-radius: 6px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(5px);
    }

    .dropdown-menu li {
        margin: 0;
        width: 100%;
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 25px;
        color: var(--text-dark);
        text-decoration: none;
        transition: all 0.3s ease;
        border-bottom: none;
        font-weight: 500;
    }

    .dropdown-menu a:hover {
        background: var(--light-gray);
        color: var(--primary-blue);
        padding-left: 30px;
    }

    .dropdown-menu a:after {
        display: none;
    }
}

/* Mobile Dropdown Styles */
@media (max-width: 768px) {
    .dropdown .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        pointer-events: auto;
    }

    .dropdown-toggle i {
        transform: rotate(0deg);
        transition: transform 0.3s ease;
    }

    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-top: 10px;
        margin-left: 20px;
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 300px;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        color: var(--primary-blue);
        border-bottom: 1px solid var(--medium-gray);
    }

    .dropdown-menu a:hover {
        padding-left: 20px;
        background: var(--light-gray);
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    /* Fix for dropdown links scrolling */
    .dropdown-menu a[href^="#"] {
        pointer-events: auto;
    }
}

/* Enhanced Hero Section with Carousel */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/* Smooth Image-to-Image Carousel Transitions */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: opacity, transform;
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(166, 1, 1, 0.3) 0%, 
                rgba(158, 155, 155, 0.2) 50%, 
                rgba(1, 9, 28, 0.4) 100%);
    z-index: 2;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 3;
}

.carousel-slide.exiting {
    opacity: 0;
    z-index: 2;
}

/* Smooth fade effect for transitions */
.carousel-slide.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.carousel-slide.fade-out {
    animation: fadeOut 1.2s ease-in forwards;
}

/* Enhanced overlay for better text readability */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
                rgba(166, 1, 1, 0.2) 0%, 
                rgba(158, 155, 155, 0.15) 50%, 
                rgba(1, 9, 28, 0.35) 100%);
    z-index: 4;
}

/* Improved carousel controls */
.carousel-controls {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    gap: 20px;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 8px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.carousel-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--white);
    transition: all 0.4s ease;
}

.carousel-dot.active {
    background: transparent;
    border-color: var(--white);
    transform: scale(1.2);
}

.carousel-dot.active::before {
    width: 8px;
    height: 8px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    transform: translateY(-50%);
    z-index: 5;
    pointer-events: none;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

/* Progress bar for slides */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 5;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-blue));
    width: 0%;
    transition: width 0.1s linear;
}

/* Hero content */
.hero-content {
    max-width: 900px;
    z-index: 6;
    padding: 0 20px;
    position: relative;
}

.hero h1 {
    color: var(--white);
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    background: var(--light-gray);
}

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

/* Services Sections */
.service-section {
    padding: 100px 0;
}

.service-section:nth-child(even) {
    background: var(--light-gray);
}

.service-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Card Layout - Side by Side */
.card-container {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 40px;
}

.card-image {
    flex: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-content {
    flex: 1;
    padding: 20px;
}

/* Card Image Slider */
.card-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.card-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease, transform 8s ease;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.card-slide.active {
    opacity: 1;
    transform: scale(1);
}

.card-slide.exiting {
    opacity: 0;
    transform: scale(1.02);
}

.card-slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.card-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-slider-dot.active {
    background: var(--white);
    transform: scale(1.3);
}

.printing-card .card-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
}

.printing-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
    color: var(--primary-blue);
}

.printing-card h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
}

.printing-card:hover h3:after {
    width: 100%;
}

/* Ballistic Resistance Cards - Military Style */
.ballistic-card .card-content {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 40px;
    border-left: 5px solid var(--primary-blue);
    position: relative;
}

.ballistic-card .card-content:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--primary-blue) transparent transparent;
}

.ballistic-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 10px;
}

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

/* Geophysical Cards - Scientific Style */
.geophysical-card .card-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px;
    position: relative;
}

.geophysical-card .card-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-accent);
}

.geophysical-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.geophysical-card h3 i {
    margin-right: 15px;
    color: var(--accent-blue);
    font-size: 1.5rem;
}

/* Tunneling Cards - Industrial Style */
.tunneling-card .card-content {
    background: linear-gradient(135deg, #9E9B9B 0%, #A60101 100%);
    border-radius: 12px;
    padding: 40px;
    color: var(--white);
}

.tunneling-card h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--white);
}

.tunneling-card p {
    color: var(--light-blue);
}

/* Geophysical Services Cards - Modern Scientific */
.geo-service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.5s ease;
    border: 1px solid var(--medium-gray);
    margin-bottom: 30px;
}

.geo-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-blue);
}

.geo-service-content {
    padding: 25px;
}

.geo-service-content h4 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
}

.geo-service-content h4 i {
    margin-right: 10px;
    color: var(--accent-blue);
}

/* Geophysical Services Grid */
.geo-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

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

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 25px;
}

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

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-details i {
    margin-right: 15px;
    color: var(--accent-blue);
    width: 20px;
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    height: 180px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    position: relative;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-blue);
}

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

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

.footer-links a {
    color: var(--light-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--light-blue);
}

/* Gallery Section Styles */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.gallery-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 350px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 36, 99, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 30px;
    text-align: center;
}

.gallery-content {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-content h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.gallery-content p {
    color: var(--light-blue);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

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

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

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

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Desktop-only animations */
@media (min-width: 769px) {
    .hero-content {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease 0.5s forwards;
    }

    .hero p {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease 0.8s forwards;
    }

    .hero .btn {
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease 1.1s forwards;
    }

    .card-container {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .card-container.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .service-intro {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }

    .service-intro.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .about-content p {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }

    .about-content p.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Gallery */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card {
        height: 300px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .card-container {
        flex-direction: column;
        gap: 30px;
    }

    .card-image,
    .card-content {
        width: 100%;
    }

    .card-slider {
        height: 300px;
    }

    .card-content {
        padding: 20px 0;
    }

    .printing-card .card-content,
    .ballistic-card .card-content,
    .geophysical-card .card-content,
    .tunneling-card .card-content {
        padding: 30px;
    }

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

    /* Carousel mobile adjustments */
    .carousel-nav {
        padding: 0 15px;
    }
    
    .carousel-nav button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .carousel-slide {
        transition: opacity 0.8s ease;
    }
    
    /* Disable hover effects on mobile */
    .printing-card:hover h3:after {
        width: 50px;
    }

    .geo-service-card:hover {
        transform: none;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

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

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        transition: all 0.5s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 15px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--medium-gray);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    section {
        padding: 80px 0;
    }

    .service-section {
        padding: 80px 0;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card-slider {
        height: 250px;
    }
}