:root {
    /* Color Palette */
    --primary-blue: #0A84FF;
    --primary-dark: #0056b3;
    --accent-cyan: #64D2FF;
    --sustain-green: #30D158;
    --energy-yellow: #FFD60A;
    --dark-bg: #0F1115;
    --card-bg: #1C1E24;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --gradient-main: linear-gradient(135deg, #0A84FF 0%, #30D158 100%);

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --border-radius: 16px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1,
h2,
h3,
h4,
.logo,
.nav-links a {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.section {
    padding: var(--section-padding);
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-main);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(10, 132, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 132, 255, 0.5);
}

.btn-primary .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(5px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.85);
    /* Glassmorphism */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.highlight {
    color: var(--primary-blue);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.btn-nav {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
}

.btn-nav:hover {
    border-color: var(--primary-blue);
    background: rgba(10, 132, 255, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(10, 132, 255, 0.1), transparent 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge-tech {
    background: rgba(48, 209, 88, 0.15);
    color: var(--sustain-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hero Visual Animation */
.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.4) 0%, rgba(48, 209, 88, 0.1) 60%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.floating-card {
    position: absolute;
    background: rgba(28, 30, 36, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: float 6s infinite ease-in-out;
}

.floating-card .label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.floating-card .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.floating-card .value.active {
    color: var(--sustain-green);
}

.c1 {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.c2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 2s;
}

.c3 {
    top: 40%;
    left: -5%;
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Problem Section */
.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Solution Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solution-points {
    margin-top: 30px;
}

.solution-points li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.check-icon {
    color: var(--sustain-green);
    background: rgba(48, 209, 88, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

.visual-block {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.schematic-layer {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.layer-1 {
    border-color: var(--energy-yellow);
    color: var(--energy-yellow);
}

.layer-2 {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.layer-3 {
    border-color: var(--sustain-green);
    color: var(--sustain-green);
}

.arrow-down {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.arrow-return {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
    display: inline-block;
}

/* Architecture Section */
.arch-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: flex-start;
}

.arch-col {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    height: 100%;
}

.col-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
}

.icon-box {
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.arch-item {
    margin-bottom: 30px;
    position: relative;
    padding-left: 20px;
}

.arch-item:last-child {
    margin-bottom: 0;
}

.arch-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.software .arch-item::before {
    background: var(--sustain-green);
}

.arch-item h4 {
    color: white;
    margin-bottom: 5px;
}

.arch-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.arch-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
}

.arch-connector .line {
    width: 2px;
    flex-grow: 1;
    background: linear-gradient(to bottom, transparent, var(--text-muted), transparent);
    min-height: 50px;
}

.arch-connector .node {
    background: #fff;
    color: #000;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Mechanism */
.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step-item {
    position: relative;
    padding-top: 20px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 0;
}

.step-item h3 {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    color: var(--accent-cyan);
}

.step-item p {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #111;
    padding: 40px;
    border-radius: var(--border-radius);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.stat-value .unit {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--gradient-main);
    border-radius: 3px;
}

/* References */
.references-section {
    background: rgba(255, 255, 255, 0.02);
}

.ref-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ref-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ref-content h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ref-content .author {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.ref-content .journal-name {
    font-style: italic;
    color: var(--primary-blue);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 20px;
}

.btn-ref {
    text-align: center;
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-ref:hover {
    background: white;
    color: black;
}

/* Conclusion */
.impact-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.impact-item {
    text-align: center;
    max-width: 250px;
}

.impact-item h3 {
    margin-bottom: 10px;
    color: var(--sustain-green);
}

.impact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        width: 95%;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 50px;
    }

    /* Utility */
    .img-frame-3x4 {
        width: 150px;
        /* Base width */
        aspect-ratio: 3/4;
        background-color: rgba(255, 255, 255, 0.1);
        border: 2px dashed rgba(255, 255, 255, 0.3);
        border-radius: 12px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--text-muted);
        font-size: 0.8rem;
        margin-top: 20px;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-features {
        justify-content: center;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .arch-grid {
        grid-template-columns: 1fr;
    }

    .arch-connector {
        transform: rotate(90deg);
        flex-direction: row;
        height: auto;
        margin: 20px 0;
    }

    .arch-connector .line {
        min-height: 2px;
        min-width: 50px;
        height: 2px;
    }

    .steps-container {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ref-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Dashboard */
.dashboard-container {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 40px;
}

.chart-wrapper {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.live-metrics {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.metric-box .label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.metric-box .value {
    font-family: monospace;
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

/* Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Mobile Menu Styles */
@media (max-width: 900px) {
    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background-color: white;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(15, 17, 21, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        left: 0;
    }

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

@media (min-width: 901px) {
    .hamburger {
        display: none;
    }
}