/* 
* GMC DMC - Philippines Grid Management Committee
* Modern, responsive stylesheet
*/

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

/* === Reset & Base Styles === */
:root {
    --primary: #005e89;
    --primary-dark: #004266;
    --primary-light: #0087c2;
    --secondary: #ff9e2c;
    --accent: #00b8d4;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --text-muted: #7f8c8d;
    --bg-light: #ffffff;
    --bg-gray: #f5f7fa;
    --bg-dark: #1a2a36;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

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

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-align: center;
}

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

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn.primary {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn.secondary:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* === Layout Components === */

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

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

.logo a {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
}

.logo img {
    margin-right: 10px;
    border-radius: 0;
}

nav ul.main-menu {
    display: flex;
    list-style: none;
}

nav ul.main-menu li {
    margin-left: 30px;
}

nav ul.main-menu li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
}

nav ul.main-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav ul.main-menu li a:hover,
nav ul.main-menu li a:focus {
    color: var(--primary);
}

nav ul.main-menu li a:hover::after,
nav ul.main-menu li a:focus::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 10px;
}

.menu-toggle span:nth-child(3) {
    top: 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--text-light);
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.service-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

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

.service-card .icon {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 2.5rem;
}

/* Reports Section */
.reports {
    background-color: var(--bg-light);
}

.reports-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.report-item {
    background-color: var(--bg-gray);
    padding: 25px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.report-item:hover {
    box-shadow: var(--shadow);
}

.report-date {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 10px;
}

.report-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 500;
}

/* Guidelines Section */
.guidelines {
    background-color: var(--bg-gray);
}

.guidelines-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.guidelines-text {
    flex: 1.5;
}

.guidelines-text ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.guidelines-text ul li {
    margin-bottom: 10px;
}

.guidelines-image {
    flex: 1;
    text-align: center;
}

/* Games Section */
.games {
    background-color: var(--bg-light);
    padding: 60px 0;
}

.game-options {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.game-card {
    flex: 2;
    background-color: var(--bg-gray);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.game-card h3 {
    margin-bottom: 15px;
}

.game-card ul {
    list-style: none;
}

.game-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.game-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

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

/* News Section */
.news {
    background-color: var(--bg-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-item {
    background-color: var(--bg-light);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    color: var(--accent);
    font-weight: 500;
    margin: 15px 20px 5px;
}

.news-item h3 {
    padding: 0 20px;
    margin-bottom: 10px;
}

.news-item p {
    padding: 0 20px;
    margin-bottom: 15px;
}

.news-link {
    display: block;
    padding: 0 20px 20px;
    font-weight: 500;
}

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

.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info ul {
    list-style: none;
    margin-top: 20px;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info li i {
    margin-right: 15px;
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 5px;
}

.contact-form {
    flex: 1;
    background-color: var(--bg-gray);
    padding: 30px;
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 94, 137, 0.1);
}

/* Footer */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1.5;
    min-width: 250px;
}

.footer-logo h3 {
    color: var(--text-light);
    margin-top: 15px;
}

.footer-logo p {
    color: var(--text-muted);
}

.footer-links,
.footer-resources {
    flex: 1;
    min-width: 180px;
}

.footer-links h4,
.footer-resources h4 {
    color: var(--text-light);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-resources ul {
    list-style: none;
}

.footer-links li,
.footer-resources li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-resources a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-resources a:hover {
    color: var(--text-light);
}

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

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .guidelines-content,
    .game-options,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image,
    .guidelines-image {
        margin-top: 30px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero {
        height: 500px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul.main-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background-color: var(--bg-light);
        padding: 100px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 1000;
    }
    
    nav ul.main-menu.active {
        right: 0;
    }
    
    nav ul.main-menu li {
        margin: 0 0 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        height: 450px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}

/* Font Awesome Fallback */
[class*="fas"], [class*="fab"] {
    display: inline-block;
    width: 1.25em;
    height: 1em;
    text-align: center;
}
