/* ========================================
   PRATIK CHAPAGAIN — PORTFOLIO
   Custom Styles
======================================== */


/* ========================================
   1. BASE
======================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

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


/* ========================================
   2. CUSTOM SCROLLBAR
======================================== */

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background: #22d3ee;
}


/* ========================================
   3. TEXT SELECTION
======================================== */

::selection {
    background: #22d3ee;
    color: #000;
}


/* ========================================
   4. NAVIGATION
======================================== */

header {
    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.94);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}


/* ========================================
   5. HERO
======================================== */

#home {
    position: relative;
}

#home::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

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

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        transparent 80%
    );
}


/* Hero glow */

#home::after {
    content: "";
    position: absolute;

    width: 500px;
    height: 500px;

    top: 10%;
    right: -200px;

    border-radius: 50%;

    background: rgba(34, 211, 238, 0.05);

    filter: blur(100px);

    pointer-events: none;
}


/* ========================================
   6. PROJECT CARDS
======================================== */

.project-card {
    position: relative;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        background 0.4s ease,
        box-shadow 0.4s ease;

    transform-style: preserve-3d;
}

.project-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(34, 211, 238, 0.08),
            transparent 35%
        );

    opacity: 0;

    transition: opacity 0.3s ease;

    pointer-events: none;

    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.035);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35);
}


/* Project image */

.project-image {
    position: relative;
    overflow: hidden;

    transition:
        transform 0.5s ease,
        background 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

.project-image i {
    transition:
        transform 0.5s ease,
        opacity 0.5s ease;
}

.project-card:hover .project-image i {
    transform: scale(1.15) rotate(-5deg);
    opacity: 0.4;
}


/* ========================================
   7. TECH TAGS
======================================== */

.tech-tag {
    display: inline-flex;

    padding: 6px 11px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    font-size: 11px;

    color: rgba(255, 255, 255, 0.5);

    background: rgba(255, 255, 255, 0.025);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.tech-tag:hover {
    color: #22d3ee;
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.05);
}


/* ========================================
   8. SKILL CARDS
======================================== */

.skill-card {
    padding: 28px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 16px;

    background: rgba(255, 255, 255, 0.02);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        background 0.35s ease;
}

.skill-card i {
    font-size: 25px;

    color: rgba(255, 255, 255, 0.35);

    margin-bottom: 22px;

    transition:
        color 0.3s ease,
        transform 0.3s ease;
}

.skill-card h3 {
    font-size: 17px;
    font-weight: 600;

    margin-bottom: 7px;
}

.skill-card p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

.skill-card:hover {
    transform: translateY(-5px);

    border-color: rgba(34, 211, 238, 0.25);

    background: rgba(34, 211, 238, 0.025);
}

.skill-card:hover i {
    color: #22d3ee;
    transform: translateY(-3px);
}


/* ========================================
   9. INTEREST PILLS
======================================== */

.interest-pill {
    display: inline-flex;
    align-items: center;

    padding: 10px 15px;

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 999px;

    font-size: 13px;

    color: rgba(255, 255, 255, 0.65);

    background: rgba(255, 255, 255, 0.025);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        background 0.3s ease;
}

.interest-pill:hover {
    transform: translateY(-3px);

    color: white;

    border-color: rgba(34, 211, 238, 0.3);

    background: rgba(34, 211, 238, 0.05);
}


/* ========================================
   10. SOCIAL LINKS
======================================== */

.social-link {
    width: 45px;
    height: 45px;

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

    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: 50%;

    color: rgba(255, 255, 255, 0.5);

    transition:
        transform 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.social-link:hover {
    transform: translateY(-4px);

    color: #22d3ee;

    border-color: rgba(34, 211, 238, 0.4);

    background: rgba(34, 211, 238, 0.05);
}


/* ========================================
   11. BUTTON EFFECTS
======================================== */

a {
    -webkit-tap-highlight-color: transparent;
}

a.bg-white,
a.border {
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}

a.bg-white:hover,
a.border:hover {
    transform: translateY(-2px);
}


/* ========================================
   12. SECTION REVEAL ANIMATION
======================================== */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

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


/* ========================================
   13. HERO TEXT ANIMATION
======================================== */

.hero-enter {
    opacity: 0;

    transform: translateY(25px);

    animation: heroEnter 0.9s ease forwards;
}

.hero-enter:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-enter:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-enter:nth-child(3) {
    animation-delay: 0.3s;
}

.hero-enter:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes heroEnter {

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ========================================
   14. FLOATING ANIMATION
======================================== */

.float {
    animation: floating 5s ease-in-out infinite;
}

@keyframes floating {

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

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

}


/* ========================================
   15. GLOWING STATUS DOT
======================================== */

.status-dot {
    position: relative;
}

.status-dot::after {
    content: "";

    position: absolute;

    inset: -4px;

    border-radius: 50%;

    background: rgba(74, 222, 128, 0.2);

    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {

    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }

}


/* ========================================
   16. CUSTOM CURSOR GLOW
======================================== */

.cursor-glow {
    position: fixed;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background: rgba(34, 211, 238, 0.035);

    filter: blur(60px);

    pointer-events: none;

    z-index: 0;

    transform: translate(-50%, -50%);

    opacity: 0;

    transition: opacity 0.3s ease;
}


/* ========================================
   17. MOBILE MENU
======================================== */

#mobile-menu {
    animation: mobileMenu 0.25s ease;
}

@keyframes mobileMenu {

    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ========================================
   18. FOOTER
======================================== */

footer {
    background: #080808;
}


/* ========================================
   19. RESPONSIVE
======================================== */

@media (max-width: 768px) {

    #home::before {
        background-size: 40px 40px;
    }

    #home::after {
        width: 300px;
        height: 300px;
        right: -150px;
    }

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

    .skill-card {
        padding: 22px;
    }

}


/* ========================================
   20. REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}