@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Playfair:ital,opsz,wght@0,5..1200,300..900;1,5..1200,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --primary: #2E8B57;
    --secondary: #4CAF50;
    --dark: #1E5631;
    --light: #E8F5E9;
    --accent: #FFC107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}
.no-scroll {
    overflow: hidden;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}
/*================================ Header ===================================== */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin: 1.5em;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent);
    animation: spin 5s linear infinite;
}
.logo span {
    font-size: larger;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }   
    
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.3s ease-in-out;
    max-height: 500px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}
@media (max-width: 1200px) {
    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--dark));
        padding: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
    
    nav ul.show-mobile-menu {
        padding: 1rem 0;
        max-height: 500px; 
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
}
@media (max-width: 700px) {
    .logo span{
        font-size: 20px;
    }
}
@media (max-width: 500px) {
    .logo span{
        font-size: 0%;
    }
}
/*==================Search Section=========================*/
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 1.5em; 
    height: 1.5em;
    transition: width 0.4s ease-in-out;
    overflow: hidden;
    border-radius: 20px;
    background-color: white;
    border: 1px solid #ccc;
}

.search-container:hover,
.search-container:focus-within {
width: 12.5em; 
}


.search-container:hover .search-icon,
.search-container:focus-within .search-icon {
opacity: 0;
}

.search-container:hover {
width: 12.5em; 
}

