/* ================= ROOT ================= */

:root {
    --bg: #080b14;
    --bg-soft: #0e1320;
    --card: rgba(255, 255, 255, 0.04);

    --text: #f8fafc;
    --text-muted: #94a3b8;

    --primary: #8b5cf6;
    --secondary: #3b82f6;

    --border: rgba(255, 255, 255, 0.1);

    --gradient:
        linear-gradient(
            135deg,
            #8b5cf6,
            #3b82f6
        );
}

/* ================= RESET ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body.light {
    --bg: #f8fafc;
    --bg-soft: #ffffff;
    --card: #ffffff;

    --text: #111827;
    --text-muted: #64748b;

    --border: #e2e8f0;
}

h1,
h2,
h3,
h4 {
    font-family: "Space Grotesk", sans-serif;
}

.container {
    width: min(90%, 1200px);
    margin: auto;
}

.section {
    padding: 120px 0;
}

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


/* ================= LOADER ================= */

.loader {
    position: fixed;
    inset: 0;
    background: #080b14;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

.loader-text {
    font-size: 32px;
    font-weight: 700;
}

.loader-text span {
    color: var(--primary);
}


/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    padding: 20px 0;

    transition: .4s;
}

.navbar.scrolled {
    background: rgba(8, 11, 20, .8);

    backdrop-filter: blur(20px);

    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
}

.nav-actions {
    display: flex;
    gap: 12px;
}

.theme-btn,
.menu-btn {
    width: 42px;
    height: 42px;

    border-radius: 10px;

    border: 1px solid var(--border);

    background: var(--card);

    color: var(--text);

    cursor: pointer;
}

.menu-btn {
    display: none;
}


/* ================= HERO ================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;

    position: relative;

    overflow: hidden;
}

.hero-wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

    position: relative;

    z-index: 2;
}

.hero-bg {
    position: absolute;

    inset: 0;

    overflow: hidden;
}

.gradient-orb {
    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: .25;
}

.orb1 {
    background: #8b5cf6;

    top: -150px;
    left: -150px;
}

.orb2 {
    background: #3b82f6;

    right: -150px;
    bottom: -150px;
}

.grid-bg {
    position: absolute;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(255,255,255,.03) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.03) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black,
            transparent 70%
        );
}


/* HERO TEXT */

.available-badge {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 8px 14px;

    border: 1px solid var(--border);

    border-radius: 30px;

    color: var(--text-muted);

    font-size: 13px;

    margin-bottom: 30px;
    background: #f4f5f5;
    color: rgb(0, 0, 0);
}

.available-badge span {
    width: 8px;
    height: 8px;

    background: #22c55e;

    border-radius: 50%;

    box-shadow: 0 0 10px #22c55e;
}

.hero-intro {
    font-size: 12px;

    letter-spacing: 4px;

    color: var(--primary);

    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 95px);

    line-height: .95;

    margin-bottom: 25px;
}

.hero h1 span {
    background: var(--gradient);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 24px;

    color: var(--text-muted);

    margin-bottom: 25px;
}

#typing {
    color: var(--text);

    font-weight: 700;
}

.hero-description {
    max-width: 600px;

    color: var(--text-muted);

    font-size: 16px;

    line-height: 1.9;
}


/* BUTTONS */

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 35px;
}

.btn {
    padding: 14px 24px;

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 14px;

    font-weight: 600;

    transition: .3s;
}

.btn-primary {
    background: var(--gradient);

    color: white;
}

.btn-primary:hover {
    transform: translateY(-4px);

    box-shadow: 0 15px 40px rgba(139,92,246,.3);
}

.btn-outline {
    border: 1px solid var(--border);

    color: var(--text);
}

.btn-outline:hover {
    background: var(--card);
}


/* SOCIAL */

.hero-social {
    display: flex;

    gap: 12px;

    margin-top: 35px;
}

.hero-social a {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    color: var(--text-muted);

    transition: .3s;
}

.hero-social a:hover {
    color: white;

    background: var(--primary);

    transform: translateY(-4px);
}


/* ================= PROFILE ================= */

.hero-visual {
    position: relative;

    height: 600px;

    display: flex;

    justify-content: center;

    align-items: center;
}

.profile-wrapper {
    width: 380px;
    height: 480px;

    position: relative;

    border-radius: 25px;

    overflow: hidden;

    border: 1px solid var(--border);

    background: var(--card);

    z-index: 2;

    box-shadow:
        0 30px 80px rgba(0,0,0,.4);
}

