/* ===========================================
   ACHIEVEMENTS.CSS - Achievements Page Specific Styles
   =========================================== */

/* ===========================================
   STUDENT ACHIEVEMENTS SECTION
   =========================================== */

#studentachievements {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f8f9fa;
    padding-bottom: 60px;
}

.achievements-header {
    font-size: 2.8rem;
    color: #094d6b;
}

.header-img {
    width: 200px;
    height: auto;
    margin-top: 10px;
    transition: transform 0.3s ease;
}

.header-img:hover {
    transform: scale(1.05);
}

/* ===========================================
   ACHIEVEMENTS GRID
   =========================================== */

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px;
}

.card {
    background-color: #f3f3f3;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px #094e6b5a;
}

.card h3 {
    margin: 0;
}

.image-header {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
}

.image-header img {
    width: 100%;
    height: auto;
    display: block;
}

.date-tag {
    position: absolute;
    background: #094d6b;
    color: #F5E6B8;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 10px;
    top: 10px;
    left: 10px;
    border-radius: 4px;
}

.card-header {
    color: #094d6b;
    text-decoration: solid;
}

/* ===========================================
   ACHIEVEMENT MODAL
   =========================================== */

.achievement-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(3px);
}

.achievement-overlay.active {
    display: flex;
}

.modal {
    background: #fff;
    width: 80%;
    max-width: 900px;
    height: 80vh;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s ease-in-out;
}

.modal.active {
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f9f9f9 !important;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #094d6b;
}

.modal-content img {
    width: 100%;
    display: block;
}

.modal-content h2 {
    margin-top: 0;
    color: #094d6b;
}

.modal-content p {
    color: #555;
}

.achievement-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 40px;
    cursor: pointer;
    color: #094d6b;
    background: rgba(0, 0, 0, 0);
    border-radius: 4px;
    padding: 5px 10px;
    font-family: 'Courier New', Courier, monospace;
    transition: all 0.3s ease;
}

.achievement-close-btn:hover {
    transform: translateX(5px);
}
/* ===========================================
   ACHIEVEMENT GALLERY
   ===========================================*/

.achievement-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    justify-items: center;
}

.achievement-gallery-item {
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 200px;
    height: 200px;
    position: relative;
}

.achievement-gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.achievement-gallery-item img {
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
}

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

.achievement-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 75, 90, 0.9));
    color: white;
    padding: 2rem;
    transform:translateY(100%) ;
    transition: transform 0.3s ease;
    text-align: center;
}

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

.achievement-gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .achievements-header {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .header-img {
        width: 150px;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 15px;
    }
    
    .card {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 15px 30px rgba(9, 78, 107, 0.2);
    }
    
    .modal {
        width: 90%;
        height: 85vh;
        border-radius: 15px;
    }
    
    .date-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .achievements-header {
        font-size: 1.8rem;
    }
    
    .header-img {
        width: 120px;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .card {
        padding: 15px;
    }
    
    .modal {
        width: 95%;
        height: 90vh;
        border-radius: 12px;
    }
    
    .modal-content {
        padding: 15px;
    }
    
    .achievement-close-btn {
        font-size: 30px;
        top: 5px;
        right: 10px;
    }
    .achievement-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
}

.achievement-gallery-item {
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 200px;
    height: 200px;
    position: relative;
}

.achievement-gallery-item:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.achievement-gallery-item img {
    width: 200px;
    height: 200px;
    transition: transform 0.3s ease;
}

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

.achievement-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(27, 75, 90, 0.9));
    color: white;
    padding: 2rem;
    transform:translateY(100%) ;
    transition: transform 0.3s ease;
    text-align: center;
}

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

.achievement-gallery-overlay h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
}


.profile-photo {
    width: 400px;         
    height: 400px;        
    overflow: hidden;     
    border-radius: 50%;   
  }
  
  .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;    
    object-position: center top; 
  }

  .web-dev-title {
    margin-top: 40px;      
    text-align: center;    
    font-size: 28px;       
    font-weight: 600;      
    color: #333;          
    font-family: 'Poppins', sans-serif; 
    font-size: 2.8rem;
    color: #094d6b;
  }
  
  #websitefounders .section-header {
    border-bottom: 2px solid #000; 
    padding-bottom: 20px; 
    margin-bottom: 20px;  
}

/* Thanks Section */
.thanks-section {
    margin: 60px auto;
    text-align: center;
    max-width: 1000px;
    padding: 20px;
  }
  
  .thanks-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
  }
  
  .thanks-text {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
  }
  
  .thanks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  
  .thanks-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }
  
  .thanks-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  }
  
  .thanks-card h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
  }
  
  .thanks-card h4 a {
    text-decoration: none;
    color: #2980b9;
    transition: color 0.3s;
  }
  
  .thanks-card h4 a:hover {
    color: #1a5276;
  }
  
  .thanks-card p {
    font-size: 0.95rem;
    color: #777;
  }
  
/* make the founders name always visible on screens less than 992 px like mobile and tablets */
@media (max-width: 992px) {
    .achievement-gallery-item .achievement-gallery-overlay {
      opacity: 1 !important;       
      visibility: visible !important;
      transform: translateY(0) !important; 
    }
  }
  
  
