:root {
    --midnight-black: #1A1A2E;
    --bg-dark: #0F0F1A; /* Even darker background */
    --neon-magenta: #FF00FF;
    --neon-cyan: #00FFFF;
    --electric-blue: #00BFFF;
    --text-light: #E0E0E0;
    --text-dark: #A0A0A0;
    --border-glow: #00BFFF; /* Electric Blue for glow */
    --card-bg: rgba(26, 26, 46, 0.7); /* Slightly transparent midnight black */
    --card-border: rgba(138, 43, 226, 0.5); /* Semi-transparent neon purple */

    --header-height: 80px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from glitches/overflow */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    text-align: center;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--neon-purple);
    text-shadow: 0 0 6px var(--neon-purple);
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.4rem;
    color: var(--electric-blue);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 8px var(--neon-magenta);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    padding: 100px 0;
    position: relative;
    z-index: 2; /* Ensure content is above parallax effects */
}

.button {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.button:hover::before {
    width: 200%;
    height: 200%;
}

.primary-button {
    background: var(--neon-cyan);
    color: var(--midnight-black);
    box-shadow: 0 0 15px var(--neon-cyan);
}

.primary-button:hover {
    background: var(--electric-blue);
    box-shadow: 0 0 25px var(--electric-blue);
    color: var(--midnight-black);
}

.secondary-button {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    margin-left: 20px;
}

.secondary-button:hover {
    border-color: var(--neon-magenta);
    color: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-magenta);
    background: rgba(255, 0, 255, 0.1);
}

/* Glitch Effect - Common for interactive elements and cards */
.glitch-effect {
    position: relative;
    overflow: hidden;
}

.glitch-effect::before,
.glitch-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--border-glow);
    opacity: 1;
    animation: glitch-flicker 2s infinite linear alternate;
    z-index: -1;
}

.glitch-effect::before {
    animation-delay: 0.1s;
    background: var(--neon-magenta);
}

.glitch-effect::after {
    animation-delay: 0.2s;
    background: var(--neon-cyan);
}

.glitch-effect:hover::before,
.glitch-effect:hover::after {
    opacity: 1;.1; /* Subtle effect on hover */
}

@keyframes glitch-flicker {
    0%, 100% {
        transform: translate(0);
        opacity: 1;
    }
    10% {
        transform: translate(-2px, -2px);
        opacity: 1;.2;
    }
    20% {
        transform: translate(2px, 2px);
        opacity: 1;.1;
    }
    30% {
        transform: translate(-1px, 1px);
        opacity: 1;.3;
    }
    40% {
        transform: translate(1px, -1px);
        opacity: 1;.1;
    }
    50% {
        transform: translate(0);
        opacity: 1;
    }
}

/* Header */
.main-header {
    background-color: rgba(15, 15, 26, 0.9); /* Semi-transparent for layered look */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.5); /* Electric blue glow */
    border-bottom: 1px solid rgba(0, 191, 255, 0.2);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-header .logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    transition: text-shadow 0.3s ease;
}

.main-header .logo:hover {
    text-shadow: 0 0 20px var(--neon-magenta), 0 0 30px var(--neon-magenta);
    color: var(--neon-magenta);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-light);
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 0;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-purple);
    box-shadow: 0 0 8px var(--neon-purple);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
    background: var(--neon-magenta);
    box-shadow: 0 0 12px var(--neon-magenta);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--neon-cyan);
    cursor: pointer;
    z-index: 101; /* Above nav */
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-height); /* Account for fixed header */
}

.hero-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Larger to allow parallax movement */
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Controlled by JS parallax */
    filter: brightness(0.7) blur(2px);
    z-index: 0;
    transform: translateY(0); /* Initial position for JS parallax */
    will-change: transform; /* Optimize for animation */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-size: 4.5rem; /* Larger for impact */
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.floating-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.floating-cards .card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3); /* Neon purple glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float-card 6s ease-in-out infinite alternate;
}

.floating-cards .card:nth-child(2) {
    animation-delay: 0.5s;
}
.floating-cards .card:nth-child(3) {
    animation-delay: 1s;
}

.floating-cards .card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--neon-purple);
}

.floating-cards .card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.floating-cards .card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

@keyframes float-card {
    0% { transform: translateY(0); }
    100% { transform: translateY(-15px); }
}

/* About Section */
.about-section .two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-section .text-content {
    padding-right: 20px;
}

.about-section .text-content h2,
.about-section .text-content h3 {
    text-align: left;
}

.about-section .text-content ul {
    list-style: none;
    margin-top: 20px;
}

