:root {
    --color-bg-dark: #0A0A1A;
    --color-bg-light: #1A1A2A;
    --color-primary-cyan: #00FFFF;
    --color-primary-violet: #8A2BE2;
    --color-text-light: #E0E0E0;
    --color-text-medium: #C0C0C0;
    --color-accent-silver: #C0C0C0;
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Exo 2', sans-serif;
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --section-padding-desktop: 100px 0;
    --section-padding-mobile: 60px 0;
    --main-header-height: 80px; /* Default height, will be updated by JS */
}

/* Global 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-bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations/elements */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.7rem; line-height: 1.4; }
p { margin-bottom: 1rem; }

a {
    color: var(--color-primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-violet);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: var(--section-padding-desktop);
    position: relative;
    overflow: hidden; /* Ensure glowing elements don't overflow */
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-accent-silver), var(--color-primary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-primary-violet));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -3rem auto 4rem auto; /* Adjusted to prevent collision with section title on first paragraph */
    font-size: 1.1rem;
    color: var(--color-text-medium);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-primary-cyan), var(--color-primary-violet));
    color: var(--color-bg-dark);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 15px 30px;
    border-radius: var(--border-radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 0 0 30px rgba(138, 43, 226, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 40px rgba(138, 43, 226, 0.5);
    filter: brightness(1.1);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 10, 26, 0.8); /* Deep blue-black with transparency */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    height: var(--main-header-height); /* Set height from variable */
    display: flex; /* For vertical centering */
    align-items: center;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%; /* Ensure container takes full width */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-cyan);
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-primary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--color-text-medium);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-primary-violet));
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    text-align: center;
    overflow: hidden;
    padding-top: var(--main-header-height); /* Push content below fixed header */
}

.hero-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.4) grayscale(0.2); /* Darken and desaturate image */
    transform: scale(1.05); /* Slight zoom for parallax feel */
    animation: zoomEffect 20s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(10, 10, 26, 0.8) 50%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 2;
    /* Simulate tech aesthetic with subtle moving gradients/glows */
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    background: rgba(10, 10, 26, 0.4); /* Transparent overlay for text readability */
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 1; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-accent-silver), var(--color-primary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.6);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--color-text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .cta-button {
    font-size: 1.1rem;
    padding: 18px 40px;
}

/* Card Grid (Mission, Showcase, Clients) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Enforce 3 columns for desktop */
    gap: 30px;
    margin-top: 50px;
}

.card, .highlight-card, .testimonial-card, .team-member {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent; /* Placeholder for glow */
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.glow-border {
    position: relative;
    border: none; /* remove actual border to allow glow */
}

.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px; /* Covers the border area */
    border-radius: var(--border-radius-lg);
    background: linear-gradient(45deg, var(--color-primary-cyan), var(--color-primary-violet), var(--color-accent-silver), var(--color-primary-cyan));
    background-size: 300% 300%;
    opacity: 1;.15;
    z-index: -1;
    transition: opacity 0.4s ease, background-position 0.8s ease;
}

.glow-border:hover::before {
    opacity: 1;.4;
    background-position: 100% 100%;
}

.card img, .highlight-card img, .testimonial-card img {
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    object-fit: cover;
    height: 200px; /* Consistent height for images in cards */
    width: 100%;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.card:hover img, .highlight-card:hover img, .testimonial-card:hover img {
    filter: brightness(1);
}

.card h3, .highlight-card h3, .testimonial-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-cyan);
    margin-bottom: 10px;
}

.card p, .highlight-card p, .testimonial-card p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
    flex-grow: 1; /* Allow content to push footer to bottom */
}

/* Solutions Section */
.solution-focus-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-top: 60px;
}

.solution-card {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.solution-card::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, rgba(0, 255, 255, 0.1), rgba(138, 43, 226, 0.1));
    filter: blur(20px);
    z-index: -1;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

.solution-card img {
    width: 50%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.solution-card .solution-content {
    width: 50%;
}

.solution-card h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-violet);
    font-size: 2rem;
    margin-bottom: 15px;
}

.solution-card p {
    color: var(--color-text-medium);
    margin-bottom: 15px;
    font-size: 1rem;
}

.solution-card ul {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.solution-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--color-accent-silver);
    font-size: 0.95rem;
}