.search-input {
width: 30em;
padding: 10px;
border: none;
outline: none;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

.search-container:hover .search-input,
.search-container:focus-within .search-input {

opacity: 1;
}

.search-icon {
position: absolute;
left: 2px;
font-size: 20px;
cursor: pointer;
display: flex;
align-items: center;
color: #666; 
z-index: 2; 
pointer-events: none; 
}

.search-active {
    transition: background-color 0.5s ease;
    background-color: rgba(76, 175, 80, 0.1);
}

.search-highlight {
    transition: all 0.3s ease;
}


.search-input:not(:placeholder-shown) {
    opacity: 1 !important;
}
@media (max-width: 768px) {
.search-container {
    width: 2.5em; 
    height: 2.5em; 
    position: relative;
    margin-left: 5px;
}

.search-icon {
    font-size: 1.2rem; 
    left: 50%; 
    transform: translateX(-50%);
}

.search-container:focus-within .search-icon,
.search-container:hover .search-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-container:focus-within,
.search-container:hover {
    width:90% !important; /* Full width expansion on mobile */
    background-color: white;
    border: 1px solid #ccc;
}

.search-input {
    width: calc(100% - 20px); /* Account for padding */
    padding-left: 10px;
}

/* Ensure the input is properly accessible when container is expanded */
.search-container:focus-within .search-input,
.search-container:hover .search-input {
    opacity: 1;
    padding-left: 15px;
}

    /* Hide the search container completely when not active and empty */
    .search-container:not(:focus-within) .search-input:placeholder-shown:not(:focus) {
    display: none;
    }
}
@media (max-width: 980px) {
.search-container {
    width: 2.5em; /* Slightly larger for mobile touchpoints */
    height: 2.5em; /* Make it square for better touch target */
    position: relative;
    margin-left: 5px;
}

.search-icon {
    font-size: 1.2rem; /* Larger icon for mobile */
    left: 50%; /* Center the icon */
    transform: translateX(-50%);
}

.search-container:focus-within .search-icon,
.search-container:hover .search-icon {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-container:focus-within,
.search-container:hover {
    width: 100%; /* Full width expansion on mobile */
    background-color: white;
    border: 1px solid #ccc;
}

.search-input {
    width: calc(100% - 20px); /* Account for padding */
    padding-left: 10px;
}

/* Ensure the input is properly accessible when container is expanded */
.search-container:focus-within .search-input,
.search-container:hover .search-input {
    opacity: 1;
    padding-left: 15px;
}

    /* Hide the search container completely when not active and empty */
    .search-container:not(:focus-within) .search-input:placeholder-shown:not(:focus) {
    display: none;
    }
}

/*====================Search Section End==============================*/

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}
/* Mobile menu when active */
.show-mobile-menu {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.show-mobile-menu li {
    margin: 0 0.5rem;
}


/* ============================= Hero Carousel Styles ===========================*/
.service-hero-carousel {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.service-carousel-row {
    height: 33.333%; 
    width: 100%;
    display: flex;
    position: relative;
    animation: scrollRight 60s linear infinite;
}

.service-carousel-row.reverse {
    animation: scrollLeft 60s linear infinite;
}

.service-carousel-row:hover {
    animation-play-state: paused;
}

.service-carousel-row img {
    height: 100%;
    min-width: 250px; 
    object-fit: cover;
    margin-right: 0; 
}

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

.service-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1 rem;
    position: relative;
    z-index: 3;
}

.hero-content {
    color: white;
    max-width: 600px;
    background-color:transparent;
    padding: 1em;
    text-align: left;
}

.hero-carousel h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-carousel p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn {
    margin-top: 1em;
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--accent, #FFD000); 
    color: #333;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

@keyframes scrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollLeft {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (min-width: 769px) {
    .service-carousel-container {
        width: 110%; 
        left: -5%;
    }
}


@media (max-width: 768px) {
    .hero-content {
        padding: 1.5rem;
        max-width: 90%;
    }
    
    .service-hero-carousel h1 {
        font-size: 2.2rem;
    }
    
    .service-hero-carousel {
        display: flex;
        flex-direction: column;
        justify-content: flex-start; 
        height: auto; 
        min-height: 100vh; 
    }
    
    .service-carousel-container {
        position: relative; 
        height: 800px; 
        width: 110%;
        left: -5%; 
        overflow: hidden; 
    }
    
    .hero-content {
        width: 100%; 
        max-width: 100%; 
    }
}

@media (max-width: 400px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    .hero-content p {
        font-size: 1rem !important;
    }
    .button {
        display: flex;
        justify-content: center;
    }
    
    .service-carousel-container {
        width: 120%;
        left: -10%;
        height: 600px; 
    }
}

/* Services Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.service-img {
    height: 300px;
    background: url('/api/placeholder/400/200') center/cover no-repeat;
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.service-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.service-link:hover {
    gap: 10px;
}

/* Stats Section */
.stats {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

.section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    border-radius: 2px;
}

/* ================Projects Section / Carousel =================*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 0;
}
.carousel-container {
    position: relative;
    margin: 2rem auto;
    max-width: 1000px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

@keyframes rotateBorder {
    0% {
      border-image: linear-gradient(0deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    25% {
      border-image: linear-gradient(90deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    50% {
      border-image: linear-gradient(180deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    75% {
      border-image: linear-gradient(270deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    100% {
      border-image: linear-gradient(360deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
  }
  
.carousel {
    position: relative;
    height: 550px;
    perspective: 1000px;
    border-radius: 15px;
}

.carousel-track {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transform: scale(0.9) translateZ(-200px);
    transition: var(--transition);
    border-radius: 16px;
    overflow: hidden;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    z-index: 10;
}

.carousel-slide.prev,
.carousel-slide.next {
    opacity: 0.5;
    z-index: 5;
}

.carousel-slide.prev {
    transform: scale(0.95) translate(-30%, 0) rotateY(10deg);
}

.carousel-slide.next {
    transform: scale(0.95) translate(30%, 0) rotateY(-10deg);
}

.img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: var(--light);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.carousel-slide.active .carousel-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.carousel-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.carousel-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}



/* Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 20;
}

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.control-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.control-btn i {
    transition: transform 0.3s ease;
}

.control-btn:hover i {
    transform: scale(1.2);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 20;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    width: 30px;
    border-radius: 10px;
    background-color: var(--primary);
}

/* Progress bar */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    background-color: var(--primary);
    width: 0;
    transition: width 0.1s linear;
    z-index: 20;
}

/* Thumbnails */
.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
    border: 3px solid transparent;
}

.thumbnail:hover {
    opacity: 0.9;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
    transform: scale(1.05);
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .carousel {
        height: 500px;
    }

    .carousel-title {
        font-size: 1.8rem;
    }

    .carousel-desc {
        font-size: 1rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }
}
/* =============== Box modal for Images ======================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
@keyframes rotateBorder {
    0% {
      border-image: linear-gradient(0deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    25% {
      border-image: linear-gradient(90deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    50% {
      border-image: linear-gradient(180deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    75% {
      border-image: linear-gradient(270deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
    100% {
      border-image: linear-gradient(360deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    }
  }

#lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 4px solid;
    border-image: linear-gradient(45deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00) 1;
    animation: rotateBorder 1s linear infinite;
    box-shadow: 0 0 15px rgba(173, 255, 47, 0.6);
    overflow: hidden;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}
.lightbox-img::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 17px;
    background: linear-gradient(45deg, #FFFF00, #ADFF2F, #00FF00, #FFFF00);
    background-size: 400%;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.7;
    animation: rotateBorder 1s linear infinite;
}

.lightbox-close:hover {
    background-color: #e74c3c;
    transform: scale(1.1);
}

.lightbox-controls {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0;
    z-index: 10;
}

.lightbox-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    margin: 0 20px;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.lightbox-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}
.img {
    cursor: pointer;
}

.img:hover {
    opacity: 0.95;
}

@media (max-width: 768px) {
    .carousel {
        height: 420px;
    }

    .carousel-content {
        padding: 2rem 1.5rem 1.5rem;
    }

    .carousel-title {
        font-size: 1.6rem;
        margin-bottom: 0.7rem;
    }

    .carousel-desc {
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .carousel-thumbnails {
        display: none;
    }

    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 350px;
    }

    .section-title {
        font-size: 2rem;
    }

    .carousel-title {
        font-size: 1.4rem;
    }
    .control-btn {
        width: 40px;
        height: 40px;
    }
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.gallery-filters a {
    text-decoration: none;
    color: #333;
}

.gallery-filter {
    padding: 0.6rem 1.5rem;
    background-color: white;
    border: 2px solid #eee;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.gallery-filter.active, .gallery-filter:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-item-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-item-category {
    font-size: 0.9rem;
    opacity: 0.8;
}
.gallery-item a {
    text-decoration: none;
    color: white;
}

.gallery-video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(46, 139, 87, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-video-icon {
    opacity: 1;
}

.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.gallery-modal-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.gallery-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
}

.gallery-modal-video {
    width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.gallery-modal-caption {
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 1.2rem;
}

.gallery-load-more {
    display: block;
    margin: 3rem auto 0;
    background-color: var(--primary);
    color: white;
}

/* Video Gallery Container */
.video-gallery-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Grid Layout */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Video Item */
.video-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16/9;
    background-color: #000;
    cursor: pointer;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Video Thumbnail */
.video-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Ensure video is displayed */
}

/* Video Overlay - for gradient effect */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 2;
}

