/* --- CSS Variables --- */
:root {
    --primary-bg: #111;
    --secondary-bg: #222;
    --tertiary-bg: #333;
    --text-color: #EEE;
    --accent-color: #00FFFF; /* Electric Blue */
    --border-color: #555;
    --shadow-color: rgba(0, 255, 255, 0.4); /* Accent shadow */
    --font-impact: 'Impact', 'Anton', 'Oswald', sans-serif;
    --font-default: 'Oswald', sans-serif; /* Using Oswald as primary, but Impact/Anton for truly bold areas */
}

/* --- Base Styles & Typography --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-default);
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from brutalist elements */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-impact);
    color: var(--text-color);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.5em;
    letter-spacing: 2px;
}

h1 { font-size: 3em; }
h2 { font-size: 2.5em; margin-bottom: 1em; }
h3 { font-size: 1.8em; margin-bottom: 0.8em; }
p { font-size: 1.1em; line-height: 1.8; }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s linear;
}

a:hover {
    color: #FFF;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--primary-bg);
    border-bottom: 2px solid var(--accent-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping for mobile menu */
}

.logo {
    font-size: 2.5em;
    margin: 0;
    color: var(--accent-color);
    letter-spacing: 3px;
    position: relative;
    z-index: 2; /* Ensure logo is above nav on small screens */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    font-family: var(--font-impact);
    text-transform: uppercase;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
    letter-spacing: 1px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--accent-color);
    transition: width 0.2s linear;
}

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 1.8em;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    z-index: 2;
    transition: background-color 0.2s linear, color 0.2s linear;
}

.menu-toggle:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

/* --- Section General Styles --- */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 5px 5px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 1;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2em;
    color: #AAA;
    position: relative;
    z-index: 1;
}

/* --- Hero Section --- */
.hero-section {
    background: url('images/image_19.jpg') center center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 40px;
    background-color: rgba(17, 17, 17, 0.8);
    border: 3px solid var(--accent-color);
    box-shadow: 10px 10px 0 var(--accent-color);
    position: relative;
    left: -20px; /* Brutalist offset */
    top: -20px; /* Brutalist offset */
    animation: fadeInScale 1s ease-out forwards;
}

.hero-title {
    font-size: 4.5em;
    line-height: 1.1;
    color: #FFF;
    margin-bottom: 20px;
    text-shadow: 7px 7px 0 var(--accent-color);
}

.hero-description {
    font-size: 1.5em;
    color: #CCC;
    max-width: 700px;
    margin: 0 auto;
}

