* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

section {
    padding: 80px 50px;
}

/* Traditional Top Header Styles - Simplified */
.top-header {
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    z-index: 1100;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.logo-text span {
    color: #ccc;
}

.logo-link .logo-img,
.mobile-logo-link .logo-img {
    height: 40px;
    width: auto;
}

#menu-icon {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

.desktop-logo {
    display: block;
}

.mobile-logo-link {
    display: none;
}

/* New DNS Logo Button Styles */
.dns-logo-button {
    display: flex;
    align-items: center;
    background: black;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
}

.dns-logo-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.dns-logo-img {
    height: 35px;
    width: auto;
    margin-right: 8px;
    filter: brightness(0) invert(1);
}

.dns-button-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .top-header {
        padding: 5px 15px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    #menu-icon {
        display: block;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo-link {
        display: flex;
        justify-content: center;
    }

    /* Hide DNS logo button in mobile view */
    .dns-logo-button {
        display: none !important;
    }

    /* Responsive DNS Logo Button - kept for reference but hidden */
    .dns-logo-button {
        padding: 6px 12px;
        border-radius: 8px;
    }

    .dns-logo-img {
        height: 28px;
        margin-right: 6px;
    }

    .dns-button-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .dns-logo-button {
        padding: 5px 10px;
        border-radius: 6px;
    }

    .dns-logo-img {
        height: 24px;
        margin-right: 4px;
    }

    .dns-button-text {
        font-size: 0.75rem;
    }
}

/* Modern Header with Glassmorphism */
.header {
    width: 100%;
    height: 65px;
    /* Set fixed height */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px 0 15px;
    /* Reduced left and right padding */
    z-index: 1100;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    font-family: 'Fahkwang', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.logo span {
    color: #977f4d;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    gap: 30px;
    /* Add gap between nav links */
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    font-family: 'Aptos', sans-serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    /* Remove flex: 1 to avoid stretching */
    text-align: left;
    padding: 10px 15px;
    white-space: nowrap;
}

.navbar a:hover,
.navbar a.active {
    color: #977f4d;
}

.navbar a:hover::after,
.navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #977f4d, #785E26);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(151, 127, 77, 0.5);
}

#menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Home Section */
.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Home Background Slideshow Styles */
.home-background-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(5px);
}

.home-background-slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.home-background-slideshow .slide.active {
    opacity: 1;
}



.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(120, 94, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(151, 127, 77, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.home-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #f5f5f5, #060400);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-content img {
    width: 200px;
    margin-bottom: 20px;
}

.home-content h1:first-of-type {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 10.0);
}

.home-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 10px 0 20px;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.7);
}

.home-content p::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #007bff;
    margin: 20px auto;
}

.home-content h1:nth-of-type(2) {
    font-size: 1.8rem;
    color: white;
    margin: 20px 0 10px;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.7);
}

.home-content h4 {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 20px;
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.5);
}

.home-content .btn {
    margin-top: 20px;
}

/* Floating action icons */
.home-content a.btn:nth-of-type(1) {
    position: absolute;
    right: -80px;
    top: 20%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: black;
    text-decoration: none;
}

.home-content a.btn:nth-of-type(1):hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.home-content a.btn:nth-of-type(2) {
    position: absolute;
    right: -80px;
    top: 35%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: black;
    text-decoration: none;
}

.home-content a.btn:nth-of-type(2):hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.home-content a.btn:nth-of-type(3) {
    position: absolute;
    right: -80px;
    top: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: black;
    text-decoration: none;
}

