/* style.css - Final, Clean Version */

/* --- CSS Variables --- */
:root {
    --primary-bg: #0F1626; 
    --secondary-bg: #1A2035;
    --accent-blue: #ffffff;
    --text-light: #FFFFFF;
    --text-muted: #B0B0B0;
    --border-subtle: rgba(92, 112, 128, 1.0);
    --font-primary: 'Inter', sans-serif;
    
    /* Variables for the New Menu */
    --header-height: 70px;
    --header-bg: #FFFFFF;
    --overlay-bg: rgba(15, 22, 38, 0.98);
    --text-dark: #1a1a1a;
}

/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-muted);
    background-color: var(--primary-bg);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 600;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; }
h3 { font-size: 2.2em; }
h4 { font-size: 1.8em; }

p {
    margin-bottom: 1em;
}

ul {
    list-style: none;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn.primary {
    background-color: #fffcff;
    color: var(--primary-bg);
}

.btn.primary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn.secondary {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn.secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.btn.tertiary {
    background-color: var(--secondary-bg);
    color: var(--accent-blue);
    border-color: var(--border-subtle);
}

.btn.tertiary:hover {
    background-color: var(--accent-blue);
    color: var(--primary-bg);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn.small-btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

.btn-top2 {
    border: 1px solid #1a1a1a;
    background-color: #1a1a1a;
    color: #fffcfc;
}

.btn-top2:hover {
    background-color: #fffcfc;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.btn-header {
    border: 2px solid #a92222;
    background-color: transparent;
    color: #a92222;
}

.btn-header:hover {
    background-color: #a92222;
    color: #fff;
    font-weight: bold;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--header-bg);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

header.sticky {
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

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

.logoa {
    padding-left: 20px;
}

.logo-img {
    height: 28px;
    width: auto;
    margin-top: 15px;
}

/* ==========================================================================
   NEW MODERN MENU STYLES
   ========================================================================== */
.navbar-desktop {
    display: none;
}
.nav-menu-desktop {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}
.nav-menu-desktop a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}
.nav-menu-desktop a:not(.btn):hover {
    color: #007BFF;
}
.nav-menu-desktop a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007BFF;
    transition: width 0.3s ease;
}
.nav-menu-desktop a:not(.btn):hover::after {
    width: 100%;
}
.menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1010;
    width: 40px;
    height: 40px;
    position: relative;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-dark);
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.active .bar {
    background-color: var(--text-light);
}
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.navbar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--overlay-bg);
    z-index: 1005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}
.navbar-mobile.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu-mobile {
    list-style: none;
    text-align: center;
}
.nav-menu-mobile li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.navbar-mobile.active li:nth-child(1) { transition-delay: 0.1s; }
.navbar-mobile.active li:nth-child(2) { transition-delay: 0.2s; }
.navbar-mobile.active li:nth-child(3) { transition-delay: 0.3s; }
.navbar-mobile.active li:nth-child(4) { transition-delay: 0.4s; }
.navbar-mobile.active li:nth-child(5) { transition-delay: 0.5s; }
.navbar-mobile.active li:nth-child(6) { transition-delay: 0.6s; }
.navbar-mobile.active li {
    opacity: 1;
    transform: translateY(0);
}
.nav-menu-mobile a {
    color: var(--text-light);
    font-size: 1.8rem;
    font-weight: 600;
    padding: 10px;
}
.nav-menu-mobile a:not(.btn):hover {
    color: var(--accent-blue);
}
.mobile-btn-wrapper {
    margin-top: 30px !important;
}
.mobile-btn-wrapper .btn {
    font-size: 1.2rem;
    padding: 12px 30px;
    width: 100%;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
}
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }
    .navbar-desktop {
        display: flex;
    }
}
/* ==========================================================================
   ORIGINAL PAGE STYLES (PRESERVED)
   ========================================================================== */
section {
    padding: 100px 0;
    position: relative;
}
.hero-section {
    background: linear-gradient(rgba(15, 22, 38, 0.9), rgba(15, 22, 38, 0.9)), url('https://images.unsplash.com/photo-1574704870104-e0e64c399b3b?auto=format&fit=crop') no-repeat center center/cover;
    color: var(--text-light);
    padding: 200px 0 150px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6); 
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section h1 {
    font-size: 4.5em;
    margin-bottom: 25px;
    letter-spacing: -0.05em;
}
.hero-subtext {
    font-size: 1.5em;
    max-width: 900px;
    margin: 0 auto 50px;
    font-weight: 300;
}
.hero-cta .btn {
    margin: 0 15px;
    font-size: 1.1em;
    padding: 15px 35px;
}
.page-hero-section {
    color: var(--text-light);
    padding: 180px 0 100px;
    text-align: center;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4); 
}
.page-hero-section h1 {
    font-size: 3.8em;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}
.page-subtext {
    font-size: 1.3em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}
