/*
Theme Name: Riveqn
Author: converzo
Author URI: https://converzo.nl
Description: The Riveqn Theme - HPC & AI Compute
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
img { max-width: 100%; height: auto; }
ul { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; font-size: inherit; }
a:focus, button:focus { outline: none; box-shadow: none; }
html { scroll-behavior: smooth; }
strong { font-weight: 700; }

body {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #00c853;
    line-height: 1.2;
    text-transform: uppercase;
}
h1 { font-size: 56px; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 40px; margin-bottom: 20px; }
h3 { font-size: 22px; margin-bottom: 16px; }
h4 { font-size: 16px; margin-bottom: 12px; color: #00c853; letter-spacing: 1px; }
p { font-size: 16px; line-height: 1.7; margin-bottom: 20px; color: #b0b0b0; }
p:last-child { margin-bottom: 0; }

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: #00c853;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #00c853;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary:hover {
    background: transparent;
    color: #00c853;
}

.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    color: #00c853;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #00c853;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-outline:hover {
    background: #00c853;
    color: #000;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
    transition: all 0.3s ease;
}
.site-header.sticky {
    background: rgba(0, 0, 0, 0.95);
    border-bottom-color: rgba(0, 200, 83, 0.2);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: padding 0.3s ease;
}
.site-header.sticky .header-inner {
    padding: 14px 0;
}
.logo { width: 150px; transition: width 0.3s ease; }
.site-header.sticky .logo { width: 110px; }
.logo img { display: block; width: 100%; }

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}
.main-nav ul li a {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}
.main-nav ul li a:hover,
.main-nav ul li a.nav-cta {
    color: #00c853;
}
.main-nav ul li a.nav-cta {
    padding: 10px 24px;
    border: 1px solid #00c853;
    transition: all 0.3s ease;
}
.main-nav ul li a.nav-cta:hover {
    background: #00c853;
    color: #000;
}

/* Mobile menu */
.menubar {
    width: 40px;
    position: relative;
    z-index: 999;
    display: none;
    cursor: pointer;
}
.menubar span {
    background: #00c853;
    width: 100%;
    height: 2px;
    display: block;
    margin-bottom: 6px;
    transition: 0.4s;
}
.menubar span:last-child { margin-bottom: 0; }
.mm-menu { background-color: #111 !important; }
.mm-listview > li > a { color: #e0e0e0 !important; }
.mm-listview { font-size: 16px; font-weight: 400; }
.mm-navbar .mm-title { font-weight: 400; font-size: 20px; }

/* ===== ANIMATED BACKGROUNDS ===== */

/* Particle canvas in hero */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating gradient orbs */
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: orbFloat 12s ease-in-out infinite, orbFadeIn 1.5s ease-out forwards;
}
.bg-orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.12) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    animation-delay: 0s;
}
.bg-orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 200, 83, 0.08) 0%, transparent 70%);
    bottom: 20%;
    left: -80px;
    animation-delay: 4s;
}
.bg-orb--3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(100, 231, 192, 0.07) 0%, transparent 70%);
    top: 50%;
    left: 40%;
    animation-delay: 8s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 15px) scale(0.95); }
    75% { transform: translate(15px, 25px) scale(1.02); }
}
@keyframes orbFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Animated grid pulse in hero */
.hero-grid-overlay {
    animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Scan line effect */
.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 83, 0.4), transparent);
    z-index: 1;
    pointer-events: none;
    animation: scanMove 6s linear infinite;
    opacity: 0.5;
}
@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Animated card glow borders */
.feature-card,
.service-card,
.value-card {
    position: relative;
    overflow: hidden;
}
.feature-card::after,
.service-card::after,
.value-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, rgba(0, 200, 83, 0), rgba(0, 200, 83, 0.15), rgba(0, 200, 83, 0));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.feature-card:hover::after,
.service-card:hover::after,
.value-card:hover::after {
    opacity: 1;
    animation: borderGlow 2s ease-in-out infinite;
}
@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Stat number glow animation */
.stat-number.counted {
    text-shadow: 0 0 20px rgba(0, 200, 83, 0.4), 0 0 40px rgba(0, 200, 83, 0.1);
    animation: statGlow 3s ease-in-out infinite;
}
@keyframes statGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(0, 200, 83, 0.4), 0 0 40px rgba(0, 200, 83, 0.1); }
    50% { text-shadow: 0 0 30px rgba(0, 200, 83, 0.6), 0 0 60px rgba(0, 200, 83, 0.2); }
}

