/* Global Styles */
:root {
    --primary-color: #b74d0f;
    --secondary-color: #07263A;
    --accent-color: #457b9d;
    --light-color: #f1faee;
    --dark-color: #1d3557;
    --text-color: #07263A;
    --text-light: #a2c4d0;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.social-icons a {
    color: var(--dark-color);
    margin-left: 15px;
    font-size: 16px;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
/* Header Section End */

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('./Images/Home.png') no-repeat center center/cover;
    display: flex;
    
    align-items: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 60px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}
/* Hero Section end */

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--light-color);
}

.about .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* About Section End */

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    padding: 25px;
    background: var(--light-color); 
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); 
}

.service-card i {
    font-size: 50px;
    color: var(--primary-color); 
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
/* Services Section End */

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--light-color);
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    bottom: 0;
}
/* Gallery Section End */

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
}

.contact .container {
    display: flex;
    gap: 50px;
}

.contact-info, .contact-form {
    flex: 1;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-info i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 20px;
    width: 30px;
    text-align: center;
}

.contact-social {
    margin-top: 30px;
}

.contact-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: var(--transition);
}

.contact-social a i {
    margin: 0; 
    padding: 0;
}

.contact-social a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
}

.contact-form textarea {
    height: 150px;
    resize: none;
}
/* Contact Section End */

/* Projects Page Specific */
.projects-gallery {
    padding: 120px 0;
}

.project-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.project-categories button {
    padding: 8px 20px;
    background: #f1f1f1;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-categories button.active {
    background: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
    background: white;
}
/* Project Page End */

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 50px 0 0;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 100px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-services h3 {
    color: var(--white);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h3::after,
.footer-services h3::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 15px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--white);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Appointment Section Styles */
.appointment-section {
    padding-top: 150px;
    margin-top: -40px; 
}

.appointment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.appointment-info {
    background: var(--primary-color);
    color: white;
    padding: 30px;
    border-radius: 8px;
    align-self: start;
}

.appointment-info h3 {
    margin-top: 0;
    color: white;
}

.appointment-info i {
    margin-right: 10px;
}

/* Service details page styles */
.service-section {
    padding: 100px 0;
    border-bottom: 1px solid #eee;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.service-content img {
    width: 100%;
    border-radius: 8px;
}

/* About Page */
.about-page{
    padding: 100px;
}

.about-gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.about-gallery-item {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    display: flex;
    flex-direction: column;
}

.about-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.about-gallery-item img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures images fill the space properly */
    display: block;
}

.about-gallery-caption {
    padding: 15px;
    text-align: center;
    background: white;
    flex-grow: 1; /* Makes captions take equal space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers text vertically */
}

.about-gallery-caption h3 {
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    color: #333;
}

.about-gallery-title {
    margin-bottom: 30px;
    text-align: center;
    color: #333;
    position: relative;
    width: 100%;
}

.about-gallery-title:after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: #007bff;
    margin: 15px auto 0;
}
/* About Page End */

/* 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: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0.5)}
    to {transform: scale(1)}
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
    text-align: center;
    color: white;
    padding: 10px 0;
    font-size: 1.2em;
}
/* Modal End */

/* Project Modal */
#projectModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

#projectModal .modal-content {
    background: white;
    margin: 5% auto;
    padding: 30px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

#projectModal .close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#projectModal .close:hover {
    color: #333;
}

.project-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.project-details img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.project-info-text h2 {
    margin-top: 0;
    color: #2c3e50;
}

.project-info-text p {
    line-height: 1.6;
}

.project-features {
    margin-top: 20px;
}

.project-features h3 {
    margin-bottom: 10px;
}

.project-features ul {
    padding-left: 20px;
}
/* Project Modal End */

/* Responsive Styles */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}

@media (max-width: 992px) {
    .about .container,
    .contact .container {
        flex-direction: column;
    }
    
    .about-image,
    .about-content,
    .contact-info,
    .contact-form {
        width: 100%;
    }
    
    .hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        transition: var(--transition);
    }
    
    nav.active {
        left: 0;
    }
    
    nav ul {
        flex-direction: column;
        padding: 30px;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .social-icons {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr; 
    }
    .appointment-form {
        grid-template-columns: 1fr;
    }
    .project-details {
        grid-template-columns: 1fr;
    }

    .project-details img {
        width: auto;
        height: 50vh;
    }
    
    #projectModal .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 20px;
        max-height: 80vh; 
        overflow-y: auto; 
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 30px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .service-card {
        padding: 20px;
    }
    #projectModal .modal-content {
        width: 70%;
        margin: 20px auto;
        padding: 20px;
        max-height: 80vh; 
        overflow-y: auto; 
    }
    .project-details img {
        width: auto;
        height: 30vh;
    }
}