:root {
    --primary-text-color: rgba(255, 255, 255, 0.9);
    --secondary-text-color: rgba(255, 255, 255, 0.7);
    --glass-background-light: rgba(255, 255, 255, 0.15); /* Translucent white */
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --button-background: rgba(255, 255, 255, 0.2);
    --button-hover-background: rgba(255, 255, 255, 0.3);
    --glow-color: rgba(255, 255, 255, 0.5);
    --dark-backdrop-color: #1a1a2e; /* Deep dark blue */
    --accent-color: #6a1a7c; /* A deep purple for subtle accent */
    --accent-light: #9a4dff; /* Lighter purple for glows */

    --header-height: 80px;
    --section-padding: 80px 0;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-text-color);
    background-color: var(--dark-backdrop-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 0.8em;
    line-height: 1.2;
    color: var(--primary-text-color);
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.5em; }
h3 { font-size: 2em; }
h4 { font-size: 1.5em; }

p {
    margin-bottom: 1em;
    color: var(--secondary-text-color);
}

a {
    color: var(--primary-text-color);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--accent-light);
}

ul {
    list-style: none;
    margin-bottom: 1em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.button {
    display: inline-block;
    padding: 12px 28px;
    background: var(--button-background);
    color: var(--primary-text-color);
    border: 1px solid var(--glass-border-light);
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.button:hover {
    background-color: var(--button-hover-background);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), 0 0 15px var(--accent-light);
}

.button-small {
    display: inline-block;
    padding: 8px 18px;
    background: var(--button-background);
    color: var(--primary-text-color);
    border: 1px solid var(--glass-border-light);
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 400;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button-small:hover {
    background-color: var(--button-hover-background);
    border-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15), 0 0 10px var(--accent-light);
}

.glass-panel {
    background: var(--glass-background-light);
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.content-block {
    padding: 40px;
}

/* Header & Navigation */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker for contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--primary-text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    color: var(--secondary-text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-light);
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-text-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-height); /* Offset for fixed header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    filter: brightness(0.7) blur(5px);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 60px;
    border-radius: 15px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.85);
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* General Section Styling */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

section:not(#hero) .glass-panel {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 1;
    transform: translateY(30px);
}

section:not(#hero) .glass-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* About Us Section */
.about-us .content-block {
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.about-text ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
}

.about-text ul li {
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent-light);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: 400;
    color: var(--secondary-text-color);
}

/* Services Section - Horizontal Cards */
.services h2 {
    text-align: center;
    margin-bottom: 40px;
}

.horizontal-cards-wrapper {
    overflow-x: auto;
    padding-bottom: 20px; /* Space for scrollbar */
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--accent-light) var(--glass-background-light); /* Firefox */
}

.horizontal-cards-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-cards-wrapper::-webkit-scrollbar-track {
    background: var(--glass-background-light);
    border-radius: 10px;
}

.horizontal-cards-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent-light);
    border-radius: 10px;
    border: 2px solid var(--glass-background-light);
}


.horizontal-cards-container {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    min-width: max-content; /* Ensures content doesn't wrap */
}

.service-card {
    flex: 0 0 350px; /* Fixed width, no shrinking/growing */
    text-align: center;
    padding: 30px;
    transition: all 0.3s ease;
    border-radius: 12px;
    height: auto;
    display: flex;
    flex-direction: column;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-card h4 {
    font-size: 1.4em;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95em;
    flex-grow: 1;
}

/* Features Section - Tabs */
.features h2 {
    text-align: center;
    margin-bottom: 40px;
}

.tabs-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    padding: 15px;
    gap: 15px;
    border-radius: 10px;
}

.tab-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--secondary-text-color);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tab-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--primary-text-color);
    border-color: var(--accent-light);
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--primary-text-color);
    border-color: var(--accent-light);
    box-shadow: 0 0 15px var(--accent-light);
    transform: translateY(-2px);
}

.tab-pane {
    padding: 40px;
    border-radius: 12px;
    opacity: 1;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    display: none; /* Hide by default, JS shows active */
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.tab-content-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.tab-content-inner img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.tab-content-inner h3 {
    margin-top: 0;
    font-size: 2em;
}

/* Showcase Section - Featured Work */
.showcase h2 {
    text-align: center;
    margin-bottom: 40px;
}

.featured-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-work-item {
    padding: 30px;
    text-align: center;
    border-radius: 12px;
}

.featured-work-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.featured-work-item h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

/* Gallery Section - Lightbox Gallery */
.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
}

.lightbox-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: var(--glass-background-light); /* Background for the item itself */
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #000;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px; /* Position outside the content box */
    right: -40px;
    color: var(--primary-text-color);
    font-size: 3em;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    z-index: 2001;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}
.lightbox-close:hover {
    color: var(--accent-light);
}

/* Portfolio Section - Masonry Grid */
.portfolio h2 {
    text-align: center;
    margin-bottom: 40px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: minmax(200px, auto); /* Allow images to define row height */
    gap: 20px;
    margin-top: 40px;
}

