/* 1. SETUP & VARIABLES */
:root {
    --background-color: #1A1A1A;
    --card-background: #4A442D;
    --card-border: #635C3D;
    --accent-color: #F8B90E;
    --text-primary: #FFFFFF;
    --text-secondary: #A7A7A7;
    --text-on-accent: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

/* Reusable Frosted Glass Style (Corrected) */
section.frosted-glass {
    background-color: rgba(26, 26, 26, 0.5); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. HEADER & NAVIGATION */
.main-header {
    /* Frosted Glass Effect */
    background-color: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    /* Existing styles */
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative; /* For the ::after element */
    padding: 5px 0; /* Add some padding for the underline */
}

.main-nav a:hover {
    color: var(--text-primary);
}

/* Style for the active navigation link */
.main-nav a.active-link {
    color: var(--text-primary);
}

/* Create the underline using a pseudo-element */
.main-nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Make the underline appear on hover */
.main-nav a:hover::after {
    width: 100%;
}

/* Keep the underline visible for the active link */
.main-nav a.active-link::after {
    width: 100%;
}

/* Default styles for mobile navigation (hidden on desktop) */
.mobile-nav-toggle {
    display: none;
}

.mobile-nav {
    display: none;
}

/* --- Dropdown Menu Styles --- */

.main-nav .dropdown {
    position: relative; /* This is the anchor for the dropdown */
}

.main-nav .dropdown .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px; /* Space between nav and dropdown */
    min-width: 280px;

    /* Frosted glass effect */
    background-color: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-secondary);
    padding: 10px 20px;
    display: block;
    white-space: nowrap; /* Prevents text from wrapping */
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
}

/* Remove the main underline effect from the dropdown parent */
.main-nav .dropdown > a::after {
    display: none;
}

/* 3. LOGO STYLING */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text-main {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.logo-text-tagline {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-top: -2px;
}

/* 4. BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 5. SECTIONS & TYPOGRAPHY */
section {
    padding: 100px 0;
    position: relative; /* This is crucial for the stacking effect */
    background-color: var(--background-color); /* Ensures sections are opaque */
}

h1 {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

/* Style for links within subtitles */
.section-subtitle a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.section-subtitle a:hover {
    text-decoration: underline;
}

/* 6. HERO SECTION (Corrected) */

/* This is the general style for all hero sections */
.hero {
    position: relative;
    text-align: center;
    padding: 120px 0;
    overflow: hidden;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* This is the specific style for the homepage's video hero */
.hero-video-background {
    height: 100vh;
    background-color: transparent;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Ensure video overlay is between video and content */
.video-overlay {
    z-index: -1;
}

/* By default, show desktop video and hide mobile video */
.desktop-video {
    display: block;
}
.mobile-video {
    display: none;
}

/* 7. SERVICES & CARDS */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    width: 100%;
}

.card {
    background: var(--card-background);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card p {
    color: var(--text-secondary);
    margin: 0;
    flex-grow: 1;
}

/* Service Card Heading Color Fix */
.services .card h3 {
    color: var(--text-primary);
}

.services .card h3 a {
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.services .card h3 a:hover {
    color: var(--accent-color) !important;
}


/* 8. PORTFOLIO SLIDER STYLES (Final with Overlays) */

.portfolio-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-sizing: border-box;
}

/* New overlay pseudo-elements for the fade effect */
.portfolio-slider::before,
.portfolio-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc((100% - 60vw) / 2 + 200px);
    z-index: 2;
    pointer-events: none;
}

.portfolio-slider::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--background-color) 0%,
        var(--background-color) 30%,
        rgba(26, 26, 26, 0.8) 60%,
        rgba(26, 26, 26, 0.4) 80%,
        transparent 100%
    );
}

.portfolio-slider::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--background-color) 0%,
        var(--background-color) 30%,
        rgba(26, 26, 26, 0.8) 60%,
        rgba(26, 26, 26, 0.4) 80%,
        transparent 100%
    );
}

.portfolio-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 32px;
    width: 60vw;
    margin-left: calc((100% - 60vw) / 2);
    /* Hide the scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Add equal padding for first/last slide centering */
    padding: 20px 0;
    padding-left: calc((60vw - ((60vw - 96px) / 3)) / 2);
    padding-right: calc((60vw - ((60vw - 96px) / 3)) / 2);
}
.portfolio-scroll-container::-webkit-scrollbar {
    display: none;
}

