:root {
    --bg-color: #050505;
    --accent-color: #ffffff;
    --text-color: #fdfdfd;
    --secondary-color: #909090; /* Brighter grey for better legibility */
    --gradient-primary: linear-gradient(135deg, #a0a0a0, #ffffff);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(20px);
    --content-width: 1200px;
    --primary-font: 'Inter', sans-serif;
    --heading-font: 'Outfit', sans-serif;
}

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

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

#canvas-webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    outline: none;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-in-out;
}

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

.loader-title {
    font-family: var(--heading-font);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
}

.loader-bar-container {
    width: 240px;
    height: 4px;
    background-color: var(--glass-bg);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

#loader-progress {
    width: 0%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

/* Typography & General */
h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

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

.eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

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

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

.grid.end {
    grid-template-columns: 1.5fr 1fr; /* Shift content to right */
}

.center {
    display: flex;
    justify-content: center;
}

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

/* Sections */
.section {
    min-height: 100vh;
    padding: 140px 0;
    display: flex;
    align-items: center;
    opacity: 1; /* Animated via GSAP */
}

/* Hero Section */
.hero {
    height: 100vh;
}

.hero-content {
    max-width: 600px;
}

#hero-title {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 2rem;
}

#hero-desc {
    font-size: 1.25rem;
    color: grey;
    margin-bottom: 3rem;
    max-width: 460px;
}

.cta-group {
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    background-color: var(--glass-bg);
}

.btn-secondary:hover {
    background-color: var(--glass-border);
}

/* Content Boxes */
.content-box {
    padding: 60px;
    border-radius: 32px;
}

.content-box.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
}

.content-box.wide {
    max-width: 800px;
    text-align: center;
}

.content-box h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.content-box p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
}

/* Features list */
.features {
    list-style: none;
}

.features li {
    padding: 24px 0;
    border-top: 1px solid var(--glass-border);
    font-size: 1.25rem;
    font-weight: 500;
}

.features li span {
    color: var(--secondary-color);
    margin-right: 20px;
    font-size: 0.9rem;
}

/* Stats */
.progress-stats {
    margin-top: 40px;
}

.stat {
    margin-bottom: 30px;
}

.stat label {
    display: block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.bar {
    width: 100%;
    height: 4px;
    background-color: var(--glass-bg);
    border-radius: 2px;
}

.fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Contact Form */
.contact-form {
    display: grid;
    gap: 20px;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

input, textarea {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 12px;
    color: white;
    font-family: var(--primary-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

.logo {
    font-family: var(--heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: white;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.menu-btn {
    display: none; /* Mobile only */
}

/* Scroll Hint */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--glass-border);
    border-radius: 100px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 8px;
    background-color: var(--accent-color);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Footer */
.footer {
    padding-bottom: 60px;
    color: var(--secondary-color);
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
}

.socials a {
    color: var(--secondary-color);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--bg-color);
}

/* Scroll Content Padding Fix for SmoothScroll-like feel */
#smooth-content {
    will-change: transform;
}

/* Themes */
.theme-dark {
    --section-text: #fdfdfd;
    --section-secondary: #9a9a9a;
}

.theme-light {
    --section-text: #050505;
    --section-secondary: #555555;
}

.section {
    color: var(--section-text);
}

.theme-light .content-box.glass {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(30px);
}

.theme-light .eyebrow {
    color: var(--section-secondary);
}

.theme-light h2 {
    color: var(--section-text);
}

.theme-light p {
    color: #333;
}

.theme-light .features li {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.theme-light input, .theme-light textarea {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #050505;
}

/* Scroll Hint Visibility */
.scroll-hint {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    transform: translateY(20px);
}

.scroll-hint.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Background Transition Layer */
#bg-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transition: background-color 0.8s ease;
}

/* Animations */
.section-content {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-content.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky Navbar Theme Change */
.navbar.light-theme {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    #hero-title { font-size: 4rem; }
    .grid { gap: 40px; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .grid { grid-template-columns: 1fr; }
    .grid.end { grid-template-columns: 1fr; }
    .content-box { padding: 40px 30px; }
    #hero-title { font-size: 3rem; }
}
