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

:root {
    /* Nature Theme Color Palette */
    --bg-dark: #0a0e27;
    --bg-darker: #060913;
    --surface-dark: #141829;
    --surface-elevated: #1a1f3a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;

    /* Nature-inspired colors */
    --nature-green: #10b981;
    --nature-emerald: #059669;
    --nature-lime: #84cc16;
    --nature-sky: #0ea5e9;
    --nature-amber: #f59e0b;
    --nature-brown: #92400e;
    --glow-green: rgba(16, 185, 129, 0.5);
    --glow-emerald: rgba(5, 150, 105, 0.5);
    --glow-sky: rgba(14, 165, 233, 0.5);
    --gradient-nature: linear-gradient(135deg, var(--nature-lime) 0%, var(--nature-green) 50%, var(--nature-emerald) 100%);

    /* Design Tokens */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.6rem + 2vw, 2.5rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: radial-gradient(ellipse at top, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated background pattern - organic shapes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--glow-green) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--glow-emerald) 0%, transparent 50%),
        radial-gradient(circle at 50% 90%, var(--glow-sky) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: organicPulse 12s ease-in-out infinite;
}

@keyframes organicPulse {

    0%,
    100% {
        opacity: 0.25;
        transform: scale(1) rotate(0deg);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.1) rotate(5deg);
    }
}

/* Organic pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(5, 150, 105, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Organic grid pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* Fixed Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(20, 24, 41, 0.7);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.2rem 2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.1);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--nature-green);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-shadow: 0 0 20px var(--glow-green);
}

.nav-name::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-nature);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--glow-green);
}

.nav-name:hover {
    color: var(--nature-lime);
    text-shadow: 0 0 30px var(--glow-green);
    transform: translateY(-1px);
}

.nav-name:hover::after {
    width: 100%;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: '→';
    color: var(--nature-green);
    opacity: 0.5;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-md);
}

.breadcrumb a:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--nature-green);
    text-shadow: 0 0 10px var(--glow-green);
}

.breadcrumb span {
    color: var(--text-primary);
    opacity: 0.7;
    padding: 0.3rem 0.8rem;
}

/* Hero Section */
.hero {
    margin-top: 6rem;
    padding: 3rem 2rem 5rem;
    text-align: center;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: var(--gradient-nature);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 8s ease-in-out infinite;
    background-size: 200% 200%;
    filter: drop-shadow(0 0 40px var(--glow-green));
}

@keyframes titleShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Hero SVG - Organic Nature Forms */
.hero-svg {
    width: 100%;
    max-width: 600px;
    height: 300px;
    margin: 0 auto 2.5rem;
    filter: drop-shadow(0 0 30px var(--glow-green));
}

.hero-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    background: rgba(20, 24, 41, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 40px var(--glow-green),
        inset 0 0 0 1px rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-description p {
    margin: 0;
}

/* Section Styling */
.content-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
    position: relative;
    z-index: 1;
}

/* 3D Models Grid */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.model-card {
    background: rgba(20, 24, 41, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px var(--glow-green),
        inset 0 0 0 1px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.model-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-nature);
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.model-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.8),
        0 0 60px var(--glow-emerald);
}

.model-card:hover::before {
    opacity: 0.8;
}

.model-preview {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(132, 204, 22, 0.05));
    position: relative;
}

.model-preview model-viewer {
    width: 100%;
    height: 100%;
    --progress-bar-color: var(--nature-green);
}

.model-info {
    padding: var(--space-xl);
    position: relative;
}

.model-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--nature-green);
    margin-bottom: var(--space-sm);
    text-shadow: 0 0 20px var(--glow-green);
}

.model-description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.model-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--nature-green);
    text-decoration: none;
    font-size: var(--text-base);
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.model-link::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.model-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-nature);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.model-link:hover {
    color: white;
    border-color: transparent;
    box-shadow: 0 0 30px var(--glow-green);
    text-shadow: 0 0 10px white;
}

.model-link:hover::before {
    opacity: 1;
}

.model-link:hover::after {
    transform: translateX(4px);
}

.model-link span {
    position: relative;
    z-index: 1;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nature-emerald);
    text-decoration: none;
    font-size: var(--text-lg);
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    background: rgba(5, 150, 105, 0.1);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(5, 150, 105, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: var(--space-2xl);
}

.back-link::before {
    content: '←';
}

.back-link:hover {
    background: rgba(5, 150, 105, 0.2);
    transform: translateX(-4px);
    box-shadow: 0 0 20px rgba(5, 150, 105, 0.3);
}

/* Footer Styling */
.footer {
    position: relative;
    z-index: 1;
    margin-top: var(--space-4xl);
    padding: var(--space-2xl) var(--space-xl);
    background: rgba(20, 24, 41, 0.6);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-nature);
    opacity: 0.6;
    animation: footerBorderPulse 3s ease-in-out infinite;
}

@keyframes footerBorderPulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.copyright {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.copyright a {
    color: var(--nature-green);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.copyright a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copyright a:hover {
    color: var(--nature-lime);
    text-shadow: 0 0 15px var(--glow-green);
}

.copyright a:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: var(--space-md);
        align-items: flex-start;
    }

    .breadcrumb {
        flex-wrap: wrap;
    }

    .hero {
        padding: var(--space-3xl) var(--space-md) var(--space-4xl);
    }

    .hero-svg {
        height: 200px;
    }

    .hero-description {
        padding: var(--space-lg);
    }

    .content-section {
        padding: var(--space-3xl) var(--space-md);
    }

    .models-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .footer {
        padding: var(--space-xl) var(--space-md);
    }

    .copyright {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: var(--space-md);
    }

    .hero {
        padding: var(--space-2xl) var(--space-md) var(--space-3xl);
    }

    .model-preview {
        height: 250px;
    }
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
a:focus,
a:focus-visible {
    outline: 3px solid var(--nature-green);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}
