:root {
    --primary-bg: #0A001A; /* Midnight Black */
    --secondary-bg: #1A0033; /* Deep Purple */
    --accent-magenta: #FF00FF;
    --accent-cyan: #00FFFF;
    --accent-blue: #007FFF;
    --text-color: #E0E0E0;
    --heading-color: #FFF;
    --border-glow: rgba(255, 0, 255, 0.7); /* Magenta glow */
    --hover-glow: rgba(0, 255, 255, 0.7); /* Cyan glow */
    --transition-speed: 0.3s ease-in-out;
    --border-radius: 8px;
    --max-width: 1200px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-bg);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to glows/animations */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700; /* Semi-bold for Orbitron */
}

h1 { font-size: 2.8em; }
h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-magenta);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images maintain aspect ratio and fill container */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5em;
}

.section-padding {
    padding: 6em 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5em;
    font-size: 2.5em;
    text-shadow: 0 0 15px var(--accent-magenta), 0 0 30px var(--accent-magenta);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 0.75em auto 0;
    box-shadow: 0 0 8px var(--accent-cyan);
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: -1em auto 3em;
    font-size: 1.1em;
    color: var(--text-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9em 2em;
    border-radius: var(--border-radius);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: linear-gradient(45deg, var(--accent-magenta), var(--accent-blue));
    color: var(--heading-color);
    border: 2px solid var(--accent-magenta);
    box-shadow: 0 0 15px var(--accent-magenta), 0 0 30px var(--accent-blue);
}

.primary-btn:hover {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-cyan));
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-blue);
    transform: translateY(-3px) scale(1.02);
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 10px var(--accent-cyan);
}

.secondary-btn:hover {
    background-color: var(--accent-cyan);
    color: var(--primary-bg);
    border-color: var(--accent-magenta);
    box-shadow: 0 0 15px var(--accent-magenta);
    transform: translateY(-3px) scale(1.02);
}

/* Header */
.header {
    background-color: var(--primary-bg);
    padding: 1.5em 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-magenta);
    text-shadow: 0 0 10px var(--accent-magenta), 0 0 20px rgba(255, 0, 255, 0.5);
    transition: text-shadow var(--transition-speed);
}

.logo:hover {
    text-shadow: 0 0 15px var(--accent-cyan), 0 0 25px rgba(0, 255, 255, 0.7);
}

.nav-list {
    display: flex;
    list-style: none;
}

.nav-list li {
    margin-left: 2em;
}

.nav-link {
    color: var(--text-color);
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    position: relative;
    padding: 0.5em 0;
    transition: color var(--transition-speed);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
    transition: width var(--transition-speed);
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.15);
}

.hero-content-split {
    display: flex;
    align-items: center;
    gap: 4em;
}

.hero-text-content {
    flex: 1;
    padding-right: 2em;
    position: relative;
    animation: fadeInSlideRight 1s ease-out forwards;
}

.hero-text-content h1 {
    font-size: 3.8em;
    text-shadow: 0 0 20px var(--accent-magenta), 0 0 40px var(--accent-blue);
    margin-bottom: 0.5em;
    position: relative;
    z-index: 2;
}

.hero-text-content p {
    font-size: 1.15em;
    color: var(--text-color);
    margin-bottom: 1.5em;
}

.hero-image-container {
    flex: 1;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 30px var(--accent-cyan), 0 0 60px rgba(0, 255, 255, 0.5);
    animation: fadeInSlideLeft 1s ease-out forwards;
}

.hero-image-container img {
    width: 100%;
    height: 500px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: var(--border-radius);
    filter: brightness(0.8) contrast(1.1); /* Slight cyberpunk effect */
}

/* Process Section */
.process {
    background-color: var(--primary-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
}

.process-step {
    background-color: var(--secondary-bg);
    padding: 2.5em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.process-step::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    opacity: 1;
    transition: opacity var(--transition-speed);
    z-index: 0;
}

.process-step:hover::before {
    opacity: 1;
}

.process-step:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.3), 0 0 25px var(--accent-cyan);
}

.process-step img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1.5em;
    border: 1px solid var(--accent-magenta);
    box-shadow: 0 0 10px var(--accent-magenta);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.process-step:hover img {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px var(--accent-cyan);
}

.process-step h3 {
    color: var(--accent-magenta);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.5);
    margin-bottom: 1em;
    position: relative;
    z-index: 1;
}

.process-step p {
    font-size: 0.95em;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

/* Case Studies Section */
.case-studies {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5em;
}

.case-study-card {
    background-color: var(--primary-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 255, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    position: relative;
}

.case-study-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 0, 255, 0.3), 0 0 25px var(--accent-magenta);
    z-index: 2; /* Bring hovered card to front */
}

