
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a192f;
    color: #ccd6f6;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #64ffda;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: #ccd6f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #64ffda;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: #ccd6f6;
    margin: 5px;
    transition: all 0.3s ease;
}

/* Landing */
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5rem;
}

#home h1 {
    font-size: 4rem;
    color: #e6f1ff;
    margin-bottom: 1rem;
}

#home h2 {
    font-size: 2.5rem;
    color: #8892b0;
    margin-bottom: 2rem;
}

#home .typing-text {
    color: #64ffda;
}

/* About */
#about {
    padding: 6rem 0;
}

#about h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #64ffda;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    border: 2px solid #64ffda;
}

/* Experience Timeline */
#experience {
    padding: 6rem 0;
}

#experience h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #64ffda;
}

.timeline-wrapper {
    display: block;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #233554;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-container {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-container.left {
    left: 0;
}

.timeline-container.right {
    left: 50%;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #0a192f;
    border: 4px solid #64ffda;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.right::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #112240;
    position: relative;
    border-radius: 6px;
}

.timeline-content h3 {
    color: #64ffda;
}

.timeline-content .date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8892b0;
    margin-bottom: 10px;
}

.experience-grid {
    display: none;
}

/* Projects */
#projects {
    padding: 6rem 0;
    background-color: #112240;
}

#projects h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #64ffda;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #0a192f;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e6f1ff;
}

.experience-card {
    background: #0a192f;
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-10px);
}

.experience-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e6f1ff;
}

.experience-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ccd6f6;
}

.experience-card .date {
    font-size: 0.8rem;
    font-weight: 600;
    color: #8892b0;
    margin-bottom: 10px;
}

/* Contact */
#contact {
    padding: 6rem 0;
}

#contact h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #64ffda;
}

#contact form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #233554;
    border-radius: 5px;
    background: #112240;
    color: #ccd6f6;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    background-color: #64ffda;
    color: #0a192f;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #52d8c9;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #0a192f;
}

/* Typing animation */
.typing-text {
    font-weight: 600;
    animation: typing 2s steps(15, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.15em solid #64ffda;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #64ffda;
    }
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: #ccd6f6;
    font-size: 2rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #64ffda;
}

.timeline-container::after {
    content: "";
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #0a192f;
    border: 4px solid #64ffda;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.right::after {
    left: -16px;
}

.timeline-logo {
    display: none; /* Hide the logo div */
}

.timeline-content h3 a {
    color: #64ffda;
    text-decoration: none;
    font-size: 1.2rem;
}


/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 5rem;
        right: -100%;
        width: 100%;
        height: calc(100vh - 5rem);
        background-color: rgba(10, 25, 47, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    #home {
        padding: 0 2rem;
        text-align: center;
    }

    #home h1 {
        font-size: 3rem;
    }

    #home h2 {
        font-size: 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        margin: 0 auto;
    }

    .timeline-wrapper {
        display: none;
    }

    .experience-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

}

/* Container for the scroll indicator */
.scroll-down-indicator {
    position: fixed; /* Keep it in the viewport */
    bottom: 30px; /* Position from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for true centering */
    width: 30px;
    height: 40px;
    pointer-events: none; /* Ignore mouse clicks */
}

/* Styling for the individual arrows */
.scroll-down-indicator .arrow {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid #333; /* Color of the arrow */
    border-width: 0 3px 3px 0;
    transform: rotate(45deg); /* Turn the square into an arrow */
    margin: -10px auto;
    opacity: 0; /* Start invisible */
    animation: scroll-hint 1.5s infinite; /* Apply the animation */
}

/* Adjusting the delay for the second arrow to create a staggered effect */
.scroll-down-indicator .arrow:nth-child(2) {
    animation-delay: 0.3s;
}

/* Keyframes for the bouncing/fading animation */
@keyframes scroll-hint {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(45deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(10px) rotate(45deg);
    }
}