.portfolio-item, .show-more-card {
    flex: 0 0 calc((60vw - 96px) / 3); /* Updated for 3 cards view */
    aspect-ratio: 3 / 2;
    scroll-snap-align: center;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    position: relative;
    min-width: 300px; /* Slightly larger minimum size */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

.show-more-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-background);
    color: var(--text-primary);
    font-size: 1.8rem; /* Increased from 1.5rem by 20% */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.show-more-card:hover {
    background-color: var(--card-border);
    border-color: var(--accent-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: calc((100% - 60vw) / 2 + -10px);
}

.next-btn {
    right: calc((100% - 60vw) / 2 + -10px);
}

/* 8.5 NEW FOOTER MAIN CONTENT */
.footer-main-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    flex-wrap: wrap;
}

.footer-about {
    flex: 2;
    min-width: 300px;
}

.footer-contact {
    flex: 1;
    min-width: 300px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 5px;
    display: inline-block;
}

.footer-logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.footer-about p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-contact .footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: var(--text-primary);
}

.contact-list i {
    font-size: 1.2rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Styles for the main portfolio page grid */
.portfolio-full .grid-3 a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 2; /* This creates the container box */
    border: 1px solid var(--card-border);
}

.portfolio-full .grid-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the image fill the box */
    transition: transform 0.4s ease;
}

.portfolio-full .grid-3 a:hover img {
    transform: scale(1.08);
}

/* Styles for the main portfolio page grid */
.portfolio-full .grid-3 a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 2;
    border: 1px solid var(--card-border);
}

.portfolio-full .grid-3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-full .grid-3 a:hover img {
    transform: scale(1.08);
}

/* 9. FOOTER (Updated Minimalist Style) */
.main-footer {
    /* Frosted Glass Effect */
    background-color: rgba(26, 26, 26, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari browser support */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle top border to catch the light */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); /* Subtle shadow to lift the element */
    
    /* Existing styles */
    position: relative; /* Ensures it stays above the video */
    padding: 30px 0;
    margin-top: 0px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-divider {
    border: none;
    height: 1px;
    background-color: #333;
    margin-bottom: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

/* 10. HEADER LOAD-IN ANIMATIONS */
@keyframes flipIn {
    from { transform: perspective(400px) rotateY(90deg); opacity: 0; }
    to { transform: perspective(400px) rotateY(0deg); opacity: 1; }
}
@keyframes slideOut {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.page-home .logo img {
    opacity: 0;
    animation: flipIn 0.6s ease-out 0.2s forwards;
}
.page-home .logo-text-main {
    opacity: 0;
    animation: slideOut 0.5s ease-out 0.7s forwards;
}
.page-home .logo-text-tagline {
    opacity: 0;
    animation: fadeIn 0.5s ease-in 1.1s forwards;
}

/* 11. CONTACT PAGE STYLES */
.contact-wrapper {
    display: flex;
    gap: 80px;
    flex-wrap: wrap; 
}
.contact-form-container {
    flex: 1.5;
    min-width: 350px;
}
.contact-details-container {
    flex: 1;
    min-width: 350px;
}
.contact-heading {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: left;
}
.contact-subheading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.contact-form { display: flex; flex-direction: column; gap: 25px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 10px; color: var(--text-secondary); text-align: left; }
.form-group input, .form-group textarea {
    background-color: var(--background-color);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}
.contact-form .btn-primary {
    align-self: flex-start;
}
.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.contact-details-list i {
    font-size: 1.2rem;
    color: var(--accent-color);
}
.contact-details-list a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-details-list a:hover {
    color: var(--text-primary);
}

/* 12. ABOUT PAGE STYLES */
.our-journey {
    padding: 80px 0;
}
.journey-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.journey-text {
    flex: 1;
    min-width: 300px;
}
.journey-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.journey-image {
    flex: 1;
    min-width: 300px;
}
.journey-image iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* This maintains a 16:9 widescreen ratio */
    border-radius: 12px;
    border: none; /* Removes any default border */
}
.team {
    padding: 80px 0;
}
.team-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 3rem;
}
.team-member-card {
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-align: center;
    padding: 2rem;
    width: 300px;
}
.team-member-card p {
    color: var(--accent-color);
    font-weight: 500;
}
.cta-section {
    background-color: var(--card-background);
    text-align: center;
    padding: 80px 20px;
}
.cta-section h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}
.team-member-card h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.see-more-prompt {
    display: block;
    margin-top: 10px;
    color: var(--accent-color);
    font-weight: 600;
}