@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- About Section --- */
.about-section {
    background-color: var(--secondary-bg);
    padding-top: 120px; /* More space for overlapping */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.stat-item {
    background-color: var(--primary-bg);
    border: 2px solid var(--border-color);
    padding: 30px;
    text-align: center;
    box-shadow: -5px 5px 0 var(--accent-color);
    transition: transform 0.3s linear, box-shadow 0.3s linear;
}

.stat-item:hover {
    transform: translateX(5px) translateY(-5px);
    box-shadow: -10px 10px 0 var(--accent-color);
}

.stat-number {
    display: block;
    font-family: var(--font-impact);
    font-size: 3.5em;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #AAA;
}

.about-text-overlap {
    position: relative;
    margin-top: -40px; /* Overlap with stats */
    padding-bottom: 40px;
}

.overlap-text-left, .overlap-text-right {
    background-color: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
    position: relative;
    z-index: 0;
}

.overlap-text-left {
    max-width: 60%;
    margin-right: auto;
    left: -20px;
}

.overlap-text-right {
    max-width: 60%;
    margin-left: auto;
    right: -20px;
    margin-top: -50px; /* Further overlap */
    z-index: 1; /* Bring forward */
}

/* --- Services Section --- */
.services-section {
    background-color: var(--primary-bg);
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-package {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    padding: 40px 30px;
    text-align: center;
    box-shadow: -7px 7px 0 var(--accent-color);
    transition: transform 0.3s linear, box-shadow 0.3s linear;
    position: relative;
    z-index: 1;
}

.service-package.featured {
    transform: scale(1.05);
    border-color: var(--accent-color);
    box-shadow: -15px 15px 0 var(--accent-color);
    z-index: 2;
    background-color: #2b2b2b;
}

.service-package:hover {
    transform: translateX(5px) translateY(-5px) scale(1.02);
    box-shadow: -10px 10px 0 var(--accent-color);
}
.service-package.featured:hover {
    transform: translateX(5px) translateY(-5px) scale(1.07);
    box-shadow: -20px 20px 0 var(--accent-color);
}

.service-package h3 {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.package-price {
    font-family: var(--font-impact);
    font-size: 1.2em;
    color: #AAA;
    margin-bottom: 30px;
}

.price-value {
    font-size: 2.5em;
    color: #FFF;
    display: block;
}

.service-package ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.service-package ul li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: #CCC;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-package ul li:last-child {
    border-bottom: none;
}

/* --- Features Section --- */
.features-section {
    background-color: var(--tertiary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-item {
    background-color: var(--primary-bg);
    border: 2px solid var(--border-color);
    padding: 30px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.feature-item h3 {
    color: var(--accent-color);
    font-size: 1.7em;
    margin-bottom: 15px;
}

.feature-item p {
    color: #AAA;
    font-size: 1em;
}

.feature-demo {
    margin-top: 20px;
    position: relative;
    width: 100%;
    height: 150px; /* Fixed height for consistency */
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-demo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%); /* Raw aesthetic */
    transition: filter 0.3s ease-out;
}

.feature-item:hover .feature-demo img {
    filter: grayscale(0%); /* Color reveal on hover */
}

.demo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--accent-color);
    padding: 10px 0;
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-impact);
    letter-spacing: 1px;
    font-size: 1.1em;
    opacity: 1;
    transform: translateY(100%);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    border-top: 1px solid var(--accent-color);
}

.feature-item:hover .demo-overlay {
    opacity: 1;
    transform: translateY(0);
}


/* --- Team Section --- */
.team-section {
    background-color: var(--secondary-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.team-member {
    background-color: var(--primary-bg);
    border: 2px solid var(--border-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: -5px 5px 0 var(--accent-color);
    transition: transform 0.3s linear, box-shadow 0.3s linear;
    position: relative;
    outline: none; /* Remove default focus outline */
}

.team-member:hover,
.team-member:focus-visible { /* Add focus-visible for accessibility */
    transform: translateX(5px) translateY(-5px);
    box-shadow: -10px 10px 0 var(--accent-color);
    border-color: var(--accent-color);
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.team-member h3 {
    font-size: 1.5em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.9em;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    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.8); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--primary-bg);
    border: 3px solid var(--accent-color);
    padding: 40px;
    margin: 15% auto; /* brutalist offset + center */
    max-width: 600px;
    position: relative;
    box-shadow: 10px 10px 0 var(--accent-color);
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-content .close-button {
    color: var(--accent-color);
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s linear;
}

.modal-content .close-button:hover,
.modal-content .close-button:focus {
    color: #FFF;
}

.modal-content img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin: 0 auto 20px;
    display: block;
}

.modal-content h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 2em;
    margin-bottom: 10px;
}

.modal-role {
    text-align: center;
    color: #AAA;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1em;
    margin-bottom: 20px;
}

.modal-bio {
    color: #CCC;
    text-align: justify;
    font-size: 1.1em;
}


/* --- Gallery Section --- */
.gallery-section {
    background-color: var(--primary-bg);
}

.slideshow-container {
    max-width: 1200px;
    position: relative;
    margin: auto;
    border: 3px solid var(--accent-color);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    background-color: var(--secondary-bg);
}

.gallery-slide {
    display: none;
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7) contrast(1.2); /* Raw, dramatic look */
}

.slide-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: var(--accent-color);
    font-family: var(--font-impact);
    font-size: 1.8em;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid var(--accent-color);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border: none;
    user-select: none;
    background: none;
    opacity: 1;.7;
    z-index: 10;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    opacity: 1;
    color: #FFF;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}


/* --- Pricing Section (Feature Comparison) --- */
.pricing-section {
    background-color: var(--secondary-bg);
}

.feature-comparison-table {
    overflow-x: auto;
    margin-top: 60px;
}

.feature-comparison-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Ensure table is readable on smaller screens by allowing horizontal scroll */
    border: 2px solid var(--accent-color);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
}

.feature-comparison-table th,
.feature-comparison-table td {
    padding: 15px 20px;
    text-align: left;
    border: 1px solid var(--border-color);
    white-space: nowrap; /* Prevent text wrapping in headers */
}

.feature-comparison-table th {
    background-color: var(--tertiary-bg);
    color: var(--accent-color);
    font-family: var(--font-impact);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1em;
}

.feature-comparison-table td {
    background-color: var(--primary-bg);
    color: #CCC;
    font-size: 1em;
}

.feature-comparison-table tbody tr:nth-child(even) td {
    background-color: var(--secondary-bg);
}

.feature-comparison-table td:first-child {
    font-weight: bold;
    color: #FFF;
}

.check-icon {
    color: var(--accent-color);
    font-size: 1.3em;
    font-weight: bold;
}

.not-included {
    color: #F00; /* Red for 'x' */
    font-size: 1.3em;
    font-weight: bold;
}

