:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --section-gap: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Loader --- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 20px;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: #222;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.1s linear;
}

/* --- Canvas Background --- */
canvas#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

/* --- Navigation --- */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links .btn-small {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.nav-links .btn-small:hover {
    background: #e0e0e0;
    color: #000;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Hero text stays fixed while user scrolls away initially */
    position: sticky; 
    top: 0;
}

.content-wrapper {
    z-index: 10;
    padding: 0 20px;
}

.text-center { text-align: center; }

.eyebrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary, .btn-whatsapp {
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #fff;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; top: 6px; }
    100% { opacity: 0; top: 20px; }
}

/* --- Scrollytelling Spacer --- */
/* This element creates the scroll distance needed to play the animation fully */
.scroll-spacer {
    height: 350vh; /* Adjust length of animation scroll */
    pointer-events: none;
}

/* --- Content Sections --- */
.content-section {
    padding: var(--section-gap) 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, var(--bg-color) 20%);
    z-index: 20; /* Sit above the fixed hero */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-tag {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
}

/* --- Glass Cards --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

/* --- About Grid --- */
.about-text .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.stats-list {
    display: flex;
    gap: 50px;
    list-style: none;
    margin-top: 3rem;
}

.stats-list li strong {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.stats-list li span {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    group: relative;
    cursor: pointer;
}

.project-image-placeholder {
    height: 300px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image-placeholder {
    transform: scale(1.02);
}

.gradient-1 { background: linear-gradient(45deg, #FF6B6B, #556270); }
.gradient-2 { background: linear-gradient(45deg, #4ECDC4, #556270); }
.gradient-3 { background: linear-gradient(45deg, #C7F464, #556270); }

.project-info h3 { font-family: var(--font-heading); font-size: 1.5rem; }
.project-info p { color: var(--text-secondary); margin-top: 0.5rem; }

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.blog-card .read-more {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 3px;
}

/* --- Contact & Footer --- */
.contact-wrapper {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 3rem;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.site-footer {
    text-align: center;
    padding: 3rem 0;
    color: #666;
    font-size: 0.9rem;
    background: #000;
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    .nav-links {
        display: none; /* Mobile menu implementation omitted for brevity */
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .stats-list {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}