/* 13. PAGE ANIMATIONS */
.parallax {
    background-image: url("assets/images/Portfolio/Tyre_04.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    background-color: transparent;
    z-index: 0;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        min-height: 400px;
    }
}

@media (min-width: 769px) {
    .parallax {
        background-attachment: fixed;
    }
}

/* Style to create a dark overlay on the parallax image */
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Ensure content stays above the overlay */
.parallax .container {
    position: relative;
    z-index: 2;
}

/* Also, ensure content inside .parallax has a higher z-index to sit above the overlay */
.parallax .container {
    position: relative;
    z-index: 2;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: var(--delay, 0s);
}
.animate-on-scroll.slide-in-left {
    transform: translateX(-30px);
}
.animate-on-scroll.slide-in-right {
    transform: translateX(30px);
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}
.cta-section .btn {
    animation: pulse 2s infinite ease-in-out;
}

/* 14. TEAM MEMBER MODAL AND HOVER STYLES */
.team-member-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.team-member-card > img,
.team-member-card > h3,
.team-member-card > p {
    transition: filter 0.4s ease;
}
.member-description-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.team-member-card:hover .member-description-hover {
    opacity: 1;
}
.team-member-card:hover > img,
.team-member-card:hover > h3,
.team-member-card:hover > p {
    filter: blur(4px);
}
.team-member-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.blur-background {
    filter: blur(5px);
    transition: filter 0.3s ease-in-out;
}
.hidden {
    display: none !important;
}
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#team-member-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 3rem;
    max-width: 600px;
    width: 90%;
    z-index: 1001;
    color: var(--text-secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#modal-backdrop:not(.hidden),
#team-member-modal:not(.hidden) {
    opacity: 1;
}
#team-member-modal:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
}
.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
.close-modal-btn:hover {
    color: var(--text-primary);
}
.modal-content p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 15. CONTENT PROTECTION STYLES */
body {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
img {
  pointer-events: none;
}
.image-protector {
    position: relative;
    display: inline-block; 
}
.image-protector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1; 
}
.team-member-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    overflow: hidden;
}
.team-member-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* 16. THANK YOU MODAL STYLES */
#thanks-modal, #testimonial-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background-color: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 2rem 3rem;
    max-width: 500px;
    width: 90%;
    z-index: 1001;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

#thanks-modal h3, #testimonial-modal h3 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

#thanks-modal p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Testimonial Modal Specific Styles */
#testimonial-modal {
    padding: 2rem;
}

.testimonial-modal-content {
    text-align: left;
}

.testimonial-modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial-modal-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-modal-info {
    flex-grow: 1;
}

.testimonial-modal-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-modal-position {
    font-size: 1rem;
    color: var(--accent-color);
}

.testimonial-modal-quote {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    padding: 0 1rem;
}

.testimonial-modal-quote::before,
.testimonial-modal-quote::after {
    content: '"';
    color: var(--accent-color);
    font-size: 2rem;
    position: absolute;
}

.testimonial-modal-quote::before {
    left: -0.5rem;
    top: -0.5rem;
}

.testimonial-modal-quote::after {
    right: -0.5rem;
    bottom: -1rem;
}

#testimonial-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#testimonial-modal-backdrop:not(.hidden),
#testimonial-modal:not(.hidden) {
    opacity: 1;
}

#testimonial-modal:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #testimonial-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .testimonial-modal-header {
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .testimonial-modal-image {
        width: 60px;
        height: 60px;
    }

    .testimonial-modal-name {
        font-size: 1.25rem;
    }

    .testimonial-modal-position {
        font-size: 0.9rem;
    }

    .testimonial-modal-quote {
        font-size: 1rem;
        line-height: 1.5;
    }
}
#thanks-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
#thanks-modal-backdrop:not(.hidden),
#thanks-modal:not(.hidden) {
    opacity: 1;
}
#thanks-modal:not(.hidden) {
    transform: translate(-50%, -50%) scale(1);
}
/* Fix for logo layout conflict on the About page */
.logo.image-protector {
    display: flex;
}

/* 18. PERKS & BENEFITS STYLES */