.home-content a.btn:nth-of-type(3):hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.home-content a.btn:nth-of-type(4) {
    position: absolute;
    right: -80px;
    top: 65%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.home-content a.btn:nth-of-type(4):hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Responsive for home section */
@media (max-width: 768px) {
    .home-content {
        max-width: 90%;
        padding: 30px 20px;
    }

    .home-content h1:first-of-type {
        font-size: 2rem;
    }

    .home-content h1:nth-of-type(2) {
        font-size: 1.5rem;
    }

    .home-content img {
        width: 80px;
    }

    .home-content a.btn:nth-of-type(1),
    .home-content a.btn:nth-of-type(2),
    .home-content a.btn:nth-of-type(3),
    .home-content a.btn:nth-of-type(4) {
        position: static;
        display: inline-flex;
        margin: 5px;
        width: 40px;
        height: 40px;
    }

    .home-content .btn:last-of-type {
        display: block;
        margin: 20px auto 0;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .home-content {
        padding: 20px;
    }

    .home-content h1:first-of-type {
        font-size: 1.8rem;
    }

    .home-content h1:nth-of-type(2) {
        font-size: 1.3rem;
    }

    .home-content p {
        font-size: 1rem;
    }
}

.home.visible .home-content {
    opacity: 1;
    transform: translateY(0);
}


/* Home Images */
.home-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease;
}

.home.visible+.home-container {
    opacity: 1;
    transform: translateX(0);
}

.home-img {
    width: 250px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.home-img:hover {
    transform: scale(1.05);
}

.btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: 'Aptos', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: inline-block;
    margin: 8px;
}



.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

/* About Section */
.about {
    padding: 60px 50px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row;
}

.about-img {
    flex: 1;
    text-align: center;
}

.about-img img {
    width: 100%;
    max-width: 350px;
    border-radius: 10px;
}

.about-text {
    flex: 1;
    font-family: 'Aptos', sans-serif;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #000000;
    text-align: center;
}

.about-text h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #000000;
    text-align: center;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #444444;
    line-height: 1.8;
    text-align: justify;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 24px;
    color: #785E26;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* Services */
.services .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-heading {
    text-align: left;
}

.services-heading .heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #5a4a1a;
}

.services-slideshow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slides-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide {
    display: none;
    width: 100%;
}

.slide.active {
    display: block;
}

.service-box {
    background: rgba(255, 255, 255, 0.85);
    border: #000000 2px solid;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-family: 'Aptos', sans-serif;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.service-box i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #000000;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.prev-btn:hover,
.next-btn:hover {
    background: #333;
}

.prev-btn {
    left: -5px;
}

.next-btn {
    right: -5px;
}

@media (max-width: 768px) {
    .services .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-heading {
        text-align: center;
    }

    .services-slideshow {
        position: relative;
    }

    .prev-btn,
    .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 10;
    }

    .prev-btn {
        left: 1px;
    }

    .next-btn {
        right: 1px;
    }
}

/* Projects */
.projects .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: #fff;
    border: #000000 2px solid;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-text {
    padding: 20px;
    text-align: center;
    font-family: 'Aptos', sans-serif;
}

.project-text h3 {
    text-align: center;
    margin-bottom: 10px;
}

.project-text h4 {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
    font-weight: 500;
}

.project-text i {
    color: #785E26;
    font-size: 20px;
    margin-right: 10px;
}

/* Testimonials */
.testimonials {
    text-align: center;
    padding: 80px 0;
}

.testimonials-slideshow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials-slides-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: none;
    width: 100%;
    justify-content: center;
    gap: 30px;
}

.testimonial-slide.active {
    display: flex;
}

