/* ===== MODERN PROFESSIONAL DESIGN ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

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

:root {
    /* Modern Color Palette - Refined for Premium Feel */
    /* Deep Forest Green - richer */
    --primary: #134e4a;
    --primary-light: #2d6a4f;
    --primary-dark: #0f393b;

    /* Vibrant Alert Orange - clearer contrast */
    --accent: #f97316;
    --accent-light: #fb923c;
    --accent-dark: #ea580c;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Backgrounds - creating depth */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    /* Cool gray tint */
    --bg-tertiary: #f1f5f9;
    /* Deeper cool gray */

    /* Text */
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-invert: #ffffff;

    --border: #e2e8f0;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    /* Modern, geometric, friendly */
    --font-body: 'Inter', sans-serif;
    /* Highly readable, professional */

    /* Spacing Scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 5rem;

    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Modern Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    /* Slightly larger for better readability */
    line-height: 1.6;
    color: var(--text-secondary);
    /* Softer than pure black */
    background-color: var(--bg-secondary);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-6);
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
}

ul,
ol {
    margin-left: var(--space-5);
    margin-bottom: var(--space-4);
}

li {
    margin-bottom: var(--space-2);
}

/* ===== NAVIGATION ===== */
/* ===== NAVIGATION ===== */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    transform: scale(1.35);
    /* Enlarge visually to show details without affecting layout */
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0;
    letter-spacing: -0.03em;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: var(--space-1);
    margin: 0;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-light);
    color: white;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: var(--space-2);
    cursor: pointer;
    margin-left: var(--space-3);
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition-base);
}

.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);
}

/* ===== HERO SECTION ===== */
/* ===== HERO SECTION ===== */
.hero {
    background: radial-gradient(circle at top right, var(--primary-light), var(--primary) 40%, var(--primary-dark));
    color: white;
    padding: var(--space-12) 0 var(--space-10);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    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='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-4);
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: var(--space-6);
    color: var(--accent-light);
    line-height: 1.4;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.3s;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0;
    /* Started at 0 for animation */
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.7s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-8);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-base);
    font-size: 1.1rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-dark);
    border-color: white;
    transform: translateY(-2px);
}

/* ===== VIDEO SECTION ===== */
.video-section {
    padding: var(--space-8) 0;
    background-color: var(--bg-secondary);
}

.video-single {
    max-width: 900px;
    margin: 0 auto;
}

.video-card-single {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background-color: var(--bg-tertiary);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-6);
}

.video-card {
    background-color: var(--bg-primary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition-base);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-3);
    text-align: center;
    font-weight: 700;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description {
    margin-top: var(--space-5);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
}

/* ===== SECTIONS ===== */
.content-section,
.problem-section,
.solution-section,
.technology-section,
.research-section,
.impact-section,
.team-section,
.future-section,
.contact-section {
    padding: var(--space-8) 0;
}

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

.bg-accent {
    background-color: var(--bg-tertiary);
}

.section-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--space-3);
    font-size: 2.25rem;
    position: relative;
    padding-bottom: var(--space-4);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-6);
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.7;
}

.section-intro {
    max-width: 800px;
    margin: 0 auto var(--space-6);
    text-align: center;
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* ===== CRISIS GRID ===== */
.crisis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.crisis-item {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
    border: 1px solid var(--border);
    /* Side/bottom borders */
    border-top-width: 4px;
    /* Keep accent top */
    transition: var(--transition-base);
}

.crisis-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
    /* Keep border color consistent */
    border-top-color: var(--accent-light);
}

.crisis-item h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: var(--space-3);
}

.crisis-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ===== GAP ANALYSIS ===== */
.gap-analysis {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gap-analysis h3 {
    text-align: center;
    color: var(--accent);
    margin-bottom: var(--space-5);
    font-size: 1.75rem;
}

.solutions-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.solution-card {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.solution-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    text-align: center;
    font-size: 1.125rem;
}

.pros,
.cons {
    list-style: none;
    margin-left: 0;
    font-size: 0.9375rem;
}

.pros li {
    color: var(--success);
    padding-left: var(--space-4);
    position: relative;
}

.pros li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
}

