/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #050505;
    color: #ffffff;
    overflow-x: hidden;
}

:root {
    --black: #050505;
    --black-light: #0d0d0d;
    --card: #111111;
    --peach: #f8b6a8;
    --peach-light: #ffd9d1;
    --white: #ffffff;
    --gray: #a9a9a9;
}


/* ==========================================
   LOADER
========================================== */

.loader {
    position: fixed;
    inset: 0;
    background: #050505;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 15px;

    z-index: 9999;

    transition: opacity 0.6s ease,
                visibility 0.6s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 50px;
    height: 50px;

    border: 3px solid #222;
    border-top-color: var(--peach);

    border-radius: 50%;

    animation: loaderSpin 1s linear infinite;
}

.loader span {
    color: var(--peach);
    font-size: 13px;
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ==========================================
   NAVBAR
========================================== */

.navbar {
    width: 100%;
    height: 80px;

    padding: 0 8%;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(5, 5, 5, 0.85);

    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(248, 182, 168, 0.12);
}


/* Logo */

.logo,
.footer-logo {
    text-decoration: none;

    font-size: 27px;
    font-weight: 700;

    color: white;

    transition: 0.3s ease;
}

.logo span,
.footer-logo span {
    color: var(--peach);
}

.logo:hover {
    transform: scale(1.04);
}

.logo:hover span {
    display: inline-block;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0% { transform: translateX(0); }

    20% {
        transform: translateX(-4px) rotate(-2deg);
    }

    40% {
        transform: translateX(4px) rotate(2deg);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }

    100% {
        transform: translateX(0);
    }
}


/* Navigation */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    position: relative;

    text-decoration: none;

    color: white;

    font-size: 15px;
    font-weight: 500;

    padding: 8px 0;

    transition: 0.3s ease;
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--peach);

    transform: translateX(-50%);

    transition: 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--peach);

    text-shadow:
        0 0 10px rgba(248, 182, 168, 0.45);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}


/* Mobile menu */

.menu-toggle {
    display: none;

    color: var(--peach);

    font-size: 24px;

    cursor: pointer;
}


/* ==========================================
   COMMON SECTION
========================================== */

.section {
    min-height: 100vh;

    padding: 120px 8% 80px;

    position: relative;
}

.section-heading {
    text-align: center;

    margin-bottom: 60px;
}

.section-heading p {
    color: var(--peach);

    font-size: 14px;

    text-transform: uppercase;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 42px;
    font-weight: 700;
}

.section-heading h2 span {
    color: var(--peach);
}

.heading-line {
    width: 70px;
    height: 3px;

    margin: 15px auto 0;

    background: linear-gradient(
        90deg,
        var(--peach),
        var(--peach-light)
    );

    border-radius: 20px;
}


/* ==========================================
   HOME
========================================== */

.home {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 70px;

    padding-top: 140px;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(248, 182, 168, 0.08),
            transparent 30%
        );
}

.home-content {
    max-width: 650px;
}

.small-title {
    color: var(--peach);

    font-size: 18px;

    margin-bottom: 10px;
}

.home h1 {
    font-size: clamp(48px, 7vw, 82px);

    line-height: 1.05;

    margin-bottom: 15px;
}

.home h1 span {
    color: var(--peach);
}

.home h2 {
    font-size: clamp(24px, 3vw, 38px);

    font-weight: 500;

    margin-bottom: 25px;
}

.home h2 span {
    color: var(--peach);
}

.home-description {
    color: var(--gray);

    line-height: 1.9;

    max-width: 580px;

    margin-bottom: 35px;
}


/* Buttons */

.home-buttons {
    display: flex;
    gap: 18px;

    flex-wrap: wrap;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    padding: 13px 25px;

    border-radius: 30px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    border: none;

    transition: 0.35s ease;
}

.primary-btn {
    color: #050505;

    background: var(--peach);

    box-shadow:
        0 0 20px rgba(248, 182, 168, 0.12);
}

