/* Variables */
:root {
    --primary-color: #90caf9; /* Soft Blue - Modern Marine */
    --secondary-color: #37474f; /* Blue Grey Dark */
    --accent-color: #fbc02d; /* Industrial Yellow */
    --text-dark: #eceff1; /* Off-white */
    --text-light: #ffffff;
    --bg-body: #02080c; /* Deep Marine Black */
    --bg-light: #06121a; /* Dark Marine */
    --bg-dark: #000000; /* Pure Black */
    --bg-card: #0d1b24; /* Deep Blue Card */
    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-body);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #90a4ae;
}

.text-white { color: var(--text-light) !important; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    margin-left: 10px;
}

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    padding-top: 10px;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(2, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    height: 70px;
    padding-top: 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo img {
    max-height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-nav {
    background-color: var(--accent-color);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 8, 12, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    margin: 0 5px;
    border: 1px solid rgba(255,255,255,0.5);
}

/* Page Header (for subpages) */
.page-header {
    height: 60vh;
    background: linear-gradient(rgba(2, 8, 12, 0.8), rgba(2, 8, 12, 0.9)), url('https://images.unsplash.com/photo-1518837695005-2083093ee35b?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    background: linear-gradient(rgba(2, 8, 12, 0.8), rgba(2, 8, 12, 0.9)), url('../images/technology_bg.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Tech Details */
.tech-details h3 {
    color: var(--primary-color);
    color: var(--text-light);
    margin-top: 30px;
}

.tech-details p {
    margin-bottom: 15px;
}

/* Tech Tabs */
.tech-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tech-tabs {
    background: var(--bg-card);
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--secondary-color);
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--accent-color);
}

.tab-btn.active {
    background: var(--accent-color);
    color: #000;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.spec-card {
    background: var(--bg-card);
    border: 1px solid var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.spec-body {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.spec-text {
    flex: 1;
}

.spec-image-placeholder {
    margin: 0;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 30%;
}

.spec-image-placeholder img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    border-radius: 10px;
    border: none;
}

/* Sections */
.section {
    padding: 80px 0;
}

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

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

.feature-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--secondary-color);
    text-align: center;
    transition: transform 0.3s;
}

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

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Research Section */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.research-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--secondary-color);
}

.research-item .icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-right: 20px;
    min-width: 50px;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 10px;
    margin-right: 5px;
}

/* Article Links */
.article-links {
    margin-top: 15px;
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-link:hover {
    background: var(--accent-color);
    color: #000;
}

/* Partners Section */
.partners-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
    margin-top: 20px;
}

.partner-item {
    text-align: center;
}

.partner-item h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.partner-item p {
    font-size: 0.9rem;
}

.partner-item img {
    max-height: 120px;
    margin-bottom: 20px;
    max-height: 80px;
    margin-bottom: 10px;
}

/* Collaborate Section */
.cta-box {
    text-align: center;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.option {
    border: 1px solid var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
}

.option p {
    margin-bottom: 25px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    color: var(--text-dark);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--secondary-color);
    background: rgba(0,0,0,0.3);
    color: white;
    border-radius: 5px;
    font-family: inherit;
}

/* Safety Dashboard (New) */
.safety-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.map-container {
    background: #000;
    min-height: 300px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(100%) brightness(70%) contrast(120%);
    z-index: 0;
}

.map-overlay {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 1;
}

.flag-status {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.flag-display {
    font-size: 1.5rem;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    font-weight: bold;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.flag-green { background: rgba(56, 142, 60, 0.1); color: #81c784; border: 1px solid #2e7d32; }
.flag-yellow { background: rgba(251, 192, 45, 0.1); color: #fbc02d; border: 1px solid #fbc02d; }
.flag-red { background: rgba(198, 40, 40, 0.1); color: #ef5350; border: 1px solid #c62828; }

.legend { margin-top: 15px; font-size: 0.9rem; color: var(--text-dark); }
.dot { height: 12px; width: 12px; border-radius: 50%; display: inline-block; margin-right: 5px; margin-left: 15px; box-shadow: none; }
.dot.green { background: #4caf50; }
.dot.yellow { background: #fbc02d; }
.dot.red { background: #d32f2f; }

/* Footer */
footer {
    background-color: #000;
    color: #607d8b;
    border-top: 1px solid var(--secondary-color);
    padding: 30px 0;
    text-align: center;
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    color: #888;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    
    .nav-links {
        background: var(--bg-card);
        position: absolute;
        right: 0;
        top: 70px;
        flex-direction: column;
        width: 100%;
        display: none;
        padding: 20px 0;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
        color: var(--primary-color);
    }
    .safety-dashboard { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: 1fr; }
    .spec-body { flex-direction: column; }
    .spec-image-placeholder { width: 100%; margin-bottom: 20px; }
    .sensor-grid, .stats-grid { grid-template-columns: 1fr; }
}

/* Enhanced Tech Specs Styling */
.lead-text {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.tech-tag {
    background: rgba(251, 192, 45, 0.15);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid rgba(251, 192, 45, 0.3);
    font-weight: bold;
}

/* Sensor Grid */
.sensor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sensor-card {
    background: rgba(255,255,255,0.03);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.sensor-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.sensor-card h4 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.icon-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
}

.icon-list i {
    color: var(--accent-color);
    margin-top: 4px;
    min-width: 20px;
}

/* Connection Flow */
.connection-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flow-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s;
}

.flow-item:hover {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.05);
}

.flow-icon {
    background: var(--secondary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.flow-content h5 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.step {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    position: relative;
    border-top: 3px solid var(--accent-color);
}

.step-number {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255,255,255,0.05);
    line-height: 1;
}

.step h5 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--secondary-color);
}

.stat-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    display: block;
}

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: #90a4ae;
}

.consumption-bar {
    display: flex;
    height: 30px;
    background: #333;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
}

.bar-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
}

.bar-segment.idle {
    background: var(--primary-color);
}

.bar-segment.active {
    background: var(--accent-color);
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 10000;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}
.toast.show { visibility: visible; opacity: 1; bottom: 50px; }
.toast.success { background-color: #4caf50; }
.toast.error { background-color: #f44336; }