.case-study-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--accent-cyan);
    transition: border-color var(--transition-speed);
}

.case-study-card:hover img {
    border-color: var(--accent-magenta);
}

.case-study-card h3 {
    padding: 1.2em 1.5em 0.5em;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.case-study-card p {
    padding: 0 1.5em;
    font-size: 0.95em;
    margin-bottom: 1.5em;
}

.case-study-card .btn {
    margin: 0 1.5em 1.5em;
    width: calc(100% - 3em);
    text-align: center;
}

/* About Section */
.about {
    background-color: var(--primary-bg);
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    align-items: center;
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.stats-grid {
    flex: 1;
    display: grid;
    gap: 2em;
    min-width: 250px;
    background-color: var(--secondary-bg);
    padding: 2.5em;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-cyan);
    box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px rgba(0, 255, 255, 0.2);
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1em 0;
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    color: var(--accent-magenta);
    text-shadow: 0 0 15px var(--accent-magenta), 0 0 30px rgba(255, 0, 255, 0.5);
    display: block;
    margin-bottom: 0.2em;
    animation: pulseGlow 2s infinite alternate;
}

.stat-label {
    font-family: 'Exo', sans-serif;
    font-size: 1.1em;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Call-to-Action Section */
.cta {
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 0, 255, 0.2);
}

.cta-centered-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 3.5em 3em;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-magenta);
    box-shadow: 0 0 30px var(--accent-magenta), 0 0 60px rgba(255, 0, 255, 0.4);
    position: relative;
    animation: glitchBorder 5s infinite alternate;
}

.cta-centered-content h2 {
    font-size: 2.8em;
    margin-bottom: 1em;
    text-shadow: 0 0 15px var(--accent-cyan), 0 0 30px var(--accent-blue);
}

.cta-centered-content p {
    font-size: 1.1em;
    margin-bottom: 2em;
}

/* FAQ Section */
.faq {
    background-color: var(--primary-bg);
}

.tabs-container {
    background-color: var(--secondary-bg);
    border-radius: var(--border-radius);
    padding: 2.5em;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
}

.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5em;
    border-bottom: 2px solid rgba(255, 0, 255, 0.2);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1em 1.5em;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all var(--transition-speed);
    position: relative;
    flex-grow: 1; /* Distribute buttons evenly */
    text-align: center;
    outline: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px; /* Overlap with parent border */
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
}

.tab-button:hover {
    color: var(--accent-cyan);
    background-color: rgba(0, 255, 255, 0.05);
}

.tab-button.active {
    color: var(--accent-magenta);
    background-color: var(--primary-bg);
    border-bottom: 2px solid var(--accent-magenta);
    box-shadow: 0 -5px 15px rgba(255, 0, 255, 0.2);
    z-index: 1;
}

.tab-button.active::after {
    background-color: var(--accent-magenta);
    box-shadow: 0 0 10px var(--accent-magenta);
}

.tab-pane {
    display: none;
    padding-top: 1.5em;
    animation: fadeIn 0.5s ease-out;
}

.tab-pane.active {
    display: block;
}

.faq-item {
    background-color: var(--primary-bg);
    margin-bottom: 1.5em;
    padding: 1.8em 2em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
    transition: box-shadow var(--transition-speed);
}

.faq-item:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), 0 0 20px rgba(255, 0, 255, 0.1);
}

.faq-item h3 {
    color: var(--accent-cyan);
    font-size: 1.3em;
    margin-bottom: 0.8em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.faq-item p {
    font-size: 0.95em;
    color: var(--text-color);
}

/* Newsletter Section (Insights) */
.newsletter {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    text-align: center;
    border-top: 1px solid rgba(255, 0, 255, 0.2);
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    padding: 3.5em 3em;
    border-radius: var(--border-radius);
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 0 30px var(--accent-cyan), 0 0 60px rgba(0, 255, 255, 0.4);
    position: relative;
    animation: glitchBorder 5s infinite alternate reverse; /* Reverse animation */
}

.newsletter-content h2 {
    font-size: 2.8em;
    margin-bottom: 1em;
    text-shadow: 0 0 15px var(--accent-magenta), 0 0 30px var(--accent-blue);
}

.newsletter-content p {
    font-size: 1.1em;
    margin-bottom: 2em;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--primary-bg);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5em;
}

