* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: #fff;
    overflow-x: hidden;
}

html::before,
html::after {
    display: none !important;
    content: none !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    background: #fff;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    display: none !important;
    content: none !important;
}

/* Navigation */
nav {
    background: #fff;
    color: #333;
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.company-name-header {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #2E7D32;
}

/* Sections */
section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Home Section */
#home {
    background-color: #2E7D32;
    background-image: none;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-origin: padding-box !important;
    background-clip: padding-box !important;
    color: #fff;
    text-align: center;
    padding-top: 120px;
    position: relative;
    min-height: 100vh;
    width: 100%;
    transition: opacity 0.5s ease-in-out;
    overflow: hidden;
    /* Rectangular container - explicitly set to prevent trapezoidal shape */
    /* Full photo from top, can trim from bottom */
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: none !important;
    border-radius: 0 !important;
    box-sizing: border-box;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    transition: opacity 0.5s ease-in-out;
    /* Rectangular overlay - no clip-path */
    clip-path: none !important;
    -webkit-clip-path: none !important;
    transform: none !important;
    pointer-events: none; /* Prevent interference with animations */
    opacity: 1 !important; /* Keep overlay visible during transitions */
}

#home .container {
    position: relative;
    z-index: 2;
}

.home-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

.main-logo {
    max-width: 300px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

#home h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

#home h1 .rs-text {
    color: #2E7D32;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(46, 125, 50, 0.6);
}

#home h1 .vs-text {
    color: #FF9800;
    text-shadow: 
        2px 2px 8px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(255, 152, 0, 0.6);
}

#home p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.2s ease;
}

#home .slogan {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1.2s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.fade-in-up {
    transform: translateY(50px);
}

.scroll-animate.fade-in-left {
    transform: translateX(-50px);
}

.scroll-animate.fade-in-right {
    transform: translateX(50px);
}

.scroll-animate.fade-in {
    transform: scale(0.9);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger animation delays for child elements */
.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.4s;
}

.scroll-animate.delay-5 {
    transition-delay: 0.5s;
}


/* Services Section */
#services {
    background: #f8f9fa;
    min-height: auto;
    padding: 5rem 2rem;
}

#services h2, #achievement h2, #about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2E7D32;
}

/* Services Tree Structure */
.services-tree {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    position: relative;
}

.tree-branch {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tree-node {
    background: #fff;
    border: 2px solid #2E7D32;
    border-radius: 6px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: center;
    min-width: 250px;
}

.root-node {
    background: #2E7D32;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.root-node h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.root-node:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tree-connector {
    width: 2px;
    height: 30px;
    background: #2E7D32;
    position: relative;
    margin: 0 auto;
}

.tree-connector::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #2E7D32;
}

.tree-children {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    position: relative;
    padding-top: 1rem;
}

.tree-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    height: 2px;
    background: #2E7D32;
}

.child-node {
    background: #f8f9fa;
    border-color: #ddd;
    color: #333;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.75rem 1.25rem;
    min-width: 180px;
}

.child-node span {
    display: block;
}

.child-node:hover {
    background: #e8f5e9;
    border-color: #2E7D32;
    color: #2E7D32;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.child-node.active {
    background: #2E7D32;
    border-color: #1B5E20;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(46, 125, 50, 0.3);
}

/* Category-specific colors for tree */
.tree-branch[data-category="geotech"] .root-node {
    background: #1976D2;
    border-color: #1565C0;
}

.tree-branch[data-category="geotech"] .tree-connector {
    background: #1976D2;
}

.tree-branch[data-category="geotech"] .tree-connector::before {
    border-top-color: #1976D2;
}

.tree-branch[data-category="geotech"] .tree-children::before {
    background: #1976D2;
}

.tree-branch[data-category="geotech"] .child-node:hover {
    border-color: #1976D2;
    color: #1976D2;
}

.tree-branch[data-category="geotech"] .child-node.active {
    background: #1976D2;
    border-color: #1565C0;
}

.tree-branch[data-category="structural"] .root-node {
    background: #4CAF50;
    border-color: #2E7D32;
}

.tree-branch[data-category="structural"] .tree-connector {
    background: #4CAF50;
}

