:root {
    --color-dark-base: #0D1117; /* Deep Navy/Graphite */
    --color-dark-accent: #1A202C; /* Slightly lighter dark for contrast */
    --color-text-light: #E0E6EE; /* Off-white for readability */
    --color-text-muted: #A0AEC0; /* Lighter grey for secondary text */
    --color-holographic-teal: #00CED1; /* DarkTurquoise, vibrant teal */
    --color-holographic-rose: #FF69B4; /* HotPink, vibrant rose */

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --gradient-holographic: linear-gradient(90deg, var(--color-holographic-teal) 0%, var(--color-holographic-violet) 50%, var(--color-holographic-rose) 100%);
    --gradient-holographic-reverse: linear-gradient(90deg, var(--color-holographic-rose) 0%, var(--color-holographic-violet) 50%, var(--color-holographic-teal) 100%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-light);
    background-color: var(--color-dark-base);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-holographic-teal);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: var(--color-holographic-violet);
    transform: translateY(-2px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 0.8em;
}

h1 { font-size: 3.2em; }
h2 { font-size: 2.5em; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
    color: var(--color-text-muted);
}

.section-padding {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.8em;
    position: relative;
    display: inline-block; /* For the gradient effect */
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient-holographic);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: var(--color-holographic-teal);
    position: relative;
    padding-bottom: 10px;
}
.section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--color-holographic-violet);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: var(--gradient-holographic);
    color: var(--color-dark-base);
    box-shadow: 0 4px 15px rgba(0, 206, 209, 0.4);
}

.primary-btn:hover {
    background: var(--gradient-holographic-reverse);
    box-shadow: 0 6px 20px rgba(147, 112, 219, 0.6);
    color: var(--color-dark-base);
    transform: translateY(-3px);
}

/* Header & Navigation */
.site-header {
    background-color: rgba(13, 17, 23, 0.9); /* Semi-transparent dark base */
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 206, 209, 0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-text-light);
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--color-holographic-rose);
    text-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 1.05em;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--color-holographic-teal);
    transform: translateY(-2px);
    text-shadow: 0 0 5px var(--color-holographic-teal);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-holographic);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) saturate(1.2);
    transform: scale(1.05); /* Slight zoom for motion effect */
    transition: transform 0.5s ease-out;
    animation: panBackground 20s infinite alternate linear;
}

@keyframes panBackground {
    0% { transform: scale(1.05) translateX(0); }
    100% { transform: scale(1.05) translateX(-5%); }
}

.hero-overlay-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr); /* For more granular control */
    height: 100%;
    width: 100%;
    pointer-events: none; /* Allow clicks through overlay */
}

.hero-content {
    grid-column: 2 / span 7; /* Asymmetrical positioning, starting from 2nd column, spanning 7 */
    grid-row: 3 / span 3; /* Vertically centered-ish */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left within its grid cell */
    text-align: left;
    background: rgba(13, 17, 23, 0.6); /* Semi-transparent dark background */
    backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 206, 209, 0.2);
    box-shadow: 0 8px 30px rgba(0, 206, 209, 0.15);
    pointer-events: auto; /* Re-enable clicks for content */
}

.hero-content h1 {
    font-size: 3.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 206, 209, 0.6);
}

.hero-content p {
    font-size: 1.3em;
    max-width: 600px;
    margin-bottom: 30px;
    color: var(--color-text-light);
}

/* Stats Showcase */
.stats-showcase {
    background-color: var(--color-dark-accent);
    padding: 80px 0;
    border-top: 1px solid rgba(147, 112, 219, 0.1);
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.stat-item {
    padding: 30px;
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.8), rgba(13, 17, 23, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(0, 206, 209, 0.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 206, 209, 0.3);
}

.stat-number {
    font-size: 3.5em;
    font-family: var(--font-heading);
    font-weight: 700;
    background: var(--gradient-holographic);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.5);
}

