/* General Reset */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f4f4;
}

.projects-section {
    padding: 20px;
    text-align: center;
}

.projects-section h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

.project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.project-card h2 {
    margin: 15px 0 5px;
    font-size: 18px;
    color: #333;
}

.project-card p {
    margin: 0 15px 15px;
    font-size: 14px;
    color: #666;
}

/* Modal Styling */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gallery-modal .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-modal .close:hover {
    transform: scale(1.1);
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.control-btn {
    background: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.control-btn:hover {
    background: #333;
    color: #fff;
}

.sti {
    padding: 3px;
    margin: 15px;
    background-color: #4CAF50;
    margin: 20px;
    height: 50px;

    /* Flexbox for center alignment */
    display: flex;
    justify-content: center; /* Horizontal alignment */
    align-items: center;    /* Vertical alignment */
}

.p {
    margin: 25px; /* Reset margin for precise centering */
    color: white; /* Optional: Better contrast for text */
    font-size: 16px; /* Adjust as needed */
}



/* Footer */
.footer {
    background-color: green;
    color: white;
    padding: 20px;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .footer-logo h2 {
    color: white;
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links ul li a {
    color: white;
  }
  
  .footer-contact p {
    margin: 5px 0;
  }
  
  .footer-copyright {
    text-align: center;
    margin-top: 20px;
  }
  
 

 /* Navbar */
 header.navbar {
    background-color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  header.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: green;
  }
  
  header.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
  }
  
  header.navbar nav ul li a {
    color: #000;
    font-size: 16px;
    transition: color 0.3s;
  }
  
  header.navbar nav ul li a:hover {
    color: green;
  }
  

.sub{
    color:#4CAF50;

}


 /*specil */
 body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #007f00;
    margin: 30px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Lightbox styling */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.lightbox #lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    outline: none;
}

#lightbox-prev {
    left: 10%;
}

#lightbox-next {
    right: 10%;
}
