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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #fdf8f3;
    color: #0d0d3a;
}

header {
    position: sticky;
    top: 0%;
    z-index: 2;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 80px;
    background-color: rgba(252, 252, 252, 0.74);
    backdrop-filter: blur(1em);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #0d0d3a;
    cursor: default;
}

.logo span {
    color: #ff5a3c;
}

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

.nav-links a {
    text-decoration: none;
    color: #0d0d3a;
    font-weight: 600;
    font-size: 18px;
    transition: all 150ms ease-in-out;

    &:hover{
        color: #ff5e5e;
    }
}

.hire-me {
    background: #ff5a3c;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 18px;

    &:hover{
        filter: invert(100%);
    }
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px;
}

.hero-content {
    max-width: 50%;
}

.hero .intro {
    font-size: 22px;
    font-weight: 600;
    color: #ff5a3c;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin: 10px 0;
}

.hero h2 {
    font-size: 24px;
    font-weight: 500;
    color: #636363;
}

.hero .description {
    color: #636363;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-buttons .btn {
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-block;
    margin-right: 15px;
}

.btn.primary {
    background: #ff5a3c;
    color: white;
    transition: all 50ms ease-in-out;

    &:hover {
        scale: 1.05;
        filter: invert(100%);
    }
}

.btn.secondary {
    border: 2px solid #ff5a3c;
    color: #ff5a3c;
    transition: all 50ms ease-in-out;

    &:hover {
        scale: 1.05;
        background-color: #ff5e5e;
        color: white;
    }
}

.hero-image img {
    width: 40em;
    border-radius: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 40px;
    margin: 50px auto;
    border-radius: 20px;
    width: 80%;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 22px;
    font-weight: 700;
}

.stat p {
    font-size: 16px;
    color: #636363;
}

.portfolio {
    padding: 80px 20px;
}

.portfolio-title {
    color: #ff5e5e;
    margin: 0;
    text-align: center;
    font-size: 4em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.portfolio-subtitle {
    font-size: 38px;
    text-align: center;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 250ms ease-in-out;

    &:hover {
        filter: brightness(80%);
        scale: 1.03;
    }
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 18px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.overlay h4 {
    color: #ff5e5e;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.overlay p {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

a {
    text-decoration: none;
    color: inherit;
}

.experience {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.choose-me {
    color: #ff642e;
    font-size: 18px;
    font-weight: bold;
}

.title {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.experience-container {
    display: flex;
    justify-content: space-between;
}

.left,
.right {
    width: 48%;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    font-size: 14px;
    font-weight: bold;
    color: #1a1a1a;
}

.percent {
    float: right;
}

.progress-bar {
    width: 100%;
    background-color: #ddd;
    height: 6px;
    border-radius: 5px;
    margin-top: 5px;
    position: relative;
}

.progress {
    height: 100%;
    background-color: #ff642e;
    border-radius: 5px;
}

.contact-container {
    display: flex;
    justify-content: space-evenly;
    width: 90%;
    padding: 40px;
    border-radius: 8px;
}

.contact-info {
    width: 40%;
}

.contact-info h1 {
    font-size: 32px;
    font-weight: bold;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: bold;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 20px;
}

.contact-form {
    width: 55%;
}

form {
    display: flex;
    flex-direction: column;
}

.input-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.input-box {
    width: 48%;
}

label {
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid black;
    border-radius: 4px;
}

textarea {
    height: 100px;
}

button {
    background-color: #ff5e5e;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    width: 30%;
    margin-top: 15px;
    transition: all 50ms ease-in-out;

    &:hover {
        filter: invert(100%);
    }
}

.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 40px 0;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    gap: 5em;
}

.footer-logo img {
    width: 220px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 5px 0;
    font-size: 1.5em;
    font-family: 'Poppins', sans-serif;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ff5a3c;
}

.footer-social {
    display: flex;
}

.social-icon {
    margin: 0 10px;
}

.social-icon img {
    width: 54px;
    height: 54px;
    transition: transform 0.3s;
}

#github_logo {
    filter: invert(100%);
}

.social-icon img:hover {
    transform: scale(1.2);
}

.footer-bottom {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 5em;
    text-align: center;
    margin-top: 10px;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaa;
    cursor: default;
}

.contact-info {
    margin-left: 5em;
}

@media (max-width: 768px) {

    .navbar,
    .hero,
    .stats,
    .experience-container,
    .contact-container,
    .footer-content {
        flex-direction: column;
        padding-left: 1em;
        padding-right: 1em;
    }

    .hero {
        padding-bottom: 1em;
    }

    .hire-me {
        display: none;
    }

    .contact-info,
    #contact-form {
        width: 20em;
    }

    .portfolio-title {
        font-size: 1.5em;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1em;
        margin-bottom: 2em;
    }

    .skill {
        width: 18em;
    }

    .hero-content {
        max-width: 85%;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 36px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        margin-left: 0em;
    }
}