.testimonial-box {
    background: #fff;
    padding: 30px;
    border: 2px solid #000;
    border-radius: 100px;
    width: 100%;
    max-width: 300px;
    min-height: 250px;
    text-align: center;
    font-family: 'Aptos', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.testimonial-box h4 {
    color: #977f4d;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.testimonial-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial-date {
    color: #888;
    font-size: 0.8rem;
    margin-bottom: 15px;
    text-align: right;
}

.star-rating {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 2px;
}

.star-rating i {
    color: #ffd700;
    font-size: 1.2rem;
}

.testimonial-box p {
    color: #333;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
}

.testimonial-box img {
    width: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.testimonials .prev-btn,
.testimonials .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.testimonials .prev-btn:hover,
.testimonials .next-btn:hover {
    background: #333;
}

.testimonials .prev-btn {
    left: 100px;
}

.testimonials .next-btn {
    right: 100px;
}

/* Footer */
.footer {
    background: #000000;
    color: #f5f5f5;
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #977f4d, transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: start;
    justify-items: stretch;
}

.footer-col.brand {
    justify-self: start;
    text-align: left;
}

.footer-col.contact {
    justify-self: center;
    text-align: center;
    font-family: 'Aptos', sans-serif;
}

.footer-col.subscribe {
    justify-self: end;
    text-align: right;
}

.footer-col {
    position: relative;
}

.footer-col.brand {
    text-align: center;
}

.footer-col.brand h2 {
    font-size: 2.2rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #977f4d, #785E26);
    transition: width 0.3s ease;
}

.footer-col:hover h3::after {
    width: 100px;
}

.footer-col p {
    margin-bottom: 12px;
    color: #ccc;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.footer-col p:hover {
    color: #fff;
}

.footer-col p i {
    color: #977f4d;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.footer-col p:hover i {
    transform: scale(1.1);
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-col a:hover {
    color: #977f4d;
    text-shadow: 0 0 5px rgba(151, 127, 77, 0.5);
}

/* Social Media Icons */
.footer-social {
    margin-top: 25px;
}

.footer-social h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-social a {
    display: inline-block;
    margin-right: 15px;
    font-size: 24px;
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    color: #977f4d;
    transform: translateY(-3px);
    text-shadow: 0 5px 15px rgba(151, 127, 77, 0.4);
}

/* Newsletter/Contact Form */
.footer-col.subscribe {
    background: rgba(255, 255, 255, 0.05);
    width: 200px;
    height: 200px;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(151, 127, 77, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-col.subscribe h3 {
    text-align: center;
    margin-bottom: 25px;
}

.footer-col.subscribe form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-col.subscribe input {
    padding: 12px 15px;
    border: 1px solid rgba(151, 127, 77, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-col.subscribe input:focus {
    outline: none;
    border-color: #977f4d;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(151, 127, 77, 0.3);
}

.footer-col.subscribe input::placeholder {
    color: #aaa;
}

.footer-col.subscribe button {
    padding: 14px 25px;
    background: linear-gradient(135deg, #977f4d, #785E26);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-col.subscribe button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.footer-col.subscribe button:hover::before {
    left: 100%;
}

.footer-col.subscribe button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(151, 127, 77, 0.4);
}

/* Review Button */
.footer-col.subscribe .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #785E26, #977f4d);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.footer-col.subscribe .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(151, 127, 77, 0.4);
}

/* Copyright Section */
.copyright {
    text-align: center;
    font-family: 'Aptos', sans-serif;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(151, 127, 77, 0.3);
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.copyright a {
    color: #977f4d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(151, 127, 77, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .footer-col.brand h2 {
        font-size: 1.8rem;
    }

    .footer-col.subscribe {
        margin: 0 20px;
    }

    /* Center all footer columns on mobile */
    .footer-col.brand,
    .footer-col.contact,
    .footer-col.subscribe {
        justify-self: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-grid {
        gap: 30px;
        padding: 0 15px;
    }

    .footer-col h3 {
        font-size: 1.2rem;
    }

    .footer-col.subscribe {
        padding: 20px;
    }
}

/* Scroll to Top Button Enhancement */
#scrollTopBtn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(151, 127, 77, 0.4);
}

/* Scroll to Top */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#scrollTopBtn.show {
    display: flex;
    opacity: 1;
}

#scrollTopBtn:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

@media (max-width: 700px) {
    #scrollTopBtn {
        right: 12px;
        bottom: 12px;
        font-size: 1.5rem;
        padding: 8px 11px;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.show {
    display: flex !important;
}

.modal-content img,
.modal-content video {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
}

.modal-content {
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.modal-nav {
    display: flex;
    justify-content: baseline;
    margin-top: 10px;
}

.modal-nav button,
.download-btn {
    margin: 0 10px;
    background: #785E26;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-nav-arrow {
    background: #222;
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    /* Increased gap from content */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.modal .close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #050500;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    position: absolute;
    top: 18px;
    right: 28px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #222;
    transition: background 0.2s, color 0.2s;
}

.modal .close:hover {
    background: #fff;
    color: #222;
}

/* Login Modal Custom Styles */
#loginModal {
    background: #fff !important;
}

#loginModal .modal-content {
    background: #e6dacb;
    color: #222;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
}

#loginModal .heading {
    color: #222;
    text-align: center;
    margin-bottom: 28px;
}

#loginModal input {
    background: #f8f8f8;
    color: #222;
    border: 1px solid #ccc;
}

#loginModal .btn {
    background: #785E26;
    color: #fff;
    border-radius: 5px;
    font-size: 1.1rem;
    margin-top: 10px;
}

#loginModal .btn:hover {
    background: #333;
    color: #fff;
}

/* Scroll-based animation */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Universal Section Heading Styles - Matching About Me */
.section-heading,
.section-title,
.heading,
h2.section-title,
h3.section-title,
.services h2,
.projects h2,
.testimonials h2,
.contact h2 {
    text-align: center;
    font-family: 'arial', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #5a4a1a;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(120, 94, 38, 0.3);

}



/* Section Box Styles - Enhanced */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-box,
.section-container,
.content-box {
    background: linear-gradient(270deg, #ffffff 0%, #f8f1e9 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(120, 94, 38, 0.1);
    padding: 50px 40px;
    max-width: 1450px;
    margin: 30px auto;
    border: 1px solid rgba(120, 94, 38, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    font-family: 'Fahkwang', sans-serif;
    color: #4a4a4a;
}

.section-box::before,
.section-container::before,
.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #785E26, #977f4d, #785E26);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(120, 94, 38, 0.2);
}

/* Enhanced hover effect */
.section-box:hover,
.section-container:hover,
.content-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(120, 94, 38, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .section-heading,
    .section-title,
    .heading,
    h2.section-title,
    h3.section-title,
    .about-text h2,
    .services h2,
    .projects h2,
    .testimonials h2,
    .contact h2 {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }

    .section-box,
    .section-container,
    .content-box {
        padding: 30px 20px;
        margin: 30px 15px;
    }
}

@media (max-width: 480px) {

    .section-heading,
    .section-title,
    .heading,
    h2.section-title,
    h3.section-title,
    .about-text h2,
    .services h2,
    .projects h2,
    .testimonials h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

.section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #785E26, #977f4d, #785E26);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(120, 94, 38, 0.2);
}

.section-box>.heading,
.section-box>h2,
.section-box>h3 {
    margin-bottom: 40px;
    font-size: 2.8rem;
    font-weight: 400;
    color: #5a4a1a;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(120, 94, 38, 0.3);
}

.section-box>.heading::after,
.section-box>h2::after,
.section-box>h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #785E26, #977f4d);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(120, 94, 38, 0.3);
}

/* Background animation for body */
@keyframes backgroundPulse {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

body {
    background-size: 400% 400%;
    animation: backgroundPulse 20s ease infinite;
    color: #333;
    line-height: 1.6;
}

.section-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #785E26, #977f4d, #785E26);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 2px 8px rgba(120, 94, 38, 0.2);
}

.section-box>.heading,
.section-box>h2,
.section-box>h3 {
    margin-bottom: 40px;
    font-size: 2.8rem;
    font-weight: 400;
    color: #5a4a1a;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(120, 94, 38, 0.3);
}

.section-box>.heading::after,
.section-box>h2::after,
.section-box>h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #785E26, #977f4d);
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(120, 94, 38, 0.3);
}