.primary-btn:hover {
    transform: translateY(-4px);

    background: var(--peach-light);

    box-shadow:
        0 10px 30px rgba(248, 182, 168, 0.25);
}

.secondary-btn {
    color: white;

    border: 1px solid var(--peach);

    background: transparent;
}

.secondary-btn:hover {
    color: #050505;

    background: var(--peach);

    transform: translateY(-4px);
}


/* Social */

.social-links {
    display: flex;
    gap: 13px;

    margin-top: 35px;
}

.social-links a {
    width: 43px;
    height: 43px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 1px solid #333;

    border-radius: 50%;

    color: white;

    text-decoration: none;

    transition: 0.3s ease;
}

.social-links a:hover {
    color: #050505;

    background: var(--peach);

    border-color: var(--peach);

    transform: translateY(-5px) rotate(5deg);
}


/* Home Image */

.home-image {
    position: relative;

    width: 430px;
    height: 430px;

    display: flex;

    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 330px;
    height: 330px;

    border-radius: 50%;

    overflow: hidden;

    border: 3px solid var(--peach);

    position: relative;

    z-index: 2;

    box-shadow:
        0 0 35px rgba(248, 182, 168, 0.18);
}

.profile-circle img {
    width: 100%;
    height: 100%;

    object-fit: fill;
}

