/* ==================================================
   RESET
================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #050816;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea {
    font-family: inherit;
}


/* ==================================================
   BACKGROUND
================================================== */

body {
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, .16), transparent 28%),
        radial-gradient(circle at 85% 70%, rgba(124, 58, 237, .14), transparent 30%),
        #050816;
}

.stars {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background-image:
        radial-gradient(circle, rgba(255,255,255,.7) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,.4) 1px, transparent 1px);

    background-size: 90px 90px, 140px 140px;
    background-position: 0 0, 40px 60px;

    animation: starsMove 25s linear infinite;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-90px);
    }
}


/* ==================================================
   NAVBAR
================================================== */

.navbar {
    width: 100%;
    height: 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: rgba(5, 8, 22, .65);
    backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #38bdf8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu a {
    position: relative;

    color: #9ca3af;

    font-size: 15px;
    font-weight: 500;

    transition: .3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

.nav-menu a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -9px;

    width: 0;
    height: 2px;

    background: #38bdf8;

    transform: translateX(-50%);

    transition: .3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}


/* ==================================================
   GENERAL
================================================== */

main {
    min-height: 100vh;
}

.page-title {
    text-align: center;
    margin-bottom: 65px;
}

.page-title span,
.skills-title span {
    color: #38bdf8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
}

.page-title h1,
.skills-title h2 {
    font-size: clamp(38px, 5vw, 60px);
    margin: 10px 0;
}

.page-title p {
    color: #9ca3af;
    max-width: 600px;
    margin: auto;
}


/* ==================================================
   HOME / HERO
================================================== */

.hero {
    min-height: 100vh;

    padding: 130px 8% 80px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 60px;
}

.hero-content {
    width: 50%;
    z-index: 2;

    animation: heroIn 1s ease forwards;
}

@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.greeting {
    color: #38bdf8;

    font-size: 18px;
    font-weight: 600;

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 6vw, 80px);
    line-height: 1.1;
    font-weight: 800;
}

.hero h1 span {
    color: #38bdf8;

    text-shadow:
        0 0 15px rgba(56,189,248,.5);
}

.hero-description {
    color: #9ca3af;

    max-width: 550px;

    margin: 25px 0 30px;

    line-height: 1.8;
}


/* ==================================================
   BUTTON
================================================== */

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 13px 25px;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 600;

    transition: .3s;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn.primary {
    background: #38bdf8;
    color: #020617;

    box-shadow:
        0 0 25px rgba(56,189,248,.25);
}

.btn.primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 35px rgba(56,189,248,.55);
}

.btn.secondary {
    border: 1px solid rgba(255,255,255,.2);
    color: #ffffff;
}

.btn.secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-4px);
}


/* ==================================================
   SOCIAL ICON
================================================== */

.social-links {
    display: flex;
    gap: 13px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);

    color: #d1d5db;

    font-size: 19px;

    transition: .35s;
}

.social-links a:hover {
    color: #ffffff;

    background: rgba(56,189,248,.12);

    border-color: #38bdf8;

    transform: translateY(-6px) rotate(5deg);

    box-shadow:
        0 0 20px rgba(56,189,248,.4);
}


/* ==================================================
   SOLAR SYSTEM
================================================== */

