/* =====================================================
   RAJEEV PORTFOLIO
   PREMIUM DARK STUDENT PORTFOLIO
===================================================== */


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background: #050816;
    color: #f5f7ff;

    overflow-x: hidden;

    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

::selection {
    background: #6d5cff;
    color: white;
}


/* =====================================================
   VARIABLES
===================================================== */

:root {

    --bg: #050816;
    --bg-light: #0b1024;

    --card: rgba(14, 20, 43, 0.68);

    --border: rgba(255, 255, 255, 0.09);

    --text: #f5f7ff;
    --muted: #9ba4c7;

    --purple: #795cff;
    --blue: #2798ff;
    --cyan: #45e0ff;

    --gradient:
        linear-gradient(
            135deg,
            #8b5cff,
            #288dff,
            #45e0ff
        );

    --mouse-x: 0px;
    --mouse-y: 0px;
}


/* =====================================================
   BODY BACKGROUND
===================================================== */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(111, 76, 255, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0, 157, 255, 0.08),
            transparent 30%
        );

    z-index: -5;
}


/* =====================================================
   BACKGROUND
===================================================== */

.background {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: -10;
}

.grid-background {

    position: absolute;

    inset: 0;

    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: 70px 70px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}

.gradient-orb {

    position: absolute;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    filter: blur(100px);

    opacity: 0.18;

    transition:
        transform 1s ease;
}

.orb-1 {

    background: #704cff;

    top: -180px;
    left: -150px;

    transform:
        translate(
            var(--mouse-x),
            var(--mouse-y)
        );
}

.orb-2 {

    background: #008cff;

    right: -200px;
    top: 25%;

    transform:
        translate(
            calc(var(--mouse-x) * -1),
            calc(var(--mouse-y) * -1)
        );
}

.orb-3 {

    background: #00d9ff;

    bottom: -250px;
    left: 35%;

    transform:
        translate(
            var(--mouse-x),
            calc(var(--mouse-y) * -1)
        );
}


/* =====================================================
   CURSOR
===================================================== */

.cursor-dot {

    width: 7px;
    height: 7px;

    background: #ffffff;

    border-radius: 50%;

    position: fixed;

    pointer-events: none;

    z-index: 9999;

    transform:
        translate(-50%, -50%);

    box-shadow:
        0 0 15px #ffffff;
}

.cursor-ring {

    width: 35px;
    height: 35px;

    border: 1px solid
        rgba(103, 178, 255, 0.6);

    border-radius: 50%;

    position: fixed;

    pointer-events: none;

    z-index: 9998;

    transform:
        translate(-50%, -50%);

    transition:
        width .2s ease,
        height .2s ease,
        border-color .2s ease;
}


/* =====================================================
   SCROLL PROGRESS
===================================================== */

.scroll-progress {

    position: fixed;

    top: 0;
    left: 0;

    height: 3px;

    width: 0%;

    background: var(--gradient);

    z-index: 10000;

    box-shadow:
        0 0 15px rgba(70, 160, 255, 0.8);
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    padding: 20px 6%;

    z-index: 1000;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 22, 0.92),
            rgba(5, 8, 22, 0.45),
            transparent
        );

    backdrop-filter: blur(12px);
}

.nav-container {

    max-width: 1250px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 20px;

    font-weight: 700;
}

.logo span {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 12px;

    background: var(--gradient);

    box-shadow:
        0 0 25px rgba(105, 85, 255, 0.4);
}

nav {

    display: flex;

    align-items: center;

    gap: 6px;

    padding: 7px;

    border:
        1px solid var(--border);

    background:
        rgba(12, 17, 38, 0.72);

    border-radius: 50px;

    backdrop-filter: blur(20px);
}

nav a {

    padding: 9px 15px;

    color: var(--muted);

    font-size: 13px;

    border-radius: 30px;

    transition: .3s ease;
}