.cons li {
    color: var(--accent);
    padding-left: var(--space-4);
    position: relative;
}

.cons li::before {
    content: '✗';
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ===== SOLUTION HIGHLIGHTS ===== */
.solution-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.highlight-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success);
    border: 1px solid var(--border);
    border-left-width: 4px;
    transition: var(--transition-base);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent);
}

.highlight-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-3);
    font-size: 1.25rem;
}

.highlight-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
}

/* ===== KEY INNOVATION ===== */
.key-innovation {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.key-innovation h3 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: 1.75rem;
}

.key-innovation p {
    line-height: 1.8;
    font-size: 1.0625rem;
}

.mpd-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.benefit {
    background-color: rgba(255, 255, 255, 0.15);
    padding: var(--space-4);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.benefit strong {
    color: var(--accent-light);
    display: block;
    margin-bottom: var(--space-2);
}

/* ===== TECHNOLOGY SECTION ===== */
.tech-overview {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.tech-diagram,
.warning-system,
.power-strategy {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.tech-diagram h3,
.warning-system h3,
.power-strategy h3 {
    color: var(--primary);
    margin-bottom: var(--space-5);
    font-size: 1.5rem;
}

.architecture-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-5);
}

.flow-item {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    border-top: 3px solid var(--success);
}

.flow-item h4 {
    color: var(--primary);
    text-align: center;
    margin-bottom: var(--space-4);
}

.flow-item ul {
    font-size: 0.9375rem;
}

.flow-arrow {
    display: none;
}

/* ===== WARNING LEVELS ===== */
.warning-levels {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.level {
    padding: var(--space-5);
    border-radius: var(--radius);
    border-left: 4px solid;
    background-color: var(--bg-secondary);
}

.level-1 {
    border-left-color: var(--warning);
    background-color: #FFF8E1;
}

.level-2 {
    border-left-color: var(--accent-light);
    background-color: #FFE5D5;
}

.level-3 {
    border-left-color: var(--accent);
    background-color: #FFCCBC;
}

.level h4 {
    margin-bottom: var(--space-3);
}

.level p {
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

/* ===== POWER MODES ===== */
.power-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.mode {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    border-top: 3px solid var(--primary);
}

.mode h4 {
    margin-bottom: var(--space-3);
    color: var(--primary);
}

.mode p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== EXPERIMENTS ===== */
.experiments {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.experiment-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success);
    border: 1px solid var(--border);
    border-left-width: 4px;
    transition: var(--transition-base);
}

.experiment-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.experiment-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: 1.375rem;
    font-weight: 700;
}

.experiment-details p {
    margin-bottom: var(--space-3);
    line-height: 1.7;
}

.experiment-details strong {
    color: var(--primary);
}

/* ===== IMPACT GRID ===== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.impact-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
    border: 1px solid var(--border);
    border-top-width: 4px;
    transition: var(--transition-base);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.impact-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-weight: 700;
}

.impact-card ul {
    color: var(--text-secondary);
}

/* ===== MARKET ANALYSIS ===== */
.market-analysis {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.market-analysis h3 {
    color: var(--primary);
    margin-bottom: var(--space-5);
    text-align: center;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
}

.market-item {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
}

.market-item h4 {
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.market-item p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== TEAM SECTION ===== */
.team-story,
.team-values {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: var(--space-6);
}

.team-story h3,
.team-values h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.team-story p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
}

.value-card {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    text-align: center;
    border-top: 3px solid var(--success);
}

.value-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.value-card p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== FUTURE SECTION ===== */
.future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
}

.future-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
    border: 1px solid var(--border);
    border-left-width: 4px;
    transition: var(--transition-base);
}