/* Responsive for mobile */
@media (max-width: 700px) {
    .section-box {
        padding: 15px 5px;
        margin: 20px 5px;
    }
}

/* Responsive Styles */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .home-container {
        flex-direction: column;
    }

    .home-container .home-img {
        width: 100%;
    }

    .testimonials-slideshow {
        position: relative;
        margin: 0 50px;
    }

    .testimonial-slide {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }

    .testimonial-box {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }

    .testimonial-box:nth-child(n+2) {
        display: none;
    }

    .testimonials .prev-btn,
    .testimonials .next-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 1rem;
    }

    .testimonials .prev-btn {
        left: -15px;
    }

    .testimonials .next-btn {
        right: -15px;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        text-align: center;
    }

    .about-text h4 {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .copyright {
        text-align: center;
    }
}

/* Responsive Navbar */
@media (max-width: 895px) {
    #menu-icon {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .header {
        position: relative;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: transparent;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(151, 127, 77, 0.3);
        display: none;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 0.5rem 0;
        color: #785E26;
        display: block;
        font-size: 1.2rem;
        text-align: center;
        padding: 12px 20px;
        transition: background-color 0.3s ease;
    }

    .navbar a:hover {
        background-color: rgba(151, 127, 77, 0.1);
    }
}

.download-btn {
    display: none;
}

