/* Global Styles */
:root {
    --primary-color: #ca984d;
    /* Bronze/Gold */
    --secondary-color: #ffffff;
    /* White cards */
    --text-color: #333333;
    /* Dark text */
    --bg-color: #F7FAFC;
    /* Light background */
    --accent-color: #e3b168;
    /* Lighter bronze for hover */
    --font-family: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo a,
header .nav-links li a,
header .hamburger .bar {
    color: #fff;
    /* Force white text in header */
}

.hamburger .bar {
    background-color: #fff;
}

nav {
    display: flex;
    justify-content: height;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: block;
    line-height: normal;
}

.logo img {
    max-height: 80px;
    /* Adjust height as needed */
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2053&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Services Preview */
.services-preview {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(202, 152, 77, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Preview */
.about-preview {
    padding: 80px 0;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    /* Increased size */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 8px;
    border: 2px solid var(--primary-color);
}

/* Footer */
footer {
    background-color: #000000;
    /* Force black footer */
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    /* Force white text in footer */
}

footer h3,
footer h4,
footer p,
footer a,
footer li {
    color: #fff;
}

footer .footer-contact p {
    color: #ccc;
}

footer .social-icons a {
    color: #fff;
}

footer .footer-bottom p {
    color: #777;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
    font-size: 0.95rem;
    /* Slightly smaller for contact info */
}


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

.social-icons a {
    font-size: 1.5rem;
    color: var(--text-color);
}

/* Removed hover effect from here to be more specific in main css or just use general a hover */
.social-icons a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #777;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
        /* Ensure hamburger is above menu */
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        padding-top: 80px;
        /* Space for fixed header */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        /* Add shadow for depth */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
        /* Add margin for spacing */
    }

    .nav-links li a {
        font-size: 1.5rem;
        /* Make links larger on mobile */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-preview {
        flex-direction: column;
        text-align: center;
        /* Center text on mobile */
    }

    .about-image {
        order: -1;
        width: 100%;
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
}

/* Contact Grid Responsive */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.contact-info p {
    margin-bottom: 40px;
}

/* Form Styles */
.contact-form-container {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.info-item {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item h4 {
    margin-bottom: 5px;
}

/* Page Header Common */
.page-header {
    background-size: cover !important;
    background-position: center !important;
    padding: 180px 0 100px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #fff;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: #fff;
    font-size: 2rem;
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 50%;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.project-info p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0;
    /* Remove padding for full screen */
}

.modal-content {
    background-color: #F7FAFC;
    color: #333;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    height: 100%;
    /* Full height */
    max-width: none;
    /* Remove max-width constraint */
    border-radius: 0;
    position: relative;
    animation: modalopen 0.4s;
    overflow-y: auto;
    /* Allow scrolling within the modal content */
}

@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    z-index: 2001;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    background: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Make slideshow take up most of the viewport height */
    /* Make slideshow take up most of the viewport height */
    background-color: #F7FAFC;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full image is visible without cropping */
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.05);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

/* Project Details in Modal */
.project-details {
    padding: 30px;
}

.project-details h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
}

.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 5px;
}



.meta-item h4 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.meta-item p {
    color: #333;
    font-weight: 500;
}

.project-description h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.project-description p {
    color: #555;
    line-height: 1.8;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
        max-width: none;
    }

    .slideshow-container {
        height: 300px;
    }

    .project-meta-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}