:root {
    --bg-deep-blue-black: #0A0A1A;
    --bg-darker-blue-black: #1A1A33;
    --primary-cyan: #00FFFF;
    --secondary-violet: #8A2BE2;
    --accent-silver: #C0C0C0;
    --text-light: #E0E0E0;
    --text-muted: #A0A0B0;
    --border-transparent-light: rgba(0, 255, 255, 0.1);
    --glow-cyan: 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
    --glow-violet: 0 0 10px rgba(138, 43, 226, 0.6), 0 0 20px rgba(138, 43, 226, 0.4);
    --header-height: 80px;
    --section-padding: 80px 0;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-deep-blue-black);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from subtle effects */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    margin-bottom: 0.5em;
    font-weight: 500;
}

h1 { font-size: 3.5em; line-height: 1.1; }
h2 { font-size: 2.8em; margin-bottom: 1em; text-align: center; }
h3 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
    color: var(--text-muted);
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-violet);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden; /* For effects */
}

.text-center {
    text-align: center;
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-violet));
    color: var(--bg-deep-blue-black);
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer; /* Cursor style to indicate clickable area, but no JS logic */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-cyan), var(--glow-violet);
    background: linear-gradient(45deg, var(--secondary-violet), var(--primary-cyan));
    color: var(--text-light);
}

.button-glow {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--border-transparent-light);
    color: var(--primary-cyan);
    box-shadow: none;
}

.button-glow:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: var(--glow-cyan);
    color: var(--text-light);
    border-color: var(--primary-cyan);
}


/* Header */
header {
    background-color: var(--bg-darker-blue-black);
    padding: 20px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-transparent-light);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--accent-silver);
    text-shadow: var(--glow-cyan);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin-left: 40px;
}

header nav ul li a {
    color: var(--text-light);
    font-family: 'Exo 2', sans-serif;
    font-weight: 400;
    font-size: 1.05em;
    position: relative;
    padding-bottom: 5px;
}

header nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-violet));
    transition: width 0.3s ease-out;
}

header nav ul li a:hover::after {
    width: 100%;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, var(--bg-deep-blue-black) 0%, #000005 100%);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    position: relative;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulseGlow 8s infinite alternate;
    z-index: 0;
}

.intro-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, transparent 70%);
    animation: pulseGlow 10s infinite alternate-reverse;
    z-index: 0;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 1;.7; }
    50% { transform: scale(1.1); opacity: 1;.9; }
    100% { transform: scale(1); opacity: 1;.7; }
}

.intro-section .split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    z-index: 1;
}

.intro-content {
    flex: 1;
    max-width: 50%;
}

.intro-content h1 {
    font-size: 4.5em;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--glow-cyan);
    margin-bottom: 20px;
}

.intro-content p {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.5;
}

.intro-image {
    flex: 1;
    max-width: 50%;
    position: relative;
}

.intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.2), 0 0 50px rgba(138, 43, 226, 0.15);
    transition: transform 0.5s ease-out;
}

.intro-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px solid var(--border-transparent-light);
    border-radius: 15px;
    z-index: -1;
    animation: borderPulse 4s infinite ease-in-out;
}

@keyframes borderPulse {
    0% { border-color: rgba(0, 255, 255, 0.1); }
    50% { border-color: rgba(138, 43, 226, 0.2); }
    100% { border-color: rgba(0, 255, 255, 0.1); }
}

/* Process Section */
.process-section {
    background-color: var(--bg-darker-blue-black);
    padding-top: calc(var(--section-padding) + 40px);
    border-top: 1px solid var(--border-transparent-light);
}

.process-section h2 {
    color: var(--accent-silver);
    text-shadow: var(--glow-violet);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    background-color: var(--bg-deep-blue-black);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-transparent-light);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease-in-out;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-violet));
    transform: translateX(-100%);
    transition: transform 0.4s ease-in-out;
}

.process-step:hover::before {
    transform: translateX(0);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-cyan);
    border-color: var(--primary-cyan);
}