/* Data flow lines on sections */
.section-flow-line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 200, 83, 0.08) 20%,
        rgba(0, 200, 83, 0.08) 80%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.section-flow-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0, 200, 83, 0.5), transparent);
    animation: flowDown 4s linear infinite;
}
.section-flow-line--left { left: 10%; }
.section-flow-line--right { right: 10%; }
.section-flow-line--right::after { animation-delay: 2s; }
@keyframes flowDown {
    0% { top: -10%; }
    100% { top: 110%; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: brightness(0.6);
}
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 200, 83, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 83, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #00c853;
    margin-bottom: 24px;
    padding: 8px 20px;
    border: 1px solid rgba(0, 200, 83, 0.3);
    background: rgba(0, 200, 83, 0.05);
}
.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    max-width: 700px;
}
.hero h1 br + span,
.hero h1 {
    background: linear-gradient(135deg, #fff 0%, #00c853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: #b0b0b0;
    max-width: 600px;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
}
.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 200, 83, 0.15);
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #00c853;
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== SECTION COMMON ===== */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #00c853;
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    color: #fff;
}
.section-desc {
    max-width: 640px;
    margin: 0 auto;
    font-size: 17px;
}

/* ===== WHY SECTION ===== */
.why-section {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.feature-card {
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 200, 83, 0.1);
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(0, 200, 83, 0.4);
    background: rgba(0, 200, 83, 0.03);
    transform: translateY(-4px);
}
.feature-icon {
    margin-bottom: 24px;
}
.feature-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}
.feature-card p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== SERVICES ===== */
.services-section {
    padding: 120px 0;
    background: #000;
    position: relative;
    overflow: hidden;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.service-card {
    padding: 40px 30px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover,
.service-card.featured {
    border-color: rgba(0, 200, 83, 0.3);
}
.service-card.featured {
    background: rgba(0, 200, 83, 0.04);
}
.service-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00c853;
    margin-bottom: 20px;
}
.service-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}
.service-card > p {
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}
.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}
.service-features li {
    font-size: 13px;
    color: #999;
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}
.service-features li::before {
    content: "✓";
    color: #00c853;
    position: absolute;
    left: 0;
    font-size: 12px;
}
.service-link {
    color: #00c853;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
    margin-top: auto;
}
.service-link:hover {
    opacity: 0.7;
}