.perks-section {
    background-color: var(--background-color);
}

.perks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.perk-card {
    text-align: center;
}

.perk-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

/* 19. LIGHTBOX MODAL STYLES */

#lightbox-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#lightbox-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

/* Make backdrop and modal visible when active */
#lightbox-backdrop:not(.hidden),
#lightbox-modal:not(.hidden) {
    opacity: 1;
}
#lightbox-modal:not(.hidden) img {
    transform: scale(1);
}

/* Use the existing close button style */
#lightbox-modal .close-modal-btn {
    z-index: 1002;
}

/* --- Dropdown Menu Styles --- */

.main-nav .dropdown {
    position: relative;
}

.main-nav .dropdown .dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.main-nav .dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    min-width: 280px;

    /* Frosted glass effect */
    background-color: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;

    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;

    /* Ensure the dropdown is a vertical list on desktop */
    display: block !important;
}

.dropdown-menu li a {
    color: var(--text-secondary);
    padding: 10px 20px;
    display: block;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--accent-color);
    color: var(--text-on-accent);
}

/* Remove the main underline effect from the dropdown parent */
.main-nav .dropdown > a::after {
    display: none;
}

/* --- Added style for active link in dropdowns --- */
.main-nav .dropdown .active-link::after {
    display: block;
    width: 100%;
}



/* 20. RESPONSIVE DESIGN & MOBILE STYLES (Corrected) */

/* --- MOBILE NAVIGATION STYLES --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
}

.mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: visibility 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.mobile-nav.is-active {
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.mobile-nav ul a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}


/* --- Tablet and Larger Mobile Styles (screens below 992px) --- */
@media (max-width: 992px) {
    .portfolio-item, .show-more-card {
        flex-basis: 48%; /* Show 2 items in the slider */
    }
}


