/* mobile.css */

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding-top: 140px; /* a bit more padding for fixed navbar */
    background-color: rgba(28, 15, 98, 0.3);
    color: #FFFFFF;
}

.logo {
    width: 80px;
    height: auto;
    margin: 10px auto;
}

h1 {
    font-size: 1.8em;
    margin-top: 15px;
}

p {
    font-size: 1em;
    margin: 15px 10px 20px 10px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 images per row on mobile */
    gap: 12px;
    padding: 15px;
    max-width: 100%;
    margin: auto;
}

.gallery img {
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(28, 15, 98, 0.3);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar .logo-link {
    display: flex;
    align-items: center;
}

.navbar .logo {
    width: 50px;
    height: auto;
}

.nav-links {
    flex-direction: column;
    background-color: rgb(164, 159, 192);
    border-radius: 10px;
    padding: 10px 1rem;
    position: fixed;
    top: 70px;
    left: 47%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 600px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    box-sizing: border-box;
    z-index: 1100;

    max-height: 0;
    opacity: 0;
    overflow: hidden;

    pointer-events: none; /* disable interactions when hidden */
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    display: flex; /* keep it rendered always */
}

.nav-links.show {
    max-height: 1000px; /* big enough for content */
    opacity: 1;
    overflow: visible;
    pointer-events: auto; /* enable interaction */
}





.hamburger {
    display: block;
    
    font-size: 2em;
    color: white;
    cursor: pointer;
    z-index: 1001; /* above nav */
    position: absolute;
    right: 10%;
}

}

.contact-container, 
.achievements-container, 
.about-container {
    max-width: 95%;
    margin: 60px auto 40px auto;
    padding: 15px;
    text-align: center;
    background: rgba(28, 15, 98, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.contact-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-container input,
.contact-container textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-container button {
    padding: 15px;
    background-color: rgba(28, 15, 98, 0.4);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.contact-container button:hover {
    background-color: rgba(28, 15, 98, 0.7);
}

.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 0.9em;
}

.about-list {
    text-align: left;
    padding: 10px 5px;
    margin: 5px auto;
    font-size: 1em;
    line-height: 1.5;
    max-width: 100%;
}

.about-list li {
    margin-bottom: 8px;
}
.sidebar {
    display: none;
}
