@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

body{
    width: 100%;
    height: 100vh;
    background-color: black;
    
}

nav{
    width: 100%;
    height: 10vh;
    position: sticky;
}

.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.logo span{
    color: rgb(211,3,3);
    text-shadow: 0 0 10px rgb(211,3,3) ;
}

.hamburg,
.cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: white;
    display: none;
    font-size: clamp(2.5rem, 0.5rem + 5vw, 3rem);
}

.nav-container .links {
    display: flex;
}

.nav-container .links a{
    font-size: 1.2rem;
    color: white;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 550;
    transition: 0.3s linear;
}

.nav-container .links a:hover{
    color: rgb(211,3,3);
    border-bottom: 2px solid rgb(211,3,3);
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: blur(4px) brightness(40%);
    box-shadow: 0 0  20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    display: flex;
    color: white;
    text-decoration: none;
    padding: 15px 0;
    justify-content: center;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(211,3,3);
}

section{
    width: 100%;
    height: 90vh;
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .content{
    color: white;
    width: 40%;
    min-height: 100px;
}




.content h1{
    font-size: clamp(1rem, 1rem + 5vw, 1.8rem);
}

.content h1 span{
    font-weight: 700;
    text-shadow: 0 0 10px rgb(211,3,3);
    color: rgb(211,3,3);
}

.content .typewriter{
    font-size: clamp(1rem, 1rem + 5vw, 2.5rem);
    font-weight: 700;
}

.typewriter span{
    color: rgb(211,3,3);
    text-shadow:  0 0 10px rgb(211,3,3);
}

.content p{
    font-size: clamp(0,4rem, 0.2rem + 9vw, 1rem);
    margin : 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: 0.2rem solid rgb(211,3,3);
    border-radius: 50%;
    color: rgb(211,3,3);
    margin: 0 15px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    filter: drop-shadow(0 0 10px rgb(211,3,3));
    color: black;
    background-color: rgb(211,3,3);
}

.content button{
    width: 50%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(211,3,3);
    color: white;
    border: none;
    outline: none;
    font-size: 120%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
    scale: 1.1;
    color: rgb(211,3,3);
    border: 2px solid rgb(211,3,3);
    background-color: transparent;
    font-weight: 700;
    box-shadow: 0 0 40px 5px rgb(211,3,3);
}

.main-container .image{
    width: 400px;
    height: 400px;
    border-radius: 100%;
    overflow: hidden;
    box-shadow: 0 0 50px rgb(211,3,3);
}

.main-container .image img{
    width: 100%;
}

.main-container .image:hover{
    animation: animate 1.5s ease-in-out infinite;
}

@keyframes animate {
    0%{
        scale: 1;
    }
    50%{
        scale: 1.05;
    }
    100%{
        scale: 1;
    }
}


@media (max-width:884px) {
    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }

    .main-container{
        display: flex;
        flex-direction: column-reverse;
    }

    .nav-container .links{
        display: none;
    }

    .hamburg,
    .cancel{
        display: block;
    }

    .main-container .content{
        width: 80%;
    }
    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }

    .main-container .image{
        z-index: -1;
        width: 50%;
        height: 60%;
    }
}


@media (max-width:440px) {
    .main-container .image{
        width: 70%;
        height: 60%;
    }

    .main-container .content{
        width: 80%;
    }

    .main-container button{
        margin-top: 15px;
    }
}
/* Projects Section */
#projects {
    padding: 50px 20px;
    background-color: black;
    text-align: center;
    color: red
    ;
}

.projects-container h2 {
    color: red;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.projects-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 300px;
    text-align: left;
    max-width: 350px;
    min-width: 300px;
    transition: transform 0.3s;
}

.project:hover {
    transform: translateY(-5px);
}

.project h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: #333;
}

.project p {
    font-size: 1rem;
    color: #666;
}
/* Achievements Section */
.achievements-container {
    padding: 50px;
    text-align: center;
    background-color: #f4f4f4;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 20px;
}

.timeline-event {
    position: relative;
    margin: 20px 0;
    padding: 20px;
    background-color: #ffff;
    border-left: 3px solid #00adb5;
}

.timeline-event:nth-child(even) {
    border-left: 3px solid #ff5722;
}
.timeline-event:nth-child(odd) {
    border-right: 3px solid #ff5722;
}
.timeline-date {
    font-weight: bold;
    color: #00adb5;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin: 0;
    color: #333;
}

.show-photo-btn {
    margin-top: 10px;
    background-color: #00adb5;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 5px;
}

.show-photo-btn:hover {
    background-color: #007b83;
}

/* Photo Modal Styles */
.photo-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    justify-content: center;
    align-items: center;
}