.masonry-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Team Section - Interactive Profiles */
.team h2 {
    text-align: center;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 18px var(--glow-color);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--glass-border-light);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.team-member h4 {
    font-size: 1.6em;
    margin-bottom: 5px;
}

.team-member p {
    font-size: 1em;
    color: var(--secondary-text-color);
}

.team-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 1;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.team-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.team-modal-content {
    position: relative;
    max-width: 600px;
    padding: 40px;
    text-align: center;
    border-radius: 15px;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 1; }
    to { transform: scale(1); opacity: 1; }
}

.team-modal-content img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 4px solid var(--glass-border-light);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.team-modal-content h4 {
    font-size: 2em;
    margin-bottom: 10px;
}

.team-modal-content p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

.team-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--primary-text-color);
    font-size: 2.5em;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: color 0.3s ease;
}
.team-modal-close:hover {
    color: var(--accent-light);
}


/* FAQ Section */
.faq-section {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
    align-items: flex-start;
}

.faq-section .content-block {
    grid-column: 1 / -1; /* Make the main glass panel span across grid columns */
    display: grid;
    grid-template-columns: 1fr 3fr; /* Inner grid for sidebar and main content */
    gap: 40px;
    padding: 40px;
    border-radius: 12px;
}

.faq-sidebar {
    grid-column: 1 / 2;
}

.newsletter-sidebar {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.newsletter-sidebar h3 {
    margin-top: 0;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.newsletter-sidebar p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: var(--secondary-text-color);
}

.faq-main-content {
    grid-column: 2 / 3;
}

.faq-main-content h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 30px;
    grid-column: 1 / -1; /* Make h2 span full width within inner grid */
}
.faq-main-content h3 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
}


.search-bar-container {
    margin-bottom: 30px;
}

.glass-input {
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--primary-text-color);
    font-size: 1em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 10px var(--accent-light);
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 18px 25px;
    text-align: left;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--primary-text-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--glass-border-light);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.faq-answer {
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.05);
    max-height: 0;
    opacity: 1;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out, visibility 0.4s ease-out;
}

.faq-answer p {
    padding: 15px 0;
    margin-bottom: 0;
    font-size: 0.95em;
    color: var(--secondary-text-color);
}

/* Footer */
footer {
    padding: 60px 0 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.footer-content h3, .footer-content h4 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--primary-text-color);
}

.footer-content p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.footer-content ul {
    padding-left: 0;
}

.footer-content ul li {
    margin-bottom: 10px;
}

.footer-content ul li a {
    color: var(--secondary-text-color);
    font-size: 0.95em;
}

.footer-content ul li a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll Fade-in animation for sections */
.section-hidden {
    opacity: 1;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3em;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        margin-bottom: 30px;
    }
    .tab-content-inner {
        grid-template-columns: 1fr;
    }
    .tab-content-inner img {
        margin-bottom: 20px;
    }
    .faq-section .content-block {
        grid-template-columns: 1fr;
    }
    .faq-sidebar {
        grid-column: auto;
        margin-bottom: 40px;
    }
    .faq-main-content {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --section-padding: 60px 0;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }
    h4 { font-size: 1.3em; }

    nav {
        padding: 0 15px;
    }

    .nav-brand {
        font-size: 1.5em;
    }

    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out, background-color 0.3s ease;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        height: calc(100vh - var(--header-height));
        padding: 20px 0;
    }

    .nav-links li {
        text-align: center;
        margin: 15px 0;
    }
    .nav-links li a {
        font-size: 1.2em;
        color: var(--primary-text-color);
        padding: 10px 0;
        display: block;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 1;
    }
    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .hero-content {
        padding: 40px 20px;
    }
    .hero-content h1 {
        font-size: 2.8em;
    }
    .hero-content p {
        font-size: 1em;
    }

    .glass-panel {
        padding: 25px;
    }
    .content-block {
        padding: 30px;
    }

    .service-card {
        flex: 0 0 80%; /* Smaller cards for horizontal scroll on mobile */
        margin: 0 auto;
    }
    .horizontal-cards-container {
        padding: 10px 0;
        justify-content: flex-start; /* Align to start for better scrolling UX */
    }

    .featured-work-grid,
    .lightbox-gallery-grid,
    .masonry-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .tab-button {
        width: 100%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 2.5em;
    }

    .team-modal-content {
        max-width: 90%;
        padding: 30px;
    }

    .faq-section .content-block {
        padding: 30px;
    }
    .newsletter-sidebar {
        margin-bottom: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-content h3, .footer-content h4 {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }
    h4 { font-size: 1.2em; }

    .hero-content h1 {
        font-size: 2.2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .button-small {
        padding: 7px 15px;
        font-size: 0.85em;
    }

    .about-text ul li {
        padding: 8px 12px;
        font-size: 0.9em;
    }

    .service-card {
        flex: 0 0 90%; /* Even smaller cards */
    }

    .tab-content-inner {
        gap: 20px;
    }
    .tab-content-inner img {
        height: 180px;
    }

    .gallery-item img {
        height: 180px;
    }

    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .faq-answer p {
        font-size: 0.85em;
        padding: 10px 0;
    }
}

/* 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; } }

/* Enhanced: Missing animation classes from JS */
.scroll-animate {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