.stat-description {
    font-size: 1.3em;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Services Section */
.services-section {
    background-color: var(--color-dark-base);
}

.horizontal-cards-wrapper {
    overflow-x: auto;
    padding-bottom: 20px; /* Space for scrollbar */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.horizontal-cards {
    display: flex;
    gap: 30px;
    padding: 0 20px; /* Padding for the first/last card */
    min-width: fit-content; /* Ensure cards don't shrink */
}

.service-card {
    flex: 0 0 350px; /* Fixed width for cards */
    scroll-snap-align: start;
    background: linear-gradient(145deg, var(--color-dark-accent) 0%, rgba(13, 17, 23, 0.9) 100%);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(147, 112, 219, 0.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(147, 112, 219, 0.3);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(147, 112, 219, 0.2);
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.service-card .card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-card h3 {
    font-size: 1.7em;
    margin-bottom: 15px;
    color: var(--color-holographic-violet);
    text-shadow: 0 0 5px rgba(147, 112, 219, 0.3);
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95em;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--color-holographic-teal);
    font-weight: 500;
}

/* About Section */
.about-section {
    background-color: var(--color-dark-accent);
    border-top: 1px solid rgba(255, 105, 180, 0.1);
    border-bottom: 1px solid rgba(0, 206, 209, 0.1);
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Stacks items vertically on larger screens */
    gap: 60px;
    margin-top: 60px;
}

.story-item {
    display: flex;
    align-items: center;
    flex-direction: column; /* Default stack for mobile */
    gap: 40px;
    padding: 40px;
    background: linear-gradient(160deg, rgba(26, 32, 44, 0.8), rgba(13, 17, 23, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 180, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-item:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(255, 105, 180, 0.25);
}

.story-item:nth-child(even) {
    flex-direction: column; /* Ensures consistent stacking */
}

.story-item img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--color-holographic-rose);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
    transition: transform 0.5s ease;
}

.story-item:hover img {
    transform: translateY(-5px);
}

.story-content {
    text-align: center;
    max-width: 700px;
}

.story-content h3 {
    font-size: 2em;
    color: var(--color-holographic-rose);
    text-shadow: 0 0 8px rgba(255, 105, 180, 0.4);
    margin-bottom: 20px;
}

.story-content p {
    font-size: 1.1em;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Portfolio/Gallery - Interactive Showcase */
.portfolio-section {
    background-color: var(--color-dark-base);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 30px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(0, 206, 209, 0.2);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 206, 209, 0.4);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 1;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.portfolio-item:hover .overlay {
    opacity: 1;
}

.portfolio-item .overlay-text {
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.5em;
    font-weight: 600;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease;
    text-shadow: 0 0 10px rgba(0, 206, 209, 0.7);
}

.portfolio-item:hover .overlay-text {
    transform: translateY(0);
}

/* Features Section - Comparison Table */
.features-section {
    background-color: var(--color-dark-accent);
    border-top: 1px solid rgba(147, 112, 219, 0.1);
    border-bottom: 1px solid rgba(255, 105, 180, 0.1);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 60px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(147, 112, 219, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is wide enough for content */
    background-color: rgba(13, 17, 23, 0.8);
}

.comparison-table th,
.comparison-table td {
    padding: 18px 25px;
    text-align: left;
    border-bottom: 1px solid rgba(147, 112, 219, 0.1);
}

.comparison-table th {
    background-color: var(--color-dark-accent);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1em;
    color: var(--color-holographic-violet);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
}

.comparison-table th:first-child {
    border-top-left-radius: 15px;
}
.comparison-table th:last-child {
    border-top-right-radius: 15px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}
.comparison-table tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}
.comparison-table tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.comparison-table td {
    color: var(--color-text-muted);
    font-size: 1em;
}

.comparison-table tbody tr:hover {
    background-color: rgba(147, 112, 219, 0.05);
}

.comparison-table td:nth-child(2) { /* Aura Voyage column */
    color: var(--color-holographic-teal);
    font-weight: 500;
}

.comparison-table td:nth-child(3) { /* Other Options column */
    color: var(--color-holographic-rose);
}

/* Testimonials Section - Carousel Slider */
.testimonials-section {
    background-color: var(--color-dark-base);
}

.testimonial-carousel-container {
    max-width: 900px;
    margin: 60px auto 0;
    position: relative;
    overflow: hidden;
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9), rgba(13, 17, 23, 0.9));
    border-radius: 15px;
    border: 1px solid rgba(0, 206, 209, 0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.testimonial-slide {
    flex: 0 0 100%;
    text-align: center;
    padding: 20px 40px;
    opacity: 1;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-slide.active {
    opacity: 1;
    transform: scale(1);
    position: relative; /* Bring active slide to flow */
}

.testimonial-text {
    font-size: 1.4em;
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 700px;
}

.testimonial-author {
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-holographic-rose);
    text-shadow: 0 0 5px rgba(255, 105, 180, 0.3);
}

.carousel-dots {
    text-align: center;
    margin-top: 30px;
    padding-bottom: 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background-color: var(--color-text-muted);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--color-text-muted);
}

.dot.active {
    background: var(--gradient-holographic);
    transform: scale(1.2);
    border-color: var(--color-holographic-teal);
    box-shadow: 0 0 8px rgba(0, 206, 209, 0.5);
}

.dot:hover {
    transform: scale(1.1);
    background-color: var(--color-holographic-violet);
    border-color: var(--color-holographic-violet);
}

/* Gallery Section - Lightbox */
.gallery-section {
    background-color: var(--color-dark-accent);
    border-top: 1px solid rgba(0, 206, 209, 0.1);
    border-bottom: 1px solid rgba(147, 112, 219, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 3-card layout */
    gap: 30px;
    margin-top: 60px;
}

.gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(147, 112, 219, 0.2);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(147, 112, 219, 0.4);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox overlay */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 15px;
    border: 2px solid var(--color-holographic-violet);
    box-shadow: 0 0 30px rgba(147, 112, 219, 0.7);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 1; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--color-text-light);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8);
}

.close-btn:hover,
.close-btn:focus {
    color: var(--color-holographic-rose);
    transform: scale(1.1);
    text-decoration: none;
    cursor: pointer;
}

/* Newsletter Section (Modified) */
.newsletter-section {
    background-color: var(--color-dark-base);
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(255, 105, 180, 0.1);
}

.newsletter-section h3 {
    margin-bottom: 25px;
    color: var(--color-holographic-teal);
}

.newsletter-section p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1em;
    color: var(--color-text-light);
}