nav a:hover,
nav a.active {

    color: white;

    background:
        rgba(255,255,255,0.08);

    box-shadow:
        inset 0 0 15px
        rgba(255,255,255,0.03);
}

.menu-toggle {

    display: none;

    border: 1px solid var(--border);

    background: rgba(255,255,255,0.05);

    color: white;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    cursor: pointer;
}


/* =====================================================
   COMMON
===================================================== */

.section {

    width: 100%;

    position: relative;
}

.content-section {

    max-width: 1250px;

    margin: auto;

    padding:
        130px 6%;
}

.section-heading {

    display: flex;

    gap: 25px;

    align-items: flex-start;

    margin-bottom: 70px;
}

.section-number {

    color: var(--purple);

    font-size: 14px;

    font-weight: 700;

    padding-top: 8px;

    letter-spacing: 2px;
}

.section-label {

    color: #7f8bb5;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 10px;
}

.section-heading h2 {

    font-size:
        clamp(34px, 5vw, 58px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.gradient-text {

    background: var(--gradient);

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 100vh;

    padding:
        150px 6% 70px;

    display: flex;

    align-items: center;

    max-width: 1450px;

    margin: auto;
}

.hero-content {

    width: 100%;

    display: grid;

    grid-template-columns:
        1.05fr
        .95fr;

    align-items: center;

    gap: 50px;
}

.hero-text {

    position: relative;

    z-index: 5;
}

.small-label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 9px 14px;

    border: 1px solid
        rgba(104, 140, 255, 0.18);

    background:
        rgba(25, 31, 63, 0.45);

    border-radius: 30px;

    color: #aab6dc;

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 28px;

    backdrop-filter: blur(15px);
}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #42e8a4;

    box-shadow:
        0 0 12px #42e8a4;

    animation:
        statusPulse 2s infinite;
}

@keyframes statusPulse {

    0%,100% {
        opacity: 1;
    }

    50% {
        opacity: .35;
    }
}

.hero h1 {

    font-size:
        clamp(55px, 8vw, 105px);

    line-height: .95;

    letter-spacing: -6px;

    margin-bottom: 22px;
}

.hero h2 {

    font-size:
        clamp(22px, 3vw, 36px);

    line-height: 1.2;

    color: #cbd2eb;

    font-weight: 500;

    max-width: 650px;
}

.hero h2 span {

    color: white;
}

.hero p {

    color: var(--muted);

    max-width: 650px;

    margin-top: 25px;

    font-size: 16px;

    line-height: 1.9;
}

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-top: 35px;
}

.btn {

    position: relative;

    overflow: hidden;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    min-height: 52px;

    padding: 0 23px;

    border-radius: 14px;

    font-size: 13px;

    font-weight: 700;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border .25s ease;
}

.btn span {

    font-size: 18px;

    transition:
        transform .25s ease;
}

.btn:hover span {

    transform:
        translate(3px, -3px);
}

.btn-primary {

    color: white;

    background: var(--gradient);

    box-shadow:
        0 12px 35px
        rgba(74, 102, 255, .25);
}

.btn-primary:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 18px 45px
        rgba(74, 102, 255, .4);
}

.btn-secondary {

    color: #dce2f7;

    border:
        1px solid var(--border);

    background:
        rgba(255,255,255,.04);

    backdrop-filter: blur(15px);
}

.btn-secondary:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(100,150,255,.4);

    background:
        rgba(255,255,255,.07);
}

.social-links {

    display: flex;

    gap: 25px;

    margin-top: 32px;
}

.social-links a {

    color: #737da4;

    font-size: 12px;

    transition: .3s;
}

.social-links a:hover {

    color: white;

    transform:
        translateY(-2px);
}


/* =====================================================
   HERO VISUAL
===================================================== */

.hero-visual {

    height: 600px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;
}

