/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #2D8E43;
    /* Theme Color */
    --text-dark: #222222;
    --text-light: #666666;
    --bg-white: #ffffff;
}

body {
    background-color: var(--bg-white);
    overflow-x: hidden;
}

/* =========================================
   Top Info Bar Styles
   ========================================= */
.top-bar {
    display: flex;
    justify-content: space-around;
    /* Distribute space evenly among the 3 items */
    align-items: center;
    padding: 10px 5%;
    background-color: var(--bg-white);
    border-bottom: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Space between icon and text */
}

/* Green color for icons */
.info-item i {
    font-size: 35px;
    color: var(--primary-color);
}

/* Vertical line between icon and text */
.info-text {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #ddd;
    padding-left: 15px;
}

.info-text strong {
    color: var(--text-dark);
    font-size: 16px;
    margin-bottom: 2px;
}

.info-text span {
    color: var(--text-light);
    font-size: 14px;
}

/* Hide Top Bar on scroll */
header.scrolled .top-bar {
    display: none;
}

/* Mobile Responsiveness for Top Bar */
@media screen and (max-width: 768px) {

    /* Hide this large bar on mobile devices for a cleaner look */
    .top-bar {
        display: none;
    }
}

/* =========================================
   NavBar Styles
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: all 0.3s ease;
    /* Smooth transition on scroll */
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Class added on scroll */
header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 5px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    max-width: 1400px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Logo Design */
.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--bg-white);
    cursor: pointer;
    letter-spacing: 1px;
}

.logo .logo-text {
    color: #d1f2c6;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li a {
    text-decoration: none;
    color: var(--bg-white);
    font-weight: 600;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
}

/* Link Hover Animation */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background-color: var(--bg-white);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #d1f2c6;
}

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

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 100;
}

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

/* =========================================
   Responsive Design (Mobile & Tablets)
   ========================================= */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* Mobile Menu Style */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 20px;
    }

    /* Hamburger to 'X' Animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

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

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

/* =========================================
   Fullscreen Hero Section & Slider
   ========================================= */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Take full screen height */
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    padding: 0 10%;
    max-width: 1400px;
}