.tree-branch[data-category="structural"] .tree-connector::before {
    border-top-color: #4CAF50;
}

.tree-branch[data-category="structural"] .tree-children::before {
    background: #4CAF50;
}

.tree-branch[data-category="structural"] .child-node:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.tree-branch[data-category="structural"] .child-node.active {
    background: #4CAF50;
    border-color: #2E7D32;
}

.tree-branch[data-category="water"] .root-node {
    background: #00BCD4;
    border-color: #0097A7;
}

.tree-branch[data-category="water"] .tree-connector {
    background: #00BCD4;
}

.tree-branch[data-category="water"] .tree-connector::before {
    border-top-color: #00BCD4;
}

.tree-branch[data-category="water"] .tree-children::before {
    background: #00BCD4;
}

.tree-branch[data-category="water"] .child-node:hover {
    border-color: #00BCD4;
    color: #00BCD4;
}

.tree-branch[data-category="water"] .child-node.active {
    background: #00BCD4;
    border-color: #0097A7;
}

.tree-branch[data-category="survey"] .root-node {
    background: #FF9800;
    border-color: #F57C00;
}

.tree-branch[data-category="survey"] .tree-connector {
    background: #FF9800;
}

.tree-branch[data-category="survey"] .tree-connector::before {
    border-top-color: #FF9800;
}

.tree-branch[data-category="survey"] .tree-children::before {
    background: #FF9800;
}

.tree-branch[data-category="survey"] .child-node:hover {
    border-color: #FF9800;
    color: #FF9800;
}

.tree-branch[data-category="survey"] .child-node.active {
    background: #FF9800;
    border-color: #F57C00;
}

.tree-branch[data-category="architecture"] .root-node {
    background: #9C27B0;
    border-color: #7B1FA2;
}

.tree-branch[data-category="architecture"] .tree-connector {
    background: #9C27B0;
}

.tree-branch[data-category="architecture"] .tree-connector::before {
    border-top-color: #9C27B0;
}

.tree-branch[data-category="architecture"] .tree-children::before {
    background: #9C27B0;
}

.tree-branch[data-category="architecture"] .child-node:hover {
    border-color: #9C27B0;
    color: #9C27B0;
}

.tree-branch[data-category="architecture"] .child-node.active {
    background: #9C27B0;
    border-color: #7B1FA2;
}

/* Service Details Panel */
.service-details-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-details-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.panel-header {
    background: #2E7D32;
    color: #fff;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #2E7D32;
}

.panel-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-panel {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}

.close-panel:hover {
    transform: rotate(90deg);
    background: rgba(255,255,255,0.3);
}

.panel-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.network-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.8rem;
}

.network-service-list li {
    color: #555;
    line-height: 1.8;
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.network-service-list li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.5rem;
    font-size: 1.1rem;
}

.network-service-list li:hover {
    color: #2E7D32;
    padding-left: 2.5rem;
    transition: all 0.2s;
}

.network-service-list li:hover:before {
    color: #2E7D32;
    transform: scale(1.2);
}

/* Backdrop overlay */
.service-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Services Drawer System */
.services-drawer-container {
    max-width: 1000px;
    margin: 2rem auto 0;
}

.service-drawer-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.service-drawer-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-drawer-item.active {
    box-shadow: 0 5px 20px rgba(46, 125, 50, 0.2);
}

