:root {
    --primary-color: #29b6f6; /* Light Blue */
    --primary-dark: #0277bd;  /* Deep Ocean Blue */
    --secondary-color: #81d4fa;
    --text-color: #37474f;    /* Blue Grey for text */
    --bg-color: #e1f5fe;      /* Very light blue background */
    --white: #fff;
    --accent: #00e5ff;        /* Cyan accent */
}

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

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

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

/* Navbar */
.navbar {
    background-color: transparent;
    color: var(--white);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1); /* Make logo white for transparent navbar */
    transition: filter 0.3s ease;
}

/* Scrolled Navbar State */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .logo img {
    filter: none; /* Restore original colors */
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a,
.navbar.scrolled .menu-toggle i {
    color: var(--primary-dark);
}

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

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

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero */
.hero {
    /* Using a placeholder image of the ocean */
    background: linear-gradient(135deg, rgba(2, 119, 189, 0.85), rgba(41, 182, 246, 0.7)), url('../images/heroBG.png') no-repeat center center/cover;
    height: 100vh;
    color: var(--white);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero Content Animation */
.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Waves Animation */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}

.waves {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    margin-bottom: -1px; /* Fix for Safari gap */
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}
@keyframes move-forever {
    0% {
        transform: translate3d(-90px,0,0);
    }
    100% {
        transform: translate3d(85px,0,0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-dark);
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* Sections */
.section {
    padding: 60px 0;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.bg-light {
    background-color: var(--white);
}

.bg-dark {
    background-color: var(--primary-dark);
    color: var(--white);
}

.bg-dark h2 {
    color: var(--white);
}

/* Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: var(--bg-color);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    margin-bottom: 15px;
}

/* Forms */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.form-group input:focus, .form-group textarea:focus {
    outline: 2px solid var(--primary-color);
}

/* Tech Page Specifics */
.tech-tabs {
    margin-top: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    background: #f1f8ff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    overflow-x: auto;
}

.tab-link {
    flex: 1;
    padding: 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-link:hover {
    background: rgba(41, 182, 246, 0.1);
    color: var(--primary-dark);
}

.tab-link.active {
    background: var(--white);
    color: var(--primary-dark);
    border-bottom: 3px solid var(--primary-color);
}

.tabs-body {
    padding: 40px;
    min-height: 250px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
    gap: 40px;
    text-align: left;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.tab-icon {
    font-size: 3rem;
    color: var(--primary-color);
    background: var(--bg-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-details {
    flex: 1;
}

.tab-header-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.tab-header-row h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.specs-list {
    list-style: none;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.specs-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #546e7a;
}

.specs-list strong {
    color: var(--primary-dark);
    margin-right: 5px;
}

/* Blueprint Graphics */
.tab-visual {
    background: #1a237e; /* Blueprint dark blue */
    border-radius: 15px;
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
    border: 2px solid #3949ab;
}

.blueprint-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

.blueprint-icon {
    font-size: 8rem;
    color: rgba(255,255,255,0.15);
    z-index: 1;
}

.tech-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    text-align: right;
    font-size: 0.8rem;
    z-index: 2;
    line-height: 1.4;
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-block {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.tech-list {
    list-style-position: inside;
    margin-top: 15px;
}

.formula-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.formula-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex: 1 1 200px;
}

.formula-card code {
    display: block;
    font-family: monospace;
    background: var(--bg-color);
    color: var(--primary-dark);
    padding: 5px;
    margin: 5px 0;
    font-weight: bold;
}

/* About Section Specifics */
.about-shell {
    background: var(--white);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    text-align: left;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}

/* Partners Section */
.partners-slider {
    overflow: hidden;
    margin-top: 40px;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partner-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
    flex: 0 0 auto;
    margin-right: 60px; /* Gap between items */
}

.partner-item:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.partner-item img {
    max-width: 160px;
    max-height: 80px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-item:hover img {
    filter: grayscale(0%);
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--primary-dark);
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
        color: var(--white);
    }

    .hero h1 {
        font-size: 2rem;
    }
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

@media (max-width: 768px) {
    .tab-content.active {
        grid-template-columns: 1fr;
    }
}

/* Page Specific Overrides */
.tech-page .hero {
    height: 50vh;
    background: linear-gradient(135deg, rgba(2, 119, 189, 0.9), rgba(41, 182, 246, 0.8)), url('../images/techBG.png') no-repeat center center/cover;
}

.tech-page .section h2 {
    position: relative;
    display: inline-block;
}

/* Animations & Dynamic Elements */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal.active {
    transform: translateY(0);
    opacity: 1;
}

.counter {
    font-weight: 800;
    color: var(--primary-dark);
    font-size: 1.2em;
}

.counter-section {
    /* Marker class for JS */
}