:root {
    --bg-color: #1a0f00;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #ff8800;
    --accent-glow: rgba(255, 136, 0, 0.4);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.btn-primary {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle dark gradient to ensure white text is readable, but mostly transparent to see the video */
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Content */
.content-wrapper {
    position: relative;
    z-index: 1;
}

section {
    min-height: 100vh;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section (Image Reference Layout) */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    padding: 0 5%;
    position: relative;
    padding-top: 5vh;
}

.top-right-nav {
    position: absolute;
    top: 15vh;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

.top-right-nav .line {
    width: 40px;
    height: 1px;
    background: var(--text-secondary);
}

.hero-left {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-heading {
    font-family: var(--font-heading);
    font-size: 4.5vw;
    line-height: 1.1;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.tech-paragraph {
    font-size: 0.85rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 450px;
}

.icon-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: all 0.3s;
}

.icon-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.glass-card {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.25rem;
    display: flex;
    gap: 1.5rem;
    max-width: 420px;
    backdrop-filter: blur(10px);
}

.card-img-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
}

.card-info h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.card-info p {
    font-size: 0.7rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.view-project-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    width: fit-content;
    margin-top: 0.5rem;
    transition: all 0.3s;
}

.view-project-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Right Side */
.hero-right {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.tech-specs {
    font-family: var(--font-mono);
    margin-top: auto;
    width: 350px;
    margin-bottom: 2rem;
}

.specs-title {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.specs-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.spec-label {
    color: var(--text-secondary);
}

.spec-value {
    color: var(--text-primary);
}

.bottom-tags {
    display: flex;
    gap: 0.5rem;
    font-family: var(--font-mono);
}

.tag {
    padding: 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.tag.active {
    background: var(--text-primary);
    color: #000;
}

/* Services */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3vw;
    margin-bottom: 1rem;
}

.section-header .line {
    width: 60px;
    height: 2px;
    background: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 0, 51, 0.3);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.85rem;
}

/* How It Works */
.how-it-works {
    padding-top: 10vh;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    border-top: 2px solid rgba(255, 136, 0, 0.3);
    padding-top: 1.5rem;
    position: relative;
}

.step-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.step h4 {
    font-family: var(--font-main);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Reach Stats */
.reach {
    align-items: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 5vw;
    font-weight: 700;
    background: linear-gradient(to right, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    min-height: auto;
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

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

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-mono);
}