:root {
    --primary-color: #00aaff;
    /* A vibrant blue */
    --dark-bg: #0a0a0a;
    --text-color: #e0e0e0;
    --card-bg: #1a1a1a;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    padding-top: calc(80px + var(--header-height));
    /* Offset for fixed header */
    margin-top: -var(--header-height);
    /* Pull section up to meet anchor */
}

.content-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Overview Section */
.overview-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.overview-video {
    flex: 1;
}

.overview-video video {
    width: 100%;
    border-radius: 8px;
}

.overview-text {
    flex: 1;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-family: 'Orbitron', sans-serif;
}

/* Mission and Vision Section */
.mission-vision-content {
    display: flex;
    gap: 40px;
    text-align: left;
}

.mission,
.vision {
    flex: 1;
    min-width: 280px;
    /* Ensures content doesn't get too squished before wrapping */
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.mission-vision-content h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Core Values Section */
.core-values-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    text-align: left;
}

/* Flip Card Styling for Core Values */
.core-values-list li {
    background-color: transparent;
    min-height: 200px;
    perspective: 1000px;
    /* 3D space */
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    /* Safari */
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flip-card-front {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
}

.flip-card-front strong {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.flip-card-back {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: rotateY(180deg);
}

/* Products and Services Section - Radial Menu */
.radial-menu-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Control the size of the wheel */
    aspect-ratio: 1 / 1;
    margin: 40px auto;
}

.service-content-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
}

.service-content-display h3 {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 10px;
}

.products-services-list {
    list-style: none;
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.products-services-list li {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    /* Size of the clickable nodes */
    height: 80px;
    margin: -40px;
    /* Half of width/height to center it */
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, color 0.3s;
    font-size: 0.8rem;
    padding: 5px;
}

.products-services-list li strong {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
}

.products-services-list li:hover,
.products-services-list li.active-service {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.products-services-list li.active-service {
    transform: scale(1.15);
    /* Make active item slightly larger */
}

.products-services-list li:hover {
    transform: scale(1.1);
}

.products-services-list li p {
    display: none;
    /* Hide the detailed text by default */
}

/* Our Group Section - Logo Scroller */
@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

.logo-scroller {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.scroller-inner {
    display: flex;
    gap: 50px;
    width: fit-content;
    animation: scroll 30s linear infinite;
}

.logo-scroller:hover .scroller-inner {
    animation-play-state: paused;
}

.scroller-inner img {
    height: 80px;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
}

.scroller-inner img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Contact Section */
.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: -20px auto 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.contact-item {
    background: var(--card-bg);
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
}

.contact-item h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #000;
    font-size: 0.9rem;
}

/* --- Scroll Animations --- */
.animated-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
    /* Performance hint for the browser */
}

.animated-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    /* Stack flexbox items vertically */
    .overview-content,
    .mission-vision-content {
        flex-direction: column;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--dark-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translateY(-100%);
        transition: transform 0.3s ease-in-out;
        gap: 20px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin-left: 0;
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 25px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #fff;
        border-radius: 5px;
    }

    /* --- Timeline Responsive --- */
    .timeline-container::after {
        left: 31px;
    }

    .timeline-entry {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-entry .timeline-year {
        left: -15px;
        top: -3px;
        margin-left: 0;
    }

    .timeline-entry:nth-child(even) {
        left: 0;
    }
}

/* --- Timeline Section --- */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--card-bg);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-entry {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-entry:nth-child(odd) {
    left: 0;
}

.timeline-entry:nth-child(even) {
    left: 50%;
}

.timeline-entry .timeline-year {
    position: absolute;
    width: 100px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border-radius: 20px;
    z-index: 1;
    top: 15px;
    right: -50px;
}

.timeline-entry:nth-child(even) .timeline-year {
    left: -50px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 6px;
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
}