.hero-visual {
    width: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-system {
    position: relative;

    width: 500px;
    height: 500px;

    max-width: 90vw;
    max-height: 90vw;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sun {
    position: absolute;

    width: 95px;
    height: 95px;

    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 35%, #fff7ae, #facc15 45%, #f97316);

    box-shadow:
        0 0 30px #facc15,
        0 0 70px rgba(249,115,22,.55);

    animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
    0%,100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

.orbit {
    position: absolute;

    border: 1px solid rgba(255,255,255,.13);

    border-radius: 50%;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    animation: orbitSpin linear infinite;
}

.orbit-1 {
    width: 140px;
    height: 140px;
    animation-duration: 5s;
}

.orbit-2 {
    width: 190px;
    height: 190px;
    animation-duration: 8s;
}

.orbit-3 {
    width: 250px;
    height: 250px;
    animation-duration: 12s;
}

.orbit-4 {
    width: 310px;
    height: 310px;
    animation-duration: 17s;
}

.orbit-5 {
    width: 390px;
    height: 390px;
    animation-duration: 23s;
}

.orbit-6 {
    width: 470px;
    height: 470px;
    animation-duration: 30s;
}

@keyframes orbitSpin {
    from {
        transform:
            translate(-50%, -50%)
            rotate(0deg);
    }

    to {
        transform:
            translate(-50%, -50%)
            rotate(360deg);
    }
}

.planet {
    position: absolute;

    left: 50%;
    top: -7px;

    border-radius: 50%;

    transform: translateX(-50%);
}

.mercury {
    width: 13px;
    height: 13px;
    background: #a8a29e;
}

.venus {
    width: 18px;
    height: 18px;
    background: #d97706;
}

.earth {
    width: 22px;
    height: 22px;
    background: #2563eb;

    box-shadow:
        0 0 12px rgba(37,99,235,.8);
}

.mars {
    width: 18px;
    height: 18px;
    background: #ef4444;
}

.jupiter {
    width: 36px;
    height: 36px;
    background: #c08457;
}

.saturn {
    width: 30px;
    height: 30px;
    background: #eab308;
}

.saturn::after {
    content: "";

    position: absolute;

    width: 50px;
    height: 12px;

    border: 2px solid rgba(234,179,8,.7);

    border-radius: 50%;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%)
        rotate(-20deg);
}


/* ==================================================
   ABOUT
================================================== */

.about-page {
    min-height: 100vh;
    padding: 140px 8% 80px;
}

.about-container {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 330px 1fr;

    gap: 50px;

    align-items: center;
}

.about-profile {
    padding: 35px;

    text-align: center;

    border-radius: 25px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.1);

    backdrop-filter: blur(15px);

    transition: .4s;
}

.about-profile:hover {
    transform: translateY(-10px);

    border-color: rgba(56,189,248,.5);

    box-shadow:
        0 0 40px rgba(56,189,248,.15);
}

.profile-image {
    width: 160px;
    height: 160px;

    margin: auto auto 20px;

    border-radius: 50%;

    padding: 5px;

    background:
        linear-gradient(135deg, #38bdf8, #7c3aed);
}

.profile-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    display: block;

    background: #111827;
}

.about-profile h2 {
    font-size: 25px;
}

.profile-job {
    color: #38bdf8;
    margin-top: 5px;
}

.profile-social {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-top: 25px;
}

.profile-social a {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.06);

    transition: .3s;
}

.profile-social a:hover {
    background: #38bdf8;
    color: #020617;

    transform: translateY(-5px);
}

.about-text h2 {
    font-size: 35px;

    margin-bottom: 20px;
}

.about-text > p {
    color: #9ca3af;

    line-height: 1.8;

    margin-bottom: 15px;
}

.about-info {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;

    margin-top: 30px;
}

.info-item {
    display: flex;

    gap: 12px;

    align-items: center;

    padding: 15px;

    border-radius: 15px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.07);
}

.info-item > i {
    color: #38bdf8;
    font-size: 20px;
}

.info-item span {
    display: block;

    color: #6b7280;

    font-size: 11px;
}

.info-item strong {
    font-size: 12px;
}


/* ==================================================
   SKILLS
================================================== */

.skills-section {
    max-width: 1100px;

    margin: 100px auto 0;
}

.skills-title {
    text-align: center;

    margin-bottom: 40px;
}

.skills-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.skill-card {
    padding: 30px 20px;

    text-align: center;

    border-radius: 20px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    transition: .35s;
}