/* --- Testimonials Section --- */
.testimonials-section {
    background-color: var(--primary-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-item {
    background-color: var(--secondary-bg);
    border: 2px solid var(--border-color);
    padding: 30px;
    box-shadow: -5px 5px 0 var(--accent-color);
    position: relative;
}

.video-placeholder {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.video-placeholder img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image to make play button pop */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color);
    font-size: 4em;
    cursor: default; /* Not interactive, so no pointer */
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border: 2px solid var(--accent-color);
    line-height: 1;
    transition: background-color 0.2s linear;
}

.testimonial-item blockquote {
    font-size: 1.2em;
    font-style: italic;
    color: #EEE;
    margin: 0 0 15px;
    border-left: 3px solid var(--accent-color);
    padding-left: 15px;
    quotes: "“" "”" "‘" "’";
}

.testimonial-item blockquote::before {
    content: open-quote;
    font-size: 2em;
    line-height: 0.1em;
    vertical-align: -0.4em;
    color: var(--accent-color);
    margin-right: 5px;
}

.testimonial-item blockquote::after {
    content: close-quote;
    font-size: 2em;
    line-height: 0.1em;
    vertical-align: -0.4em;
    color: var(--accent-color);
    margin-left: 5px;
}


.testimonial-item .client-name {
    font-weight: bold;
    color: #AAA;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--tertiary-bg);
}

.faq-tabs {
    margin-top: 60px;
    border: 2px solid var(--accent-color);
    box-shadow: 10px 10px 0 rgba(0,0,0,0.5);
    background-color: var(--primary-bg);
}

.tab-buttons {
    display: flex;
    justify-content: space-around;
    border-bottom: 2px solid var(--accent-color);
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
}

.tab-button {
    background-color: var(--primary-bg);
    border: none;
    border-right: 1px solid var(--accent-color);
    color: var(--text-color);
    font-family: var(--font-impact);
    font-size: 1.2em;
    padding: 15px 30px;
    cursor: pointer;
    transition: background-color 0.2s linear, color 0.2s linear;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-grow: 1;
    text-align: center;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button.active {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.tab-button:hover:not(.active) {
    background-color: var(--secondary-bg);
    color: var(--accent-color);
}

.faq-tab-content {
    padding: 30px;
    display: none; /* Hide content by default */
    animation: fadeIn 0.5s ease-out forwards;
}

.faq-tab-content.active {
    display: block;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-item h3 {
    color: var(--accent-color);
    font-size: 1.4em;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.faq-item h3::before {
    content: '+';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 1.5em;
    line-height: 1;
    color: #FFF;
}

.faq-item p {
    color: #AAA;
    font-size: 1.1em;
    padding-left: 25px; /* Align with h3 content */
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Contact Section --- */
.contact-section {
    background-color: var(--secondary-bg);
    text-align: center;
}

.quick-contact-panel {
    background-color: var(--primary-bg);
    border: 3px solid var(--accent-color);
    max-width: 800px;
    margin: 60px auto 0;
    padding: 40px;
    box-shadow: -10px 10px 0 var(--accent-color);
    position: relative;
    left: 20px; /* Brutalist offset */
}

.quick-contact-panel h3 {
    font-size: 2.2em;
    color: #FFF;
    margin-bottom: 20px;
}

.quick-contact-panel p {
    font-size: 1.3em;
    color: #AAA;
    margin-bottom: 40px;
}

.quick-action-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.action-button {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    font-family: var(--font-impact);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.2em;
    padding: 15px 30px;
    border: 2px solid var(--accent-color);
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
    transition: transform 0.2s linear, box-shadow 0.2s linear, background-color 0.2s linear;
    cursor: default; /* Not interactive */
}

.action-button:hover {
    transform: translateX(-3px) translateY(-3px);
    box-shadow: 8px 8px 0 rgba(0,0,0,0.7);
    background-color: #00e0e0;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--primary-bg);
    border-top: 2px solid var(--accent-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
    color: #AAA;
    letter-spacing: 0.5px;
    position: relative;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-default);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5em;
    }
    .hero-description {
        font-size: 1.3em;
    }
    .hero-content {
        left: 0;
        top: 0;
        margin: 20px; /* Adjust margin for smaller screens */
        box-shadow: 7px 7px 0 var(--accent-color);
    }

    .section-title {
        font-size: 2.5em;
    }
    .section-description {
        font-size: 1em;
    }

    .overlap-text-left, .overlap-text-right {
        max-width: 80%;
        left: 0;
        right: 0;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }
    .overlap-text-right {
        margin-top: -30px; /* Keep some overlap */
    }

    .pricing-table, .features-grid, .team-grid, .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    .service-package.featured {
        transform: scale(1); /* Remove larger scale on smaller screens */
        box-shadow: -7px 7px 0 var(--accent-color); /* Match other cards */
    }
    .service-package.featured:hover {
        transform: translateX(5px) translateY(-5px) scale(1.02);
        box-shadow: -10px 10px 0 var(--accent-color);
    }

    .tab-button {
        flex-grow: 0; /* Let buttons wrap naturally */
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--accent-color);
    }
    .tab-button:last-child {
        border-bottom: none;
    }
    .quick-action-buttons {
        flex-direction: column;
        gap: 20px;
    }
    .quick-contact-panel {
        left: 0;
        box-shadow: -7px 7px 0 var(--accent-color);
        margin: 40px auto 0;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
    .logo {
        font-size: 2em;
    }
    .main-nav {
        width: 100%; /* Take full width on mobile */
        order: 3; /* Move below logo */
    }
    .main-nav ul {
        flex-direction: column;
        display: none; /* Hidden by default */
        width: 100%;
        background-color: var(--primary-bg);
        border-top: 2px solid var(--accent-color);
        padding: 20px 0;
        position: absolute;
        left: 0;
        top: 100%; /* Position below header */
    }
    .main-nav ul.active {
        display: flex;
    }
    .main-nav li {
        text-align: center;
        margin: 10px 0;
    }
    .main-nav a {
        font-size: 1.3em;
        display: block;
        padding: 10px 0;
    }
    .main-nav a::after {
        width: 0; /* Hide line on mobile */
    }
    .main-nav a:hover::after {
        width: 0; /* Hide line on mobile */
    }
    .menu-toggle {
        display: block; /* Show on mobile */
        margin-left: auto; /* Push to right */
    }

    .hero-title {
        font-size: 2.8em;
    }
    .hero-description {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }
    .section-description {
        font-size: 0.9em;
    }

    .stats-grid, .pricing-table, .features-grid, .team-grid, .testimonials-grid {
        grid-template-columns: 1fr; /* Stack all cards */
    }

    .about-text-overlap {
        margin-top: 20px;
    }
    .overlap-text-left, .overlap-text-right {
        max-width: 100%;
        left: 0;
        right: 0;
        box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    }
    .overlap-text-right {
        margin-top: 10px; /* Less overlap when stacked */
    }

    .feature-comparison-table th, .feature-comparison-table td {
        padding: 10px;
    }
    .feature-comparison-table th {
        font-size: 0.9em;
    }
    .feature-comparison-table td:first-child {
        width: 1%; /* Allow feature name to take minimal width */
    }
    /* For mobile table: display labels for collapsed columns */
    .feature-comparison-table table, 
    .feature-comparison-table thead, 
    .feature-comparison-table tbody, 
    .feature-comparison-table th, 
    .feature-comparison-table td, 
    .feature-comparison-table tr { 
        display: block; 
    }
    .feature-comparison-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .feature-comparison-table td { 
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding-left: 50%; /* Space for label */
        text-align: right;
    }
    .feature-comparison-table td:before { 
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        content: attr(data-label);
        font-weight: bold;
        color: var(--accent-color);
        text-align: left;
    }
    .feature-comparison-table tbody tr {
        margin-bottom: 20px;
        border: 2px solid var(--border-color);
        box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
        background-color: var(--primary-bg);
    }
    .feature-comparison-table tbody tr:nth-child(even) {
        background-color: var(--primary-bg); /* Reset even row background */
    }
    .feature-comparison-table td:first-child {
        background-color: var(--secondary-bg);
        text-align: left;
        padding-left: 10px;
    }
    .feature-comparison-table td:first-child:before {
        display: none;
    }
    .feature-comparison-table table {
        border: none;
        box-shadow: none;
    }

    .modal-content {
        margin: 10% 20px;
        padding: 30px;
        box-shadow: 7px 7px 0 var(--accent-color);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }
    .hero-title {
        font-size: 2.2em;
        text-shadow: 5px 5px 0 var(--accent-color);
    }
    .hero-description {
        font-size: 1em;
    }
    .logo {
        font-size: 1.8em;
    }
    .section-title {
        font-size: 1.8em;
        text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    }
    .stat-number {
        font-size: 2.8em;
    }
    .package-price .price-value {
        font-size: 2em;
    }
    .play-button {
        font-size: 3em;
    }
    .slide-text {
        font-size: 1.4em;
        padding: 5px 10px;
        left: 10px;
        bottom: 10px;
        box-shadow: 3px 3px 0 rgba(0,0,0,0.5);
    }
}

/* Accessibility: Focus styles */
*:focus-visible {
    outline: 2px dashed var(--accent-color);
    outline-offset: 3px;
}

/* 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);
}

/* Safe visibility overrides (auto-added) */
:root, html, body, main, header, footer, section, .container, .content {
  opacity: 1 !important;
  visibility: visible !important;
}