.profile-wrapper img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center top;

    transition: .6s;
}

.profile-wrapper:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;

    width: 400px;
    height: 500px;

    border: 2px solid var(--primary);

    border-radius: 25px;

    transform: rotate(8deg);

    opacity: .4;
}


/* RINGS */

.profile-ring {
    position: absolute;

    border: 1px solid var(--primary);

    border-radius: 50%;

    opacity: .4;
}

.ring-one {
    width: 500px;
    height: 500px;
}

.ring-two {
    width: 650px;
    height: 650px;

    border-style: dashed;

    animation: rotate 25s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}


/* FLOAT CARDS */

.floating-card {
    position: absolute;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 12px 18px;

    background: rgba(20,25,40,.8);

    backdrop-filter: blur(15px);

    border: 1px solid var(--border);

    border-radius: 12px;

    animation: float 4s ease-in-out infinite;
}

.floating-card i {
    font-size: 22px;

    color: var(--primary);
}

.card-react {
    left: 0;
    top: 100px;
}

.card-laravel {
    right: 0;
    bottom: 100px;

    animation-delay: 1s;
}

@keyframes float {

    0%,100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

}


/* CODE CARD */

.code-card {
    position: absolute;

    right: -30px;
    top: 30px;

    width: 260px;

    background: rgba(10,15,25,.9);

    border: 1px solid var(--border);

    border-radius: 15px;

    padding: 15px;

    z-index: 6;

    font-size: 11px;
}

.code-top {
    display: flex;
    gap: 5px;

    margin-bottom: 10px;
}

.code-top span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #ef4444;
}

.code-top span:nth-child(2) {
    background: #f59e0b;
}

.code-top span:nth-child(3) {
    background: #22c55e;
}

.code-card pre {
    color: #cbd5e1;
}

.purple {
    color: #a78bfa;
}

.green {
    color: #4ade80;
}


/* ================= SECTION ================= */

.section-heading {
    max-width: 650px;

    margin-bottom: 70px;
}

.section-label {
    display: block;

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.section-heading h2,
.contact-content h2 {
    font-size: clamp(38px,5vw,60px);

    line-height: 1.1;
}

.section-heading h2 span,
.contact-content h2 span {
    color: var(--primary);
}


/* ================= ABOUT ================= */

.about {
    background: var(--bg-soft);
}

.about-grid {
    display: grid;

    grid-template-columns: 1.3fr .7fr;

    gap: 100px;
}

.about-left p {
    color: var(--text-muted);

    margin-bottom: 20px;

    line-height: 1.9;
}

.large-text {
    font-size: 22px;
}

.large-text strong {
    color: var(--text);
}

.stats {
    display: flex;

    gap: 50px;

    margin-top: 40px;
}

.stats h3 {
    font-size: 35px;

    color: var(--primary);
}

.stats span {
    color: var(--text-muted);

    font-size: 13px;
}


/* INFO BOX */

.info-box {
    display: flex;

    gap: 15px;

    padding: 20px;

    border-bottom: 1px solid var(--border);
}

.info-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: rgba(139,92,246,.12);

    color: var(--primary);

    border-radius: 10px;
}

.info-box span {
    display: block;

    font-size: 12px;

    color: var(--text-muted);
}

.info-box strong {
    font-size: 14px;
}


/* ================= SKILLS ================= */

.skills-layout {
    display: grid;

    gap: 60px;
}

.category-title {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}

.category-title span {
    color: var(--primary);

    font-size: 13px;
}

.category-title h3 {
    font-size: 24px;
}

.tech-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit,minmax(150px,1fr));

    gap: 20px;
}

.tech-card {
    min-height: 130px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 12px;

    border: 1px solid var(--border);

    border-radius: 15px;

    background: var(--card);

    transition: .35s;
}

.tech-card:hover {
    transform: translateY(-8px);

    border-color: var(--primary);

    box-shadow:
        0 20px 40px rgba(174, 145, 241, 0.425);
}

.tech-card i,
.tech-card strong {
    font-size: 35px;

    color: var(--primary);
}

.tech-card span {
    font-size: 13px;

    color: var(--text-muted);
}


/* ================= JOURNEY ================= */

.journey {
    background: var(--bg-soft);
}

.timeline {
    max-width: 900px;
}

.timeline-item {
    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 50px;

    padding: 50px 0;

    border-top: 1px solid var(--border);
}

.timeline-number {
    font-size: 40px;

    color: var(--primary);

    font-family: "Space Grotesk";
}