.process-step h3 {
    color: var(--primary-cyan);
    font-size: 1.5em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8em;
    color: var(--accent-silver);
    background: var(--bg-darker-blue-black);
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 15px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

/* Case Studies Section */
.case-studies-section {
    background-color: var(--bg-deep-blue-black);
    position: relative;
    overflow: hidden;
}

.case-studies-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%231a1a33" fill-opacity="0.4"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zm0-30V0H4v4H0v2h4v4h2V6h4V4H6z"%3E%3C/path%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    z-index: 0;
    opacity: 1;.1;
    pointer-events: none;
}

.case-studies-section h2 {
    color: var(--primary-cyan);
    margin-bottom: 1.5em;
    z-index: 1;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 10px; /* Base for masonry */
    gap: 30px;
    z-index: 1;
    position: relative;
}

.case-study-card {
    background-color: var(--bg-darker-blue-black);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-transparent-light);
    transition: all 0.4s ease-in-out;
}

.case-study-card:nth-child(1) { grid-row-end: span 40; } /* Example varying heights */
.case-study-card:nth-child(2) { grid-row-end: span 35; }
.case-study-card:nth-child(3) { grid-row-end: span 45; }
/* For more cards, vary span values */

.case-study-card:hover {
    transform: scale(1.02);
    box-shadow: var(--glow-violet);
    border-color: var(--secondary-violet);
}

.case-study-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.case-study-card .card-content {
    padding: 20px;
}

.case-study-card h3 {
    color: var(--accent-silver);
    font-size: 1.3em;
    margin-bottom: 10px;
}

.case-study-card p {
    font-size: 0.9em;
    color: var(--text-muted);
}

/* Call to Action Section */
.cta-section {
    background-image: linear-gradient(rgba(10, 10, 26, 0.8), rgba(10, 10, 26, 0.8)), url('images/image_14.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax-like effect */
    text-align: center;
    padding: 100px 0;
    border-top: 1px solid var(--border-transparent-light);
    border-bottom: 1px solid var(--border-transparent-light);
    position: relative;
}

.cta-section h2 {
    color: var(--accent-silver);
    font-size: 2.8em;
    text-shadow: var(--glow-cyan);
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-light);
}

/* Gallery Section */
.gallery-section {
    background-color: var(--bg-darker-blue-black);
    border-top: 1px solid var(--border-transparent-light);
    position: relative;
}

.gallery-section h2 {
    color: var(--secondary-violet);
    text-shadow: var(--glow-violet);
}

.gallery-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    margin-top: 60px;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
    padding: 10px;
    animation: autoScrollGallery 15s ease-out forwards; /* Plays once, non-looping */
}

.gallery-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 auto;
    width: 600px; /* Fixed width for items */
    scroll-snap-align: center;
    background-color: var(--bg-deep-blue-black);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-transparent-light);
    transition: transform 0.3s ease;
    cursor: grab; /* Visual hint for scrollability */
}

.gallery-item:active {
    cursor: grabbing;
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(192, 192, 192, 0.3);
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: default; /* Not actually interactive, purely visual */
}

.dot.active {
    background-color: var(--primary-cyan);
    transform: scale(1.2);
    box-shadow: var(--glow-cyan);
}

@keyframes autoScrollGallery {
    0% {
        transform: translateX(0);
    }
    33% {
        transform: translateX(calc(-1 * (600px + 30px))); /* Scrolls past 1 item */
    }
    66% {
        transform: translateX(calc(-2 * (600px + 30px))); /* Scrolls past 2 items */
    }
    100% {
        transform: translateX(calc(-2.5 * (600px + 30px))); /* Scrolls past 2.5 items, then stops */
    }
}


/* About Section (Timeline Simulation) */
.about-section {
    background-color: var(--bg-deep-blue-black);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: 15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.about-section h2 {
    color: var(--accent-silver);
    text-shadow: var(--glow-cyan);
    margin-bottom: 2em;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-cyan), var(--secondary-violet));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 60px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-violet));
    border-radius: 50%;
    top: 25px;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary-cyan);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background-color: var(--bg-darker-blue-black);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-transparent-light);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease-in-out;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-violet);
    border-color: var(--secondary-violet);
}