.image-glow {
    position: absolute;

    width: 350px;
    height: 350px;

    border-radius: 50%;

    border: 1px solid rgba(248, 182, 168, 0.25);

    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {

    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}


/* Floating cards */

.floating-card {
    position: absolute;

    z-index: 3;

    background: rgba(20, 20, 20, 0.9);

    border: 1px solid rgba(248, 182, 168, 0.3);

    padding: 12px 17px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-size: 12px;

    backdrop-filter: blur(10px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

    animation: float 3s ease-in-out infinite;
}

.floating-card i {
    color: var(--peach);
}

.card-one {
    left: 0;
    top: 80px;
}

.card-two {
    right: 0;
    bottom: 70px;

    animation-delay: 1s;
}

@keyframes float {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* ==========================================
   ABOUT
========================================== */

.about {
    background: #080808;
}

.about-container {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    align-items: center;

    gap: 80px;

    max-width: 1150px;

    margin: auto;
}

.about-content h3 {
    font-size: 30px;

    margin-bottom: 25px;
}

.about-content h3 span {
    color: var(--peach);
}

.about-content p {
    color: var(--gray);

    line-height: 1.9;

    margin-bottom: 18px;
}

.about-info {
    margin: 30px 0;

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.about-info div {
    display: flex;

    align-items: center;

    gap: 13px;

    color: #ddd;

    font-size: 14px;
}

.about-info i {
    color: var(--peach);

    width: 20px;
}


/* About image */

.about-image {
    display: flex;

    justify-content: center;

    position: relative;
}

.about-image-box {
    width: 350px;
    height: 420px;

    padding: 10px;

    border: 1px solid rgba(248, 182, 168, 0.4);

    border-radius: 25px;

    transform: rotate(3deg);

    transition: 0.4s ease;
}

.about-image-box:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-image-box img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 18px;
}

.experience-badge {
    position: absolute;

    bottom: 25px;
    left: 20px;

    background: var(--peach);

    color: #050505;

    padding: 14px 20px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.experience-badge strong {
    font-size: 18px;
}

.experience-badge span {
    font-size: 12px;
}


/* ==========================================
   SKILLS
========================================== */

.skills-grid {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.skill-card {
    background: var(--card);

    border: 1px solid #222;

    padding: 35px 25px;

    text-align: center;

    border-radius: 18px;

    transition: 0.4s ease;

    position: relative;

    overflow: hidden;
}

.skill-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: -100%;

    width: 100%;
    height: 2px;

    background: var(--peach);

    transition: 0.5s ease;
}

.skill-card:hover::before {
    left: 0;
}

.skill-card:hover {
    transform: translateY(-10px);

    border-color: rgba(248, 182, 168, 0.4);

    box-shadow:
        0 15px 35px rgba(248, 182, 168, 0.06);
}

.skill-icon {
    font-size: 42px;

    color: var(--peach);

    margin-bottom: 18px;

    transition: 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) rotate(5deg);
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;
}


/* ==========================================
   PROJECTS
========================================== */

.projects {
    background: #080808;
}

.projects-grid {
    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 22px;
}

.project-card {
    position: relative;

    background: #101010;

    border: 1px solid #222;

    border-radius: 18px;

    padding: 30px 24px;

    overflow: hidden;

    transition: 0.4s ease;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 0;
    height: 0;

    border-radius: 50%;

    background: rgba(248, 182, 168, 0.08);

    top: -100px;
    right: -100px;

    transition: 0.5s ease;
}

.project-card:hover::before {
    width: 300px;
    height: 300px;
}

.project-card:hover {
    transform: translateY(-10px);

    border-color: rgba(248, 182, 168, 0.45);
}

.project-number {
    position: absolute;

    top: 15px;
    right: 18px;

    font-size: 12px;

    color: #555;
}

.project-icon {
    width: 55px;
    height: 55px;

    display: flex;

    justify-content: center;
    align-items: center;

    border-radius: 14px;

    background: rgba(248, 182, 168, 0.08);

    color: var(--peach);

    font-size: 22px;

    margin-bottom: 22px;

    transition: 0.3s ease;
}

.project-card:hover .project-icon {
    background: var(--peach);

    color: #050505;

    transform: rotate(-5deg);
}

.project-card h3 {
    font-size: 18px;

    line-height: 1.4;

    margin-bottom: 15px;
}

.project-card p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 22px;
}

.project-tech span {
    padding: 5px 9px;

    border-radius: 20px;

    background: #1b1b1b;

    color: var(--peach);

    font-size: 10px;
}

.project-link {
    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--peach);

    text-decoration: none;

    font-size: 12px;

    font-weight: 600;

    transition: 0.3s ease;
}

.project-link:hover {
    gap: 13px;

    color: white;
}


/* ==========================================
   EDUCATION
========================================== */

.timeline {
    max-width: 850px;

    margin: auto;

    position: relative;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 20px;
    top: 0;
    bottom: 0;

    width: 1px;

    background: #333;
}

.timeline-item {
    position: relative;

    padding-left: 70px;

    margin-bottom: 45px;
}

.timeline-dot {
    position: absolute;

    left: 11px;
    top: 5px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background: var(--peach);

    box-shadow:
        0 0 0 6px rgba(248, 182, 168, 0.08);
}

.timeline-content {
    background: var(--card);

    border: 1px solid #222;

    padding: 25px;

    border-radius: 15px;

    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateX(8px);

    border-color: rgba(248, 182, 168, 0.35);
}

.timeline-date {
    color: var(--peach);

    font-size: 12px;

    font-weight: 600;
}

.timeline-content h3 {
    margin: 8px 0;
}

.timeline-content p {
    color: var(--gray);

    font-size: 14px;
}


/* ==========================================
   CONTACT
========================================== */

.contact {
    background: #080808;
}

.contact-container {
    max-width: 1050px;

    margin: auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;
}

.contact-info h3 {
    font-size: 32px;

    margin-bottom: 15px;
}

.contact-info > p {
    color: var(--gray);

    line-height: 1.8;

    margin-bottom: 35px;
}

.contact-item {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 22px;
}

.contact-icon {
    width: 45px;
    height: 45px;

    border-radius: 12px;

    display: flex;

    justify-content: center;
    align-items: center;

    color: var(--peach);

    background: rgba(248, 182, 168, 0.08);
}

.contact-item span {
    display: block;

    color: #777;

    font-size: 11px;

    margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
    color: white;

    text-decoration: none;

    font-size: 13px;

    margin: 0;

    transition: 0.3s ease;
}

.contact-item a:hover {
    color: var(--peach);
}

.contact-socials {
    display: flex;

    gap: 12px;

    margin-top: 30px;
}

.contact-socials a {
    width: 42px;
    height: 42px;

    display: flex;

    justify-content: center;
    align-items: center;

    border: 1px solid #333;

    border-radius: 50%;

    color: white;

    text-decoration: none;

    transition: 0.3s ease;
}

.contact-socials a:hover {
    background: var(--peach);

    color: #050505;

    border-color: var(--peach);

    transform: translateY(-4px);
}


/* Contact form */

.contact-form {
    background: #101010;

    border: 1px solid #222;

    border-radius: 20px;

    padding: 35px;
}

.input-group {
    margin-bottom: 18px;
}

.input-group input,
.input-group textarea {
    width: 100%;

    padding: 15px 17px;

    background: #080808;

    border: 1px solid #292929;

    border-radius: 10px;

    outline: none;

    color: white;

    font-family: inherit;

    font-size: 13px;

    transition: 0.3s ease;

    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--peach);

    box-shadow:
        0 0 15px rgba(248, 182, 168, 0.06);
}