.photo-circle {

    width: 380px;
    height: 380px;

    padding: 7px;

    position: relative;

    z-index: 5;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #704dff,
            #2498ff,
            #42e1ff,
            #704dff
        );

    box-shadow:
        0 0 35px
        rgba(90, 85, 255, .65),
        0 0 100px
        rgba(25, 150, 255, .2);

    animation:
        photoFloat 5s ease-in-out infinite;
}

.photo-circle img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

    border-radius: 50%;

    border:
        7px solid #080d1d;

    position: relative;

    z-index: 2;
}

.photo-circle::before {

    content: "";

    position: absolute;

    inset: -13px;

    border-radius: 50%;

    border:
        1px solid
        rgba(108, 128, 255, .55);

    animation:
        spin 9s linear infinite;
}

.photo-circle::after {

    content: "";

    position: absolute;

    inset: -23px;

    border-radius: 50%;

    border:
        1px dashed
        rgba(65, 220, 255, .3);

    animation:
        spinReverse 15s linear infinite;
}

.photo-glow {

    position: absolute;

    inset: 10%;

    border-radius: 50%;

    background:
        rgba(75, 110, 255, .45);

    filter: blur(45px);

    z-index: -1;
}

@keyframes photoFloat {

    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-12px);
    }
}

@keyframes spin {

    from {
        transform:
            rotate(0deg);
    }

    to {
        transform:
            rotate(360deg);
    }
}

@keyframes spinReverse {

    from {
        transform:
            rotate(360deg);
    }

    to {
        transform:
            rotate(0deg);
    }
}

.orbit {

    position: absolute;

    border-radius: 50%;

    border:
        1px solid
        rgba(100, 130, 255, .12);
}

.orbit-1 {

    width: 490px;
    height: 490px;

    animation:
        spin 18s linear infinite;
}

.orbit-2 {

    width: 570px;
    height: 570px;

    border-style: dashed;

    opacity: .55;

    animation:
        spinReverse 25s linear infinite;
}


/* =====================================================
   FLOATING BADGES
===================================================== */

.floating-badge {

    position: absolute;

    z-index: 8;

    display: flex;

    align-items: center;

    gap: 9px;

    padding: 12px 16px;

    border:
        1px solid
        rgba(255,255,255,.1);

    border-radius: 14px;

    background:
        rgba(12,18,42,.78);

    backdrop-filter: blur(20px);

    color: #dbe2ff;

    font-size: 11px;

    font-weight: 600;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.25);

    animation:
        badgeFloat 4s ease-in-out infinite;
}

.floating-badge span {

    font-size: 18px;
}

.badge-1 {

    top: 90px;
    left: 20px;
}

.badge-2 {

    top: 210px;
    right: -5px;

    animation-delay:
        -1.3s;
}

.badge-3 {

    bottom: 100px;
    left: 30px;

    animation-delay:
        -2.5s;
}

@keyframes badgeFloat {

    0%,100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-10px);
    }
}


/* =====================================================
   SCROLL DOWN
===================================================== */

.scroll-down {

    position: absolute;

    bottom: 30px;

    left: 6%;

    display: flex;

    align-items: center;

    gap: 15px;

    color: #657092;

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.scroll-line {

    width: 55px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            #6875ff,
            transparent
        );
}


/* =====================================================
   ABOUT
===================================================== */

.about-grid {

    display: grid;

    grid-template-columns:
        1.1fr
        .9fr;

    gap: 70px;

    align-items: center;
}

.about-text {

    color: var(--muted);

    font-size: 15px;
}

.about-text p {

    margin-bottom: 20px;

    line-height: 1.9;
}

.about-text .large-text {

    font-size: 21px;

    color: #dce2f5;

    line-height: 1.7;
}

.about-text strong {

    color: white;
}

.about-cards {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}

.mini-card {

    min-height: 120px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(23,31,62,.75),
            rgba(10,15,34,.55)
        );

    backdrop-filter: blur(15px);

    transition:
        transform .3s,
        border .3s;
}

.mini-card:hover {

    transform:
        translateY(-7px);

    border-color:
        rgba(100,150,255,.3);
}