.hero-overlay-content h1 {
    font-size: 65px;
    color: #f1f1f197;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Green background for the highlighted text */
.highlight-bg {
    background-color: var(--primary-color);
    padding: 2px 20px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-overlay-content p {
    font-size: 20px;
    color: #f1f1f1c1;
    margin-bottom: 40px;
    font-weight: 300;
    max-width: 700px;
}

.slide .hero-overlay-content h1,
.slide .hero-overlay-content p,
.slide .hero-overlay-content .btn {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.slide.active .hero-overlay-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.slide.active .hero-overlay-content p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

.slide.active .hero-overlay-content .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 15px 35px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
}

.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Slider Arrows Design */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--bg-white);
    color: var(--bg-white);
    font-size: 20px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.prev-btn {
    left: 5%;
}

.next-btn {
    right: 5%;
}

/* Mobile Responsiveness for Hero */
@media screen and (max-width: 768px) {
    .hero-overlay-content {
        padding: 0 5%;
        text-align: center;
        margin: 0 auto;
    }

    .hero-overlay-content h1 {
        font-size: 40px;
    }

    .hero-overlay-content p {
        font-size: 16px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .prev-btn {
        left: 2%;
    }

    .next-btn {
        right: 2%;
    }
}

/* =========================================
   About Us Section Styles
   ========================================= */
.about-section {
    padding: 100px 5%;
    background-color: #fcfdfc;
    /* සුදු පාටට හුඟක් කිට්ටු ලා කොළ/අළු පාටක් - hero එකෙන් වෙන් වෙලා පේන්න */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* --- Image Column --- */
.about-image-col {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper .main-img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

/* Floating Experience Badge */
.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(45, 142, 67, 0.4);
    text-align: center;
    border: 5px solid var(--bg-white);
    /* සුදු පාට border එකක් */
    animation: float 3s ease-in-out infinite;
    /* පාවෙන Animation එක */
    z-index: 2;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.experience-badge .years {
    font-size: 45px;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.experience-badge .text {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Text Column --- */
.about-text-col {
    flex: 1;
}

.sub-heading {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text-col .main-heading {
    font-size: 40px;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 700;
}

.highlight-text {
    color: var(--primary-color);
}

.about-text-col p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Features Checklist */
.about-features {
    list-style: none;
    margin-bottom: 40px;
}

.about-features li {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-features li i {
    color: var(--primary-color);
    font-size: 22px;
}

/* --- Mobile Responsiveness --- */
@media screen and (max-width: 991px) {
    .about-row {
        flex-direction: column;
    }

    .about-image-col {
        width: 100%;
        margin-bottom: 50px;
    }

    .experience-badge {
        right: 10px;
        bottom: -20px;
        padding: 20px 25px;
    }

    .experience-badge .years {
        font-size: 35px;
    }

    .about-text-col {
        text-align: center;
    }

    .about-features li {
        justify-content: center;
    }
}

/* =========================================
   Counters / Stats Section Styles
   ========================================= */
.stats-section {
    position: relative;
    background: url('images/stats/1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    padding: 100px 5%;
    color: var(--bg-white);
    text-align: center;
}


.stats-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1;
}

.stats-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.stat-box {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.stat-box .icon-box {
    width: 80px;
    height: 80px;
    background-color: rgba(45, 142, 67, 0.2);
    /* ලා කොළ පාට රවුම */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.stat-box:hover .icon-box {
    background-color: var(--primary-color);
}

.stat-box i {
    font-size: 35px;
    color: var(--primary-color);
    transition: 0.3s;
}

.stat-box:hover i {
    color: var(--bg-white);
}

.stat-box .counter {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--bg-white);
}

.stat-box p {
    font-size: 16px;
    font-weight: 500;
    color: #d1d1d1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .stats-section {
        background-attachment: scroll;
        /* සමහර phone වල parallax වැඩ නැති නිසා ඒක අයින් කරනවා */
        padding: 60px 5%;
    }
}

/* =========================================
   Services Section Styles
   ========================================= */
.services-section {
    padding: 100px 5%;
    background-color: #f9fbf9;
    /* ඉතාමත් ලා කොළ/අළු පසුබිමක් */
}

/* Section Headings (පොදු design එකක්) */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 15px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    /* එක පේලියකට card කීයක් එනවද කියල screen size එක අනුව auto හැදෙනවා */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Individual Service Card */
.service-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

/* Hover Effect for the Card */
.service-card:hover {
    transform: translateY(-10px);
    /* උඩට ඉස්සෙනවා */
    box-shadow: 0 15px 30px rgba(45, 142, 67, 0.1);
    border-bottom-color: var(--primary-color);
    /* යටින් කොළ පාට ඉරක් එනවා */
}

/* Service Icon Layout */
.service-card .icon {
    width: 80px;
    height: 80px;
    background-color: rgba(45, 142, 67, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

/* Hover Effect for the Icon */
.service-card:hover .icon {
    background-color: var(--primary-color);
    color: var(--bg-white);
    transform: scale(1.1) rotateY(360deg);
    /* පොඩ්ඩක් ලොකු වෙලා කරකැවෙනවා */
}

/* Service Details */
.service-card h3 {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .services-section {
        padding: 60px 5%;
    }

    .services-grid {
        gap: 20px;
    }
}

/* =========================================
   Gallery Section Styles
   ========================================= */
.gallery-section {
    padding: 100px 5%;
    background-color: var(--bg-white);
    /* සුදු පාට පසුබිම */
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    /* එක පේලියකට ෆොටෝ කීයක් එනවද කියල screen size එක අනුව auto හැදෙනවා (අවම පළල 350px) */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
}

/* Individual Gallery Image Container */
.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* ෆොටෝ එක zoom වෙද්දී box එකෙන් එලියට යන එක නවත්තනවා */
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* The Image itself */
.gallery-item img {
    width: 100%;
    height: 300px;
    /* ඔක්කොම පින්තූර එකම උසට පෙන්නනවා */
    object-fit: cover;
    /* ෆොටෝ එක ඇද වෙන්නේ නැති වෙන්න */
    display: block;
    transition: transform 0.5s ease;
}

/* The Green Overlay on Hover */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 142, 67, 0.85);
    /* Theme කොළ පාටින් 85% ක් පෙනෙන විදිහට */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* මුලින් මේක පේන්නේ නැහැ */
    transition: opacity 0.4s ease;
}

.gallery-overlay i {
    color: var(--bg-white);
    font-size: 50px;
    transform: translateY(20px);
    /* අයිකන් එක මුලින් ටිකක් පල්ලෙහායින් තියෙන්නේ */
    transition: transform 0.4s ease;
}

/* --- Hover Animations --- */
.gallery-item:hover img {
    transform: scale(1.1);
    /* ෆොටෝ එක පොඩ්ඩක් ලොකු වෙනවා */
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    /* අඳුරු තට්ටුව මතු වෙනවා */
}

.gallery-item:hover .gallery-overlay i {
    transform: translateY(0);
    /* අයිකන් එක පල්ලෙහා ඉඳන් උඩට එනවා */
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .gallery-section {
        padding: 60px 5%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        /* Phone එකේදී කොටු වල සයිස් එක අඩු කරනවා */
    }

    .gallery-item img {
        height: 250px;
    }
}

/* =========================================
   Gallery Filter Buttons
   ========================================= */
.gallery-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 5px 15px rgba(45, 142, 67, 0.3);
}

/* JavaScript එකෙන් පාවිච්චි කරන Classes (Hide & Show animations) */
.gallery-item.hide {
    display: none;
}

.gallery-item.show {
    animation: fadeInScale 0.5s ease-in-out;
}

@keyframes fadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   Contact Us & Footer Styles
   ========================================= */
.contact-section {
    padding: 100px 5%;
    background-color: #f9fbf9;
}

.contact-row {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* Contact Info Cards */
.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    background: var(--bg-white);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.info-card:hover {
    transform: translateX(10px);
    border-left: 5px solid var(--primary-color);
}

.info-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(45, 142, 67, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.info-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.info-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.4;
}

/* Map Styling */
.contact-map {
    flex: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

/* Footer Styling */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px 0;
    font-size: 14px;
}

.text-center {
    text-align: center;
}

/* Mobile Responsiveness */
@media screen and (max-width: 991px) {
    .contact-row {
        flex-direction: column;
    }

    .contact-info,
    .contact-map {
        width: 100%;
    }

    .info-card {
        text-align: center;
        flex-direction: column;
    }
}