/* landing.css */
:root {
    --primary-dark: #1a2639;
    --primary-medium: #3e4a61;
    --primary-light: #c6d4e1;
    --accent-blue: #4a6fa5;
    --accent-green: #3b8c6e;
    --text-light: #f8f8f8;
    --text-dark: #333333;
    --bg-light: #f5f7fa;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--text-dark); background-color: var(--bg-light); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Garantir visibilidade inicial */
.header, .hero, .section, .footer { display: block; visibility: visible; opacity: 1; }

/* Header */
.header { position: fixed; width: 100%; top: 0; left: 0; z-index: 100; background-color: rgba(255, 255, 255, 0.98); box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); transition: var(--transition); }
.header.scrolled { padding: 5px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; transition: var(--transition); }
.logo { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: var(--primary-dark); }
.logo span { color: var(--accent-blue); }
.nav-menu { display: flex; list-style: none; align-items: center; }
.nav-item { margin-left: 30px; }
.nav-link { font-weight: 500; font-size: 14px; color: var(--primary-medium); transition: var(--transition); position: relative; }
.nav-link:after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background-color: var(--accent-blue); transition: var(--transition); }
.nav-link:hover { color: var(--accent-blue); }
.nav-link:hover:after { width: 100%; }
.cta-button { display: inline-block; background-color: var(--accent-blue); color: var(--text-light); padding: 8px 20px; border-radius: 25px; font-weight: 500; font-size: 14px; transition: var(--transition); }
.cta-button:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3); }
.cta-button.outline { background-color: transparent; border: 2px solid var(--accent-blue); color: var(--accent-blue); }
.cta-button.outline:hover { background-color: var(--accent-blue); color: var(--text-light); }
.hamburger { display: none; cursor: pointer; }
.bar { display: block; width: 20px; height: 2px; margin: 4px auto; transition: var(--transition); background-color: var(--primary-dark); }

/* Piano Section */
.piano-section { position: relative; margin-top: 50px; padding: 20px 0; background: linear-gradient(135deg, #f5f7fa 0%, #d4e0ed 100%); }
.piano-svg { width: 100%; height: 100px; z-index: 2; opacity: 0.8; }
.piano-key { fill: white; stroke: #ccc; stroke-width: 1; transition: all 0.2s ease; }
.piano-key:hover { fill: #e0e7ff; cursor: pointer; }
.piano-key.black { fill: #333; }
.piano-key.black:hover { fill: #555; }
.piano-key.active { fill: #c8e0ff; }
.piano-key.black.active { fill: #4a6fa5; }

/* Hero Section */
.hero { position: relative; min-height: 20vh; display: flex; align-items: center; padding: 30px 0; background: linear-gradient(135deg, #f5f7fa 0%, #d4e0ed 100%); overflow: hidden; }
.hero:before { content: ''; position: absolute; top: 0; right: 0; width: 60%; height: 100%; background-color: var(--primary-light); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.2; z-index: 0; }
.hero-content { max-width: 600px; position: relative; z-index: 1; }
.hero-title { font-size: 40px; margin-bottom: 10px; color: var(--primary-dark); }
.hero-subtitle { font-size: 16px; color: var(--primary-medium); margin-bottom: 15px; font-weight: 300; }
.hero-buttons { display: flex; gap: 10px; margin-top: 15px; }

/* About Section */
.section { padding: 60px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-title { font-size: 32px; color: var(--primary-dark); margin-bottom: 10px; }
.section-subtitle { font-size: 16px; color: var(--primary-medium); max-width: 600px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.about-card { background-color: white; border-radius: 12px; padding: 30px 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); position: relative; overflow: hidden; }
.about-card:hover { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1); }
.about-icon { font-size: 32px; color: var(--accent-blue); margin-bottom: 15px; }
.about-card h3 { font-size: 22px; margin-bottom: 10px; color: var(--primary-dark); }
.about-card p { color: var(--primary-medium); }

/* Games Section */
.games-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.game-card { background-color: white; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: var(--transition); }
.game-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); }
.game-content { padding: 20px; }
.game-badge { display: inline-block; padding: 5px 15px; background-color: var(--accent-green); color: white; border-radius: 20px; font-size: 12px; margin-bottom: 15px; }
.game-title { font-size: 20px; margin-bottom: 10px; color: var(--primary-dark); }
.game-desc { color: var(--primary-medium); margin-bottom: 15px; }

/* Footer */
.footer { background-color: var(--primary-dark); color: var(--primary-light); padding: 60px 0 30px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 50px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 24px; color: white; margin-bottom: 15px; }
.footer-logo span { color: var(--accent-blue); }
.footer-desc { margin-bottom: 20px; max-width: 300px; }
.footer-title { font-size: 16px; color: white; margin-bottom: 20px; position: relative; }
.footer-title:after { content: ''; position: absolute; width: 40px; height: 2px; background-color: var(--accent-blue); bottom: -8px; left: 0; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: white; padding-left: 5px; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; font-size: 14px; }
.footer-bottom p { opacity: 0.7; }

/* Animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.active { opacity: 1; transform: translateY(0); }
.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }

/* Fallback para garantir visibilidade */
.fade-in:not(.active) { opacity: 1; transform: translateY(0); }

/* Responsive */
@media screen and (max-width: 1024px) {
    .hero-title { font-size: 32px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media screen and (max-width: 768px) {
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-menu { position: fixed; left: -100%; top: 50px; flex-direction: column; background-color: white; width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); padding: 15px 0; }
    .nav-menu.active { left: 0; }
    .nav-item { margin: 10px 0; }
    .hero { text-align: center; }
    .hero-content { max-width: 100%; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
}
@media screen and (max-width: 480px) {
    .hero-title { font-size: 28px; }
    .hero-subtitle { font-size: 14px; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .cta-button { width: 100%; }
}