/* Video Info */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    z-index: 3;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.video-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.video-category {
    margin: 0;
    font-size: 0.9rem;
    display: inline-block;
    margin-right: 10px;
}

.video-duration {
    font-size: 0.9rem;
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.2);
    border-radius: 50%;
    z-index: 3;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.play-button:before {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-left: 25px solid #fff;
    border-bottom: 15px solid transparent;
    margin-left: 5px;
}

.video-item:hover .play-button {
    background-color: rgba(255,0,0,0.7);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
}

@media screen and (max-width: 480px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}
/* Category Navigation Styles */
.gallery-categories-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}
.gallery-categories-nav a {
    text-decoration-line: none;
    color: white;
}
/* From Uiverse.io by cssbuttons-io */ 
.gallery-filter.active,
.filter-button.active,
.filter.selected {
   background-color:  rgb(16, 185, 129);
   font-size: 15px;
   padding: 1em 2em;
   font-weight: 500;
   border: none;
   position: relative;
   overflow: hidden;
   border-radius: 50px;
   cursor: pointer;
}
button {
    font-size: 15px;
    padding: 1em 2em;
    font-weight: 500;
    background: #1f2937;
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    cursor: pointer;
  }
  
  .gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 0.6em;
    margin-top: -0.25em;
    background-image: linear-gradient(
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.3)
    );
  }
  
  .label {
    position: relative;
    top: -1px;
  }
  
  .transition {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    transition-duration: 500ms;
    background-color: rgba(16, 185, 129, 0.6);
    border-radius: 9999px;
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  button:hover .transition {
    width: 14em;
    height: 14em;
  }
  
  button:active {
    transform: scale(0.97);
  }


.category-link {
    padding: 0.6rem 1.5rem;
    background-color: white;
    border: 2px solid #eee;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: all 0.3s;
}

.category-link.active, .category-link:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

 /* -------------------video section---------------------  */

.play-btn {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 139, 87, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.play-btn:hover {
    transform: scale(1.1);
    background-color: var(--primary);
}

.play-btn i {
    color: white;
    font-size: 2rem;
    margin-left: 5px;
}

.video-content h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.video-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-light {
    background-color: white;
    color: var(--dark);
}



@media (max-width: 1200px) {
    .video-container {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--dark));
        padding: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    nav ul.show-mobile-menu {
        padding: 1rem 0;
        max-height: 500px; 
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .mobile-menu {
        display: block !important;
    }
    
    
    
}

@media (max-width: 800px) {
    nav ul {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, var(--primary), var(--dark));
        padding: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);

        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }
    

    nav ul.show-mobile-menu {
        padding: 1rem 0;
        max-height: 500px; 
        opacity: 1;
        pointer-events: all;
    }
    
    nav ul li {
        margin: 0.5rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .gallery-filters {
        flex-direction: column;
        align-items: center;
    }
}
/*======================== Page smooth transition styles ========================*/

  body {
    opacity: 5;
    transition: opacity 0.5s ease;
  }


/* ============================ Footer Section ========================================= */
.footer {
    display: flex;
    flex-direction: column; 
    padding: 2em;
    background-color: #1b0808;
}

.footers-header h1 {
    color: #35bf40;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footers-header ul {
    margin-top: 1em;
    list-style: none;
    padding-left: 0; 
}

.footers-header li {
    margin-bottom: 0.5em; 
}

.footers-header a {
    color: white;
    text-decoration: none;
}

.link-container a:hover {
    margin-left: 15px;
    background-color: #24262a;
    border-radius: 5px;
    transition: 0.2s ease-in-out;
    padding-right: 15px;
}
.header-footer {
    opacity: 0.6;
    color: #f8f9f9;
    font-size: larger;
    font-weight: lighter;
}

@media (min-width: 480px) {
    .example-2 .icon-content a {
        width: 45px;
        height: 45px;
    }
    
    .example-2 .icon-content a svg {
        width: 26px;
        height: 26px;
    }
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .example-2 {
        justify-content: flex-start; 
    }
    
    .example-2 .icon-content a {
        width: 50px;
        height: 50px;
    }
    
    .example-2 .icon-content a svg {
        width: 30px;
        height: 30px;
    }
}


@media (max-width: 480px) {
    .example-2 .icon-content .tooltip {
        left: 50%; 
        transform: translateX(-50%) translateY(-100%);
        white-space: nowrap; 
    }
}
@media (min-width: 992px) {
    .footers-header h1 {
        font-size: 2rem;
    }
}
ul {
    list-style: none;
  }
  
  .soc-med-link {
    width: 100%;
    margin: 1rem 0;
}

.example-2 {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start; 
    gap: 0.5rem; 
}
  .example-2 .icon-content {
    margin: 0 10px;
    position: relative;
  }
  .example-2 .icon-content .tooltip {
    position: absolute;
    top: 20px;
    left: 40%;
    transform: translateY(-100%);
    color: #fff;
    padding: 6px 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  .example-2 .icon-content:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: 5px;
  }
  .example-2 .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #4d4d4d;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover {
    box-shadow: 3px 2px 45px 0px rgb(0 0 0 / 12%);
  }
  .example-2 .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
  }
  .example-2 .icon-content a:hover {
    color: white;
  }
  .example-2 .icon-content a .filled {
    position: absolute;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: #000;
    transition: all 0.3s ease-in-out;
  }
  .example-2 .icon-content a:hover .filled {
    height: 100%;
  }
  
  .example-2 .icon-content a[data-social="linkedin"] .filled,
  .example-2 .icon-content a[data-social="linkedin"] ~ .tooltip {
    background-color: #0274b3;
  }
  
  .example-2 .icon-content a[data-social="github"] .filled,
  .example-2 .icon-content a[data-social="github"] ~ .tooltip {
    background-color: #24262a;
  }
  .example-2 .icon-content a[data-social="instagram"] .filled,
  .example-2 .icon-content a[data-social="instagram"] ~ .tooltip {
    background: linear-gradient(
      45deg,
      #405de6,
      #5b51db,
      #b33ab4,
      #c135b4,
      #e1306c,
      #fd1f1f
    );
  }
  .example-2 .icon-content a[data-social="youtube"] .filled,
  .example-2 .icon-content a[data-social="youtube"] ~ .tooltip {
    background-color: #ff0000;
  } 
  .example-2 .icon-content a[data-social="facebook"] .filled,
