@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

* {
    padding: 0;
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.navbar {
    background: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 999;
    overflow: hidden;
    height: 72px;
    align-items: center;
    display: flex;
    padding: 0 24px 0 12px;
    justify-content: space-between;
}

.navbar .logo-wrapper {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar .logo-wrapper .navbar-logo {
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

.navbar .logo-wrapper .logo-text p {
    user-select: none;
    font-size: 12px;
    width: 100%;
}

.navbar .logo-wrapper .logo-text h1 {
    user-select: none;
    font-size: 20px;
}

.navbar .navbar-hamburger { cursor: pointer; }

.navbar .navbar-hamburger:hover { color: #5b006a; }

.navbar-mobile {
    z-index: 9999;
    padding-top: 32px;
    right: 0;
    position: fixed;
    background-color: #FFFFFF;
    width: 0;
    height: 100vh;
    transition: all 0.3s ease-in-out;
}

.navbar-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
    list-style: none;
}

.navbar-mobile ul li a {
    text-decoration: none;
    color: #000000;
    font-weight: 800;
    font-size: 32px;
}

.navbar-mobile ul li a:hover { color: #5b006a; }

.navbar ul {
    gap: 28px;
    display: none;
    list-style: none;
}

.navbar ul li a {
    color: black;
    text-decoration: none;
    font-weight: 500;
}

.navbar ul li a:hover {
    color: #5b006a;
    text-decoration: none;
}

.nav-link.active {
    font-weight: bold;
    color: #5b006a;
}

.hero-wrapper {
    padding: 0 16px;
    background: 
        linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent),
        url(pictures/cina-coding.jpg) center/cover no-repeat;
    height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-wrapper h1 {
    color: #FFFFFF;
    font-size: 32px;
    text-align: center;
}

.hero-wrapper p {
    font-size: 16px;
    margin-top: 32px;
    color: #FFFFFF;
    text-align: center;
}

/* Profile Section Styles */

#profile-section {
    padding: 100px 16px;
    background-color: #f5f5f5;
}

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

.profile-header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.profile-divider {
    height: 4px;
    width: 80px;
    background-color: #5b006a;
    margin: 0 auto;
}

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

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

.profile-text h3 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #5b006a;
}

.profile-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #333;
}

.profile-stats {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 24px;
    text-align: center;
}

.stat-item {
    flex-basis: 30%;
    margin-bottom: 16px;
}

.stat-item h4 {
    font-size: 24px;
    color: #5b006a;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 14px;
    margin-bottom: 0;
}

.profile-features h4 {
    font-size: 18px;
    margin-bottom: 12px;
}

.profile-features ul {
    list-style: none;
    padding-left: 0;
}

.profile-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.profile-features li:before {
    content: "•";
    color: #5b006a;
    font-size: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

/* Facilities Section Styles */

#facilities-section {
    padding: 100px 16px;
    background-color: #ffffff;
}

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

.facilities-header {
    text-align: center;
    margin-bottom: 40px;
}

.facilities-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.facilities-divider {
    height: 4px;
    width: 80px;
    background-color: #5b006a;
    margin: 0 auto 16px;
}

.facilities-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.facilities-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.facility-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease-in-out;
}

/* .facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
} */

.facility-icon {
    background-color: #5b006a;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.facility-icon i {
    font-size: 24px;
}

.facility-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.facility-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Teachers Section Styles */

#teachers-section {
    padding: 100px 16px;
    background-color: #f5f5f5;
}

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

.teachers-header {
    text-align: center;
    margin-bottom: 40px;
}

.teachers-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.teachers-divider {
    height: 4px;
    width: 80px;
    background-color: #5b006a;
    margin: 0 auto 16px;
}

.teachers-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.teachers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.teacher-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info {
    padding: 20px;
}

.teacher-info h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: #333;
}

.teacher-position {
    font-size: 14px;
    color: #5b006a;
    font-weight: 600;
    margin-bottom: 12px;
}

.teacher-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.teacher-social {
    display: flex;
    gap: 12px;
}

.teacher-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f1f1;
    color: #5b006a;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.teacher-social a:hover {
    background-color: #5b006a;
    color: white;
}

/* Achievements Section Styles */

#achievements-section {
    padding: 100px 16px;
    background-color: #ffffff;
}

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

