:root {
    --bg-dark: #0F1113;
    --primary-teal: #14B1A1;
    --accent-crimson: #9E0E18;
    --text-white: #FFFFFF;
    --text-silver: #C9CFCD;
    --text-charcoal: #2F3437;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-silver);
    margin-bottom: 1.5rem;
}

.highlight {
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    background: rgba(15, 17, 19, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.main-nav a {
    color: var(--text-white);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-teal);
}

.nav-btn {
    background: transparent;
    color: var(--primary-teal);
    border: 1px solid var(--primary-teal);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary-teal);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(20, 177, 161, 0.4);
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary-teal), var(--accent-crimson));
    color: var(--text-white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 20px rgba(158, 14, 24, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 177, 161, 0.4), 0 8px 25px rgba(158, 14, 24, 0.4);
}

/* Scroll Animation Section */
.scroll-container {
    height: 400vh;
    position: relative;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlays */
.text-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
}

.content-wrapper {
    width: 100%;
    max-width: 1200px;
}

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

.content-wrapper.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.content-wrapper.flex-between.reverse {
    flex-direction: row-reverse;
}

.side {
    flex: 1;
    background: rgba(47, 52, 55, 0.2);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Glassmorphism for specific elements */
#overlay-0 .content-wrapper {
    background: radial-gradient(circle, rgba(15,17,19,0.7) 0%, rgba(15,17,19,0) 70%);
    padding: 4rem 2rem;
    border-radius: 50%;
}

/* Features Section */
.features-grid {
    background-color: var(--bg-dark);
    padding: 8rem 0;
    position: relative;
    z-index: 20;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.grid-card {
    background: linear-gradient(145deg, rgba(47, 52, 55, 0.4) 0%, rgba(15, 17, 19, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(158, 14, 24, 0.1);
    border-color: rgba(158, 14, 24, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-teal), var(--accent-crimson));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.grid-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.grid-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .content-wrapper.flex-between {
        flex-direction: column;
        gap: 2rem;
    }
    
    .content-wrapper.flex-between.reverse {
        flex-direction: column;
    }
    
    .side {
        width: 100%;
        padding: 2rem;
    }
    
    .main-nav {
        display: none;
    }
}