/* --- Mobile Styles (screens below 768px) --- */
@media (max-width: 768px) {
    /* General Typography & Spacing */
    h1 { 
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    h2, .section-title { 
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin: 0 auto 2.5rem auto;
    }

    /* Header & Navigation */
    .main-header {
        padding: 0.8rem 0;
    }

    .main-header .container {
        padding: 0 15px;
    }

    .logo img {
        height: 35px;
    }

    .logo-text-main {
        font-size: 1.2rem;
    }

    .logo-text-tagline {
        font-size: 0.7rem;
    }

    .main-nav > ul {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
        padding: 10px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0;
        text-align: center;
    }

    .hero-video-background {
        height: 100vh;
    }

    .desktop-video {
        display: none;
    }

    .mobile-video {
        display: block;
    }

    .video-background {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero p {
        font-size: 1.1rem;
        margin: 0 auto 2rem auto;
        padding: 0 15px;
    }

    /* Services Section */
    .services .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 0 10px;
    }

    .services .card {
        padding: 1rem;
        aspect-ratio: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 0;
        border-radius: 8px;
    }

    .services .card h3 {
        font-size: 0.8rem;
        margin-bottom: 0;
        text-align: center;
        line-height: 1.3;
    }

    .services .card p {
        display: none;
    }

    /* Portfolio Section */
    .portfolio-slider {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
        padding: 10px !important;
        overflow: visible !important;
    }

    .portfolio-scroll-container {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .portfolio-scroll-container > * {
        min-width: 0 !important;
        max-width: none !important;
        min-height: 0 !important;
        max-height: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .portfolio-item {
        aspect-ratio: 1/1 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
    }

    .portfolio-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .show-more-card {
        aspect-ratio: 1/1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.9rem !important;
        border-radius: 8px !important;
        background: var(--card-background) !important;
    }

    .prev-btn, .next-btn,
    .portfolio-slider::before,
    .portfolio-slider::after {
        display: none !important;
    }

    /* Testimonials Section */
    .testimonials {
        padding: 40px 0;
    }

    .testimonials .section-title {
        margin-bottom: 25px;
    }

    .testimonials-slider {
        position: relative;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }

    .testimonials-slider::before,
    .testimonials-slider::after {
        display: none;
    }

    .testimonials-scroll-container {
        display: flex;
        padding: 20px 0;
        gap: 12px;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0;
        width: 100%;
        scroll-padding: 0 50%;
    }

    .testimonials-scroll-container::-webkit-scrollbar {
        display: none;
    }

    .testimonials-scroll-container::after {
        content: '';
        padding-right: calc(50% - 110px);
        flex: none;
    }

    .testimonials-scroll-container::before {
        content: '';
        padding-left: calc(50% - 110px);
        flex: none;
    }

    .testimonial-card {
        width: 220px !important;
        flex: 0 0 220px !important;
        margin: 0 !important;
        border-radius: 10px;
        height: auto !important;
        position: relative;
        scroll-snap-align: center;
        background: var(--background-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        display: flex !important;
        padding: 12px !important;
        transition: transform 0.3s ease, opacity 0.3s ease !important;
        opacity: 0.5;
        transform: scale(0.9);
    }

    .testimonial-card.active {
        opacity: 1;
        transform: scale(1);
    }

    .testimonial-card .testimonial-content-wrapper {
        display: flex;
        gap: 10px;
        align-items: center;
        width: 100%;
    }

    /* Add JavaScript to handle active state */
    .testimonial-card:hover,
    .testimonial-card:focus-within {
        opacity: 1;
        transform: scale(1);
    }

    .testimonial-card .testimonial-image {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .testimonial-card .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .testimonial-card .testimonial-text {
        flex-grow: 1;
        min-width: 0;
    }

    .testimonial-overlay {
        position: relative;
        background: none;
        padding: 0;
    }

    .testimonial-overlay h3 {
        font-size: 0.85rem;
        margin-bottom: 2px;
        color: var(--text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .testimonial-overlay p {
        font-size: 0.7rem;
        color: var(--accent-color);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .testimonial-message {
        font-size: 0.75rem;
        line-height: 1.3;
        color: var(--text-secondary);
        margin-top: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Remove hover effects for mobile */
    .testimonial-card::after,
    .testimonial-message-overlay {
        display: none !important;
    }

    .testimonial-card:hover img,
    .testimonial-card:hover .testimonial-overlay {
        filter: none !important;
        opacity: 1 !important;
    }

    /* Contact Section */
    .contact-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .contact-form-container,
    .contact-details-container {
        width: 100%;
    }

    .contact-heading {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Footer */
    .footer-main-content {
        flex-direction: column;
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-about,
    .footer-contact {
        width: 100%;
    }

    .footer-logo-text {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
        font-size: 0.8rem;
    }

    .social-links {
        justify-content: center;
    }

    /* About Page Specific */
    .journey-content {
        flex-direction: column;
        gap: 30px;
    }

    .team-member-card {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .team-member-image {
        width: 120px;
        height: 120px;
    }

    /* Buttons */
    .btn {
        padding: 8px 24px;
        font-size: 0.9rem;
    }
}
    
    .footer-copyright {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}

/* 21. SERVICE DETAIL PAGE STYLES */

.service-detail-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    flex-wrap: wrap;
}

.service-text {
    flex: 1.5;
    min-width: 300px;
}

.service-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.service-text h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-text p, .service-text li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.service-text ul {
    list-style: none;
    padding-left: 0;
}

.service-text li {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 0.5rem;
}

.service-text li::before {
    content: '✔';
    color: var(--accent-color);
    margin-right: 0.7em;
}

.service-image {
    flex: 1;
    min-width: 300px;
}

.service-image img {
    width: 100%;
    border-radius: 12px;
}

/* Desktop styles for service images */
@media (min-width: 769px) {
    .service-image img {
        width: 50%;
        margin: 0 auto;
    }
}

.related-services {
    background-color: var(--card-background);
    color: var(--text-primary);
}
.related-services h3 {
    text-align: center;
    padding-top: 10px;
    margin-bottom: 30px;
}
.related-services .grid-3 {
    gap: 20px;
}
.related-services .card {
    padding: 1.5rem 1rem;
    text-align: center;
}
.related-services .card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.related-services .card:hover h3 {
    color: var(--text-primary);
}


a.card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.grid-3 .card-link {
    height: 100%;
    display: block;
}

/* 21.  TESTIMONIALS SECTION  */
.testimonials {
    padding: 80px 0;
}

.testimonials .section-title {
    margin-bottom: 2rem;
}

.testimonials-slider {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}
/* Add fade effect to testimonial slider */
.testimonials-slider::before,
.testimonials-slider::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.testimonials-slider::before {
    left: 0;
    background: linear-gradient(to right, var(--background-color) 40%, transparent);
}

.testimonials-slider::after {
    right: 0;
    background: linear-gradient(to left, var(--background-color) 40%, transparent);
}

.testimonials-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: none; /* Removed mandatory snap for smooth infinite scroll */
    scroll-behavior: smooth;
    gap: 25px;
    padding: 10px;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Clone container for infinite scroll effect */
.testimonials-scroll-content {
    display: flex;
    gap: 25px;
    animation: scrollInfinite 40s linear infinite;
}

@keyframes scrollInfinite {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% / 2)); }
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0;
    flex-basis: 200px;
    aspect-ratio: 2 / 3; /
    scroll-snap-align: center;
    border: 1px solid var(--card-border);
}

.testimonial-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.testimonial-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: var(--text-primary);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5));
}

.testimonial-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.0rem;
}

.testimonial-overlay p {
    font-size: 0.7rem;
    color: var(--text-secondary);
}
/* --- Testimonial Hover Effect --- */

/* Parent container for the effect */
.testimonial-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Blur and darken effect on the hover */
.testimonial-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start with a transparent overlay */
    backdrop-filter: blur(0px); /* No blur initially */
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
    z-index: 1; /* Sits above the image but below the text */
}

/* When the card is hovered, apply the blur and darken effect */
.testimonial-card:hover::after {
    background-color: rgba(0, 0, 0, 0.7); /* Darken the background */
    backdrop-filter: blur(5px); /* Apply a blur effect */
}

/* Ensure the image and overlay text become blurry on hover */
.testimonial-card:hover img,
.testimonial-card:hover .testimonial-overlay {
    filter: blur(5px);
    opacity: 0.5;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

/* --- New Testimonial Message Overlay on Hover --- */

/* This div holds the message that appears on hover */
.testimonial-message-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.4s ease;
    z-index: 2; /* Sits above the blur and content */
}

.testimonial-message-overlay blockquote {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
}

/* When the card is hovered, show the message overlay */
.testimonial-card:hover .testimonial-message-overlay {
    opacity: 1;
}

/* 22. RESPONSIVE DESIGN & MOBILE STYLES */

/* --- MOBILE NAVIGATION STYLES --- */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1000;
}

.mobile-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    right: -100%; /* Starts hidden off-screen */
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999;
    transition: right 0.4s ease-in-out;
}

.mobile-nav.is-active {
    right: 0; /* Slides into view */
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    list-style: none;
    padding: 0;
}

.mobile-nav ul a {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
}

/* --- Tablet and Larger Mobile Styles (screens below 992px) --- */
@media (max-width: 992px) {
    .portfolio-item, .show-more-card {
        flex-basis: 48%; /* Show 2 items in the slider */
    }
}

/* --- Mobile Styles (screens below 768px) --- */
@media (max-width: 768px) {
    /* General Typography */
    h1 { font-size: 2.5rem; }
    h2, .section-title { font-size: 2rem; }

    /* Header & Mobile Navigation */
    .main-nav > ul { 
        display: none; /* Hide the desktop nav links */ 
    }

    .mobile-nav-toggle {
        display: block; /* Show the hamburger button on mobile */
    }

    /* Layout Adjustments */
    .journey-content, .contact-wrapper, .footer-main-content, .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .grid-3, .perks-grid {
        grid-template-columns: 1fr; /* Make grids single-column */
    }

    .portfolio-item, .show-more-card {
        flex-basis: 80%; /* Show 1 item at a time in the slider */
    }
    
    .prev-btn, .next-btn {
        display: none; /* Hide slider arrows on mobile (users can swipe) */
    }
    
    .footer-copyright {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}
/* --- Definitive Mobile Menu Visibility Fix --- */

/* On screens WIDER than 768px (i.e., desktop and tablet) */
@media (min-width: 769px) {
    .mobile-nav-toggle,
    .mobile-nav {
        display: none !important; /* Force hide on desktop */
    }
}

/* On screens NARROWER than 768px (i.e., mobile) */
@media (max-width: 768px) {
    .main-nav > ul {
        display: none !important; /* Force hide the desktop links */
    }
    .mobile-nav-toggle {
        display: block !important; /* Force show the hamburger button */
    }
}

/* --- Final Mobile Menu Desktop Visibility Fix --- */
@media (min-width: 769px) {
    .mobile-nav-toggle,
    .mobile-nav {
        display: none !important;
    }
}