.service-drawer-header {
    background: #2E7D32;
    color: #fff;
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.service-drawer-header:hover {
    background: #1B5E20;
}

.service-drawer-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.drawer-icon {
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s;
    line-height: 1;
    min-width: 30px;
    text-align: center;
}

.service-drawer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

.sub-service-item {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.sub-service-item:last-child {
    border-bottom: none;
}

.sub-service-item h4 {
    color: #2E7D32;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sub-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.5rem;
}

.sub-service-list li {
    color: #555;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.sub-service-list li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Legacy service card styles (for backward compatibility) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid #4CAF50;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-card h3 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card:hover h3 {
    color: #2E7D32;
}

.service-card:hover {
    border-top: 3px solid #2E7D32;
}

.service-card p {
    color: #666;
    line-height: 1.8;
}

/* Achievement Section */
#achievement {
    background: #fff;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.achievement-item {
    text-align: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.achievement-item:hover {
    transform: scale(1.05);
}

.achievement-item h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.achievement-item p {
    font-size: 1.1rem;
}

.achievement-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.achievement-item:hover .achievement-image {
    transform: scale(1.02);
}

/* About Section */
#about {
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    background: #2E7D32;
    height: 400px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.about-logo {
    max-width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

/* Clientele Section with Staggered Collage */
.clientele-collage-section {
    background: #f8f9fa;
    padding: 3.75rem 1.5rem;
    min-height: 450px;
    position: relative;
}

.clientele-collage-section h2 {
    text-align: center;
    font-size: 1.875rem;
    margin-bottom: 2.25rem;
    color: #2E7D32;
}

.collage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.125rem;
    max-width: 1100px;
    margin: 0 auto;
    height: 375px;
    border-radius: 0;
}

.collage-panel {
    background: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInStagger 1.5s ease-in-out forwards;
    transition: grid-column 0.8s ease, grid-row 0.8s ease;
}

/* Position classes - will be rotated */
.collage-panel.position-1 {
    grid-column: 1;
    grid-row: 1 / 3;
}

.collage-panel.position-2 {
    grid-column: 2;
    grid-row: 1;
}

.collage-panel.position-3 {
    grid-column: 2;
    grid-row: 2;
}

.collage-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(10%);
    transition: all 0.5s ease;
    opacity: 0;
}

.collage-panel.fade-in .collage-image {
    opacity: 1;
    transform: scale(1);
    animation: fadeInImage 0.8s ease-in-out forwards;
}

.collage-panel.fade-out .collage-image {
    opacity: 0;
    transform: scale(0.95);
    animation: fadeOutImage 0.8s ease-in-out forwards;
}

.collage-panel:hover .collage-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

@keyframes fadeInStagger {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutImage {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Legacy Clientele Section (for backward compatibility) */
.clientele-section {
    background: #f8f9fa;
    padding: 4rem 2rem;
    min-height: auto;
}

.clientele-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2E7D32;
}

.clientele-slider-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    height: 300px;
    display: flex;
    align-items: center;
}

.clientele-slider {
    display: flex;
    width: calc(100% * 7); /* 7 slides total, showing 1 at a time */
    transition: transform 0.8s ease-in-out;
}

.clientele-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.clientele-slide img {
    max-width: 90%;
    max-height: 250px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: all 0.3s ease;
    opacity: 0.9;
    display: block;
}

.clientele-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Ensure images load properly */
.clientele-slide img[src=""],
.clientele-slide img:not([src]) {
    display: none;
}

.clientele-slide {
    min-height: 250px;
}

/* Contact Section - Popup Style */
.contact-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-backdrop.active {
    display: block;
    opacity: 1;
}

.contact-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-section.active {
    display: flex;
    opacity: 1;
}

.contact-popup-container {
    background-image: url('contactbg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: visible;
    padding: 2.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.contact-popup-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.contact-section.active .contact-popup-container {
    transform: scale(1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.close-contact-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #f5f5f5;
    color: #333;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-contact-btn:hover {
    background: #e0e0e0;
    color: #000;
    transform: rotate(90deg);
}

.contact-popup-container .section-header {
    margin-bottom: 2rem;
    padding-right: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-popup-container .section-header h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.contact-popup-container .underline {
    width: 60px;
    height: 3px;
    background: #fff;
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-form-container {
    max-width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    overflow: visible !important;
}

.contact-form {
    width: 100%;
    overflow: visible !important;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    overflow: visible !important;
    position: relative;
    align-items: start;
}

/* Ensure the row containing phone input allows dropdown to extend into next row */
.form-row:has(.phone-input-container) {
    margin-bottom: 1rem !important;
    overflow: visible !important;
    position: relative;
    z-index: 1000;
}

.form-group {
    margin-bottom: 1rem;
    overflow: visible !important;
    position: relative;
}

/* Ensure phone input field doesn't get overlapped by dropdown */
.phone-input-container input[type="tel"] {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 200px;
    width: auto;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

/* Email input wrapper for validation icon */
.email-input-wrapper {
    position: relative;
    width: 100%;
}

.email-input-wrapper input {
    width: 100%;
    box-sizing: border-box;
}

.email-validation-icon {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-validation-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.form-group select option {
    background: #2c3e50;
    color: #fff;
    padding: 0.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #fff;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Country code dropdown styling - must override form-group select */
.phone-input-container {
    position: relative;
    z-index: 1001;
    display: flex;
    gap: 0.75rem;
    overflow: visible !important;
    align-items: flex-start;
    height: fit-content;
    min-height: calc(0.75rem * 2 + 1em + 2px);
}

/* When dropdown is expanded, ensure it can extend downward and overlap without affecting layout */
.phone-input-container:has(select[size="5"]),
.phone-input-container.dropdown-expanded {
    margin-bottom: 0 !important;
    position: relative;
    z-index: 10001;
    overflow: visible !important;
    height: calc(0.75rem * 2 + 1em + 2px) !important;
    min-height: calc(0.75rem * 2 + 1em + 2px) !important;
    max-height: calc(0.75rem * 2 + 1em + 2px) !important;
    flex-shrink: 0;
}

/* Create invisible placeholder to maintain space when dropdown is absolute */
.phone-input-container:has(select[size="5"])::before,
.phone-input-container.dropdown-expanded::before {
    content: '';
    display: block;
    width: 120px;
    height: calc(0.75rem * 2 + 1em + 2px);
    flex: 0 0 120px;
    visibility: hidden;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    pointer-events: none;
}

/* Ensure the select itself doesn't take up space when absolute */
.phone-input-container:has(select[size="5"]) select[size="5"],
.phone-input-container.dropdown-expanded select.dropdown-expanded {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
}

.phone-input-container select {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    font-weight: 500 !important;
    width: 120px !important;
    flex: 0 0 auto;
    appearance: menulist !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    position: relative;
    z-index: 1001;
    direction: ltr;
    writing-mode: horizontal-tb;
    vertical-align: top;
    top: 0;
    bottom: auto;
    overflow: visible !important;
    transition: all 0.3s ease, max-height 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
}

/* When select has size > 1, show as list with max 5 visible */
.phone-input-container select[size] {
    overflow-y: auto;
    overflow-x: hidden;
}

.phone-input-container select[size="5"],
.phone-input-container select.dropdown-expanded {
    max-height: calc(5 * (0.75rem * 2 + 0.5rem * 2 + 1.2em));
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000 !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    width: 120px !important;
    margin: 0 !important;
    padding: 0.75rem 0.5rem !important;
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    animation: dropdownSlideDown 0.3s ease-out;
    background: rgba(255, 255, 255, 0.95) !important; /* More opaque when expanded for readability */
    backdrop-filter: blur(10px);
}

@keyframes dropdownSlideDown {
    from {
        opacity: 0;
        max-height: calc(0.75rem * 2 + 1em + 2px);
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: calc(5 * (0.75rem * 2 + 0.5rem * 2 + 1.2em));
        transform: translateY(0);
    }
}

.phone-input-container select[size="1"] {
    overflow: visible;
    max-height: none;
    position: relative !important;
    transition: all 0.3s ease, box-shadow 0.3s ease;
}

.phone-input-container select:focus,
.phone-input-container select:active,
.phone-input-container select:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    z-index: 10000;
    outline: none;
    position: relative;
}


.phone-input-container select option {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    padding: 0.5rem !important;
    display: block !important;
    position: relative;
    direction: ltr;
}

.phone-input-container select option:hover,
.phone-input-container select option:checked {
    background: rgba(255, 255, 255, 0.8) !important;
    color: #2c3e50 !important;
}

/* Ensure dropdown opens downward - prevent upward opening */
.contact-form-container {
    overflow: visible !important;
    position: relative;
}


.form-group textarea {
    resize: vertical;
    min-height: 100px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    margin-top: 0;
    backdrop-filter: blur(5px);
}

/* Ensure the form group containing phone input allows dropdown to extend without expanding */
.form-group:has(.phone-input-container) {
    overflow: visible !important;
    z-index: auto;
    margin-bottom: 1rem !important;
}

/* Allow dropdown to overlap the message textarea - keep spacing normal */
.form-group:has(textarea#message) {
    margin-top: 1rem !important;
    padding-top: 0 !important;
    position: relative;
    z-index: 1;
}


.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}

.submit-btn {
    background: #2E7D32;
    color: #fff;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #1B5E20;
    color: #fff;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.4);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #000;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #000;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    min-width: 140px;
    min-height: 50px;
}

.floating-contact-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: #fff;
    color: #000;
    border-color: #000;
}

.floating-contact-btn:active {
    transform: translateY(-2px);
}

.floating-contact-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
}

.floating-contact-btn span {
    white-space: nowrap;
    color: inherit;
}

/* Footer */
footer {
    background: #2E7D32;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-quick-links {
    text-align: left;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
    transition: all 0.3s ease;
}

.admin-link {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.admin-link a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.admin-link a:hover {
    color: #ffb74d;
}

.footer-contact {
    text-align: left;
}

.footer-address {
    text-align: left;
}

.footer-info div {
    padding: 1rem;
}

.footer-info h3 {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-info p, .footer-info a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.85rem;
}

.footer-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}

.footer-info p span {
    flex: 1;
}

.footer-info p svg {
    flex-shrink: 0;
    margin-right: 0 !important;
}

.footer-info a:hover {
    color: #ccc;
}

.footer-social {
    text-align: left;
}

.social-media-icons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

.social-media-icons a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-media-icons a:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

.social-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icon:hover {
    opacity: 1;
}

.social-icon-svg {
    width: 32px;
    height: 32px;
    fill: #ccc;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-media-icons a:hover .social-icon-svg {
    fill: #fff;
    opacity: 1;
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
}

/* About Page Styles */
.about-hero {
    background: #2E7D32;
    color: #fff;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 5rem;
    min-height: 60vh;
}

/* Services Hero Carousel */
.services-hero-carousel {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    margin-top: 80px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.services-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    gap: 1rem;
}

.carousel-item {
    position: absolute;
    width: 80%;
    max-width: 700px;
    height: 90%;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.6s ease;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 3;
    position: relative;
}

.carousel-item.prev {
    left: 0;
    transform: translateX(-25%) scale(0.8);
    z-index: 2;
}

.carousel-item.next {
    right: 0;
    transform: translateX(25%) scale(0.8);
    z-index: 2;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.hero-logo {
    margin-bottom: 2rem;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.95;
}

.content-section {
    padding: 4rem 2rem;
}

.alt-bg {
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #2E7D32;
    margin-bottom: 1rem;
}

.underline {
    width: 80px;
    height: 4px;
    background: #2E7D32;
    margin: 0 auto;
    border-radius: 2px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.content-text p {
    margin-bottom: 1.5rem;
}

.content-text-full {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.content-text-full p {
    margin-bottom: 1.5rem;
}

.content-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    background: #2E7D32;
    border-radius: 10px;
    padding: 2rem;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-logo {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.mv-card {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4CAF50;
}

.mv-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.mv-icon {
    display: none;
}

.mv-card h3 {
    color: #2E7D32;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.mv-card:hover h3 {
    color: #2E7D32;
}

.mv-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
}

.vision-card {
    text-align: left;
}

.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vision-list li {
    color: #666;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.vision-list li:before {
    content: "•";
    color: #4CAF50;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.vision-list li:hover:before {
    color: #2E7D32;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #4CAF50;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-left-color: #2E7D32;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2E7D32;
}

.value-card:hover .value-icon {
    color: #2E7D32;
}

.value-card h4 {
    color: #2E7D32;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card:hover h4 {
    color: #2E7D32;
}

.value-card p {
    color: #666;
    line-height: 1.8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.why-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid #2E7D32;
}

.why-item h4 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.why-item:hover h4 {
    color: #2E7D32;
    border-bottom-color: #2E7D32;
}

.why-item p {
    color: #666;
    line-height: 1.8;
}

/* Expertise Section */
.expertise-content {
    max-width: 1000px;
    margin: 0 auto;
}

.expertise-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: center;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid #4CAF50;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top-color: #2E7D32;
}

.expertise-item h4 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.expertise-item:hover h4 {
    color: #2E7D32;
}

.expertise-item p {
    color: #666;
    line-height: 1.8;
}

.excellence-note {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #4CAF50;
    margin-top: 2rem;
}

.excellence-note p {
    color: #555;
    line-height: 1.9;
    font-size: 1.05rem;
    margin: 0;
}

.cta-section {
    background: #2E7D32;
    color: #fff;
    text-align: center;
    padding: 4rem 2rem;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    background: #fff;
    color: #2E7D32;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    background: #2E7D32;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.cta-button.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-button.secondary:hover {
    background: #fff;
    color: #2E7D32;
}

/* Responsive */
@media (max-width: 768px) {
    #home {
        /* Rectangular container on mobile - explicitly prevent trapezoidal shape */
        width: 100%;
        clip-path: none !important;
        -webkit-clip-path: none !important;
        transform: none !important;
        border-radius: 0 !important;
    }
    
    #home::before {
        clip-path: none !important;
        -webkit-clip-path: none !important;
        transform: none !important;
    }

    #home h1 {
        font-size: 1.6rem;
        white-space: normal;
        letter-spacing: 1px;
    }

    #home h1 .rs-text,
    #home h1 .vs-text {
        display: inline-block;
    }

    #home .slogan {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    #home p {
        font-size: 1.1rem;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    .nav-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .logo {
        height: 55px;
        margin-bottom: 0.5rem;
    }

    .company-name-header {
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    nav {
        padding: 1.2rem 0;
    }

    .main-logo {
        max-width: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .achievement-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .achievement-item {
        padding: 1rem;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-quick-links,
    .footer-contact,
    .footer-social,
    .footer-address {
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .social-media-icons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .services-hero-carousel {
        height: 50vh;
        min-height: 350px;
        margin-top: 70px;
    }

    .services-carousel-container {
        padding: 1rem;
    }

    .carousel-item {
        width: 85%;
        max-width: 500px;
        height: 75%;
    }

    .carousel-item.prev {
        transform: translateX(-20%) scale(0.75);
    }

    .carousel-item.next {
        transform: translateX(20%) scale(0.75);
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .why-grid,
    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .vision-card {
        text-align: center;
    }

    .vision-list li {
        text-align: left;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }

    /* Services Tree Responsive */
    .services-tree {
        gap: 2.5rem;
        padding: 1.5rem 0.5rem;
    }

    .tree-node {
        min-width: 200px;
        padding: 0.9rem 1.25rem;
    }

    .root-node h3 {
        font-size: 1rem;
    }

    .tree-children {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .tree-children::before {
        display: none;
    }

    .child-node {
        min-width: 100%;
        max-width: 300px;
    }

    .service-details-panel {
        width: 95%;
        max-height: 90vh;
    }

    .panel-header {
        padding: 1rem 1.5rem;
    }

    .panel-header h3 {
        font-size: 1.2rem;
    }

    .panel-content {
        padding: 1.5rem;
    }

    .network-service-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .network-service-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0 0.4rem 1.5rem;
    }
}

/* Services Page Styles */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.service-detailed-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4CAF50;
}

.service-detailed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-detailed-card h3 {
    color: #2E7D32;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-detailed-card > p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: #555;
    line-height: 1.8;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.service-features li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.civil-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.civil-service-item {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #4CAF50;
}

.civil-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.civil-service-item h4 {
    color: #2E7D32;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.civil-service-item p {
    color: #666;
    line-height: 1.8;
}

/* Horizontal Drawer/Tab Styles */
.accordion-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.horizontal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #2E7D32;
    padding-bottom: 0.5rem;
}

.horizontal-tab {
    background: #f8f9fa;
    color: #2E7D32;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid transparent;
    border-bottom: none;
    position: relative;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.horizontal-tab:hover {
    background: #e8f5e9;
    color: #1B5E20;
}

.horizontal-tab.active {
    background: #2E7D32;
    color: #fff;
    border-color: #2E7D32;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(46, 125, 50, 0.3);
}

.horizontal-tab-content {
    display: none;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 0;
    animation: slideIn 0.4s ease-out;
}

.horizontal-tab-content.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accordion-item {
    display: none;
}

.accordion-item.horizontal-active {
    display: block;
}

.accordion-subtitle {
    padding: 1.5rem 2rem 1rem;
    color: #666;
    font-style: italic;
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Horizontal Sub-Items */
.horizontal-subitems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.horizontal-subitem {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.horizontal-subitem:hover {
    border-color: #2E7D32;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
    transform: translateY(-2px);
}

.horizontal-subheader {
    background: #2E7D32;
    color: #fff;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    user-select: none;
}

.horizontal-subheader:hover {
    background: #1B5E20;
}

.horizontal-subheader.active {
    background: #1B5E20;
}

.horizontal-subheader h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.horizontal-subheader .accordion-icon {
    color: #fff;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.horizontal-subheader.active .accordion-icon {
    transform: rotate(45deg);
}

.horizontal-subcontent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

.horizontal-subcontent.active {
    max-height: 2000px;
}

.service-list {
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.service-list li {
    color: #555;
    line-height: 2;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.service-list li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Service Category Styles (for backward compatibility) */
.service-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-category-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #4CAF50;
}

.service-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-category-card h3 {
    color: #2E7D32;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #4CAF50;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .services-detailed-grid {
        grid-template-columns: 1fr;
    }

    .civil-services-grid {
        grid-template-columns: 1fr;
    }

    .service-category-grid {
        grid-template-columns: 1fr;
    }

    .accordion-header {
        padding: 1.2rem 1.5rem;
    }

    .accordion-header h3 {
        font-size: 1.2rem;
    }

    .accordion-subheader {
        padding: 1rem 1.5rem;
    }

    .accordion-subheader h4 {
        font-size: 1.1rem;
    }

    .service-list {
        padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    }

    .accordion-subtitle {
        padding: 1.2rem 1.5rem 1rem;
        font-size: 0.95rem;
    }

    .service-drawer-header {
        padding: 1.2rem 1.5rem;
    }

    .service-drawer-header h3 {
        font-size: 1.2rem;
    }

    .sub-service-item {
        padding: 1.2rem 1.5rem;
    }

    .sub-service-list {
        grid-template-columns: 1fr;
    }

    /* Horizontal Tabs Responsive */
    .horizontal-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }

    .horizontal-tab {
        min-width: 100%;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
    }

    .horizontal-tab-content {
        padding: 1.5rem 1rem;
    }

    .horizontal-subitems {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .horizontal-subheader {
        padding: 0.8rem 1rem;
    }

    .horizontal-subheader h4 {
        font-size: 1rem;
    }

    .service-list {
        padding: 1rem;
    }

    /* Clientele Responsive */
    .clientele-section {
        padding: 3rem 1rem;
    }

    .clientele-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .clientele-slider-container {
        height: 220px;
        padding: 2rem 0;
    }

    .clientele-slide {
        padding: 1rem;
        min-height: 200px;
    }

    .clientele-slide img {
        max-width: 90%;
        max-height: 180px;
    }

    /* Collage Clientele Responsive */
    .clientele-collage-section {
        padding: 2.25rem 0.75rem;
        min-height: 375px;
    }

    .clientele-collage-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .collage-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
        gap: 0.75rem;
        height: 450px;
    }

    .collage-panel.position-1,
    .collage-panel.position-2,
    .collage-panel.position-3 {
        grid-column: 1;
    }

    .collage-panel.position-1 {
        grid-row: 1;
    }

    .collage-panel.position-2 {
        grid-row: 2;
    }

    .collage-panel.position-3 {
        grid-row: 3;
    }

    .collage-panel {
        padding: 0.5625rem;
        border-radius: 6px;
    }

    /* Contact Section Responsive */
    .contact-section {
        padding: 1rem;
    }

    .contact-popup-container {
        padding: 1.75rem;
        max-height: 95vh;
        border-radius: 12px;
    }

    .close-contact-btn {
        top: 0.75rem;
        right: 0.75rem;
        width: 32px;
        height: 32px;
        font-size: 1.3rem;
    }

    .contact-popup-container .section-header {
        padding-right: 2.5rem;
    }

    .contact-popup-container .section-header h2 {
        font-size: 1.6rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .floating-contact-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .floating-contact-btn svg {
        width: 20px;
        height: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem 2rem;
    }
}