.photo-modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: black;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ff0000;
}
/* Timeline Container */
.achievements-container {
    padding: 50px 20px;
    background-color: black;
    color: white;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Main Timeline Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgb(211,3,3);
    z-index: 1;
}

/* Timeline Container for Events */
.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

/* Individual Event Styling */
.timeline-event {
    position: relative;
    width: 250px;
    margin: 20px;
    background-color: rgba(211,3,3,0.1);
    border: 2px solid rgb(211,3,3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Connector Line from Timeline to Event */
.timeline-event::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background-color: rgb(211,3,3);
    left: 50%;
    transform: translateX(-50%);
}

/* Events Above Timeline */
.timeline-event:nth-child(odd) {
    margin-top: 100px;
}

.timeline-event:nth-child(odd)::before {
    bottom: 100%;
}
/* Events Below Timeline */
.timeline-event:nth-child(even) {
    margin-top: 100px;
}

.timeline-event:nth-child(even)::before {
    bottom: 100%;
}

/* Date Styling */
.event-date {
    color: rgb(211,3,3);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

/* Event Content */
.event-name {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
}

/* Hover Effects */
.timeline-event:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(211,3,3,0.3);
    background-color: rgba(211,3,3,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
    }

    .timeline-event {
        width: 80%;
        margin: 20px 0;
    }

    .timeline-event:nth-child(odd),
    .timeline-event:nth-child(even) {
        margin: 50px 0;
    }

    .timeline-event::before {
        height: 50px;
    }
}
/* About Section Styling */
.about-section {
    width: 100%;
    min-height: 100vh;
    background-color: black;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.about-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(211,3,3);
    box-shadow: 0 0 10px rgb(211,3,3);
}

.about-content {
    background-color: rgba(211,3,3,0.1);
    border: 2px solid rgb(211,3,3);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(211,3,3,0.2);
    transition: all 0.3s ease;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(211,3,3,0.3);
}

.about-content p {
    color: white;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: rgb(211,3,3);
    text-shadow: 0 0 5px rgba(211,3,3,0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 15px;
    }

    .about-section h2 {
        font-size: 2rem;
    }

    .about-content {
        padding: 20px;
    }

    .about-content p {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .about-section h2 {
        font-size: 1.8rem;
    }

    .about-content {
        padding: 15px;
    }
}
/* Achievements Section */
.achievements-container {
    width: 100%;
    padding: 80px 20px;
    background-color: black;
    color: white;
}

.achievements-container h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.achievements-container h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: rgb(211,3,3);
    box-shadow: 0 0 10px rgb(211,3,3);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgb(211,3,3);
    z-index: 1;
}

.timeline-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 20px;
}

.timeline-event {
    position: relative;
    width: 250px;
    margin: 20px;
    background-color: rgba(211,3,3,0.1);
    border: 2px solid rgb(211,3,3);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-event::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background-color: rgb(211,3,3);
    left: 50%;
    transform: translateX(-50%);
}

.timeline-event:nth-child(odd) {
    margin-top: 100px;
}

.timeline-event:nth-child(odd)::before {
    bottom: 100%;
}

.timeline-event:nth-child(even) {
    margin-top: 100px;
}

.timeline-event:nth-child(even)::before {
    bottom: 100%;
}

.event-date {
    color: rgb(211,3,3);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.event-name {
    color: white;
    font-size: 1rem;
    line-height: 1.4;
}

.timeline-event:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(211,3,3,0.3);
    background-color: rgba(211,3,3,0.2);
}

.view-photo-btn {
    display: block;
    width: 150px;
    height: 40px;
    background-color: rgb(211,3,3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(211,3,3,0.5);
}

.view-photo-btn:hover {
    background-color: transparent;
    color: rgb(211,3,3);
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(211,3,3,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .achievements-container {
        padding: 60px 15px;
    }

    .achievements-container h2 {
        font-size: 2rem;
    }

    .timeline-container {
        flex-direction: column;
        align-items: center;
    }

    .timeline-event {
        width: 80%;
        margin: 20px 0;
    }

    .timeline-event:nth-child(odd),
    .timeline-event:nth-child(even) {
        margin: 50px 0;
    }

    .timeline-event::before {
        height: 50px;
    }

    .view-photo-btn {
        width: 140px;
        height: 35px;
        font-size: 0.9rem;
        
    }
}
/* ... existing CSS code ... */

.timeline-event {
    /* ... existing styles ... */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.view-photo-btn {
    /* ... existing button styles ... */
    margin-top: 10px;
}
@media (max-width: 480px) {
    .achievements-container h2 {
        font-size: 1.8rem;
    }

    .timeline-event {
        width: 90%;
    }

    .view-photo-btn {
        width: 130px;
        height: 30px;
        font-size: 0.8rem;
    }
}