.testimonial-card {
    background-color: var(--secondary-bg);
    padding: 2.5em;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
    text-align: center;
    position: relative;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    background: linear-gradient(45deg, rgba(255, 0, 255, 0.1) 0%, rgba(0, 255, 255, 0.1) 100%);
    opacity: 1;
    transition: opacity var(--transition-speed);
    z-index: 0;
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 10px 25px rgba(255, 0, 255, 0.2), 0 0 20px var(--accent-magenta);
}

.testimonial-card img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 1.2em;
    border: 3px solid var(--accent-magenta);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.testimonial-card:hover img {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.testimonial-card h4 {
    color: var(--accent-cyan);
    font-size: 1.4em;
    margin-bottom: 0.3em;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.testimonial-card .testimonial-role {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 1.5em;
    font-weight: 400;
    font-style: italic;
    opacity: 1;.8;
    position: relative;
    z-index: 1;
}

.testimonial-card p {
    font-size: 0.95em;
    color: var(--text-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    padding: 2.5em 0;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
}

.footer-content p {
    margin: 0;
}

/* Animations */
@keyframes fadeInSlideRight {
    from {
        opacity: 1;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInSlideLeft {
    from {
        opacity: 1;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 1;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 15px var(--accent-magenta), 0 0 30px rgba(255, 0, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 20px var(--accent-cyan), 0 0 40px rgba(0, 255, 255, 0.7);
    }
}

@keyframes glitchBorder {
    0%, 100% {
        border-color: var(--accent-magenta);
        box-shadow: 0 0 30px var(--accent-magenta), 0 0 60px rgba(255, 0, 255, 0.4);
    }
    25% {
        border-color: var(--accent-blue);
        box-shadow: 0 0 25px var(--accent-blue), 0 0 50px rgba(0, 127, 255, 0.4);
    }
    50% {
        border-color: var(--accent-cyan);
        box-shadow: 0 0 30px var(--accent-cyan), 0 0 60px rgba(0, 255, 255, 0.4);
    }
    75% {
        border-color: var(--accent-magenta);
        box-shadow: 0 0 25px var(--accent-magenta), 0 0 50px rgba(255, 0, 255, 0.4);
    }
}


/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.6em; }

    .nav-list li {
        margin-left: 1.5em;
    }

    .hero-text-content h1 {
        font-size: 3em;
    }

    .hero-content-split {
        flex-direction: column;
        text-align: center;
        gap: 2.5em;
    }

    .hero-text-content {
        padding-right: 0;
        padding-bottom: 2em;
    }

    .process-grid,
    .case-studies-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2em;
    }

    .about-content {
        flex-direction: column;
        gap: 2.5em;
    }

    .about-text {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tab-button {
        padding: 0.8em 1em;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1em 0;
    }

    .nav-list {
        display: none; /* Hide for smaller screens, could implement hamburger menu */
    }

    .nav-container {
        justify-content: center; /* Center logo if nav is hidden */
    }

    .logo {
        font-size: 1.5em;
    }

    .section-padding {
        padding: 4em 0;
    }

    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.4em; }

    .hero-text-content h1 {
        font-size: 2.5em;
    }
    .hero-image-container img {
        height: 350px;
    }

    .process-grid,
    .case-studies-grid,
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 2em;
    }

    .stats-grid {
        grid-template-columns: 1fr; /* Stack stats vertically */
    }

    .cta-centered-content,
    .newsletter-content {
        padding: 2.5em 1.5em;
    }

    .cta-centered-content h2,
    .newsletter-content h2 {
        font-size: 2em;
    }

    .tab-buttons {
        flex-direction: column; /* Stack tab buttons */
        border-bottom: none;
    }

    .tab-button {
        border-bottom: 1px solid rgba(255, 0, 255, 0.2);
        margin-bottom: 0.5em;
        border-radius: var(--border-radius);
    }
    .tab-button.active {
        border-bottom: 2px solid var(--accent-magenta);
        box-shadow: 0 5px 15px rgba(255, 0, 255, 0.2);
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.6em; }
    h3 { font-size: 1.2em; }

    .hero-text-content h1 {
        font-size: 2em;
    }
    .hero-text-content p {
        font-size: 1em;
    }

    .btn {
        padding: 0.8em 1.5em;
        font-size: 0.9em;
    }

    .stat-number {
        font-size: 2.8em;
    }

    .section-description {
        font-size: 1em;
    }
}
/* 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);
}

/* 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: Missing animation classes from JS */
.fade-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-in.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;
}

/* Accessibility focus outlines */
:focus{outline:2px solid #5ac8fa;outline-offset:2px;}
:focus:not(:focus-visible){outline:none;}
