:root {
    --accent: #4da3ff;

    --bg: #fdfdfd;
    --text: #222;
    --dark-bg: #0d0d0f;
    --light-text: #f5f5f5;
    --glass-bg: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(0, 0, 0, 0.08);
    --header-link: #f5f5f5;
    --header-link-scrolled: #000;
}

[data-theme="dark"] {
    --bg: #050509;
    --text: #f5f5f5;
    --dark-bg: #020206;
    --light-text: #f5f5f5;
    --glass-bg: rgba(0, 0, 0, 0.55);
    --glass-border: rgba(255, 255, 255, 0.18);
    --header-link: #f5f5f5;
    --header-link-scrolled: #f5f5f5;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 20px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: 0.3s ease;
    z-index: 1000;
}

header.scrolled {
    background: white;
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 10%;
}

.logo {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

header.scrolled .logo {
    color: var(--header-link-scrolled);
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--light-text);
    transition: color 0.3s ease;
}

header.scrolled nav a {
    color: var(--header-link-scrolled);
}

.theme-toggle {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--header-link);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

header.scrolled .theme-toggle {
    color: var(--header-link-scrolled);
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.hamburger,
.close-menu {
    border: 0;
    padding: 0;
    background: transparent;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    transition: 0.3s ease;
}

header.scrolled .hamburger span {
    background: var(--header-link-scrolled);
}

.close-menu {
    display: none;
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 65%;
        background: white;
        backdrop-filter: blur(20px);
        padding: 100px 30px;
        display: flex;
        flex-direction: column;
        gap: 25px;
        transition: 0.3s ease;
    }

    nav.open {
        right: 0;
    }

    nav.open a {
        color: black;
    }

    .hamburger {
        display: flex;
    }

    header.menu-open .hamburger {
        display: none;
    }

    header.menu-open .close-menu {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 1;
        color: black;
        font-size: 1.5rem;
        cursor: pointer;
        line-height: 1;
    }
}

video {
    filter: grayscale(100%);
    transition: transform 4s ease, opacity 0.4s ease;
}

.hero {
    height: 100vh;
    background: var(--dark-bg);
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 10%;
    position: relative;
    overflow: hidden;
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 800px;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero a {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
}

section {
    padding: 80px 10%;
    max-width: 1200px;
    margin: auto;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--text);
}

h3 {
    margin-top: 0;
    color: var(--accent);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-stagger.in-view>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.in-view>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger.in-view>*:nth-child(2) {
    transition-delay: 0.15s;
}

.reveal-stagger.in-view>*:nth-child(3) {
    transition-delay: 0.25s;
}

.reveal-stagger.in-view>*:nth-child(4) {
    transition-delay: 0.35s;
}

.video-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.video-card {
    position: relative;
    height: 580px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.video-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin: 100px 20px auto 20px;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    color: var(--light-text);
}

.video-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.video-card:hover video {
    transform: scale(1.2);
    opacity: 0.65;
}

.video-card:hover .video-card-content {
    transform: translateY(-20px);
}

.video-section-wrapper {
    position: relative;
    overflow: hidden;
}

.video-section-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.video-section-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
}

.video-section-content {
    position: relative;
    z-index: 1;
    padding: 80px 10%;
    max-width: 1200px;
    margin: auto;
}

.solution-intro {
    font-size: 1.2rem;
    color: #555;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.two-col ul {
    padding-left: 20px;
}

.quote {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 120px 10%;
    text-align: center;
    font-size: 1.4rem;
    font-style: italic;
}

.quote>div {
    font-style: normal;
}

.quote span {
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.7;
}

footer {
    text-align: center;
    padding: 30px 10%;
    font-size: 0.9rem;
    background: #f5f5f5;
    color: #555;
}

[data-theme="dark"] footer {
    background: #0f0f12;
    color: #aaa;
}