.about-section .text-content ul li {
    font-family: 'Exo', sans-serif;
    color: var(--text-light);
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

/* Custom list item marker */
.about-section .text-content ul li::before {
    color: var(--neon-cyan);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.about-section .image-content img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 25px var(--neon-purple);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.about-section .image-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px var(--neon-magenta), 0 0 60px var(--neon-purple);
}

/* Services Section */
.services-section {
    background-color: var(--midnight-black); /* Darker background */
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    padding: 100px 0;
}

.services-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.tab-button {
    background: transparent;
    border: 2px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 12px 25px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-button:hover,
.tab-button.active {
    background: var(--neon-magenta);
    color: var(--bg-dark);
    border-color: var(--neon-magenta);
    box-shadow: 0 0 20px var(--neon-magenta);
    transform: translateY(-3px);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    padding: 20px 0;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 40px var(--electric-blue);
}

.service-card h4 {
    color: var(--electric-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 5px var(--electric-blue);
}

.service-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Gallery Section (Showcase) */
.gallery-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.gallery-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.category-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 15px;
}

.filter-button {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 10px 20px;
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-button:hover,
.filter-button.active {
    background: var(--electric-blue);
    color: var(--midnight-black);
    border-color: var(--electric-blue);
    box-shadow: 0 0 15px var(--electric-blue);
    transform: scale(1.05);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.gallery-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease, display 0.3s ease;
    position: relative;
    opacity: 1;
    transform: translateY(20px);
    display: none; /* Hidden by default, JS handles showing */
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
    display: block; /* Show when visible */
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 35px var(--neon-magenta), 0 0 50px var(--neon-purple);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.gallery-item .card-content {
    padding: 25px;
}

.gallery-item .card-content h4 {
    color: var(--neon-magenta);
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 0 5px var(--neon-magenta);
}

.gallery-item .card-content p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: left;
}

.gallery-item .card-content .highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.gallery-item .card-content .highlights span {
    background: rgba(0, 191, 255, 0.15);
    color: var(--electric-blue);
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 191, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 191, 255, 0.5);
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--midnight-black);
    padding: 100px 0;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.testimonials-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    max-width: 960px; /* Adjust based on 3 cards + gaps */
    margin: 0 auto;
    padding: 0 50px; /* Space for nav buttons */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px; /* Space between cards */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per row, account for gap */
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px; /* Ensure cards don't get too small */
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--neon-magenta), 0 0 40px var(--neon-purple);
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 2px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.testimonial-card h4 {
    color: var(--electric-blue);
    font-size: 1.3rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px var(--electric-blue);
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(138, 43, 226, 0.5);
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px var(--neon-purple);
}

.carousel-nav:hover {
    background: var(--neon-magenta);
    box-shadow: 0 0 25px var(--neon-magenta);
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--neon-purple);
}

.dot.active,
.dot:hover {
    background: var(--neon-cyan);
    border-color: var(--electric-blue);
    box-shadow: 0 0 10px var(--neon-cyan);
    transform: scale(1.2);
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.faq-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    background: rgba(0, 191, 255, 0.05);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.faq-question:hover {
    background: rgba(0, 191, 255, 0.15);
    color: var(--electric-blue);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--neon-purple);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
    color: var(--neon-magenta);
}

.faq-answer {
    padding: 0 25px;
    color: var(--text-dark);
    font-size: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-answer[aria-hidden="false"] {
    max-height: 200px; /* Adjust as needed */
    padding: 20px 25px;
}

.faq-answer p {
    margin-bottom: 0; /* No extra margin for last paragraph */
    text-align: left;
}

/* Team Section */
.team-section {
    background-color: var(--midnight-black);
    padding: 100px 0;
    border-top: 1px solid rgba(0, 191, 255, 0.1);
    border-bottom: 1px solid rgba(0, 191, 255, 0.1);
}

.team-section p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.team-member-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 0 35px var(--neon-magenta), 0 0 50px var(--neon-purple);
}

.team-member-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--electric-blue);
    box-shadow: 0 0 15px var(--electric-blue);
}

.team-member-card h4 {
    color: var(--neon-cyan);
    font-size: 1.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.team-member-card span {
    display: block;
    color: var(--neon-purple);
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.team-member-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Contact Section (Connect) */
.contact-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--bg-dark);
}

.contact-section p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

.contact-section .cta-text {
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
    margin-bottom: 3rem;
}

.contact-section .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Footer */
.main-footer {
    background-color: var(--midnight-black);
    padding: 50px 0;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    text-align: center;
}

.main-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px;
}

.main-footer .footer-brand {
    text-align: left;
}

.main-footer .footer-brand .logo {
    font-size: 2.2rem;
    color: var(--neon-purple);
    text-shadow: 0 0 10px var(--neon-purple);
    margin-bottom: 10px;
    display: block;
}