.info-popup {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 999;
    width: 250px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.file-entry {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.file-entry:last-child {
    border-bottom: none;
}

.info-icon:hover+.info-popup {
    display: block;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 1s ease forwards;
}

/* Zoom-in for project cards */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Zoom-in for project cards */
.testimonial-box {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}



/* Button pulse on hover */
.btn,
.download-btn {
    transition: transform 0.2s ease;
}

.btn:hover,
.download-btn:hover {
    transform: scale(1.05);
}

/* Social icon bounce */
.about-img .social-icons i:hover {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Navigation link underline animation */
.navlist li a {
    position: relative;
}

.navlist li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #785E26;
    transition: width 0.3s;
}

.navlist li a:hover::after {
    width: 100%;
}

/* Modal fade-in animation */
.modal {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Initial hidden state */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* Visible state triggers animation */
.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for home logo */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced hover effect for home images */
.home-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.home-img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Subtle pulse animation for buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(120, 94, 38, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(120, 94, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(120, 94, 38, 0);
    }
}


.forgot-password {
    display: block;
    text-align: right;
    color: #785E26;
    text-decoration: underline;
    font-size: 0.98rem;
    margin-top: 8px;
    cursor: pointer;
}

.forgot-password:hover {
    color: #333;
    text-decoration: underline;
}

.testimonials {
    padding: 2rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.testimonial-header h3 {
    color: #977f4d;
    font-size: 1.2rem;
    margin: 0;
}

.star-rating {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.star.filled {
    color: #ffd700;
}

.testimonial-address {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-text {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-date {
    color: #888;
    font-size: 0.8rem;
    text-align: right;
}

.testimonials .wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-box {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial-box h4 {
    color: #977f4d;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.testimonial-box p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.testimonial-box p strong {
    color: #333;
    font-size: 0.9rem;
}

.star-rating-display {
    font-size: 1.5rem;
    color: #ffd700;
}

.star-rating-display .star {
    margin: 0 2px;
}

.star-rating-display .star.filled {
    color: #ffd700;
}

.star-rating-display .star:not(.filled) {
    color: #ddd;
}

#about {
    background-color: #fff;
}

#services {
    background-color: #f0f0f0;
}

#running-projects {
    background-color: #fff;
}

#completed-projects {
    background-color: #f0f0f0;
}

#testimonials {
    background-color: #fff;
}

/* HERO SECTION */

/*
.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #fff;
    text-align: right;
    padding-right: 80px;
    overflow: hidden;
    margin: 0;
}
*/

/* slide container holding individual slide layers */
/*
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
*/

/*
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: translateX(100%);
    animation: slideInFromRight 2s ease-in-out forwards;
    opacity: 1;
}
*/

/* active slide sits centered */
/*
.hero-slide.active {
    transform: translateX(0);
    animation: none;
}
*/

/* exiting slide moves left out of view */
/*
.hero-slide.exit {
    animation: slideOutToLeft 2s ease-in-out forwards;
    opacity: 0;
}
*/

/* Animation: Image slides in from right to left over 2 seconds */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation: Image slides out to left over 2 seconds */
@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* 
.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-content h1 .highlight {
    color: #a8d92e;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: rgba(168, 217, 46, 0.9);
    color: #0a2a4a;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #a8d92e;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: #a8d92e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(168, 217, 46, 0.4);
}
*/

@media (max-width: 768px) {
    /* 
.hero-section {
    height: 70vh;
    padding-right: 40px;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 36px;
}

.hero-content p {
    font-size: 16px;
}

.hero-btn {
    padding: 12px 30px;
    font-size: 16px;
}
*/
}