/* ============================ GENERAL CONTACT STYLES ============================ */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f8f8;
    color: #333;
    text-align: center;
}

/* ============================ CONTACT GRID SECTION ============================ */
#contact-grid {
    padding: 60px 20px;
}

#contact-grid h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

#contact-grid p {
    font-size: 1.2rem;
    color: #666;
}

/* ============================ CONTACT CARDS ============================ */
.contact-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Contact Cards Container */
.contact-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Contact Card */
.contact-card {
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover Effect */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Contact Card Icons */
.contact-card i {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 10px;
}

/* Contact Card Title */
.contact-card h3 {
    font-size: 1.2rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 5px;
}

/* Contact Card Description */
.contact-card p {
    font-size: 1rem;
    color: #555;
}

/* ============================ RESPONSIVE DESIGN ============================ */
@media (max-width: 1024px) {
    .contact-cards-container {
        justify-content: center;
        gap: 15px;
    }

    .contact-card {
        flex: 1 1 calc(50% - 20px);
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .contact-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

/* ============================ SOCIAL MEDIA ICONS ============================ */
.social-icons {
    margin-top: 10px;
}

.social-icon {
    font-size: 1.5rem;
    margin: 0 5px;
    color: #ff9900;
}

/* ============================ CONTACT FORM MODAL ============================ */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* ============================ DARK MODE STYLES ============================ */
.dark-mode {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --card-bg: #1e1e1e;
    --card-text: #f5f5f5;
    --icon-color: #ffcc00;
    --box-shadow: rgba(255, 255, 255, 0.1);
    --box-shadow-hover: rgba(255, 204, 0, 0.2);
    --popup-bg: rgba(0, 0, 0, 0.85);
}

/* Dark Mode Background */
.dark-mode body {
    background: var(--bg-color);
    color: var(--text-color);
}

.dark.mode .contact-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dark Mode - Contact Cards */
.dark-mode .contact-card {
    background: var(--card-bg);
    color: var(--card-text);
    box-shadow: 0 4px 10px var(--box-shadow);
}

.dark-mode .contact-card:hover {
    box-shadow: 0 8px 20px var(--box-shadow-hover);
    transform: translateY(-5px);
}

/* Dark Mode - Contact Card Icons */
.dark-mode .contact-card i {
    color: var(--icon-color);
}

/* Dark Mode - Contact Card Titles */
.dark-mode .contact-card h3 {
    color: var(--text-color);
}

/* Dark Mode - Contact Card Text */
.dark-mode .contact-card p {
    color: var(--text-color);
}

.dark-mode #contact-grid h1 {
    color: var(--text-color);
    /* Ensures heading is visible */
}

.dark-mode #contact-grid p {
    color: var(--text-color);
    /* Ensures paragraph text is visible */
}

/* Dark Mode - Popup */
.dark-mode .popup {
    background: var(--popup-bg);
}

/* Dark Mode Background for Contact Grid */
.dark-mode #contact-grid {
    background: #121212;
    color: #f5f5f5;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

/* ============================ HEADINGS & TEXT ============================ */
#contact-grid h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000;
}

/* Dark Mode - Heading */
.dark-mode #contact-grid h1 {
    color: #ffcc00;
}

#contact-grid p {
    font-size: 1.2rem;
    color: #666;
}

/* Dark Mode - Paragraph Text */
.dark-mode #contact-grid p {
    color: #f5f5f5;
}

/* ============================ CONTACT FORM STYLES ============================ */
.popup-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
    font-family: 'Montserrat', sans-serif;
    margin: auto;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff9900;
}

/* ============================ FORM INPUTS ============================ */
#contact-form input,
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

/* ============================ SUBMIT BUTTON ============================ */
.cta-button {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s ease-in-out, transform 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: black;
    transform: scale(1.05);
}

/* ============================ RESPONSIVE ADJUSTMENTS ============================ */
@media (max-width: 1024px) {
    .contact-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .contact-card {
        width: 90%;
    }

    .popup-content {
        width: 95%;
        max-width: 400px;
    }
}

/* ============================ CONTACT FORM SECTION ============================ */
#contact-section {
    text-align: center;
    padding: 50px 20px;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.contact-form label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 10px;
    text-align: center;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

/* Custom select styling */
.contact-form .custom-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #fff;
    appearance: none;
}

/* Submit Button */
.contact-form button.cta-button {
    width: 100%;
    padding: 12px;
    margin-top: 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.4s ease-in-out, transform 0.3s ease;
}

.contact-form button.cta-button:hover {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: black;
    transform: scale(1.05);
}

/* ============================ DARK MODE STYLES ============================ */
.dark-mode {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --card-bg: #1e1e1e;
    --card-text: #f5f5f5;
    --form-bg: #1e1e1e;
    --form-border: #444;
    --input-bg: #222;
    --input-text: #f5f5f5;
    --button-bg: #ffcc00;
    --button-text: #000;
    --popup-bg: rgba(0, 0, 0, 0.85);
}

/* Dark Mode Background */
.dark-mode body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Dark Mode - Contact Form */
.dark-mode .contact-form {
    background: var(--form-bg);
    color: var(--text-color);
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.1);
}

/* Dark Mode - Inputs */
.dark-mode #contact-form input,
.dark-mode #contact-form select,
.dark-mode #contact-form textarea {
    background: var(--input-bg);
    color: var(--input-text);
    border: 1px solid var(--form-border);
}

/* Dark Mode - Placeholder Text */
.dark-mode #contact-form input::placeholder,
.dark-mode #contact-form textarea::placeholder {
    color: var(--text-color);
}

/* Dark Mode - Popup */
.dark-mode .popup-content {
    background: var(--form-bg);
    color: var(--text-color);
    box-shadow: 0px 5px 20px rgba(255, 255, 255, 0.2);
}

/* Dark Mode - Buttons */
.dark-mode .cta-button,
.dark-mode .contact-form button.cta-button {
    background: var(--button-bg);
    color: var(--button-text);
}

.dark-mode .cta-button:hover,
.dark-mode .contact-form button.cta-button:hover {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: black;
    transform: scale(1.05);
}

    /* Success & Error Messages */
        .form-message {
            margin-top: 15px;
            padding: 10px;
            font-size: 14px;
            border-radius: 5px;
            text-align: center;
            transition: opacity 0.5s ease-in-out;
        }

    /* Success Message */
        .success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

    /* Error Message */
        .error {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

    /* Initially Hidden */
        .hidden {
            display: none;
            opacity: 0;
        }
