/* Base Styles */
:root {
    --primary-color: #0d2e59;    /* Dark blue */
    --secondary-color: #1e4684;   /* Medium blue */
    --accent-color: #eab308;     /* Professional yellow */
    --dark-bg: #0a1e3c;
    --light-text: #ffffff;
    --header-bg: #071428;
    --text-dark: #1a1a1a;        /* Darker text for readability */
    --light-overlay: rgba(255, 255, 255, 0.05);
	--logo-color: #fcc118;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f8fafc;
}

/* Improve text readability on light backgrounds */
p, li, .form-group label, .contact-details p {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.1); /* Subtle shadow for readability */
}

/* Utility Classes */
.card {
    background: var(--light-overlay);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
    top: 0;
}

/* Focus States for Accessibility */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Header and Navigation */
header {
    background: var(--header-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
	color: var(--light-text);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: white;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav ul {
    display: flex;
    gap: 1rem;
    justify-content: center;
    list-style: none;
    padding: 0.5rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

nav ul.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-bg);
    padding-top: 5rem;
    z-index: 100;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    padding-left: 1rem;
}

.language-btn {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.language-btn.active,
.language-btn:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-text {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
	color: var(--logo-color);
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* About Section Styles */
#about {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--dark-bg);
    color: var(--light-text);
}

#about p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto 3rem;
}

#about h2 {
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    padding: 2.5rem 2rem;
    border-left: 4px solid var(--accent-color);
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 0.1);
}

.feature i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Animated Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-primary {
    background: var(--accent-color);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--accent-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

/* Scroll Animation */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
}

.service-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-item h3 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

/* Gallery Section */
.gallery-section {
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #ccc; /* Fallback for broken images */
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.gallery-caption h4 {
    color: var(--accent-color);
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.gallery-caption p {
    color: var(--light-text);
    margin: 0;
    font-size: 1rem;
}

.gallery-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden; /* Remove scrollbar */
    justify-content: center;
    align-items: center;
    padding: 1rem;
    transition: opacity 0.3s ease;
}

.modal[style*="display: flex"] {
    opacity: 1;
}

.modal-content {
    max-width: 95vw; /* More space */
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.modal-content:hover {
    transform: scale(1.02); /* Subtle zoom for professionalism */
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--light-text);
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
    font-size: 2.5rem;
    cursor: pointer;
    user-select: none;
    padding: 1rem;
    transition: color 0.3s ease;
}

.modal-nav:hover {
    color: var(--accent-color);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-item {
    padding: 2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating i {
    color: var(--accent-color);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle i {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 1rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-answer {
    display: block;
    max-height: 200px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-errors {
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: none;
}

.submit-button {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.contact-info {
    background: var(--light-overlay);
    padding: 2rem;
    border-radius: 10px;
}

.contact-details h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
}

.contact-details i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.map-container {
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--header-bg);
    color: var(--light-text);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    nav ul {
        display: none;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        gap: 2rem;
    }

    .modal-content {
        max-width: 90vw;
        max-height: 90vh;
    }

    .modal-nav {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .close-modal {
        font-size: 2rem;
        top: 15px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .modal-nav {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .close-modal {
        font-size: 1.5rem;
        top: 10px;
        right: 15px;
    }
}