.solution-card ul li::before {
    content: '→'; /* Using plain text arrow as per no icons rule */
    color: var(--color-primary-cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution-card .cta-button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 0.9rem;
}

.solution-card.reverse-layout {
    flex-direction: row-reverse;
}

/* Showcase Section */
.highlights-grid {
    grid-template-columns: repeat(3, 1fr); /* Enforce 3 columns for desktop */
}

.highlight-card p {
    margin-bottom: 10px;
}

.highlight-meta {
    font-size: 0.85rem;
    color: var(--color-accent-silver);
    font-style: italic;
    margin-top: auto; /* Pushes to bottom */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Clients Section */
.testimonial-card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid var(--color-primary-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.testimonial-card h3 {
    text-align: center;
    color: var(--color-primary-violet);
    margin-top: 15px;
    margin-bottom: 5px;
}

.testimonial-card .star-rating {
    text-align: center;
    color: var(--color-primary-cyan); /* Make stars glow */
    font-size: 1.5rem;
    margin-bottom: 15px;
    letter-spacing: 2px; /* Spread stars slightly */
}

.testimonial-card p {
    font-style: italic;
    text-align: center;
    margin-bottom: 15px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--color-accent-silver);
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Team Section */
.team-slider-container {
    margin-top: 50px;
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-bottom: 30px; /* Space for potential scrollbar */
}

.team-slider {
    display: flex;
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Snap to individual items */
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding-bottom: 20px; /* prevent scrollbar from obscuring cards */
}

.team-slider::-webkit-scrollbar {
    height: 8px;
}

.team-slider::-webkit-scrollbar-track {
    background: var(--color-bg-light);
    border-radius: 10px;
}

.team-slider::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--color-primary-cyan), var(--color-primary-violet));
    border-radius: 10px;
}

.team-member {
    flex: 0 0 calc(33.333% - 20px); /* 3 cards per view on desktop, with gap */
    min-width: 300px; /* Minimum width for team member cards */
    scroll-snap-align: start;
    text-align: center;
}

.team-member img {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--color-primary-violet);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transition: transform 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h3 {
    color: var(--color-primary-cyan);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--color-accent-silver);
    font-style: italic;
    margin-bottom: 15px;
    display: block;
}

.team-member p {
    color: var(--color-text-medium);
    font-size: 0.95rem;
}

/* Connect Section (formerly Support) and Newsletter Sidebar */
.connect-content-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start; /* Align to top */
}

.connect-text {
    flex: 2; /* Takes 2/3 of space */
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.15);
}

.connect-text .section-title {
    text-align: left;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    -webkit-text-fill-color: var(--color-primary-cyan); /* Override transparent for smaller title */
    background: none;
}

.connect-text .section-title::after {
    left: 0;
    transform: translateX(0);
}

.connect-text .section-description {
    text-align: left;
    margin: 0 0 2rem 0;
    max-width: none;
}

.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.action-buttons .cta-button {
    font-size: 0.9rem;
    padding: 12px 25px;
}

.newsletter-sidebar {
    flex: 1; /* Takes 1/3 of space */
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(138, 43, 226, 0.1);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.15);
    position: sticky;
    top: calc(var(--main-header-height) + 30px); /* Stays below header */
}

.newsletter-sidebar h3 {
    font-family: var(--font-heading);
    color: var(--color-primary-violet);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.newsletter-sidebar p {
    font-size: 0.95rem;
    color: var(--color-text-medium);
    margin-bottom: 20px;
}

.newsletter-sidebar .cta-button {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 12px 0;
}

/* Footer */
.main-footer {
    background-color: var(--color-bg-light);
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary-cyan);
    margin-bottom: 15px;
}

.footer-col p, .footer-col ul {
    font-size: 0.9rem;
    color: var(--color-text-medium);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--color-text-medium);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--color-primary-cyan);
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--color-accent-silver);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-nav ul {
        gap: 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .solution-card {
        flex-direction: column;
        text-align: center;
    }
    .solution-card.reverse-layout {
        flex-direction: column;
    }
    .solution-card img,
    .solution-card .solution-content {
        width: 100%;
    }
    .solution-card .solution-content h3 {
        text-align: center;
    }
    .solution-card ul {
        text-align: left;
        padding-left: 20px;
    }

    .connect-content-wrapper {
        flex-direction: column;
    }
    .newsletter-sidebar {
        position: static; /* Remove sticky on smaller screens */
        width: 100%;
    }
    .connect-text .section-title {
        text-align: center;
    }
    .connect-text .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .connect-text .section-description {
        text-align: center;
    }
    .action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }
    .logo {
        font-size: 1.5rem;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-content .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .section-padding {
        padding: var(--section-padding-mobile);
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    .section-description {
        margin: -2rem auto 3rem auto;
    }

    .card-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .team-slider {
        scroll-snap-type: x proximity;
    }
    .team-member {
        flex: 0 0 calc(90% - 20px); /* Show one large card, slight overlap for next */
    }

    .connect-text, .newsletter-sidebar {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.2rem; }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p {
        font-size: 0.95rem;
    }
    .section-title {
        font-size: 1.8rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .action-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

/* 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;
}

/* 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;}