.mini-icon {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    border-radius: 13px;

    background:
        rgba(111,93,255,.12);

    font-size: 21px;
}

.mini-card strong {

    display: block;

    font-size: 13px;

    margin-bottom: 4px;
}

.mini-card span {

    display: block;

    color: #7d88ac;

    font-size: 11px;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}

.skill-card {

    position: relative;

    min-height: 220px;

    padding: 25px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(19,26,57,.72),
            rgba(8,13,29,.72)
        );

    transition:
        transform .3s,
        border .3s,
        box-shadow .3s;
}

.skill-card::before {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    top: -70px;
    right: -60px;

    border-radius: 50%;

    background:
        rgba(93,84,255,.18);

    filter: blur(25px);
}

.skill-card:hover {

    transform:
        translateY(-9px);

    border-color:
        rgba(92,145,255,.35);

    box-shadow:
        0 20px 50px
        rgba(0,0,0,.25);
}

.skill-number {

    position: absolute;

    right: 18px;
    top: 17px;

    color: #404b72;

    font-size: 10px;

    letter-spacing: 1px;
}

.skill-icon {

    width: 50px;
    height: 50px;

    display: grid;

    place-items: center;

    border-radius: 15px;

    margin-bottom: 30px;

    color: #b9c6ff;

    background:
        linear-gradient(
            135deg,
            rgba(105,80,255,.18),
            rgba(35,151,255,.12)
        );

    border:
        1px solid
        rgba(112,125,255,.12);

    font-size: 15px;

    font-weight: 800;
}

.skill-card h3 {

    font-size: 18px;

    margin-bottom: 7px;
}

.skill-card p {

    color: #747fa4;

    font-size: 11px;

    line-height: 1.6;
}


/* =====================================================
   PROJECTS
===================================================== */

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;
}

.project-card {

    position: relative;

    min-height: 340px;

    padding: 30px;

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(20,27,59,.75),
            rgba(8,13,29,.7)
        );

    transition:
        transform .35s,
        border .35s,
        box-shadow .35s;
}

.project-card::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    right: -120px;
    bottom: -140px;

    border-radius: 50%;

    background:
        rgba(70,90,255,.13);

    filter: blur(50px);
}

.project-card:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(105,145,255,.35);

    box-shadow:
        0 25px 70px
        rgba(0,0,0,.3);
}

.project-card.featured {

    border-color:
        rgba(104,89,255,.25);

    background:
        linear-gradient(
            145deg,
            rgba(45,37,98,.55),
            rgba(10,16,38,.8)
        );
}

.project-top {

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.project-tag {

    color: #8e9bca;

    font-size: 9px;

    letter-spacing: 2px;

    font-weight: 700;
}

.project-arrow {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,.05);

    color: #bbc5eb;

    transition: .3s;
}

.project-card:hover
.project-arrow {

    background:
        var(--gradient);

    color: white;

    transform:
        rotate(45deg);
}

.project-icon {

    width: 65px;
    height: 65px;

    display: grid;

    place-items: center;

    margin-top: 40px;
    margin-bottom: 22px;

    border-radius: 18px;

    background:
        rgba(105,90,255,.12);

    border:
        1px solid
        rgba(105,130,255,.15);

    font-size: 28px;
}

.project-card h3 {

    font-size: 24px;

    margin-bottom: 12px;
}

.project-card p {

    color: #7e88aa;

    font-size: 13px;

    line-height: 1.8;

    max-width: 500px;
}

.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 25px;
}

.project-tech span {

    padding: 6px 10px;

    border-radius: 20px;

    color: #8e99bd;

    background:
        rgba(255,255,255,.04);

    border:
        1px solid
        rgba(255,255,255,.06);

    font-size: 9px;
}


/* =====================================================
   EDUCATION TIMELINE
===================================================== */

.timeline {

    max-width: 900px;

    margin: auto;

    position: relative;
}

