/* 
   Bergi Brazil - Main Stylesheet
   Author: Cascade AI
   Created: July 2025
*/

/* ===== Base Styles ===== */
:root {
    /* Primary Color Palette */
    --primary-color: #1E3A8A;
    --secondary-color: #3B82F6;
    --accent-color: #F59E0B;
    --text-color: #1F2937;
    --light-text: #6B7280;
    --bg-color: #FFFFFF;
    --light-bg: #F3F4F6;
    --dark-bg: #111827;
    
    /* Font sizes */
    --fs-xl: 3rem;
    --fs-lg: 2.25rem;
    --fs-md: 1.5rem;
    --fs-base: 1.125rem;
    --fs-sm: 0.875rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-sm);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: var(--fs-xl);
}

h2 {
    font-size: var(--fs-lg);
    text-align: center;
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-xs);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

section {
    padding: var(--space-xl) 0;
}

/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn.primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn.secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: var(--fs-sm);
    border-radius: 4px;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
}

.btn-small:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Header Styles ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-svg {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: var(--space-md);
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: var(--space-md);
    color: var(--primary-color);
}

.hero p {
    font-size: var(--fs-md);
    color: var(--light-text);
    margin-bottom: var(--space-lg);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

/* ===== Featured Section ===== */
.featured {
    background-color: var(--light-bg);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.feature-card {
    background-color: white;
    border-radius: 8px;
    padding: var(--space-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: var(--space-xs);
}

.feature-card p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* ===== Products Section ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.product-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    margin-bottom: var(--space-xs);
}

.product-card p {
    margin-bottom: var(--space-md);
    color: var(--light-text);
}

/* ===== Services Section ===== */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: var(--space-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--secondary-color);
}

/* ===== About Section ===== */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* ===== Games Section ===== */
.games {
    background-color: var(--light-bg);
    text-align: center;
}

.game-links {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.game-links p {
    background-color: white;
    padding: var(--space-sm);
    border-radius: 8px;
    margin-bottom: var(--space-xs);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.game-links a {
    font-weight: 500;
}

/* ===== Contact Section ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: var(--space-xl);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-family: inherit;
    font-size: var(--fs-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.info-item {
    margin-bottom: var(--space-lg);
}

.info-item h3 {
    margin-bottom: var(--space-xs);
    color: var(--primary-color);
}

.info-item p {
    color: var(--light-text);
    margin-bottom: 0;
}

/* ===== Footer ===== */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: var(--space-xl) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-logo p {
    color: #9CA3AF;
    margin-top: var(--space-sm);
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: white;
    margin-bottom: var(--space-md);
}

.footer-links ul li {
    margin-bottom: var(--space-xs);
}

.footer-links ul li a {
    color: #9CA3AF;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    color: #9CA3AF;
    margin-bottom: var(--space-sm);
}

.social-icons {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--secondary-color);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Material Icons';
    color: white;
}

.social-icon.facebook::before {
    content: 'facebook';
}

.social-icon.instagram::before {
    content: 'instagram';
}

.social-icon.linkedin::before {
    content: 'linkedin';
}

.social-icon.youtube::before {
    content: 'play_circle';
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
    font-size: var(--fs-sm);
}

.footer-bottom a {
    color: #9CA3AF;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: white;
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-xl: 2.5rem;
        --fs-lg: 2rem;
        --fs-md: 1.25rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --fs-xl: 2rem;
        --fs-lg: 1.75rem;
        --fs-md: 1.2rem;
        --fs-base: 1rem;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    section {
        padding: var(--space-lg) 0;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .featured, .products, .services, .about, .games, .contact {
    animation: fadeIn 1s ease-out;
}

/* Add a 0.2s delay between each section's animation */
.featured { animation-delay: 0.2s; }
.products { animation-delay: 0.4s; }
.services { animation-delay: 0.6s; }
.about { animation-delay: 0.8s; }
.games { animation-delay: 1s; }
.contact { animation-delay: 1.2s; }

/* Hover effects */
a, button, .feature-card, .product-card, .service-card {
    transition: all 0.3s ease;
}
