:root {
    --primary-font: 'Inter', 'Poppins', sans-serif;
    --background-dark: #0A1128; /* Dark Blue */
    --background-gradient-start: #0F1C3E;
    --background-gradient-end: #050B1B;
    --glass-background: rgba(255, 255, 255, 0.08); /* Translucent white */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-light: #E0E0E0;
    --text-medium: #B0B0B0;
    --accent-color: #6A0DAD; /* Deep Purple */
    --accent-glow: 0 0 18px rgba(106, 13, 173, 0.8);
    --border-radius-lg: 15px;
    --padding-section: 80px 0;
    --max-width-content: 1200px;
    --header-height: 80px;
}

body {
    font-family: var(--primary-font);
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--background-gradient-start), var(--background-gradient-end));
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--padding-section);
}

.section-title {
    font-size: 2.8em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.section-subtitle {
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    color: var(--text-medium);
}

/* Glassmorphic Panel/Card Styles */
.glass-panel {
    background: var(--glass-background);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: var(--accent-glow);
}

.glass-card {
    background: var(--glass-background);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
}

/* Header & Navigation */
.main-header {
    background: rgba(0, 0, 0, 0.5); /* Slightly darker for contrast */
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width-content);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.nav-brand a {
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand a:hover {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-medium);
    text-decoration: none;
    font-weight: 500;
    font-size: 1em;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: var(--header-height); /* To prevent content from being hidden by fixed header */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 60px;
    border-radius: var(--border-radius-lg);
    animation: fadeInScale 1s ease-out forwards;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--text-medium);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: #7B1FA2; /* Slightly darker accent */
    transform: translateY(-3px);
    box-shadow: var(--accent-glow);
}

@keyframes fadeInScale {
    from {
        opacity: 1;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Timeline Layout (About & Showcase) */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    padding: 20px 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    left: 0; /* Ensures item on left side by default */
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
    box-shadow: 0 0 0 5px rgba(106, 13, 173, 0.3);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
    transform: translateX(50%); /* Center dot on the line */
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
    transform: translateX(-50%); /* Center dot on the line */
}

.timeline-content {
    position: relative;
    border-radius: var(--border-radius-lg);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.timeline-content h3 { /* Changed from h4 to h3 */
    color: var(--text-light);
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-medium);
    font-size: 0.95em;
    margin-bottom: 15px;
}

.timeline-content img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    border-radius: 8px;
    margin-top: 15px;
    display: block;
    object-fit: cover;
}

/* Service Grid (3 cards per row) */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    text-align: center;
}

.service-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 { /* Changed from h4 to h3 */
    font-size: 1.6em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.service-card ul li {
    color: var(--text-medium);
    font-size: 0.95em;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-card ul li::before {
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Features Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Ensure table doesn't get too squished on smaller desktop */
}

.comparison-table th, .comparison-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.1em;
    border-top: 1px solid var(--glass-border);
}

.comparison-table td {
    color: var(--text-medium);
    font-size: 0.95em;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Team Carousel Slider */
.team-carousel-wrapper {
    position: relative;
    max-width: 1000px; /* Adjusted to fit 3 cards better */
    margin: 60px auto;
    overflow: hidden;
    padding: 20px 0;
}

.team-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding-bottom: 20px; /* Space for box-shadow */
}

.team-member {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards, with gaps */
    margin: 0 10px; /* Half gap on each side */
    text-align: center;
    min-width: 300px; /* Ensures card doesn't shrink too much */
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(106, 13, 173, 0.5);
}

.team-member h3 { /* Changed from h4 to h3 */
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.team-member p {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-member span {
    color: var(--text-medium);
    font-size: 0.9em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-light);
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    z-index: 5;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-button:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: var(--accent-glow);
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

/* Testimonials with Star Ratings */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    text-align: center;
}

.client-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 8px rgba(106, 13, 173, 0.4);
}

.star-rating {
    color: var(--text-light); /* Since no icons, plain text star rating */
    font-size: 1.1em;
    margin-bottom: 15px;
}

.testimonial-card p:first-of-type {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: 15px;
}

.client-info {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1em;
}

/* FAQ Accordion */
.faq-accordion {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
    padding: 0; /* Override glass-card padding for specific accordion buttons */
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.05); /* Slightly darker for button */
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: var(--border-radius-lg);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(0deg); /* No rotation for simple +/- */
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    color: var(--text-medium);
    background: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
}

.faq-answer p {
    margin: 20px 0;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 200px; /* Adjust as needed for content height. Ensure this is enough. */
    padding-bottom: 25px;
}

/* Quick Contact (Connect) */
.quick-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Footer */
.main-footer {
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-medium);
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-links {
        display: none; /* Hide nav links for now, could implement hamburger */
    }

    .main-nav {
        justify-content: center; /* Center brand if no nav links */
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .timeline-container::after {
        left: 20px; /* Move line to left */
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
        transform: translateX(-50%);
    }

    .timeline-content {
        text-align: left;
    }
    .timeline-content img {
        height: 150px; /* Adjust image height for smaller screens */
    }

    .service-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium screens */
    }

    .team-member {
        flex: 0 0 calc(50% - 20px); /* 2 cards, with gaps */
    }

    .section-title {
        font-size: 2.2em;
    }

    .section-subtitle {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 30px;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .section-padding {
        padding: 60px 0;
    }

    .glass-panel {
        padding: 25px;
    }

    .service-grid,
    .testimonial-grid {
        grid-template-columns: 1fr; /* 1 column on small screens */
    }

    .team-carousel-wrapper {
        padding: 20px 0; /* Add padding to prevent carousel buttons from being on edge */
    }

    .team-member {
        flex: 0 0 calc(100% - 20px); /* 1 card on small screens */
    }

    .carousel-button {
        padding: 8px 12px;
        font-size: 1em;
    }
    .carousel-button.prev {
        left: 5px;
    }
    .carousel-button.next {
        right: 5px;
    }

    .quick-action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .quick-action-buttons .cta-button {
        width: 80%;
        max-width: 300px;
    }

    .main-nav {
        padding: 0 10px;
    }
    .nav-brand a {
        font-size: 1.5em;
    }
    .comparison-table-wrapper {
        padding: 0 5px; /* Add small padding to table on mobile */
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .section-subtitle {
        font-size: 1.2em;
    }
    .glass-card {
        padding: 20px;
    }
    .faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .faq-answer p {
        margin: 15px 0;
        font-size: 0.9em;
    }
    .timeline-container::after {
        left: 10px; /* Move line further left on very small screens */
    }
    .timeline-item {
        padding-left: 30px;
        padding-right: 10px;
    }
    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0px;
    }
}


javascript
/* 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 */
.animate-on-scroll {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.animate-on-scroll.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;}