.timeline::before {

    content: "";

    position: absolute;

    left: 9px;

    top: 10px;
    bottom: 10px;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            #695aff,
            rgba(70,150,255,.05)
        );
}

.timeline-item {

    position: relative;

    padding-left: 55px;

    margin-bottom: 50px;
}

.timeline-dot {

    position: absolute;

    left: 0;
    top: 7px;

    width: 19px;
    height: 19px;

    border-radius: 50%;

    background:
        var(--gradient);

    border:
        4px solid #070b1a;

    box-shadow:
        0 0 20px
        rgba(100,100,255,.6);
}

.timeline-content {

    padding: 30px;

    border:
        1px solid var(--border);

    border-radius: 22px;

    background:
        rgba(14,20,43,.6);

    backdrop-filter: blur(15px);
}

.timeline-date {

    color: #7383bd;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;
}

.timeline-content h3 {

    margin-top: 10px;

    font-size: 22px;
}

.timeline-content h4 {

    color: #8f9bc0;

    font-size: 13px;

    font-weight: 500;

    margin-top: 5px;
}

.timeline-content p {

    color: #727d9f;

    font-size: 13px;

    margin-top: 15px;

    line-height: 1.8;
}


/* =====================================================
   GOALS
===================================================== */

.goals-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}

.goal-card {

    padding: 30px;

    min-height: 260px;

    border:
        1px solid var(--border);

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(19,27,58,.7),
            rgba(8,13,30,.7)
        );

    transition: .3s;
}

.goal-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(100,140,255,.35);
}

.goal-card.main-goal {

    grid-column:
        span 3;

    min-height: 280px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(92,76,255,.22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(34,29,75,.8),
            rgba(8,13,30,.8)
        );
}

.goal-icon {

    display: block;

    font-size: 30px;

    margin-bottom: 18px;
}

.goal-label {

    color: #7e89b3;

    font-size: 9px;

    letter-spacing: 2px;
}

.goal-card h3 {

    font-size: 24px;

    margin:
        8px 0 12px;
}

.main-goal h3 {

    font-size:
        clamp(28px, 4vw, 48px);
}

.goal-card p {

    color: #7883a6;

    font-size: 13px;

    line-height: 1.8;

    max-width: 700px;
}


/* =====================================================
   CONTACT
===================================================== */

.contact-section {

    max-width: 1100px;

    margin: auto;

    padding:
        130px 6%;
}

.contact-box {

    position: relative;

    overflow: hidden;

    text-align: center;

    padding:
        90px 30px;

    border:
        1px solid
        rgba(112,120,255,.18);

    border-radius: 35px;

    background:
        radial-gradient(
            circle at center,
            rgba(87,71,255,.15),
            transparent 55%
        ),
        rgba(12,17,39,.7);

    backdrop-filter: blur(20px);
}

.contact-glow {

    position: absolute;

    width: 300px;
    height: 300px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border-radius: 50%;

    background:
        rgba(77,112,255,.12);

    filter: blur(70px);

    pointer-events: none;
}

.contact-box > * {

    position: relative;

    z-index: 2;
}

.contact-box h2 {

    font-size:
        clamp(40px, 6vw, 70px);

    line-height: 1.05;

    letter-spacing: -3px;

    margin:
        15px 0 25px;
}

.contact-box p {

    max-width: 600px;

    margin:
        0 auto 30px;

    color: #7e88aa;

    font-size: 14px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {

    border-top:
        1px solid var(--border);

    padding:
        35px 6%;

    background:
        rgba(4,7,17,.65);
}

.footer-content {

    max-width: 1250px;

    margin: auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    flex-wrap: wrap;
}

.footer-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 700;
}

.footer-logo span {

    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background:
        var(--gradient);
}

.footer-content p {

    color: #59637f;

    font-size: 10px;
}

.copyright {

    opacity: .7;
}


/* =====================================================
   REVEAL ANIMATION
===================================================== */