/* ===== INFRASTRUCTURE ===== */
.infra-section {
    padding: 120px 0;
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}
.infra-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.infra-text h2 {
    color: #fff;
}
.infra-text > p {
    margin-bottom: 40px;
}
.infra-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.infra-item {
    padding: 20px;
    border-left: 2px solid #00c853;
}
.infra-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #00c853;
    margin-bottom: 4px;
}
.infra-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}
.infra-visual {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
}
.infra-images {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.infra-photo-main {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border: 1px solid rgba(0, 200, 83, 0.15);
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}
.infra-photo-main:hover {
    filter: brightness(1);
}
.infra-photos-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.infra-photo-small {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border: 1px solid rgba(0, 200, 83, 0.15);
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}
.infra-photo-small:hover {
    filter: brightness(1);
}
.infra-map {
    width: 100%;
    max-width: 350px;
}
.nordic-map {
    width: 100%;
    height: auto;
}

/* ===== COMPARISON TABLE ===== */
.comparison-section {
    padding: 120px 0;
    background: #000;
}
.comparison-table {
    overflow-x: auto;
}
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.comparison-table th,
.comparison-table td {
    padding: 18px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.comparison-table thead th {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 2px solid rgba(0, 200, 83, 0.2);
}
.comparison-table thead th.highlight {
    color: #00c853;
}
.comparison-table td.row-label {
    font-weight: 600;
    color: #ddd;
    white-space: nowrap;
}
.comparison-table td {
    color: #888;
}
.comparison-table td.highlight {
    color: #00c853;
    font-weight: 500;
}
.comparison-table tbody tr:hover {
    background: rgba(0, 200, 83, 0.03);
}

/* ===== MODELS ===== */
.models-section {
    padding: 120px 0;
    background: #0a0a0a;
}
.models-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.filter-btn {
    padding: 10px 24px;
    background: transparent;
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: #00c853;
    color: #00c853;
    background: rgba(0, 200, 83, 0.05);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    min-height: 200px;
}
.model-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}
.model-card:hover {
    border-color: rgba(0, 200, 83, 0.3);
    transform: translateY(-2px);
}
.model-card .model-provider {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00c853;
    margin-bottom: 8px;
}
.model-card .model-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.model-card .model-desc {
    font-size: 12px;
    color: #777;
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.model-card .model-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.model-card .model-type {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(0, 200, 83, 0.1);
    color: #00c853;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.model-card .model-pricing {
    font-size: 12px;
    color: #888;
}
.model-card .model-pricing span {
    color: #00c853;
    font-weight: 600;
}

.models-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 200, 83, 0.1);
    border-top-color: #00c853;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.models-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 200, 83, 0.1);
}
.models-cta p {
    margin-bottom: 16px;
}
.api-endpoint {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(0, 200, 83, 0.05);
    border: 1px solid rgba(0, 200, 83, 0.2);
    color: #00c853;
    font-size: 14px;
    font-family: "Courier New", monospace;
    margin-bottom: 24px;
    word-break: break-all;
}

/* ===== ABOUT ===== */
.about-section {
    padding: 120px 0;
    background: #000;
}
.about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.about-image {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 1px solid rgba(0, 200, 83, 0.15);
    filter: brightness(0.85);
    transition: filter 0.3s ease;
}
.about-photo:hover {
    filter: brightness(1);
}
.about-photo-secondary {
    height: 200px;
}
.about-text h2 {
    color: #fff;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.value-card {
    padding: 28px;
    border: 1px solid rgba(0, 200, 83, 0.15);
    background: rgba(0, 200, 83, 0.02);
}
.value-card h4 {
    margin-bottom: 8px;
}
.value-card p {
    font-size: 14px;
    margin-bottom: 0;
}