.achievements-header {
    text-align: center;
    margin-bottom: 40px;
}

.achievements-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.achievements-divider {
    height: 4px;
    width: 80px;
    background-color: #5b006a;
    margin: 0 auto 16px;
}

.achievements-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.achievement-card {
    background-color: #ffffff;
    border-radius: 8px;
    /* overflow: hidden; */
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-image {
    border-radius: 8px;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-info {
    padding: 20px;
    position: relative;
}

.achievement-medal {
    position: absolute;
    top: -20px;
    right: 20px;
    background-color: #5b006a;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(91, 0, 106, 0.2);
}

.achievement-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    padding-right: 40px;
}

.achievement-student {
    font-size: 14px;
    color: #5b006a;
    font-weight: 600;
    margin-bottom: 12px;
}

.achievement-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.achievement-date {
    font-size: 14px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.achievements-more {
    margin-top: 40px;
    text-align: center;
}

.achievements-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5b006a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.achievements-button:hover {
    background-color: #7b008a;
    transform: translateY(-2px);
}

/* Gallery Section Styles */

#gallery-section {
    padding: 100px 16px;
    background-color: #f9f9f9;
}

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

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 28px;
    margin-bottom: 12px;
}

.gallery-divider {
    height: 4px;
    width: 80px;
    background-color: #5b006a;
    margin: 0 auto 16px;
}

.gallery-header p {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

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

.gallery-item {
    position: relative;
    /* border-radius: 8px; */
    overflow: hidden;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    transition: transform 0.3s ease;
}

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

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(91, 0, 106, 0.8);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-more {
    margin-top: 40px;
    text-align: center;
}

.gallery-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #5b006a;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-button:hover {
    background-color: #7b008a;
    transform: translateY(-2px);
}

/* Footer Section Styles */

#footer-section {
    background-color: #323232;
    color: #ffffff;
    padding: 40px 16px 20px;
}

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

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-about h3,
.footer-contact h3,
.footer-links h3,
.footer-social h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.6;
    color: #e0e0e0;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-contact ul li,
.footer-links ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #e0e0e0;
}

.footer-contact ul li i,
.footer-links ul li a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact ul li i {
    margin-right: 10px;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-social .social-icons {
    display: flex;
    gap: 15px;
}

.footer-social .social-icons a {
    color: #e0e0e0;
    font-size: 18px;
    transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #e0e0e0;
}

/* Back to Top Button Styles */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: -52px;
    width: 50px;
    height: 50px;
    background-color: #5b006a;
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background-color: #3a0044;
    transform: translateY(-3px);
}

.back-to-top.active {
    right: 30px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-wrapper h1 { 
        font-size: 44px; 
        width: 700px;
    }

    .hero-wrapper p { 
        font-size: 20px; 
        width: 512px;
    }

    .profile-header h2 {
        font-size: 32px;
    }
    
    .profile-stats {
        justify-content: space-around;
    }

    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .facilities-header h2 {
        font-size: 32px;
    }

    .teachers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .teachers-header h2 {
        font-size: 32px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-header h2 {
        font-size: 32px;
    }
}

@media (min-width: 1024px) {
    .navbar-hamburger { visibility: collapse; }

    .navbar ul { display: flex; }

    .hero-wrapper h1 { 
        font-size: 64px; 
        width: 1024px;
    }

    .hero-wrapper p { 
        font-size: 20px; 
        width: 564px;
    }

    .profile-content {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .profile-image {
        width: 45%;
    }
    
    .profile-text {
        width: 55%;
        padding-left: 40px;
    }
    
    .profile-header h2 {
        font-size: 36px;
    }

    .facilities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .facilities-header h2 {
        font-size: 36px;
    }

    .teacher-card {
        display: flex;
        height: 220px;
    }
    
    .teacher-image {
        width: 35%;
        height: 100%;
    }
    
    .teacher-info {
        width: 65%;
    }
    
    .teachers-header h2 {
        font-size: 36px;
    }

    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-header h2 {
        font-size: 36px;
    }
    
    .achievement-card {
        display: flex;
        height: 250px;
    }
    
    .achievement-image {
        width: 40%;
        height: 100%;
    }
    
    .achievement-info {
        width: 60%;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}