.future-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.future-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.future-card ul {
    color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.contact-info,
.contact-cta {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-info h3,
.contact-cta h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.contact-cta .btn {
    margin-top: var(--space-4);
}

/* ===== VISUAL ENHANCEMENTS ===== */

/* Bar Charts */
.chart-container {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-6);
}

.chart-title {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.bar-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 80px;
    align-items: center;
    gap: var(--space-3);
}

.bar-label {
    font-weight: 600;
    color: var(--text-secondary);
    text-align: right;
    padding-right: var(--space-2);
}

.bar-track {
    background: var(--bg-tertiary);
    height: 24px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding-right: var(--space-2);
    justify-content: flex-end;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    transition: width 1s ease-out;
}

.bar-fill.highlight {
    background: var(--accent);
}

.bar-value {
    font-weight: bold;
    color: var(--text-primary);
}

/* Flow Diagrams */
.flow-diagram-container {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: var(--space-6) 0;
    position: relative;
    overflow: hidden;
}

/* Background overlay helper */
.bg-overlay-ecosystem {
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95)), url('ecosystem_abstract.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.bg-overlay-tech {
    background-image: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.97)), url('tech_schematic_bg.png');
    background-size: cover;
    background-position: center;
}

/* Simple Step Flow */
.step-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.step-card {
    background: var(--bg-secondary);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
    flex: 1;
    min-width: 200px;
    position: relative;
}

.step-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.step-arrow {
    font-size: 2rem;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .step-flow {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .bar-row {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }

    .bar-label {
        text-align: left;
    }
}


/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--space-8) 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: var(--space-3);
    font-size: 2.5rem;
}

.lead {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
}

.column {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ===== IMAGES ===== */
.image-placeholder {
    margin: var(--space-5) 0;
}

.image-placeholder img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Experiment Images Grid Layout */
.experiment-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.experiment-images .image-placeholder {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.experiment-images .image-placeholder img {
    max-width: 60%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experiment-images .image-placeholder img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Communication Test Images Grid Layout */
.test-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-6) 0;
}

.test-images .image-placeholder {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.test-images .image-placeholder img {
    max-width: 60%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.test-images .image-placeholder img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Energy Analysis Image */
.energy-analysis .image-placeholder img {
    max-width: 70%;
    display: block;
    margin: 0 auto;
}

/* Specific image size control for 26.jpg */
img[src="images/26.jpg"] {
    max-width: 70%;
    display: block;
    margin: 0 auto;
}

.hardware-overview .image-placeholder img {
    max-width: 70%;
    display: block;
    margin: 0 auto;
}

.structure-overview .image-placeholder img {
    max-width: 70%;
    display: block;
    margin: 0 auto;
}

.monitoring-logic .image-placeholder img {
    max-width: 70%;
    display: block;
    margin: 0 auto;
}

.component-grid-image {
    max-width: 100%;
    margin: var(--space-5) auto;
    text-align: center;
}

.component-grid-image img {
    max-width: 90%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.caption {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-2);
    font-style: italic;
    text-align: center;
}

/* ===== TABLES ===== */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: var(--space-5) 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

thead {
    background-color: var(--primary);
    color: white;
}

th {
    padding: var(--space-4);
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.02em;
}

td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    background-color: var(--bg-primary);
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: var(--bg-secondary);
}

.highlight-row {
    background-color: #E8F5E9 !important;
    font-weight: 600;
}

.total-row {
    background-color: var(--bg-tertiary) !important;
    font-weight: 700;
    border-top: 2px solid var(--primary);
}

/* ===== FORMULA & CODE BOXES ===== */
.formula-box,
.calc-box,
.objective-box,
.goal-box {
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    margin: var(--space-5) 0;
    border-left: 4px solid var(--success);
}

.code-output {
    background-color: var(--primary-dark);
    color: #00FF00;
    padding: var(--space-5);
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

.code-line {
    margin-bottom: var(--space-1);
}

.code-line.highlight {
    color: var(--warning);
    font-weight: bold;
}

/* ===== GRIDS ===== */
.stats-grid,
.impact-grid-detailed,
.innovation-cards,
.methodology-grid,
.component-grid,
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    margin: var(--space-5) 0;
}

.stat-large,
.impact-detail,
.innovation-card,
.method-step,
.component-card,
.application-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.step-number {
    background-color: var(--success);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: var(--space-8) 0 var(--space-4);
    margin-top: var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-5);
}

.footer-logo h3 {
    color: white;
    margin-bottom: var(--space-3);
}

.footer-logo p {
    opacity: 0.85;
}

.footer-links h4,
.footer-info h4 {
    color: var(--success);
    margin-bottom: var(--space-3);
}

.footer-links ul {
    list-style: none;
    margin-left: 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--success);
}