.skill-card i {
    font-size: 40px;

    color: #38bdf8;

    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 5px;
}

.skill-card p {
    color: #6b7280;

    font-size: 13px;
}

.skill-card:hover {
    transform: translateY(-8px);

    border-color: #38bdf8;

    box-shadow:
        0 0 25px rgba(56,189,248,.15);
}


/* ==================================================
   PROJECTS
================================================== */

.projects-page {
    min-height: 100vh;

    padding: 140px 8% 80px;
}

.projects-grid {
    max-width: 1150px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;
}

.project-card {
    position: relative;

    padding: 30px;

    min-height: 310px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.07),
            rgba(255,255,255,.025)
        );

    border: 1px solid rgba(255,255,255,.09);

    overflow: hidden;

    transition: .4s;
}

.project-card::before {
    content: "";

    position: absolute;

    width: 150px;
    height: 150px;

    background: #38bdf8;

    opacity: .08;

    filter: blur(60px);

    top: -50px;
    right: -50px;
}

.project-card:hover {
    transform:
        translateY(-10px)
        scale(1.02);

    border-color: rgba(56,189,248,.5);

    box-shadow:
        0 20px 50px rgba(0,0,0,.3),
        0 0 30px rgba(56,189,248,.1);
}

.project-top {
    display: flex;

    justify-content: space-between;

    color: #6b7280;
}

.project-top i {
    transition: .3s;
}

.project-card:hover .project-top i {
    color: #38bdf8;

    transform:
        translate(4px,-4px);
}

.project-number {
    color: #38bdf8;

    font-size: 13px;

    font-weight: 700;
}

.project-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(56,189,248,.1);

    color: #38bdf8;

    font-size: 27px;

    margin: 20px 0;
}

.project-card h2 {
    font-size: 22px;

    margin-bottom: 10px;
}

.project-card p {
    color: #9ca3af;

    line-height: 1.7;

    font-size: 14px;
}

.project-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}

.project-tags span {
    padding: 6px 12px;

    border-radius: 20px;

    font-size: 11px;

    color: #38bdf8;

    background: rgba(56,189,248,.08);

    border: 1px solid rgba(56,189,248,.15);
}

.coming-soon {
    opacity: .65;
}


/* ==================================================
   CONTACT
================================================== */

.contact-page {
    min-height: 100vh;

    padding: 140px 8% 80px;
}

.contact-container {
    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 50px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 32px;

    margin-bottom: 12px;
}

.contact-info > p,
.contact-form > p {
    color: #9ca3af;

    line-height: 1.7;

    margin-bottom: 30px;
}

.contact-social {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 17px;

    margin-bottom: 13px;

    border-radius: 16px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);

    transition: .3s;
}

.contact-social:hover {
    transform: translateX(7px);

    border-color: rgba(56,189,248,.5);

    background: rgba(56,189,248,.06);
}

.contact-social > div:nth-child(2) {
    flex: 1;
}

.contact-icon {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 20px;
}

.contact-icon.whatsapp {
    background: rgba(37,211,102,.12);
    color: #25d366;
}

.contact-icon.instagram {
    background: rgba(225,48,108,.12);
    color: #e1306c;
}

.contact-icon.tiktok {
    background: rgba(255,255,255,.08);
    color: #ffffff;
}

.contact-icon.youtube {
    background: rgba(255,0,0,.12);
    color: #ff0000;
}

.contact-social span {
    display: block;

    color: #6b7280;

    font-size: 11px;
}

.contact-social strong {
    font-size: 13px;
}

.contact-social > i {
    color: #6b7280;

    font-size: 12px;
}


/* FORM */

.contact-form {
    padding: 35px;

    border-radius: 25px;

    background: rgba(255,255,255,.04);

    border: 1px solid rgba(255,255,255,.08);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    color: #d1d5db;
}