#formMessage {
    color: var(--peach);

    font-size: 12px;

    margin-top: 15px;
}


/* ==========================================
   FOOTER
========================================== */

footer {
    background: #030303;

    border-top: 1px solid #181818;

    padding: 30px 8%;
}

.footer-content {
    max-width: 1200px;

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

.footer-logo {
    font-size: 20px;
}

.footer-content p {
    color: #666;

    font-size: 11px;
}

.footer-socials {
    display: flex;

    gap: 10px;
}

.footer-socials a {
    color: #888;

    transition: 0.3s ease;
}

.footer-socials a:hover {
    color: var(--peach);

    transform: translateY(-3px);
}


/* ==========================================
   SCROLL TOP
========================================== */

.scroll-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: var(--peach);

    color: #050505;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform: translateY(20px);

    transition: 0.3s ease;

    z-index: 999;
}

.scroll-top.show {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.scroll-top:hover {
    background: white;

    transform: translateY(-5px);
}


/* ==========================================
   REVEAL ANIMATION
========================================== */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1100px) {

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .home-image {
        width: 380px;
        height: 380px;
    }

    .profile-circle {
        width: 290px;
        height: 290px;
    }
}


@media (max-width: 850px) {

    .navbar {
        padding: 0 5%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;

        top: 80px;
        left: 0;

        width: 100%;

        padding: 25px;

        background: #0a0a0a;

        flex-direction: column;

        gap: 22px;

        border-bottom: 1px solid #222;

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: 0.3s ease;
    }

    .nav-menu.show {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }


    .home {
        flex-direction: column;

        text-align: center;

        padding-top: 130px;
    }

    .home-description {
        margin-left: auto;
        margin-right: auto;
    }

    .home-buttons,
    .social-links {
        justify-content: center;
    }


    .about-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .about-info div {
        justify-content: center;
    }

    .about-image {
        order: -1;
    }


    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .contact-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .section {
        padding-left: 5%;
        padding-right: 5%;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .home h1 {
        font-size: 48px;
    }

    .home h2 {
        font-size: 25px;
    }

    .home-image {
        width: 320px;
        height: 320px;
    }

    .profile-circle {
        width: 245px;
        height: 245px;
    }

    .image-glow {
        width: 270px;
        height: 270px;
    }

    .floating-card {
        font-size: 10px;

        padding: 9px 12px;
    }

    .card-one {
        left: -5px;
    }

    .card-two {
        right: -5px;
    }


    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }


    .about-image-box {
        width: 290px;
        height: 350px;
    }


    .contact-form {
        padding: 25px 18px;
    }


    .footer-content {
        flex-direction: column;

        text-align: center;
    }
}


@media (max-width: 400px) {

    .logo {
        font-size: 21px;
    }

    .home h1 {
        font-size: 40px;
    }

    .home-image {
        width: 280px;
        height: 280px;
    }

    .profile-circle {
        width: 215px;
        height: 215px;
    }
}