/* 
   Maruhan Philippines Website Styles
   Modern, responsive design with SEO optimizations
*/

/* Google Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Main Color Scheme */
    --primary-color: #124E78;
    --secondary-color: #F2BB05;
    --accent-color: #D74E09;
    --light-color: #F3F9FB;
    --dark-color: #0A2239;
    
    /* Typography */
    --body-font: 'Poppins', sans-serif;
    --heading-weight: 600;
    --body-weight: 400;
    
    /* Spacing */
    --section-spacing: 6rem 0;
    --container-padding: 0 1.5rem;
    
    /* Borders */
    --border-radius: 8px;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* For fixed header */
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--heading-weight);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

section {
    padding: var(--section-spacing);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

.section-header p {
    color: var(--accent-color);
    font-size: 1.2rem;
}

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

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

.logo img {
    height: 60px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: white;
    position: relative;
    font-weight: 500;
}

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

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: white;
    height: 2px;
    width: 2rem;
    border-radius: 2px;
    position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    bottom: 8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://source.unsplash.com/random/1600x900/?casino') no-repeat center center/cover;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about {
    background-color: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

/* Games Section */
.games {
    background-color: var(--light-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.game-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    text-align: center;
}

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

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.slot-icon {
    background-color: var(--secondary-color);
    position: relative;
}
.slot-icon::before {
    content: "🎰";
    font-size: 2rem;
}

.table-icon {
    background-color: var(--primary-color);
    position: relative;
}
.table-icon::before {
    content: "🃏";
    font-size: 2rem;
}

.poker-icon {
    background-color: var(--accent-color);
    position: relative;
}
.poker-icon::before {
    content: "♠️";
    font-size: 2rem;
}

.vip-icon {
    background-color: var(--dark-color);
    position: relative;
}
.vip-icon::before {
    content: "👑";
    font-size: 2rem;
}

.gaming-news {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
}

.gaming-news h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.gaming-news a {
    color: var(--secondary-color);
    font-weight: 500;
}

.gaming-news a:hover {
    color: white;
}

/* Entertainment Section */
.entertainment {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://source.unsplash.com/random/1600x900/?concert') no-repeat center center/cover;
    color: white;
}

.entertainment .section-header h2 {
    color: var(--secondary-color);
}

.entertainment .section-header p {
    color: white;
}

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

.entertainment-text p {
    margin-bottom: 2rem;
}

/* Dining Section */
.dining {
    background-color: white;
}

.dining-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.dining-card {
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: var(--transition);
}

.dining-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.dining-card:hover h3 {
    color: var(--secondary-color);
}

.dining-card h3 {
    transition: var(--transition);
}

/* Contact Section */
.contact {
    background-color: var(--light-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: var(--body-font);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    margin: 0 auto 1rem;
    width: 120px;
    height: auto;
}

.footer-links h3,
.footer-social h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.facebook-icon::before {
    content: "f";
    font-size: 1.2rem;
    font-weight: bold;
}

.twitter-icon::before {
    content: "t";
    font-size: 1.2rem;
    font-weight: bold;
}

.instagram-icon::before {
    content: "i";
    font-size: 1.2rem;
    font-weight: bold;
}

.linkedin-icon::before {
    content: "in";
    font-size: 1rem;
    font-weight: bold;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: white;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-content img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    header .container {
        height: 70px;
    }
    
    .nav-toggle-label {
        display: block;
        position: relative;
        z-index: 2;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary-color);
        transform: scale(1, 0);
        transform-origin: top;
        transition: transform 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
        padding: 0.5rem 1.5rem;
    }
    
    .nav-toggle:checked ~ nav {
        transform: scale(1, 1);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-spacing: 4rem 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        height: 80vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

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

.game-card, .dining-card {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }

.dining-card:nth-child(1) { animation-delay: 0.1s; }
.dining-card:nth-child(2) { animation-delay: 0.2s; }
.dining-card:nth-child(3) { animation-delay: 0.3s; }
.dining-card:nth-child(4) { animation-delay: 0.4s; }

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}