.main-footer .footer-brand p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0;
}

.main-footer .footer-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.main-footer .footer-nav ul li a {
    color: var(--text-dark);
    font-family: 'Exo', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.main-footer .footer-nav ul li a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

.main-footer .copyright {
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .floating-cards {
        flex-wrap: wrap;
        gap: 20px;
    }

    .floating-cards .card {
        max-width: 45%; /* Two cards per row */
    }

    .about-section .two-column-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-section .text-content {
        padding-right: 0;
    }
    .about-section .text-content h2,
    .about-section .text-content h3 {
        text-align: center;
    }

    .service-cards-grid,
    .gallery-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 2-3 cards per row */
        justify-content: center;
    }

    .testimonial-carousel {
        padding: 0 20px; /* Reduce padding for smaller screens */
    }

    .testimonial-card {
        flex: 0 0 calc(50% - 15px); /* 2 cards per row on medium screens */
    }
}

@media (max-width: 768px) {
    .main-header .container {
        padding: 0 15px;
    }
    .main-nav {
        display: none; /* Hide by default on mobile */
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: rgba(15, 15, 26, 0.95);
        box-shadow: 0 10px 20px rgba(0, 191, 255, 0.3);
        padding: 20px 0;
        z-index: 99;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        margin: 15px 0;
    }
    .main-nav ul li a {
        font-size: 1.2rem;
    }
    .main-nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .menu-toggle {
        display: block; /* Show hamburger menu */
    }

    .hero-section {
        height: auto; /* Allow height to adjust */
        min-height: 100vh;
        padding-top: var(--header-height);
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1rem;
    }

    .floating-cards {
        flex-direction: column;
        align-items: center;
        margin-top: 30px;
    }
    .floating-cards .card {
        max-width: 90%; /* One card per row */
        margin-bottom: 15px;
    }

    .content-section {
        padding: 80px 0;
    }

    h2 {
        font-size: 1.8rem;
    }
    h3 {
        font-size: 1.3rem;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    .tab-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .service-cards-grid,
    .gallery-grid,
    .team-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 30px;
    }

    .gallery-item.visible {
        display: block; /* Keep single column display consistent */
    }

    .filter-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .testimonial-carousel {
        max-width: 100%;
        padding: 0 10px;
    }
    .carousel-track {
        gap: 20px; /* Adjust gap for single card view */
    }
    .testimonial-card {
        flex: 0 0 100%; /* One card per row on mobile */
        min-width: unset; /* Allow flexibility */
    }

    .carousel-nav {
        font-size: 2rem;
        padding: 8px 12px;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .faq-answer {
        padding: 15px 20px;
    }

    .main-footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .main-footer .footer-brand {
        text-align: center;
        margin-bottom: 20px;
    }
    .main-footer .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .contact-section .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .secondary-button {
        margin-left: 0; /* Remove margin for stacked buttons */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    h3 {
        font-size: 1.2rem;
    }
    .main-header .logo {
        font-size: 1.5rem;
    }
    .floating-cards .card {
        padding: 20px;
    }
    .floating-cards .card h3 {
        font-size: 1.3rem;
    }
    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .footer-nav ul li a {
        font-size: 0.85rem;
    }
}

/* Universal Icon Fixes for Buttons */
button svg, .carousel-next svg, .carousel-prev svg, .slider-next svg, .slider-prev svg,
.next svg, .prev svg, .tab-button svg, .tab-btn svg {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

button i, .carousel-next i, .carousel-prev i, .slider-next i, .slider-prev i,
.next i, .prev i, .tab-button i, .tab-btn i {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
    font-style: normal;
}

button .icon, .carousel-next .icon, .carousel-prev .icon,
.slider-next .icon, .slider-prev .icon, .tab-button .icon {
    display: inline-block;
    vertical-align: middle;
    pointer-events: none;
}

/* Ensure carousel buttons are clickable even with icons */
.carousel-next, .carousel-prev, .slider-next, .slider-prev,
.next, .prev, .next-btn, .prev-btn {
    cursor: pointer;
    position: relative;
}

.carousel-next *, .carousel-prev *, .slider-next *, .slider-prev *,
.next *, .prev *, .next-btn *, .prev-btn * {
    pointer-events: none;
}

/* Tab button icon fixes */
.tab-button, .tab-btn, .tab {
    cursor: pointer;
    position: relative;
}

.tab-button *, .tab-btn *, .tab * {
    pointer-events: none;
}

/* Ensure icons don't block clicks */
button > svg, button > i, button > .icon,
.carousel-next > svg, .carousel-prev > svg,
.tab-button > svg, .tab-button > i {
    pointer-events: none !important;
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
