@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: "Open Sans", sans-serif;
    background-color: #000000;
    color: #fff;
    scroll-behavior: smooth;
    line-height: 1.6;
    animation: scanlines 8s linear infinite;
}

/* Video background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: -1;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.5);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background-color: #000000cc;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 999;
}

.logo {
    font-size: 2rem;
    font-weight: bolder;
    color: #02A508;
    transition: .5s ease-in-out;
}

.logo:hover {
    transform: scale(1.3);
}

.typing {
    width: 18ch; 
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #02A508;
    animation: typing 1s steps(18), blink 0.7s step-end infinite;
    font-size: 2rem;
    color: hwb(231 14% 27%);
    margin: 0 auto;
}

@keyframes typing {
    from { width: 0; }
    to { width: 18ch; } 
}

@keyframes blink {
    50% { border-color: transparent; }
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
}

.menu li {
    display: inline-block;
}

.menu a {
    position: relative;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s ease;
    font-size: 1.2rem;
    margin: 15px;
    font-weight: bolder;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2.5px;
    background: #02A508;
    transition: width 0.3s ease-in-out;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Landing page */
.hero {
    height: 100vh;
    background-image: url('../images/893198.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    padding: 20px;
}

.profile-pic {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #02A508;
    margin-bottom: 20px;
    box-shadow: 0 0 30px #02A508;
    filter: drop-shadow(0 0 20px #02A508);
    transition: transform 0.5s ease;
}

.profile-pic:hover {
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 0 30rem #02A508;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero span {
    color: #02A508;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    background: #02A508;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    font-size: 1rem;
    transition: .3s ease-in-out;
}

.btn:hover {
    color: #02A508;
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 30px #02A508;
}

/* About */
.about {
    height: 100vh;
    padding: 60px 5%;
    background: #111;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    color: #02A508;
}

.about p {
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
}

.projects {
    margin-top: 40px;
}

.projects h3 {
    font-size: 1.5rem;
    text-align: center;
    color: #02A508;
    margin-bottom: 20px;
}

.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.project-item {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #02A508;
}

.project-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.project-item p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    margin-top: 40px;
    text-align: center;
}

.social-links h3 {
    font-size: 1.5rem;
    color: #02A508;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    font-size: 1.8rem;
    color: #02A508;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.3);
    color: white;
}

/* Education */
.education {
    height: 100%;
    padding: 60px 5%;
    background: #111;
    margin-top: 80px;
}

.education h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #02A508;
}

.timeline {
    max-width: 800px;
    margin: auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background: #02A508;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 20px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: hwb(231 14% 27%);
    border-radius: 50%;
    top: 20px;
    right: -10px;
}

.timeline-item:nth-child(even)::before {
    left: -10px;
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.timeline-item span {
    display: block;
    color: #02A508;
    margin-bottom: 10px;
}

/* Skills */
.skills {
    height: 100vh;
    padding: 60px 5%;
    background: #111;
    margin-top: 80px;
}

.skills h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #02A508;
}

.skill-container {
    max-width: 800px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.skill-item {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 10px;
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.skill-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.progress-bar {
    background: #333;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    background: #02A508;
    height: 100%;
    transition: width 0.5s ease;
}

/* Contact */
.contact {
    height: 100vh;
    padding: 60px 5%;
    background: #111;
    margin-top: 80px;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #02A508;
}

.contact-container {
    max-width: 800px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info a {
    color: #02A508;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: none;
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #02A508;
}

footer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: 10px;
    }

    .menu.show {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item::before {
        left: 10px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .project-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 10px;
    }

    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}