.timeline-type {
    font-size: 11px;

    letter-spacing: 2px;

    color: var(--primary);
}

.timeline-content h3 {
    font-size: 30px;

    margin: 12px 0;
}

.timeline-content h4 {
    color: var(--text-muted);

    font-weight: 500;
}

.timeline-content p {
    color: var(--text-muted);

    margin-top: 8px;
}

.timeline-description {
    max-width: 600px;

    margin-top: 20px !important;
}


/* ================= PROJECT ================= */

.projects-top {
    display: flex;

    justify-content: space-between;
}

.project-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 20px;
}

.project-card {
    position: relative;

    padding: 35px;

    border: 1px solid var(--border);

    border-radius: 18px;

    background: var(--card);

    transition: .4s;

    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);

    border-color: var(--primary);
}

.project-card.featured {
    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.12),
            rgba(59,130,246,.08)
        );
}

.project-number {
    position: absolute;

    right: 25px;
    top: 20px;

    font-size: 13px;

    color: var(--text-muted);
}

.project-icon {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    background:
        rgba(139,92,246,.12);

    border-radius: 15px;

    color: var(--primary);

    font-size: 22px;

    margin-bottom: 25px;
}

.project-category {
    font-size: 10px;

    letter-spacing: 2px;

    color: var(--primary);
}

.project-card h3 {
    font-size: 25px;

    margin: 12px 0;
}

.project-card p {
    color: var(--text-muted);

    line-height: 1.8;
}

.project-stack {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 25px 0;
}

.project-stack span {
    padding: 6px 10px;

    font-size: 11px;

    border: 1px solid var(--border);

    border-radius: 5px;

    color: var(--text-muted);
}

.project-links {
    display: flex;

    gap: 20px;

    font-size: 13px;

    color: var(--primary);
}


/* ================= CONTACT ================= */

.contact {
    background:
        linear-gradient(
            135deg,
            rgba(139,92,246,.1),
            transparent
        );
}

.contact-wrapper {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 100px;

    align-items: center;
}

.contact-content p {
    color: var(--text-muted);

    margin-top: 25px;

    line-height: 1.8;
}

.contact-link {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 22px 0;

    border-bottom: 1px solid var(--border);

    transition: .3s;
}

.contact-link:hover {
    padding-left: 10px;
}

.contact-link > i:first-child {
    color: var(--primary);

    font-size: 20px;
}

.contact-link span {
    display: block;

    font-size: 11px;

    color: var(--text-muted);
}

.contact-link strong {
    font-size: 14px;
}

.arrow {
    margin-left: auto;

    color: var(--primary);
}


/* ================= FOOTER ================= */

footer {
    border-top: 1px solid var(--border);

    padding: 50px 0;
}

.footer-wrapper {
    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-wrapper p {
    font-size: 13px;

    color: var(--text-muted);

    margin-top: 8px;
}

.footer-social {
    display: flex;

    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);

    border-radius: 8px;

    color: var(--text-muted);
}


/* ================= SCROLL TOP ================= */

#scrollTop {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transition: .3s;

    z-index: 99;
}

#scrollTop.show {
    opacity: 1;

    visibility: visible;
}


/* ================= RESPONSIVE ================= */

@media(max-width: 1000px) {

    .hero-wrapper,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 140px;
    }

    .hero-visual {
        height: 550px;
    }

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

}


@media(max-width: 768px) {

    .section {
        padding: 80px 0;
    }

    .menu-btn {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 80px;
        left: 5%;

        width: 90%;

        flex-direction: column;

        padding: 25px;

        background: var(--bg-soft);

        border: 1px solid var(--border);

        border-radius: 15px;

        display: none;
    }

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

    .hero {
        padding-bottom: 60px;
    }

    .hero-visual {
        transform: scale(.85);
        transform-origin: top center;
    }

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

    .stats {
        gap: 25px;

        flex-wrap: wrap;
    }

    .footer-wrapper {
        flex-direction: column;

        gap: 25px;

        text-align: center;
    }

}


@media(max-width: 500px) {

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

    .hero-role {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-visual {
        height: 450px;

        transform: scale(.7);
    }

    .timeline-item {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .contact-wrapper {
        gap: 50px;
    }

}




/* ================= LIVE PROJECT LINK ================= */

.contact-project-link {
    margin-top: 28px;
}

.contact-project-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--card);
    font-size: 13px;
    transition: .3s;
}

.contact-project-link a i:first-child {
    color: var(--primary);
}

.contact-project-link a i:last-child {
    color: var(--primary);
}

.contact-project-link a:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}