.page-cta .btn {
    margin: 0 10px;
    font-size: 1em;
    padding: 12px 25px;
}
.helix-hero {
    background: linear-gradient(rgba(15, 22, 38, 0.9), rgba(15, 22, 38, 0.9)), url('https://images.unsplash.com/photo-1544717305-ad15e47c1647?auto=format&fit=crop') no-repeat center center/cover;
}
.clairon-hero {
    background: linear-gradient(rgba(15, 22, 38, 0.9), rgba(15, 22, 38, 0.9)), url('https://images.unsplash.com/photo-1579547621430-e8838d74f762?auto=format&fit=crop') no-repeat center center/cover;
}
.about-hero {
    background: linear-gradient(rgba(15, 22, 38, 0.9), rgba(15, 22, 38, 0.9)), url('https://images.unsplash.com/photo-1518621743501-1b072c4314c9?auto=format&fit=crop') no-repeat center center/cover;
}
.contact-hero {
    background: linear-gradient(rgba(15, 22, 38, 0.9), rgba(15, 22, 38, 0.9)), url('https://images.unsplash.com/photo-1516246808794-0f11acb744d2?auto=format&fit=crop') no-repeat center center/cover;
}
.section-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1em;
    color: var(--text-muted);
}
.product-showcase-grid,
.solution-points,
.capabilities-grid,
.app-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.solution-item, .capability-item, .app-feature-item {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease;
}
.solution-item:hover, .capability-item:hover, .app-feature-item:hover {
    transform: translateY(-5px);
}
.solution-item i, .capability-item i, .app-feature-item i {
    font-size: 3em;
    color: var(--accent-blue);
    margin-bottom: 20px;
}
.product-card, .product-card2 {
    background: var(--secondary-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    text-align: center;
    display: flex;
    flex-direction: column;
}
.product-card2 {
    background: #434343ff;
}
.product-card:hover, .product-card2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.product-card h3, .product-card2 h3 {
    font-size: 2em;
    color: var(--accent-blue);
    margin-bottom: 15px;
}
.product-card p, .product-card2 p {
    flex-grow: 1;
    margin-bottom: 30px;
}
footer {
    background-color: rgb(20, 19, 19);
    color: var(--text-muted);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.85rem;
}
.back-to-top {
    display: none;
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: var(--accent-blue);
    color: var(--primary-bg);
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1;
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4);
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.timeline-section {
    padding: 60px 20px;
    text-align: center;
}
.timeline-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}
.timeline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
.timeline-item {
    background-color: #1f2833;
    border-radius: 8px;
    padding: 20px;
    width: 250px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}
.timeline-item:hover {
    transform: translateY(-5px);
}
.timeline-item h4 {
    color: #66fcf1;
    margin-bottom: 10px;
}
.duration {
    font-weight: bold;
    margin-bottom: 10px;
}
.description {
    font-size: 0.95rem;
    color: #c5c6c7;
}
.studio-section .container .subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 40px;
}
.contact-container {
    text-align: left;
    padding: 20px;
}
.contact-heading, .contact-subtext {
    text-align: left;
}
.table-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}
.white-bordered-table {
    border: 2px solid white;
    width: 100%;
    border-collapse: collapse;
}
.white-bordered-table td {
    border: 2px solid white;
    padding: 10px;
    color: #fff;
}
.contact-form-container {
    background: var(--secondary-bg);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--border-subtle);
    max-width: 700px;
    margin: 40px auto;
}
.contact-form .form-group {
    margin-bottom: 25px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-light);
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    background: #222222;
    color: var(--text-light);
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1em;
}
.tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    font-weight: bold;
}
.tab {
    margin: 0 2rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}
.tab.active {
    color: #fff;
    border-bottom: 2px solid #fff;
}
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 4rem;
}
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    .hero-section {
        padding: 120px 0 80px;
    }
    .hero-cta .btn {
        margin: 10px auto;
        display: block;
        width: fit-content;
    }
    .table-wrapper {
        flex-direction: column;
    }
}

/* ==========================================================================
   HELIX PAGE - RESPONSIVE TABS SECTION STYLES
   ========================================================================== */

.capabilities-tabs-section {
    background-color: #222222;
    padding: 100px 0;
    text-align: center;
}

.capabilities-tabs-section .subtitle {
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--text-muted);
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allows tabs to wrap on smaller screens */
    gap: 10px;
    border-bottom: 1px solid #444;
    margin-bottom: 50px;
}

.tab {
    padding: 15px 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 3px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tab:hover {
    color: var(--text-light);
}

.tab.active {
    color: var(--text-light);
    border-color: var(--accent-blue);
}

.main-content {
    background-color: #222222;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tabs-content-wrapper {
    display: flex;
    flex-direction: row; /* Side-by-side on desktop */
    align-items: flex-start;
    gap: 50px;
    max-width: 1000px;
    width: 100%;
}

.tabs-image {
    flex: 1;
    min-width: 250px;
}

.tabs-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.tabs-description {
    flex: 1.5;
    color: #fffcfc;
    text-align: left;
}

.tabs-description h2 {
    margin-top: 0;
    font-size: 2em;
}

.tabs-description p {
    font-size: 1.1em;
    color: var(--text-muted);
}

.tabs-description ul {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 0;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tabs-description a {
    color: var(--accent-blue);
    font-weight: bold;
    text-decoration: none;
}
.tabs-description a:hover {
    text-decoration: underline;
}

/* --- Responsive styles for the tabs section --- */
@media (max-width: 768px) {
    .tabs-content-wrapper {
        flex-direction: column; /* Stack vertically on mobile */
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .tabs-description {
        text-align: left; /* Keep text left-aligned for readability */
    }

    .tabs-image {
        max-width: 90%;
        margin: 0 auto;
    }
}
