/* ===============================================
   AMBI PRESENTATION WEBSITE - MODERN DARK THEME
   =============================================== */

/* === CSS VARIABLES === */
:root {
    --primary-color: #4CAF50;
    --primary-hover: #66BB6A;
    --secondary-color: #2C2C2C;
    --bg-dark: #0A0A0A;
    --bg-card: #1A1A1A;
    --bg-card-hover: #222222;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --gradient-overlay: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
    position: relative;
}

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%);
    animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-logo img {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(76, 175, 80, 0.3));
    transition: all 0.3s ease;
}

.hero-logo img:hover {
    filter: drop-shadow(0 6px 16px rgba(76, 175, 80, 0.5));
    transform: scale(1.05);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(-45deg);
}

/* === SECTION HEADERS === */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* === FEATURES SECTION === */
.features {
    background: var(--bg-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* === CATEGORIES SECTION === */
.categories {
    background: var(--bg-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-card > *:not(.category-image) {
    padding: 0 2rem;
}

.category-card .category-header {
    padding-top: 1.5rem;
}

.category-card .category-samples {
    padding-bottom: 2rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.track-count {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.badge {
    background: var(--secondary-color);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

.category-samples {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.sample-track {
    padding: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

.sample-track::before {
    content: "♪ ";
    color: var(--primary-color);
}

/* === ANIMATIONS SECTION === */
.animations {
    background: var(--bg-card);
}

.animations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.animation-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-dark);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.animation-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.animation-preview {
    width: 100%;
    height: 150px;
    border-radius: 12px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

/* Animation Preview Styles */
.rain-preview {
    background: linear-gradient(135deg, #1a2a3a 0%, #0a1a2a 100%);
    animation: rain-animation 2s infinite linear;
}

.snow-preview {
    background: linear-gradient(135deg, #2a3a4a 0%, #1a2a3a 100%);
    animation: snow-animation 3s infinite ease-in-out;
}

.dust-preview {
    background: linear-gradient(135deg, #3a2a1a 0%, #2a1a0a 100%);
    animation: dust-animation 4s infinite ease-in-out;
}

.fireflies-preview {
    background: linear-gradient(135deg, #1a2a1a 0%, #0a1a0a 100%);
    animation: fireflies-animation 2s infinite ease-in-out;
}

.bubbles-preview {
    background: linear-gradient(135deg, #1a2a3a 0%, #0a1a2a 100%);
    animation: bubbles-animation 3s infinite ease-in-out;
}

.leaves-preview {
    background: linear-gradient(135deg, #3a2a1a 0%, #2a1a0a 100%);
    animation: leaves-animation 4s infinite ease-in-out;
}

.sparkles-preview {
    background: linear-gradient(135deg, #2a1a3a 0%, #1a0a2a 100%);
    animation: sparkles-animation 1.5s infinite ease-in-out;
}

@keyframes rain-animation {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

@keyframes snow-animation {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes dust-animation {
    0%, 100% { filter: brightness(0.9); }
    50% { filter: brightness(1.1); }
}

@keyframes fireflies-animation {
    0%, 100% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.3); }
    50% { box-shadow: inset 0 0 40px rgba(255, 215, 0, 0.6); }
}

@keyframes bubbles-animation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0); }
}

@keyframes leaves-animation {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(2deg); }
    75% { transform: rotate(-2deg); }
    100% { transform: rotate(0deg); }
}

@keyframes sparkles-animation {
    0%, 100% { filter: brightness(1) saturate(1); }
    50% { filter: brightness(1.5) saturate(1.5); }
}

.animation-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.animation-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* === PLATFORMS SECTION === */
.platforms {
    background: var(--bg-dark);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.platform-card {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.platform-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.platform-features {
    list-style: none;
    margin: 2rem 0;
}

.platform-features li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.system-requirements {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.system-requirements h3 {
    margin-bottom: 2rem;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.requirement {
    padding: 1rem;
    background: var(--bg-dark);
    border-radius: 8px;
    font-size: 0.95rem;
}

.requirement strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

/* === CTA SECTION === */
.cta {
    background: var(--gradient-overlay), var(--bg-card);
    text-align: center;
    padding: 6rem 2rem;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* === FOOTER === */
.footer {
    background: var(--bg-card);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--secondary-color);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* === RESPONSIVE DESIGN === */

/* Tablets and below */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .categories-grid,
    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .hero-logo img {
        width: 80px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid,
    .categories-grid,
    .animations-grid {
        grid-template-columns: 1fr;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* === UTILITY CLASSES === */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