.footer-info p {
    opacity: 0.85;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    font-size: 0.875rem;
}

/* ===== UTILITIES ===== */
.highlight {
    color: var(--accent);
    font-weight: 600;
}

.highlight-green {
    color: var(--success);
    font-weight: 600;
}

.highlight-blue {
    color: #2196F3;
    font-weight: 600;
}

.highlight-gold {
    color: var(--warning);
    font-weight: 600;
}

.large-text {
    font-size: 1.25rem;
}

.large-price {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 700;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .navbar .container {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        margin-top: var(--space-2);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--bg-primary);
        box-shadow: var(--shadow-md);
        padding: var(--space-2) 0;
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        width: 100%;
        font-size: 0.95rem;
        padding: var(--space-3) var(--space-4);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--space-3);
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-3);
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.875rem;
    }
}

/* ===== BUSINESS & SALES SECTIONS ===== */

/* Product Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.product-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: var(--bg-tertiary);
}

.product-content {
    padding: var(--space-5);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.product-price {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.product-features {
    list-style: none;
    margin: 0 0 var(--space-5) 0;
    flex-grow: 1;
}

.product-features li {
    padding-left: var(--space-4);
    position: relative;
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.product-features li::before {
    content: '•';
    color: var(--success);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Pricing Tables */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
    align-items: start;
}

.pricing-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.featured {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

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

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: var(--space-5);
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin: 0 0 var(--space-6) 0;
    text-align: left;
}

.pricing-features li {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--bg-tertiary);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

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

.contact-info-card {
    background-color: var(--primary);
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
}

.contact-info-item {
    margin-bottom: var(--space-5);
}

.contact-info-item h4 {
    color: var(--success);
    margin-bottom: var(--space-2);
}

.contact-form {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    color: var(--text-primary);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(216, 67, 21, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-5);
}

.testimonial-card {
    background-color: var(--bg-primary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    object-fit: cover;
}

.author-info h5 {
    color: var(--primary);
    margin-bottom: 0;
    font-size: 1rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ===== MARKET CHART ===== */
.market-chart-container {
    margin-top: var(--space-6);
    background-color: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius);
    text-align: center;
}

.market-chart-container h4 {
    color: var(--primary);
    margin-bottom: var(--space-5);
}

.bar-chart {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-6);
    height: 250px;
    padding-bottom: var(--space-4);
    border-bottom: 2px solid var(--border);
    margin-bottom: var(--space-3);
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--success));
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    position: relative;
    transition: height 1s ease;
    box-shadow: var(--shadow);
}

.bar:hover {
    background: linear-gradient(to top, var(--primary-light), var(--success));
}

.bar::before {
    content: attr(data-value);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.year {
    margin-top: var(--space-3);
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-source {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--space-4);
    font-style: italic;
}

/* ===== FINANCIAL TABLE ===== */
.financial-table-container {
    margin-top: var(--space-6);
    overflow-x: auto;
    background-color: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.financial-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.financial-table th,
.financial-table td {
    padding: var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.financial-table th {
    background-color: var(--bg-secondary);
    color: var(--primary);
    font-weight: 600;
}

.financial-table tr:last-child td {
    border-bottom: none;
}

.financial-table tr:hover {
    background-color: var(--bg-secondary);
}

.financial-highlight {
    color: var(--success);
    font-weight: bold;
}

.financial-cost {
    color: var(--accent);
    font-weight: bold;
}

/* ===== TEAM IMAGE ===== */
.team-image-container {
    margin-bottom: var(--space-6);
    text-align: center;
}

.team-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-height: 500px;
    object-fit: cover;
}