.newsletter-text-placeholder {
    padding: 30px;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.8), rgba(13, 17, 23, 0.8));
    border-radius: 15px;
    border: 1px solid rgba(0, 206, 209, 0.15);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    max-width: 600px;
    margin: 40px auto;
}

.newsletter-text-placeholder p {
    margin-bottom: 0;
    color: var(--color-text-muted);
}


/* Contact Section (Modified) */
.contact-section {
    background-color: var(--color-dark-accent);
    border-top: 1px solid rgba(147, 112, 219, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    margin-top: 60px;
}

.contact-info-panel,
.contact-map-panel {
    background: linear-gradient(145deg, rgba(26, 32, 44, 0.8), rgba(13, 17, 23, 0.8));
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 105, 180, 0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-panel .contact-message {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

.contact-info-panel .contact-details p {
    margin-bottom: 10px;
    color: var(--color-text-muted);
}

.contact-info-panel .contact-details p strong {
    color: var(--color-holographic-rose);
    font-weight: 600;
}

.map-placeholder {
    background-color: var(--color-dark-base);
    border-radius: 10px;
    height: 100%; /* Take full height of parent */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(0, 206, 209, 0.2);
}

.map-placeholder p {
    color: var(--color-text-muted);
    font-size: 1em;
    margin-bottom: 15px;
}

.map-placeholder p strong {
    color: var(--color-holographic-teal);
    font-weight: 600;
    font-size: 1.2em;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark-base);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
    color: var(--color-text-muted);
    border-top: 1px solid rgba(0, 206, 209, 0.1);
}

.site-footer p {
    margin-bottom: 10px;
}

.site-footer a {
    color: var(--color-text-muted);
    margin: 0 10px;
}

.site-footer a:hover {
    color: var(--color-holographic-violet);
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }

    .nav-links {
        display: none; /* Hide for smaller screens, could implement a hamburger menu */
    }

    .main-nav {
        justify-content: center;
    }

    .hero-content {
        grid-column: 1 / span 12;
        grid-row: 3 / span 4;
        text-align: center;
        align-items: center;
        padding: 30px;
        max-width: 90%;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.1em;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .horizontal-cards {
        flex-wrap: nowrap; /* Keep horizontal scroll */
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    .service-card {
        flex: 0 0 320px; /* Adjust card width */
    }

    .story-item {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .story-item img {
        height: 250px;
    }

    .portfolio-grid, .gallery-grid, .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .testimonial-slide {
        padding: 20px;
    }
    .testimonial-text {
        font-size: 1.2em;
    }
    .testimonial-author {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .section-padding {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    .section-subtitle {
        font-size: 1.6em;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .stats-grid {
        grid-template-columns: 1fr; /* Stack on very small screens */
    }
    .stat-number {
        font-size: 3em;
    }
    .stat-description {
        font-size: 1.1em;
    }

    .horizontal-cards-wrapper {
        padding-bottom: 10px;
    }
    .horizontal-cards {
        padding-left: 15px; /* Adjust for container padding */
        padding-right: 15px;
    }

    .service-card {
        flex: 0 0 280px;
    }

    .story-grid {
        gap: 40px;
        margin-top: 40px;
    }

    .portfolio-grid, .gallery-grid, .contact-grid {
        gap: 30px;
        margin-top: 40px;
    }
    .portfolio-item img, .gallery-item img {
        height: 200px;
    }

    .comparison-table th, .comparison-table td {
        padding: 15px 20px;
        font-size: 0.9em;
    }
    .comparison-table th:first-child {
        min-width: 150px; /* Ensure feature column is readable */
    }

    .testimonial-carousel-container {
        padding: 20px;
        margin-top: 40px;
    }
    .testimonial-text {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    .testimonial-author {
        font-size: 0.9em;
    }

    .newsletter-section p {
        font-size: 1em;
        margin: 0 auto 20px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 15px 0;
    }
    .logo {
        font-size: 1.5em;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .btn {
        padding: 12px 20px;
        font-size: 0.9em;
    }

    .stat-number {
        font-size: 2.5em;
    }
    .stat-description {
        font-size: 1em;
    }
    
    .horizontal-cards {
        flex-wrap: wrap; /* Allow cards to wrap on very small screens if desired, or keep as scrollable */
        justify-content: center;
    }
    .service-card {
        flex: 0 0 90%; /* Take up most of the width */
        margin-bottom: 20px; /* Add space between wrapped cards */
    }

    .story-item img {
        height: 200px;
    }

    .portfolio-item img, .gallery-item img {
        height: 180px;
    }

    .lightbox-content {
        max-width: 90%;
        max-height: 70vh;
    }
    .close-btn {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .contact-info-panel, .contact-map-panel {
        padding: 30px;
    }

    .site-footer p {
        font-size: 0.8em;
    }
}

/* Specific adjustment for 3-card grid in portfolio/gallery sections to ensure no blank spaces */
@media (min-width: 769px) {
    .portfolio-grid, .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 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;
}
