/* Variables */
:root {
    --primary-color: #355E3B;
    /* Hunter Green */
    --primary-dark: #244228;
    --primary-light: #4a7c52;
    --accent-color: #F5F5F5;
    --text-color: #000000;
    --text-light: #555555;
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* Dark Mode Variables */
body.dark-mode {
    --text-color: #FFFFFF;
    --text-light: #CCCCCC;
    --bg-color: #000000;
    --accent-color: #111111;
    --card-bg: #1A1A1A;
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

video {
    max-width: 100%;
    height: auto;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.bg-alt {
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 94, 59, 0.3);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}

.text-gradient {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: var(--primary-color);
}

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

body.dark-mode #main-header {
    background-color: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-svg {
    transition: transform 0.5s ease;
}

.logo:hover .logo-svg {
    transform: rotate(180deg);
}

.logo-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.studio-text {
    font-size: 0.85em;
    font-weight: 500;
    color: var(--text-light);
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

#main-nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

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

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.dropdown-menu a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    padding-left: 25px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--accent-color);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .moon-icon {
    display: none;
}

#mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

#mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-color);
    overflow: hidden;
}

.video-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    z-index: 2;
}

.slideshow-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.slide-dot.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.tech-grid {
    position: absolute;
    width: 200%;
    z-index: 3;
    height: 200%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #f2f2f2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary-color);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.values-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.values-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
}

.values-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.about-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.circuit-visual {
    position: relative;
    width: 100%;
    height: 300px;
    background: radial-gradient(circle, var(--primary-dark) 0%, var(--bg-color) 70%);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.center-hub {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(53, 94, 59, 0.5);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(53, 94, 59, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(53, 94, 59, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(53, 94, 59, 0);
    }
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-image {
    width: 100%;
    height: 180px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.03);
}

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

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

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-card:hover .card-details {
    max-height: 200px;
}

.card-details ul {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.card-details li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--text-light);
    list-style-type: disc;
    list-style-position: inside;
}

/* Industries Section */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.industry-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.industry-img-wrapper {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
}

.industry-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.industry-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.industry-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.industry-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Partners Section */
.partners-carousel-wrapper {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
}

.partners-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    width: 150px;
    height: 80px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    filter: grayscale(100%);
    opacity: 0.7;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 10px;
}

.partner-logo img[src="assets/skywelllogo.png"] {
    max-width: 70%;
    max-height: 70%;
}

.partner-logo img[src="assets/Boston_Dynamics-Logo.wine.png"],
.partner-logo img[src="assets/pegasus-logo.png"] {
    max-width: 120%;
    max-height: 120%;
}

.logo-placeholder {
    font-weight: bold;
    color: var(--text-light);
}

.partners-regions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.region-tag {
    padding: 5px 15px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Why Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.why-item {
    text-align: center;
    padding: 20px;
}

.check-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
    display: inline-block;
    padding: 15px;
    background-color: rgba(53, 94, 59, 0.1);
    border-radius: 50%;
}

.why-text h4 {
    margin-bottom: 10px;
}

.why-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
}

.stars {
    color: #FFD700;
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--text-light);
}

