@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Kanit', sans-serif;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    height: .1rem;
    width: .5rem;
}

::-webkit-scrollbar-track {
    background-color: #121212;
}

::-webkit-scrollbar-thumb {
    background-color: #DF2626;
    border-radius: 5rem;
}

body {
    background: #121212;
    color: #FAFAFA;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

header {
    background: #121212;
    padding: 15px 10%;
    position: fixed;
    top: 0%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center; /* Centers everything */
    align-items: center;
    gap: 600px; /* Adjust spacing */
    z-index: 1001;
    transition: 0.2s ease-in-out;
    box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -webkit-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
    -moz-box-shadow: 1px 7px 5px 0px rgba(0,0,0,0.49);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navlist {
    display: flex;
    align-items: center;
    gap: 50px;
}

.navlist li a {
    color: #FAFAFA;
    font-weight: 500;
    font-size: 16px;
}

.navlist li a:hover {
    color: #DF2626;
    transition: 0.3s ease-in-out;
}

.logo-img {
    width: 200px;
    height: auto;
    
}

/* Hero Section */
.contact-hero {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('../assets/contact-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px; /* Adjust based on your navbar height */
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(18, 18, 18, 1));
}

.contact-hero-content {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 48px;
    font-weight: 800;
    color: #DF2626;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.contact-subtitle {
    font-size: 20px;
    color: #FAFAFA;
    font-weight: 300;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: #121212;
}

.contact-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 50px;
}

/* Contact Info Side */
.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #DF2626;
    margin-bottom: 20px;
}

.contact-info p {
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 40px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-method i {
    font-size: 24px;
    color: #DF2626;
}

.method-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #FAFAFA;
    margin-bottom: 5px;
}

.method-details p {
    color: #a3a3a3;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #1a1a1a;
    border-radius: 50%;
    color: #FAFAFA;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #DF2626;
    transform: translateY(-5px);
}

/* Contact Form Side */
.contact-form-container {
    flex: 1.2;
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #FAFAFA;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    background-color: #262626;
    border: 1px solid #333;
    border-radius: 5px;
    color: #FAFAFA;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #DF2626;
    outline: none;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
}

.error-message {
    font-size: 12px;
    color: #ff4d4d;
    height: 15px;
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 25px;
    background-color: #DF2626;
    color: #FAFAFA;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 50px;
}

.submit-btn:hover {
    background-color: #c41d1d;
}

.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FAFAFA;
    animation: spin 1s ease-in-out infinite;
    position: absolute;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form-message {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: rgba(39, 174, 96, 0.2);
    color: #2ecc71;
    display: block;
}

.form-message.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    display: block;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-title {
    font-size: 32px;
    font-weight: 700;
    color: #DF2626;
    text-align: center;
    margin-bottom: 50px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #262626;
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
    color: #FAFAFA;
}

.faq-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #333;
    color: #FAFAFA;
    transition: all 0.3s ease;
}

.faq-question.active .faq-icon {
    background-color: #DF2626;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question.active + .faq-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-answer p {
    color: #a3a3a3;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-hero {
        height: 300px;
    }
    
    .contact-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        height: 250px;
    }
    
    .contact-title {
        font-size: 32px;
    }
    
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
}

/* Footer Styles */
.footer {
    background-color: #0f0f0f;
    padding: 60px 0 20px;
    color: #a3a3a3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    margin-bottom: 30px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
}

.footer-links {
    flex: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-links-column {
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-links-column h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links-column ul li {
    margin-bottom: 10px;
}

.footer-links-column ul li a {
    color: #a3a3a3;
    transition: color 0.3s ease;
}

.footer-links-column ul li a:hover {
    color: #DF2626;
}

.footer-social {
    flex: 1;
    min-width: 200px;
}

.footer-social h4 {
    color: #FAFAFA;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #232323;
    color: #FAFAFA;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #DF2626;
    transform: translateY(-5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 0;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-size: 14px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .featured-news {
        flex-direction: column;
    }
    
    .featured-news-image {
        min-height: 250px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        max-width: 200px;
        margin: 0 auto 30px;
    }
    
    .footer-links {
        width: 100%;
        margin-bottom: 30px;
    }
    
    .footer-social {
        text-align: center;
        width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}