/* --- 1. Global & Body --- */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    background: #2e1f2b;
    color: #fff;
}

/* --- 2. Header --- */
.main-header {
    width: 94%;
    height: 100px;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(46, 31, 43, 0.95);
    flex-wrap: wrap;
    border: 2px solid #d99c6c;
}

.main-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: #d99c6c;
}

.main-header nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-header nav ul li a {
    color: #d99c6c;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.main-header .header-cta {
    padding: 10px 25px;
    border: 2px solid #d99c6c;
    color: #d99c6c;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

/* Header Hovers */
.main-header a:hover,
.main-header nav ul li a:hover {
    color: #fff !important;
    background: #d99c6c !important;
}

/* --- 3. Hero Section --- */
.hero-section {
    width: 99%;
    min-height: 65vh;
    border: 5px solid #d99c6c;
    margin: 20px auto;
    padding: 0;
    overflow: hidden;
    background: url('./img/banner.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex-direction: row;
    text-align: left;
}

.hero-section .hero-content {
    max-width: 600px;
    margin-left: 80px;
    color: #fff;
}

.hero-section .hero-content h1 {
    font-size: 38px;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 20px 0;
}

.hero-section .hero-content h1 span {
    color: #d99c6c;
}

.hero-section .hero-content .hero-cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    border: 2px solid #d99c6c;
    color: #d99c6c;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.hero-section .hero-content .hero-cta:hover {
    background: #d99c6c;
    color: #2e1f2b;
}

.hero-section .hero-img {
    width: 360px;
    height: 460px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: 80px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

/* --- 4. About Section --- */
.about-section {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    border: 3px solid #d99c6c;
    border-radius: 15px;
    background: #2e1f2b;
    box-sizing: border-box;
    overflow: hidden;
}

.about-section .about-image-card {
    width: 45%;
    max-width: 500px;
    height: 500px;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.about-section .about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-section .about-content {
    width: 50%;
    min-width: 250px;
    color: #fff;
    padding-left: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.about-section .about-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #d99c6c;
}

.about-section .about-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d99c6c;
    color: #2e1f2b;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}
.social-icons a:hover {
    transform: scale(1.1);
}

/* --- 5. Services Section --- */
.services-section {
    width: 100%;
    padding: 50px;
    background: #2e1f2b;
    border: 3px solid #d99c6c;
    border-radius: 15px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
}

.services-section h2 {
    color: #d99c6c;
    font-size: 36px;
    margin-bottom: 30px;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.service-card {
    flex: 1 1 250px;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    overflow: hidden;
    background: #3a2a3f;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.3s;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card .service-content {
    background: rgba(46, 31, 43, 0.8);
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card .service-content h3 {
    margin: 0 0 10px 0;
    color: #d99c6c;
}

.service-card .service-content a {
    padding: 8px 20px;
    border: 2px solid #d99c6c;
    color: #d99c6c;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s;
}

.service-card .service-content a:hover {
    background: #d99c6c;
    color: #2e1f2b;
}

/* --- 6. Gallery Section --- */
.gallery-section {
    width: 100%;
    padding: 50px 20px;
    background: url('./img/portfolio-bg.jpg') no-repeat center center;
    background-size: cover;
    box-sizing: border-box;
    border: 3px solid #d99c6c;
    border-radius: 15px;
    color: #fff;
}

.gallery-section .section-title {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-section .section-title h2 {
    color: #d99c6c;
    font-size: 36px;
    margin-bottom: 10px;
}

.gallery-section .section-title hr {
    width: 60px;
    border: 2px solid #d99c6c;
    margin: auto;
}

#portfolio-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.portfolio-item {
    flex: 1 1 220px;
    max-width: 220px;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.portfolio-item a {
    text-decoration: none;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(46, 31, 43, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.portfolio-item a:hover .overlay {
    opacity: 1;
}

.portfolio-item .overlay h4 {
    color: #d99c6c;
    margin: 0;
}

/* --- 7. Video/Memory Section --- */
.video-section {
    width: 100%;
    padding: 50px;
    border: 3px solid #d99c6c;
    border-radius: 15px;
    background: #2e1f2b;
    box-sizing: border-box;
    margin-top: 50px;
}
.video-section h2 {
    color: #d99c6c;
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}
.video-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}
.video-card {
    position: relative;
    flex: 1 1 32%; /* Allows wrapping */
    min-width: 250px;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}
.video-card video {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* --- 8. Feedback Section --- */
.feedback-section {
    width: 100%;
    padding: 60px 20px;
    background: #2e1f2b;
    color: white;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 5px solid #d99c6c;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.feedback-section h2 {
    font-size: 32px;
    color: #d99c6c;
    margin-bottom: 40px;
    text-transform: uppercase;
}
#feedbackContainer {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-sizing: border-box;
    transition: opacity 0.5s; /* CSS transition for fade */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    border: 2px solid #d99c6c;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#feedbackText {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: #fff;
    text-align: center;
}
.feedback-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
#feedbackPhoto {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #d99c6c;
}
#feedbackName {
    font-size: 18px;
    font-weight: bold;
    color: #d99c6c;
}

/* --- 9. Contact Section --- */
.contact-section {
    width: 100%;
    padding: 50px 20px;
    box-sizing: border-box;
    border: 3px solid #d99c6c;
    border-radius: 15px;
    background: #2e1f2b;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.contact-details {
    width: 45%;
    min-width: 250px;
    color: #fff;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    margin-bottom: 20px;
}
.contact-details h2 {
    color: #d99c6c;
    font-size: 32px;
    margin-bottom: 20px;
}
.contact-details p {
    margin: 10px 0;
}
.contact-map {
    width: 50%;
    min-width: 250px;
    border: 2px solid #d99c6c;
    border-radius: 10px;
    overflow: hidden;
    height: 415px; /* Taller height for map */
    margin-bottom: 20px;
}
.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- 10. Footer --- */
.main-footer {
    width: 100%;
    padding: 30px 20px;
    box-sizing: border-box;
    border-top: 3px solid #d99c6c;
    background: #2e1f2b;
    color: #fff;
    text-align: center;
    border-radius: 10px 10px 0 0;
}
.main-footer p {
    margin: 0;
    font-size: 16px;
}
.main-footer .social-icons {
    margin-top: 10px;
    justify-content: center; /* Center footer icons */
}
.main-footer .social-icons a {
    background: none; /* Footer icons are just color */
    color: #d99c6c;
    font-size: 20px;
    margin: 0 10px;
}
.main-footer .social-icons a:hover {
    color: #fff;
    background: none; /* Ensure no bg on hover */
    transform: scale(1.2);
}

/* --- 11. Responsive Media Queries --- */

/* == Tablet (max-width: 992px) == */
@media (max-width: 992px) {
    /* Header */
    .main-header {
        height: auto !important;
        padding: 15px 20px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .main-header nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Hero (Replaces JS function) */
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px 0 20px;
        justify-content: flex-start;
    }
    .hero-section .hero-img {
        width: 100%;
        max-width: 280px;
        height: auto;
        object-fit: contain;
        margin: 30px auto 0 auto;
    }
    .hero-section .hero-content {
        margin: 0 auto;
    }
    .hero-section .hero-content h1 {
        margin-top: 20px;
    }
    
    /* About */
    .about-section {
        flex-direction: column !important;
        padding: 15px !important;
    }
    .about-section .about-image-card {
        width: 100% !important;
        height: auto !important;
        margin: 0 auto 20px auto !important;
    }
    .about-section .about-content {
        width: 100% !important;
        padding-left: 0 !important;
    }
    .about-section .about-content p {
        font-size: 16px !important;
    }
    .social-icons a { /* Affects all social icons */
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }

    /* Services */
    .services-container {
        flex-direction: row;
        justify-content: center;
    }
    .service-card {
        flex: 1 1 45% !important;
        margin-bottom: 20px;
    }
    
    /* Gallery */
    .portfolio-item {
        flex: 1 1 45%;
        max-width: 45%;
    }
    
    /* Video */
    .video-container {
        flex-direction: column !important;
        align-items: center !important;
    }
    .video-card {
        width: 90% !important;
        margin-bottom: 20px !important;
    }
    
    /* Contact */
    .contact-section {
        flex-direction: column !important;
    }
    .contact-details, .contact-map {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    .contact-map {
        height: 250px !important;
    }

    /* Footer */
    .main-footer p { font-size: 14px !important; }
    .main-footer .social-icons a { font-size: 18px !important; }
}

/* == Mobile (max-width: 600px) == */
@media (max-width: 600px) {
    /* Header */
    .main-header {
        padding: 10px 15px !important;
    }
    .main-header nav ul {
        gap: 10px !important;
    }

    /* About */
    .about-section .about-content h2 {
        font-size: 28px !important;
    }
    .about-section .about-content p {
        font-size: 14px !important;
    }
    .social-icons a {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    /* Services */
    .service-card {
        flex: 1 1 100% !important;
    }
    
    /* Gallery */
    .gallery-section h2 { font-size: 28px !important; }
    .portfolio-item {
        flex: 1 1 100%;
        max-width: 80%;
    }
    
    /* Feedback */
    #feedbackContainer {
        max-width: 90%;
        padding: 20px;
    }
    #feedbackText { font-size: 16px; }
    #feedbackPhoto { width: 50px; height: 50px; }
    #feedbackName { font-size: 16px; }

    /* Contact */
    .contact-details h2 { font-size: 24px !important; }
    .contact-details p { font-size: 14px !important; }
    .contact-map { height: 200px !important; }

    /* Footer */
    .main-footer p { font-size: 12px !important; }
    .main-footer .social-icons a {
        font-size: 16px !important;
        margin: 0 8px !important;
    }
}