:root {
    --bg-dark: #0a0a0b;
    --bg-darker: #050505;
    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    
    /* Clay-like variables */
    --clay-base: #18181b;
    --clay-highlight: rgba(255, 255, 255, 0.08);
    --clay-shadow: rgba(0, 0, 0, 0.9);
    --clay-inset-light: rgba(255, 255, 255, 0.04);
    --clay-inset-dark: rgba(0, 0, 0, 0.6);
    
    /* Glass variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;

}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Particle Background */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.6;
}

/* Typography */
h1, h2 {
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

a:hover::after {
    width: 100%;
}

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

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 3rem;
    background: rgba(10, 10, 11, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
    50% { box-shadow: 0 0 30px var(--accent-glow), 0 0 40px rgba(139, 92, 246, 0.3); }
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border-radius: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--glass-bg);
    padding: 0.6rem 1.2rem 0.6rem 2rem;
    border-radius: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--clay-inset-light);
}



/* Clay-like Chunky Buttons */
.btn {
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;

    border: none;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--text-main), #e4e4e7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.chunky-btn {
    box-shadow: 
        0px 4px 0px rgba(161, 161, 170, 0.4),
        0px 6px 10px rgba(0, 0, 0, 0.4),
        inset 0px -2px 5px rgba(0, 0, 0, 0.1),
        inset 0px 2px 5px rgba(255, 255, 255, 0.8);
}

.chunky-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0px 0px 0px rgba(161, 161, 170, 0.4),
        0px 2px 5px rgba(0, 0, 0, 0.4),
        inset 0px -1px 2px rgba(0, 0, 0, 0.1);
}



/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 12rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
}

.chunky-badge {
    background: var(--glass-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--clay-inset-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.title-line {
    display: block;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    color: var(--text-muted);
    max-width: 600px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { transform: translateY(-20px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* 3D Gallery Section */
.gallery-container {
    position: relative;
    height: 300vh;
    width: 100%;
}

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

.sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
}

/* Clay Card Styling */
.clay-card {
    position: absolute;
    width: 160px;
    height: 220px;
    left: -80px;
    top: -110px;
    background: var(--clay-base);
    border-radius: 16px;
    padding: 8px;
    transform-style: preserve-3d;
    backface-visibility: visible;
    border: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow: 
        8px 8px 16px var(--clay-shadow),
        -4px -4px 10px rgba(255, 255, 255, 0.02),
        inset 3px 3px 6px var(--clay-inset-light),
        inset -3px -3px 6px var(--clay-inset-dark);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.clay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    filter: grayscale(80%) brightness(0.6);
    transition: all 0.4s ease;
    box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.clay-card.active-card {
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
}

.clay-card.active-card img {
    filter: grayscale(0%) brightness(1);
}

/* Floating Text Side Panels */
.floating-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 350px;
    z-index: 10;
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.floating-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
}

.newsletter-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
}

.newsletter-content {
    text-align: center;
    background: var(--glass-bg);
    padding: 3.5rem 3rem;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 var(--clay-inset-light);
}

.newsletter-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-main), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-content > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

/* Email Form */
.email-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.email-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.email-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.3s ease;
}

.email-input-wrapper:focus-within .email-icon {
    color: var(--accent);
}

.email-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    background: var(--clay-base);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
        inset 3px 3px 6px var(--clay-inset-dark),
        inset -3px -3px 6px rgba(255, 255, 255, 0.02);
}

.email-form input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.email-form input[type="email"]:focus {
    border-color: var(--accent-glow);
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.15),
        inset 3px 3px 6px var(--clay-inset-dark),
        inset -3px -3px 6px rgba(255, 255, 255, 0.02);
}

.email-form input[type="email"]:valid {
    border-color: rgba(74, 222, 128, 0.3);
}

.submit-btn {
    padding: 1rem 2rem;
    border-radius: 16px;
    font-size: 1rem;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    border: none;
    box-shadow: 
        0px 4px 0px #4338ca,
        0px 6px 10px rgba(0, 0, 0, 0.4),
        inset 0px 2px 5px rgba(255, 255, 255, 0.2);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0px 6px 0px #4338ca,
        0px 10px 20px rgba(99, 102, 241, 0.3),
        inset 0px 2px 5px rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(4px);
    box-shadow: 
        0px 0px 0px #4338ca,
        0px 2px 5px rgba(0, 0, 0, 0.4);
}

.submit-btn svg {
    transition: transform 0.3s ease;
}

.submit-btn:hover svg {
    transform: translateX(3px);
}

/* Form Message */
.form-message {
    margin-top: 1.2rem;
    min-height: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.form-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #4ade80;
}

.form-message.error {
    color: #f87171;
}

/* Privacy Note */
.privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.privacy-note svg {
    color: var(--accent);
}

/* Responsive Newsletter */
@media (max-width: 768px) {
    .newsletter-content {
        padding: 2.5rem 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .email-form {
        flex-direction: column;
        align-items: stretch;
    }

    .email-input-wrapper {
        min-width: 100%;
        max-width: 100%;
    }

    .submit-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Hero CTA Text */
.hero-cta-text {
    margin-top: 2rem;
}

.hero-cta-text p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
