/* Base Styles */
:root {
    --primary-color: #5a5a5a;
    --secondary-color: #e57200;
    --dark-color: #333333;
    --light-color: #f9f9f9;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    /* Base theme colors (light mode default) */
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: #e6e6e6;
    --header-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
    --section-bg-light: #f5f5f5;
    --section-bg-dark: #333333;
    --footer-bg: #1c1c1c;
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
}


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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    min-width: 200px;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff8c26;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
}

.bg-light {
    background-color: var(--section-bg-light);
}

.bg-dark {
    background-color: var(--section-bg-dark);
    color: white;
}

.light {
    color: white;
}

/* Header & Navigation */
.header {
    min-height: 100vh;
    background: 
        var(--header-overlay),
        url('../img/bg2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
}

.header > .container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 50px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: none;
}

.menu-toggle {
    display: block;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: white;
    transition: var(--transition);
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: auto auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .btn {
    width: 220px;
    display: block;
    margin: 0 auto;
    font-weight: 700;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(229, 114, 0, 0.1);
    border-radius: 50%;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* About Section */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

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

.about-carousel {
    position: relative;
    width: 100%;
    height: 400px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
}

.carousel-slide.active {
    opacity: 1;
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--dark-color);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.carousel-nav:hover {
    background-color: var(--secondary-color);
    color: white;
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dots .dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Portfolio Section */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    gap: 0.8rem;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.1rem;
}

.filter-btn.active {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    font-weight: 600;
}

.filter-btn:hover:not(.active) {
    color: var(--secondary-color);
    border-bottom: 1px solid var(--secondary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: var(--transition);
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    margin-right: 1rem;
    min-width: 24px;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-link {
    color: white;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--secondary-color);
    border-bottom: 1px dashed var(--secondary-color);
}

.contact-form .form-group {
    margin-bottom: 2rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
}

.contact-form select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1em;
    padding-right: 2.5rem;
}

.contact-form select option {
    background-color: var(--dark-color);
    color: white;
}

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

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.form-response {
    margin: 1rem 0;
}

.form-success {
    background-color: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.form-error {
    background-color: var(--danger-color);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

select.error {
    border-color: var(--danger-color);
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-logo p {
    margin-bottom: 0.5rem;
}

.footer-license {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

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

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Mobile Menu Active State */
.nav.active .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--dark-color);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 100;
    transition: var(--transition);
}

.nav.active .nav-menu a {
    color: white;
    font-size: 1.2rem;
}


.nav.active .menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 101;
}

.nav.active .menu-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav.active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.active .menu-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    padding: 50px 0;
}

.modal-content {
    position: relative;
    background-color: var(--card-bg);
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: var(--secondary-color);
}

.modal-body {
    padding: 0;
}

.project-details {
    padding: 0;
}

.project-details h2 {
    padding: 30px;
    margin: 0;
    font-size: 2rem;
    background-color: var(--dark-color);
    color: white;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    padding: 20px 30px;
    background-color: var(--section-bg-light);
    border-bottom: 1px solid var(--border-color);
}

.project-meta span {
    margin-right: 20px;
    font-size: 0.9rem;
    color: #666;
}

.project-images {
    width: 100%;
}

.project-images > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 15px;
}

.project-gallery img {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.project-gallery img:hover {
    transform: scale(1.02);
}

.project-description {
    padding: 30px;
}

.project-description h3 {
    margin: 25px 0 15px;
    color: #444444;
}

.project-description p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.project-description h3:first-child {
    margin-top: 0;
}

/* Gallery responsive grid */
@media (min-width: 768px) {
    .project-gallery {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
        gap: 20px;
    }
}

/* Fix for portfolio items to look better */
.portfolio-item {
    transition: transform 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item a {
    display: block;
    height: 100%;
    position: relative;
    color: #000000;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}


/* Reviews Section */
.reviews-slider {
    position: relative;
    padding: 30px 0;
    overflow: hidden;
}

.reviews-container {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 100%;
    padding: 2rem 4rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    margin: 0 auto;
    max-width: 800px;
}

.review-stars {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.review-stars svg {
    width: 20px;
    height: 20px;
}

.review-content {
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.review-author {
    margin-bottom: 0.5rem;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-location {
    font-size: 0.9rem;
    color: #777;
}

.review-project {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: var(--dark-color);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.review-nav:hover {
    background-color: var(--secondary-color);
    color: white;
}

.review-nav.prev {
    left: 10px;
}

.review-nav.next {
    right: 10px;
}

.review-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--secondary-color);
    transform: scale(1.2);
}

/* Media Queries */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        gap: 2rem;
    }
    
    .nav-menu a {
        color: white;
        font-weight: 500;
    }
    
    .nav-menu a:hover {
        color: var(--secondary-color);
    }
    
    
    .about-content {
        flex-direction: row;
        align-items: center;
    }
    
    .about-text,
    .about-image {
        flex: 1;
    }
    
    .contact-container {
        flex-direction: row;
    }
    
    .contact-info,
    .contact-form {
        flex: 1;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}