/* ===== CTA ===== */
.cta-section {
    padding: 120px 0;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-image: none;
    border-top: 1px solid rgba(0, 200, 83, 0.1);
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
    position: relative;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 0;
}
.cta-section .container {
    position: relative;
    z-index: 1;
}
.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-content h2 {
    color: #fff;
    margin-bottom: 16px;
}
.cta-content p {
    margin-bottom: 32px;
    font-size: 17px;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 80px 0 40px;
    background: #0a0a0a;
    border-top: 1px solid rgba(0, 200, 83, 0.1);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer-logo {
    width: 150px;
    margin-bottom: 16px;
}
.footer-brand p {
    font-size: 14px;
    margin-bottom: 20px;
}
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a img {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s;
    filter: brightness(0) invert(0.5);
}
.footer-social a:hover img {
    filter: brightness(0) saturate(100%) invert(59%) sepia(94%) saturate(468%) hue-rotate(95deg) brightness(101%) contrast(106%);
    opacity: 1;
}
.footer-links h4 {
    margin-bottom: 16px;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: #888;
    font-size: 14px;
    transition: color 0.3s;
}
.footer-links ul li a:hover {
    color: #00c853;
}
.footer-contact h4 {
    margin-bottom: 16px;
}
.footer-contact p {
    font-size: 14px;
    margin-bottom: 12px;
}
.footer-phone {
    display: inline-block;
    color: #00c853;
    font-size: 14px;
    margin-bottom: 16px;
    transition: opacity 0.3s;
}
.footer-phone:hover {
    opacity: 0.7;
}
.footer-btn {
    padding: 10px 20px;
    font-size: 12px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-bottom p {
    font-size: 13px;
    color: #555;
    margin: 0;
}
.footer-bottom a {
    font-size: 13px;
    color: #555;
    transition: color 0.3s;
}
.footer-bottom a:hover {
    color: #00c853;
}

/* ===== IMPRINT ===== */
.imprint-section {
    padding: 80px 0 120px;
    background: #000;
}
.imprint-content {
    max-width: 780px;
}
.imprint-block {
    margin-bottom: 48px;
}
.imprint-block:last-child {
    margin-bottom: 0;
}
.imprint-block h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}
.imprint-block p {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}
.imprint-block p:last-child {
    margin-bottom: 0;
}
.imprint-block a {
    color: #00c853;
    text-decoration: none;
    transition: color 0.3s;
}
.imprint-block a:hover {
    color: #69f0ae;
}
.imprint-block strong {
    color: rgba(255, 255, 255, 0.9);
}
.imprint-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.imprint-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.imprint-list li:first-child {
    padding-top: 0;
}
.imprint-list li:last-child {
    border-bottom: none;
}
.imprint-list li strong {
    display: block;
    font-size: 16px;
    color: #fff;
    margin-bottom: 4px;
}
.imprint-list li span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== EMAIL MODAL ===== */
.email-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}
.email-modal-content {
    background-color: #111;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 200, 83, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}
.email-modal-header {
    background: linear-gradient(135deg, #00c853, #64e7c0);
    color: #000;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.email-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #000 !important;
    text-transform: none;
}
.email-modal-close {
    color: #000;
    font-size: 28px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.email-modal-close:hover {
    opacity: 0.6;
}
.email-modal-body {
    padding: 30px;
}
.contact-form .form-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
    font-size: 14px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 15px;
    font-family: "Montserrat", sans-serif;
    transition: border-color 0.3s;
    background: #1a1a1a;
    color: #e0e0e0;
    box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00c853;
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.submit-btn {
    background: #00c853;
    color: #000;
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}
.submit-btn:hover {
    background: #00e676;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}
.form-message.success {
    background-color: rgba(0, 200, 83, 0.1);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
}
.form-message.error {
    background-color: rgba(220, 38, 38, 0.1);
    color: #ef4444;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}
.thank-you-modal-content {
    background: #111;
    color: #e0e0e0;
    margin: 10% auto;
    padding: 40px 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(0, 200, 83, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}
.thank-you-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
}
.thank-you-modal-content h2 {
    color: #fff;
    margin-bottom: 16px;
    text-transform: none;
}
.thank-you-modal-content p {
    margin-bottom: 24px;
}
.thank-you-modal-content strong {
    color: #00c853;
}
.thank-you-btn {
    background: #00c853;
    color: #000;
    border: none;
    padding: 14px 30px;
    font-size: 15px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: background 0.3s;
}
.thank-you-btn:hover {
    background: #00e676;
}
body.modal-open {
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */
@media screen and (max-width: 1279px) {
    h1 { font-size: 48px; }
    h2 { font-size: 34px; }
    .hero h1 { font-size: 52px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .models-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 40px; }
}

@media screen and (max-width: 1023px) {
    .main-nav { display: none; }
    .menubar { display: block; }
    .mm-menu.mm-offcanvas { z-index: 999; }
    .container { padding: 0 30px; }
    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 42px; }
    .hero-sub { font-size: 16px; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .infra-layout { grid-template-columns: 1fr; gap: 40px; }
    .infra-visual { order: -1; }
    .about-layout { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .why-section,
    .services-section,
    .infra-section,
    .comparison-section,
    .models-section,
    .about-section,
    .cta-section { padding: 80px 0; }
}

@media screen and (max-width: 767px) {
    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 15px; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .hero-actions a { text-align: center; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .features-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .models-grid { grid-template-columns: 1fr; }
    .infra-highlights { grid-template-columns: 1fr; }
    .infra-photo-main { height: 200px; }
    .infra-photo-small { height: 120px; }
    .about-photo { height: 200px; }
    .about-photo-secondary { height: 160px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-actions { flex-direction: column; }
    .cta-actions a { text-align: center; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .comparison-table th,
    .comparison-table td { padding: 12px 14px; font-size: 13px; }
    .models-filters { flex-wrap: wrap; }
    .stat-number { font-size: 28px; }

    .why-section,
    .services-section,
    .infra-section,
    .comparison-section,
    .models-section,
    .about-section,
    .cta-section { padding: 60px 0; }
}

@media screen and (max-width: 600px) {
    .container { padding: 0 16px; }
    .hero { padding: 100px 0 40px; min-height: auto; }
    .hero h1 { font-size: 28px; }
    .btn-primary, .btn-outline { padding: 12px 24px; font-size: 13px; }
    .logo { width: 98px; }
    .site-header.sticky .logo { width: 84px; }
    .page-hero { padding: 100px 0 40px; }
    .page-hero h1 { font-size: 28px; }
}

/* ===== DROPDOWN NAVIGATION ===== */
.main-nav ul > li {
    position: relative;
}
.main-nav ul > li.has-dropdown > a {
    position: relative;
    padding-right: 16px;
}
.main-nav ul > li.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    margin-left: 6px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}
.main-nav ul > li.has-dropdown:hover > a::after {
    transform: rotate(180deg);
}
.main-nav ul > li .dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid rgba(0, 200, 83, 0.15);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.main-nav ul > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.main-nav ul > li .dropdown li {
    display: block;
}
.main-nav ul > li .dropdown li a {
    display: block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #b0b0b0 !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-transform: none;
}
.main-nav ul > li .dropdown li a:hover {
    color: #00c853 !important;
    background: rgba(0, 200, 83, 0.06);
    padding-left: 28px;
}
/* Active nav state for current page */
.main-nav ul > li.active > a {
    color: #00c853;
}

/* ===== PAGE HERO (sub-pages) ===== */
.page-hero {
    padding: 160px 0 80px;
    background: #000;
    position: relative;
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 200, 83, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 200, 83, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.page-hero h1 {
    font-size: 52px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #00c853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.page-hero .hero-sub {
    font-size: 18px;
    line-height: 1.7;
    color: #b0b0b0;
    max-width: 600px;
    margin-bottom: 0;
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail-section {
    padding: 100px 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.service-detail-section.alt-bg {
    background: #0a0a0a;
}
.service-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}
.service-detail-layout.reverse {
    grid-template-columns: 0.8fr 1.2fr;
    direction: rtl;
}
.service-detail-layout.reverse > * {
    direction: ltr;
}
.service-detail-text .service-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00c853;
    margin-bottom: 16px;
    display: block;
}
.service-detail-text h2 {
    color: #fff;
    font-size: 36px;
    margin-bottom: 16px;
}
.service-detail-text > p {
    font-size: 16px;
    margin-bottom: 28px;
}
.service-features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}
.service-features-list li {
    font-size: 14px;
    color: #b0b0b0;
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}
.service-features-list li::before {
    content: "✓";
    color: #00c853;
    position: absolute;
    left: 0;
    font-size: 14px;
    font-weight: 700;
}
.service-detail-actions {
    display: flex;
    gap: 16px;
}
.service-detail-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.highlight-card {
    padding: 28px;
    background: rgba(0, 200, 83, 0.03);
    border: 1px solid rgba(0, 200, 83, 0.12);
    text-align: center;
    transition: all 0.3s ease;
}
.highlight-card:hover {
    border-color: rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}
.highlight-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #00c853;
    margin-bottom: 6px;
}
.highlight-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== API SECTION ===== */
.api-section {
    padding: 100px 0;
    background: #000;
}
.api-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.api-feature {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 200, 83, 0.1);
    transition: all 0.3s ease;
}
.api-feature:hover {
    border-color: rgba(0, 200, 83, 0.4);
    transform: translateY(-2px);
}
.api-feature h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}
.api-feature p {
    font-size: 14px;
    line-height: 1.6;
}

/* ===== LEADERSHIP QUOTES ===== */
.quotes-section {
    padding: 100px 0;
    background: #050505;
}
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.quote-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 200, 83, 0.12);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}
.quote-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: brightness(0.5);
    z-index: 0;
    transition: opacity 0.4s ease;
}
.quote-card:hover .quote-bg {
    opacity: 0.25;
}
.quote-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.6) 0%, rgba(5, 5, 5, 0.95) 100%);
}
.quote-icon {
    margin-bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 83, 0.1);
    border-radius: 10px;
}
.quote-card blockquote {
    font-size: 18px;
    line-height: 1.7;
    color: #e0e0e0;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 32px;
    max-width: 480px;
}
.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.quote-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00c853;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}
.quote-author-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.quote-author-info strong {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.quote-author-info span {
    color: #888;
    font-size: 13px;
    margin-top: 2px;
}

/* ===== SUSTAINABILITY SECTION ===== */
.sustainability-section {
    padding: 100px 0;
    background: #0a0a0a;
}
.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 100px 0;
    background: #000;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

/* ===== MAP SECTION ===== */
.map-section {
    padding: 100px 0;
    background: #000;
}
.map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.map-visual {
    max-width: 350px;
    margin: 0 auto;
}
.locations-detail {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.location-card {
    padding: 28px;
    background: rgba(0, 200, 83, 0.03);
    border: 1px solid rgba(0, 200, 83, 0.12);
}
.location-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 16px;
}
.location-specs {
    list-style: none;
    padding: 0;
}
.location-specs li {
    font-size: 14px;
    color: #b0b0b0;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.location-specs li:last-child {
    border-bottom: none;
}
.location-specs strong {
    color: #00c853;
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

/* ===== SPECS SECTION ===== */
.specs-section {
    padding: 100px 0;
    background: #0a0a0a;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== SUB-PAGE RESPONSIVE ===== */
@media screen and (max-width: 1279px) {
    .page-hero h1 { font-size: 44px; }
    .api-grid { grid-template-columns: repeat(2, 1fr); }
    .sustainability-grid { grid-template-columns: repeat(2, 1fr); }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail-highlights { grid-template-columns: 1fr 1fr; }
}

@media screen and (max-width: 1023px) {
    /* Hide desktop dropdowns, mmenu handles mobile */
    .main-nav ul > li .dropdown { display: none !important; }
    .main-nav ul > li.has-dropdown > a::after { display: none; }
    .page-hero { padding: 120px 0 60px; }
    .page-hero h1 { font-size: 38px; }
    .service-detail-layout,
    .service-detail-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
    .map-layout { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    .quotes-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}

@media screen and (max-width: 767px) {
    .page-hero h1 { font-size: 30px; }
    .api-grid { grid-template-columns: 1fr; }
    .sustainability-grid { grid-template-columns: 1fr; }
    .specs-grid { grid-template-columns: 1fr; }
    .service-detail-actions { flex-direction: column; }
    .service-detail-actions a { text-align: center; }
    .service-detail-highlights { grid-template-columns: 1fr; }
    .quote-content { padding: 32px 24px; }
    .quote-card blockquote { font-size: 16px; }
    .quote-card { min-height: 400px; }
}