.reveal {

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.show {

    opacity: 1;

    transform:
        translateY(0);
}


/* =====================================================
   RIPPLE
===================================================== */

.ripple {

    position: absolute;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.35);

    transform:
        translate(-50%, -50%);

    animation:
        rippleAnimation .6s linear;

    pointer-events: none;
}

@keyframes rippleAnimation {

    to {

        width: 300px;
        height: 300px;

        opacity: 0;

    }
}


/* =====================================================
   BACK TO TOP
===================================================== */

.back-to-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border:
        1px solid
        rgba(255,255,255,.12);

    border-radius: 14px;

    background:
        rgba(15,21,44,.8);

    color: white;

    cursor: pointer;

    z-index: 900;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(15px);

    transition: .3s;

    backdrop-filter: blur(15px);
}

.back-to-top.visible {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.back-to-top:hover {

    background:
        var(--gradient);

    transform:
        translateY(-4px);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1050px) {

    nav a {
        padding:
            8px 10px;

        font-size: 11px;
    }

    .hero-content {

        grid-template-columns:
            1fr;

        text-align: center;
    }

    .hero-text {

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero p {

        max-width: 600px;
    }

    .hero-visual {

        height: 560px;
    }

    .skills-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-grid {

        grid-template-columns:
            1fr;
    }
}


@media (max-width: 750px) {

    .navbar {

        padding:
            15px 5%;
    }

    .menu-toggle {

        display: block;
    }

    nav {

        position: absolute;

        top: 75px;
        left: 5%;
        right: 5%;

        display: none;

        flex-direction: column;

        border-radius: 20px;

        padding: 10px;

        background:
            rgba(10,15,34,.96);
    }

    nav.active {

        display: flex;
    }

    nav a {

        width: 100%;

        text-align: center;

        padding: 13px;
    }

    .hero {

        padding-top: 130px;
    }

    .hero h1 {

        letter-spacing: -4px;
    }

    .hero-visual {

        transform:
            scale(.85);

        margin:
            -30px 0;
    }

    .projects-grid {

        grid-template-columns:
            1fr;
    }

    .goals-grid {

        grid-template-columns:
            1fr;
    }

    .goal-card.main-goal {

        grid-column:
            span 1;
    }

    .section-heading {

        margin-bottom: 45px;
    }

    .about-cards {

        grid-template-columns:
            1fr;
    }
}


@media (max-width: 520px) {

    .content-section {

        padding:
            90px 5%;
    }

    .hero {

        padding:
            120px 5% 50px;
    }

    .hero h1 {

        font-size: 58px;

        letter-spacing: -4px;
    }

    .hero h2 {

        font-size: 23px;
    }

    .hero p {

        font-size: 14px;
    }

    .hero-buttons {

        width: 100%;

        flex-direction: column;
    }

    .btn {

        width: 100%;
    }

    .hero-visual {

        height: 450px;

        transform:
            scale(.67);

        margin:
            -80px 0;
    }

    .floating-badge {

        transform:
            scale(.9);
    }

    .badge-1 {

        left: 0;
    }

    .badge-2 {

        right: -10px;
    }

    .badge-3 {

        left: 0;
    }

    .skills-grid {

        grid-template-columns:
            1fr;
    }

    .skill-card {

        min-height: 180px;
    }

    .section-heading h2 {

        font-size: 37px;
    }

    .section-number {

        font-size: 11px;
    }

    .contact-box {

        padding:
            65px 20px;
    }

    .contact-box h2 {

        font-size: 42px;
    }

    .scroll-down {

        display: none;
    }

    .cursor-dot,
    .cursor-ring {

        display: none;
    }
}


/* =====================================================
   REDUCE MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;
    }
}
.contact-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.contact-details {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
}

.contact-details a {
    color: #8994b8;
    font-size: 12px;
    transition: 0.3s ease;
}

.contact-details a:hover {
    color: #ffffff;
}

@media (max-width: 600px) {

    .contact-details {
        flex-direction: column;
        gap: 12px;
    }

}