.input-group input,
.input-group textarea {
    width: 100%;

    padding: 14px 16px;

    border: 1px solid rgba(255,255,255,.1);

    border-radius: 12px;

    outline: none;

    background: rgba(0,0,0,.2);

    color: #ffffff;

    transition: .3s;
}

.input-group textarea {
    min-height: 130px;

    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #38bdf8;

    box-shadow:
        0 0 15px rgba(56,189,248,.1);
}

.send-button {
    width: 100%;

    padding: 14px;

    border: none;

    border-radius: 12px;

    background: #38bdf8;

    color: #020617;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.send-button:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 25px rgba(56,189,248,.4);
}


/* ==================================================
   FOOTER
================================================== */

footer {
    padding: 30px;

    text-align: center;

    border-top: 1px solid rgba(255,255,255,.06);

    color: #6b7280;

    font-size: 12px;
}


/* ==================================================
   RESPONSIVE
================================================== */

@media (max-width: 950px) {

    .hero {
        flex-direction: column;

        text-align: center;

        padding-top: 130px;
    }

    .hero-content,
    .hero-visual {
        width: 100%;
    }

    .hero-content {
        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-description {
        max-width: 650px;
    }

    .solar-system {
        width: 420px;
        height: 420px;
    }

    .orbit-6 {
        width: 390px;
        height: 390px;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-profile {
        max-width: 400px;
        width: 100%;
        margin: auto;
    }

    .skills-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 650px) {

    .navbar {
        height: auto;

        padding: 20px 5%;

        flex-direction: column;

        gap: 15px;
    }

    .nav-menu {
        gap: 18px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .nav-menu a {
        font-size: 12px;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }

    .hero h1 {
        font-size: 43px;
    }

    .solar-system {
        width: 320px;
        height: 320px;
    }

    .orbit-1 {
        width: 95px;
        height: 95px;
    }

    .orbit-2 {
        width: 130px;
        height: 130px;
    }

    .orbit-3 {
        width: 170px;
        height: 170px;
    }

    .orbit-4 {
        width: 215px;
        height: 215px;
    }

    .orbit-5 {
        width: 270px;
        height: 270px;
    }

    .orbit-6 {
        width: 310px;
        height: 310px;
    }

    .sun {
        width: 65px;
        height: 65px;
    }

    .about-page,
    .projects-page,
    .contact-page {
        padding-left: 5%;
        padding-right: 5%;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .page-title {
        margin-bottom: 45px;
    }
}

/* ==================================================
   GALLERY
================================================== */

.gallery-page {
    min-height: 100vh;
    padding: 140px 8% 80px;
}

.gallery-grid {
    max-width: 1100px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.gallery-item {
    position: relative;

    height: 300px;

    overflow: hidden;

    border-radius: 22px;

    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.04);

    cursor: pointer;

    transition: .4s;
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
    height: 620px;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .6s;
}

.gallery-item::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            transparent 45%,
            rgba(0,0,0,.8)
        );

    opacity: .7;

    transition: .4s;
}

.gallery-overlay {
    position: absolute;

    left: 25px;
    bottom: 22px;

    z-index: 2;

    color: white;

    font-size: 14px;
    font-weight: 600;

    letter-spacing: 1px;

    transition: .4s;
}

.gallery-item:hover {
    transform: translateY(-8px);

    border-color: rgba(56,189,248,.6);

    box-shadow:
        0 15px 40px rgba(0,0,0,.4),
        0 0 30px rgba(56,189,248,.12);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover::after {
    background:
        linear-gradient(
            transparent 25%,
            rgba(0,0,0,.9)
        );
}

.gallery-item:hover .gallery-overlay {
    color: #38bdf8;

    transform: translateY(-5px);
}


/* ==================================================
   GALLERY RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-row: auto;
        height: 300px;
    }

}


@media (max-width: 600px) {

    .gallery-page {
        padding-left: 5%;
        padding-right: 5%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item:nth-child(1) {
        height: 300px;
    }

}