.author {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Contact Layout - Unified */
.contact-unified {
    display: flex;
    justify-content: center;
    width: 100%;
}

.contact-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-locations {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.location-item h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.location-address {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.location-desc {
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.location-desc {
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.location-hours {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.location-hours h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.location-hours p {
    margin: 4px 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.contact-details {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.contact-details .info-item {
    margin-bottom: 20px;
}

.contact-details h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-details p,
.contact-details a {
    color: var(--text-color);
    font-size: 1rem;
}

.contact-details a {
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-map-section {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.contact-map-section iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}

/* Hide Google My Maps branding */
.mapsConsumerUiCommonAttribution-attributionContainer,
.mapsConsumerUiCommonAttribution-attribution,
a[href^="https://www.google.com/maps/@"] {
    display: none !important;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--text-color);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

.contact-form-wrapper {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(53, 94, 59, 0.1);
}

/* Footer */
footer {
    background-color: #111111 !important;
    color: #FFFFFF !important;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #CCCCCC;
    font-size: 0.9rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    color: #CCCCCC !important;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.social-links-footer {
    display: flex;
    gap: 10px;
}

.social-links-footer a {
    width: 35px;
    height: 35px;
    background-color: #222;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

.social-links-footer a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.8rem;
    color: #777;
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

#back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

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

.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .industries-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .page-hero {
        min-height: 350px;
    }

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

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

    .contact-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-map-section {
        min-height: 350px;
    }

    .contact-map-section iframe {
        min-height: 350px;
    }

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

@media (min-width: 769px) and (max-width: 992px) {
    .industries-grid {
        grid-template-columns: 1fr;
    }

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

    .industry-card {
        flex-direction: row;
    }

    .industry-img-wrapper {
        width: 100px;
        height: 100px;
    }
}

/* Hero Banner for Subpages */
.page-hero {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    margin-top: 80px;
}

.page-hero::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.4) 100%);
    z-index: 1;
}

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

.page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Service/Product Cards with Images */
.service-card img,
.industry-card img {
    transition: transform 0.3s ease;
}

.service-card:hover img,
.industry-card:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    #mobile-menu-btn {
        display: flex;
    }

    #main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    #main-nav.active {
        transform: translateY(0);
    }

    #main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--accent-color);
        margin-top: 10px;
        border-radius: 8px;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 15px;
    }

    .dropdown-menu a:hover {
        padding-left: 15px;
    }

    .header-actions .btn {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .page-hero {
        min-height: 300px;
        margin-top: 80px;
    }

    .page-hero-content {
        padding: 30px 15px;
    }

    .page-hero-content h1 {
        font-size: 2rem;
    }

    .page-hero-content p {
        font-size: 1rem;
        line-height: 1.6;
    }

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

    .industries-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .industry-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
    }

    .industry-img-wrapper {
        width: 100%;
        height: 200px;
        margin-bottom: 15px;
    }

    .slideshow-controls {
        bottom: 30px;
    }

    .partners-carousel-wrapper {
        padding: 15px 0;
    }

    .partners-track {
        gap: 30px;
    }

    .partner-logo {
        height: 40px;
        width: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links-footer {
        justify-content: center;
    }

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

    .contact-info-card {
        padding: 20px;
    }

    .about-video {
        height: 250px;
    }
}

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

    .hero-content h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .page-hero {
        min-height: 250px;
    }

    .page-hero-content {
        padding: 20px 10px;
    }

    .page-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .page-hero-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .section {
        padding: 40px 0;
    }

    .service-card,
    .industry-card {
        padding: 15px;
    }

    .service-card h3,
    .industry-card h3 {
        font-size: 1.1rem;
    }

    .card-image {
        height: 150px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

    .slide-dot {
        width: 10px;
        height: 10px;
    }

    .slideshow-controls {
        gap: 10px;
        bottom: 20px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .header-content {
        height: 70px;
    }

    #main-header {
        padding: 0 10px;
    }

    .partner-logo {
        height: 35px;
    }

    .about-video {
        height: 200px;
    }

    .footer-content {
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .page-hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p,
    .page-hero-content p {
        font-size: 0.85rem;
    }

    .page-hero {
        min-height: 220px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

/* Landscape orientation on mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .page-hero {
        min-height: 100vh;
    }

    #hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: 20px;
    }

    .page-hero-content {
        padding: 20px;
    }

    .section {
        padding: 40px 0;
    }
}

/* Large screens - limit max widths */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .page-hero-content h1 {
        font-size: 4rem;
    }
}

/* Print styles */
@media print {

    #main-header,
    .slideshow-controls,
    #mobile-menu-btn,
    .theme-toggle {
        display: none;
    }

    .page-hero {
        page-break-inside: avoid;
    }

    .service-card,
    .industry-card {
        page-break-inside: avoid;
    }
}