.example-2 .icon-content a[data-social="facebook"] ~ .tooltip {
    background-color: #1877f2;
}
.icon-content {
    transition: transform 0.3s ease-in-out;
}
.icon-content:hover {
    transform: scale(1.5);
}
.responsive-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.flex-row-responsive {
    display: flex;
    flex-wrap: wrap;
}
.flex-col-responsive {
    flex: 1;
    min-width: 250px;
    margin: 10px;
}
.responsive-image {
    max-width: 100%;
    height: auto;
}
.responsive-text {
    font-size: clamp(16px, 4vw, 24px);
    line-height: 1.6;
}
    /*========================================== Loading overlay ===========================================*/
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(18, 18, 18, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            visibility: visible;
            opacity: 1;
            transition: visibility 0s, opacity 0.3s;
        }

        .loading-overlay.hide {
            visibility: hidden;
            opacity: 0;
        }
        .futuristic-spinner {
            position: relative;
            width: 100px;
            height: 100px;
        }

        .futuristic-spinner .ring {
            position: absolute;
            border-radius: 50%;
            border: 4px solid transparent;
            border-top-color: #a0ff32;
            border-left-color: #a0ff32;
            box-shadow: 0 0 20px rgba(160, 255, 50, 0.5);
            animation: spin 1.5s linear infinite;
        }

        .futuristic-spinner .ring:nth-child(1) {
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
        }

        .futuristic-spinner .ring:nth-child(2) {
            width: 80%;
            height: 80%;
            top: 10%;
            left: 10%;
            animation-duration: 1.2s;
            animation-direction: reverse;
        }

        .futuristic-spinner .ring:nth-child(3) {
            width: 60%;
            height: 60%;
            top: 20%;
            left: 20%;
            animation-duration: 0.9s;
        }

        .futuristic-spinner .core {
            position: absolute;
            width: 40%;
            height: 40%;
            top: 30%;
            left: 30%;
            background-color: #a0ff32;
            border-radius: 50%;
            box-shadow: 0 0 30px rgba(160, 255, 50, 0.8);
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(0.8); opacity: 0.8; }
        }
     /*========================================= Idle screen saver overlay ====================================*/
     .idle-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.95);
        z-index: 1000;
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s 0.5s, opacity 0.5s;
        overflow: hidden;
    }
    
    .idle-overlay.show {
        visibility: visible;
        opacity: 1;
        transition: visibility 0s, opacity 0.5s;
    }
    
    /* Particle canvas background */
    #particles-canvas {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1;
    }
    
    /* Digital Clock Container */
    .clock-container {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 1;
    }
    
    /* Digital Clock */
    .digital-clock {
        font-family: 'Courier New', monospace;
        font-size: 80px;
        color: #a0ff32;
        text-shadow: 0 0 20px rgba(160, 255, 50, 0.8);
        margin-bottom: 10px;
        background: rgba(0, 0, 0, 0.5);
        padding: 20px 40px;
        border-radius: 10px;
        border: 2px solid #a0ff32;
        box-shadow: 0 0 30px rgba(160, 255, 50, 0.3);
        letter-spacing: 5px;
    }
    
    .date-display {
        font-size: 24px;
        color: #fff;
        margin-top: 20px;
        opacity: 0.8;
    }
    
    .status-text {
        font-size: 18px;
        color: #a0ff32;
        margin-top: 30px;
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 3px;
        animation: blink 1.5s infinite;
    }
    
    /* System status indicators */
    .system-status {
        display: flex;
        margin-top: 40px;
        gap: 30px;
    }
    
    .status-indicator {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .indicator-label {
        font-size: 14px;
        color: #fff;
        opacity: 0.6;
        margin-bottom: 5px;
        text-transform: uppercase;
    }
    
    .indicator-bar {
        width: 100px;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
        position: relative;
    }
    
    .indicator-progress {
        height: 100%;
        background-color: #a0ff32;
        box-shadow: 0 0 10px rgba(160, 255, 50, 0.8);
        animation: fluctuate 8s infinite;
    }
    
    .cpu .indicator-progress {
        animation-delay: 0s;
    }
    
    .memory .indicator-progress {
        animation-delay: 2s;
    }
    
    .network .indicator-progress {
        animation-delay: 4s;
    }
    
    @keyframes fluctuate {
        0% { width: 30%; }
        20% { width: 60%; }
        40% { width: 40%; }
        60% { width: 80%; }
        80% { width: 50%; }
        100% { width: 30%; }
    }
    
    @keyframes blink {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 1; }
    }
     /*========================================= Idle screen saver overlay End====================================*/