html {
    scroll-behavior: smooth;
}
body {
    background-color: rgb(24, 24, 24);
        font-family: system-ui, sans-serif;
                color: rgb(160, 160, 160);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgb(24, 24, 24);
    font-size: 20px;
    display: flex;
    justify-content: flex-end;
    padding: 5px;
}

.left {
    display: flex;
}
.right {
    display: flex;
    gap: 2em;
}

.right a {
    font-weight: 350;
        text-decoration: none;
        color: rgb(184, 184, 184);
        transition: color 0.5s ease, text-shadow 0.5s ease;
}

.right a:hover {
    cursor: pointer;
    color: #dfdfdf;
    text-shadow: 
        1px 1px 1px #c4c4c4,
        1px 2px 2px rgba(255, 255, 255, 0.6),
        1px 3px 3px rgba(255, 255, 255, 0.4),
        1px 4px 4px rgba(255, 255, 255, 0.8),
        1px 5px 5px rgba(255, 255, 255, 0.5),
        1px 6px 6px rgba(255, 255, 255, 0.5),
        1px 7px 8px rgba(255, 255, 255, 0.8); 
}

.about {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    padding: 50px 20px;
    flex-wrap: wrap;
}

.about .text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 50%;
    margin-top: 10%;
    margin-left: 5%;
}

.about .header {
    font-family: lato;
    font-size: 6rem;
    font-weight: 700;
    color: rgb(190, 190, 190);
    margin: 0;
}

.about .subtitle {
    margin-top: -2%;
    color: rgb(170, 170, 170);
    font-size: 3rem;
}

.about .dsc {
    font-size: 2rem;
    color: rgb(158, 158, 158);
}

.about img {
    width: 60%;
    max-width: 600px;
    height: auto;
    margin-top: 100px; 
}

.about-buttons {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 25px;
    background-color: rgb(60, 60, 60);
    color: rgb(230,230,230);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: rgb(90,90,90);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}

.typewriter {
  overflow: hidden;
  border-right: none;
  padding-right: 0;
}

.typewriter.finished {
  border-right-color: transparent;
}

.portfolio {
    padding: 100px 20px;
    background-color: rgb(24,24,24);
    text-align: center;
}

.portfolio .header2 {
    font-family: lato;
    font-size: 5rem;
    margin-bottom: 60px;
    color: rgb(200,200,200);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.project-card {
    background-color: rgb(30,30,30);
    border-radius: 5px;
    overflow: hidden;
    width: 600px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-card a:hover {
    text-shadow: none;
    text-decoration: underline;
}

.project-card img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-info {
    padding: 20px;
}

.project-info h2 {
    margin: 0;
    font-size: 1.5rem;
    color: rgb(230,230,230);
    margin-bottom: 10px;
}

.project-links a {
    text-decoration: none;
    color: rgb(160,160,160);
    margin: 0 10px;
    transition: color 0.3s ease;
    font-weight: 500;
}

.project-links a:hover {
    color: #dfdfdf;
}

.contact {
    padding: 100px 20px;
    background-color: rgb(24,24,24);
    text-align: center;
}

.contact .header2 {
    font-family: lato;
    font-size: 5rem;
    margin-bottom: 60px;
    color: rgb(200,200,200);
}

.contact-form,
.contact-form input,
.contact-form textarea {
    box-sizing: border-box;
}


.contact-form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background-color: rgb(30, 30, 30);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background-color: rgb(40,40,40);
    border: 1px solid rgb(70,70,70);
    border-radius: 8px;
    color: rgb(220,220,220);
    font-size: 1.1rem;
    font-family: system-ui, sans-serif;
    transition: border 0.3s ease, background-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgb(110,110,110);
    background-color: rgb(50,50,50);
    outline: none;
}

.send-btn {
    font-family: system-ui, sans-serif;
    padding: 15px;
    background-color: rgb(60,60,60);
    color: rgb(230,230,230);
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.send-btn:hover {
    background-color: rgb(90,90,90);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}


@media (max-width: 768px) {
    .projects-container {
        flex-direction: column;
        align-items: center;
    }
}


.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px;
}

.footer .social-links a {
    color: rgba(255, 255, 255, 0.459);
    text-shadow: none;
    transition: color 0.5s ease, text-shadow 0.5s ease;
}

.footer .social-links a:hover {
    color: #dfdfdf;
    text-shadow: none
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

section, .about, .portfolio, .footer, img, h1, h2, h3, p, a, .header, .header2, .dsc {
  opacity: 0;
  animation: fadeIn 1.2s ease forwards;
}

.about       { animation-delay: 0.2s; }
.header      { animation-delay: 0.4s; }
.dsc         { animation-delay: 0.6s; }
.portfolio   { animation-delay: 0.8s; }
.projects    { animation-delay: 1s; }
.footer      { animation-delay: 1.2s; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Breakpoints --- */

/* Large tablets / small laptops */
@media (max-width: 1024px) {
    .about {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .about .text, .about img {
        max-width: 90%;
        margin-left: 0;
        text-align: center;
    }
    .about-buttons {
        justify-content: center;
    }
    .portfolio .projects-container {
        justify-content: center;
        gap: 30px;
    }
    .project-card {
        width: 90%;
        max-width: 500px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .nav {
        justify-content: center;
    }
    .right {
        gap: 1em;
    }
    .portfolio .header2 {
        font-size: 4rem;
        margin-bottom: 40px;
    }
    .about img {
        width: 80%;
        max-width: 400px;
    }
    .projects-container {
        flex-direction: column;
        gap: 25px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .about .header {
        font-size: 4rem;
    }
    .about .subtitle {
        font-size: 2rem;
    }
    .about .dsc {
        font-size: 1.5rem;
    }
    .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    .portfolio .header2 {
        font-size: 3rem;
        margin-bottom: 30px;
    }
    .project-card {
        max-width: 95%;
    }
    .about img {
        width: 50%;
        max-width: 400px;
        margin-left: 25%;
        margin-top: 30px;
    }
}

.mobile-logo {
    display: none;
}

@media (max-width: 1024px) {
    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
        border-radius: 50%;
        border: 1px solid rgb(100,100,100);
        margin: 0 auto 10px;
        object-fit: cover;
    }

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .about .text {
        max-width: 90%;
        margin: 0;
    }

    .about .subtitle {
        margin-top: 0;
    }
}