.timeline-content h3 {
    color: var(--primary-cyan);
    font-size: 1.4em;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1em;
    color: var(--text-muted);
}

/* Team Section */
.team-section {
    background-color: var(--bg-darker-blue-black);
    border-top: 1px solid var(--border-transparent-light);
    position: relative;
}

.team-section h2 {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
    margin-bottom: 1.5em;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-member {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-transparent-light);
    transition: all 0.4s ease-in-out;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-violet);
    border-color: var(--secondary-violet);
}

.team-member img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    filter: grayscale(80%) brightness(70%);
    transition: filter 0.4s ease-in-out;
}

.team-member:hover img {
    filter: grayscale(0%) brightness(100%);
}

.team-member .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 30px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.team-member:hover .overlay {
    transform: translateY(0);
}

.team-member .overlay h3 {
    color: var(--accent-silver);
    margin-bottom: 5px;
    font-size: 1.4em;
}

.team-member .overlay p {
    color: var(--primary-cyan);
    font-size: 0.95em;
    margin-bottom: 0;
}

/* FAQ Section (Non-accordion) */
.faq-section {
    background-color: var(--bg-deep-blue-black);
    position: relative;
}

.faq-section h2 {
    color: var(--accent-silver);
    text-shadow: var(--glow-cyan);
    margin-bottom: 1.5em;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-darker-blue-black);
    border: 1px solid var(--border-transparent-light);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 25px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
    border-color: var(--primary-cyan);
}

.faq-item h3 {
    color: var(--primary-cyan);
    font-size: 1.3em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.faq-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, var(--primary-cyan), var(--secondary-violet));
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.faq-item p {
    color: var(--text-light);
    font-size: 1.05em;
    padding-left: 20px;
}

/* Footer */
footer {
    background-color: var(--bg-darker-blue-black);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-transparent-light);
    color: var(--text-muted);
    font-size: 0.9em;
}

footer p {
    margin-bottom: 0.5em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.5em; }

    header nav {
        flex-direction: column;
        padding-bottom: 10px;
    }

    header nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li {
        margin: 0 15px 10px;
    }

    .intro-section .split-layout {
        flex-direction: column;
        gap: 40px;
    }

    .intro-content,
    .intro-image {
        max-width: 100%;
        text-align: center;
    }
    
    .intro-content h1 {
        font-size: 3em;
    }

    .process-grid,
    .masonry-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .masonry-grid .case-study-card {
        grid-row-end: span auto !important; /* Reset masonry heights for mobile */
    }

    .gallery-carousel {
        padding: 5px;
    }
    
    .gallery-item {
        width: 90vw; /* Adjust for smaller screens */
    }

    .gallery-item img {
        height: 250px;
    }

    @keyframes autoScrollGallery {
        0% {
            transform: translateX(0);
        }
        33% {
            transform: translateX(calc(-1 * (90vw + 30px)));
        }
        66% {
            transform: translateX(calc(-2 * (90vw + 30px)));
        }
        100% {
            transform: translateX(calc(-2.5 * (90vw + 30px)));
        }
    }


    .timeline::after {
        left: 20px; /* Adjust timeline line for mobile */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot {
        left: 10px;
        right: auto;
    }

    .timeline-item:nth-child(even) .timeline-dot {
        left: 10px;
    }

    .faq-item h3 {
        font-size: 1.2em;
    }
    .faq-item p {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.3em; }

    .logo {
        font-size: 1.5em;
    }
    
    header nav ul {
        margin-top: 15px;
    }
    header nav ul li {
        margin: 0 10px 8px;
    }

    .button {
        padding: 12px 25px;
        font-size: 0.9em;
    }

    .intro-content p {
        font-size: 1.1em;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    .timeline::after {
        left: 15px;
    }
    .timeline-item .timeline-dot {
        left: 5px;
    }
}

/* Visible state helpers */
+ .animate-fade-in-up.visible,
+ .animate-fade-in-left.visible,
+ .animate-fade-in-right.visible,
+ .animate-bounce-y.visible,
+ .section-scroll-animate.visible,
+ .text-animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced: Team grid stabilization */
+ .team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
+ @media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
+ @media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* 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;}
