
/* =========================================================
   ISHANT SRIVASTAVA PORTFOLIO
   LIGHT PREMIUM + ANIMATED DESIGN
========================================================= */


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

:root {

    --primary: #7c3aed;
    --primary-light: #8b5cf6;
    --primary-dark: #6d28d9;

    --secondary: #6366f1;

    --purple-light: #ede9fe;
    --purple-soft: #f5f3ff;

    --blue-light: #e0e7ff;

    --white: #ffffff;
    --background: #faf9ff;
    --background-2: #f5f3ff;

    --text-dark: #1e1b4b;
    --text: #334155;
    --text-light: #64748b;

    --border: rgba(124, 58, 237, 0.12);

    --shadow-sm:
        0 5px 20px rgba(76, 29, 149, 0.06);

    --shadow:
        0 15px 40px rgba(76, 29, 149, 0.10);

    --shadow-lg:
        0 25px 70px rgba(76, 29, 149, 0.15);

    --gradient:
        linear-gradient(
            135deg,
            #7c3aed,
            #6366f1
        );

    --gradient-soft:
        linear-gradient(
            135deg,
            #ede9fe,
            #e0e7ff
        );

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --transition:
        all 0.35s cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );
}


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

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

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

body {

    font-family: "Inter", sans-serif;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(124, 58, 237, 0.04),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(99, 102, 241, 0.04),
            transparent 30%
        ),
        var(--background);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

button,
input,
textarea {
    font-family: inherit;
}

button {
    border: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    margin: auto;
}


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

.section {

    position: relative;

    padding:
        120px
        0;
}


/* =========================================================
   PRELOADER
========================================================= */

.preloader {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background: var(--white);

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.preloader.hide {

    opacity: 0;

    visibility: hidden;
}

.loader {

    display: flex;

    gap: 8px;

    margin-bottom: 18px;
}

.loader span {

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: var(--primary);

    animation:
        loaderBounce
        0.8s
        infinite
        alternate;
}

.loader span:nth-child(2) {

    animation-delay: 0.15s;
}

.loader span:nth-child(3) {

    animation-delay: 0.3s;
}

.preloader p {

    color: var(--text-light);

    font-size: 13px;

    letter-spacing: 1px;
}

@keyframes loaderBounce {

    from {
        transform: translateY(0);
        opacity: 0.4;
    }

    to {
        transform: translateY(-10px);
        opacity: 1;
    }
}


/* =========================================================
   CUSTOM CURSOR
========================================================= */

.cursor-dot {

    position: fixed;

    width: 7px;
    height: 7px;

    background: var(--primary);

    border-radius: 50%;

    pointer-events: none;

    z-index: 100000;

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

.cursor-outline {

    position: fixed;

    width: 32px;
    height: 32px;

    border: 1px solid
        rgba(124, 58, 237, 0.5);

    border-radius: 50%;

    pointer-events: none;

    z-index: 99999;

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

    transition:
        width 0.2s ease,
        height 0.2s ease,
        background 0.2s ease;
}


/* =========================================================
   BACKGROUND SHAPES
========================================================= */

.background-shapes {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

    overflow: hidden;
}

.shape {

    position: absolute;

    border-radius: 50%;

    filter: blur(2px);

    opacity: 0.45;
}

.shape-1 {

    width: 350px;
    height: 350px;

    top: 5%;
    left: -150px;

    background:
        radial-gradient(
            circle,
            rgba(139, 92, 246, 0.12),
            transparent 70%
        );

    animation:
        floatShape 12s
        ease-in-out
        infinite;
}

.shape-2 {

    width: 300px;
    height: 300px;

    right: -120px;
    top: 25%;

    background:
        radial-gradient(
            circle,
            rgba(99, 102, 241, 0.12),
            transparent 70%
        );

    animation:
        floatShape 15s
        ease-in-out
        infinite reverse;
}

.shape-3 {

    width: 280px;
    height: 280px;

    bottom: 10%;
    left: 15%;

    background:
        radial-gradient(
            circle,
            rgba(167, 139, 250, 0.1),
            transparent 70%
        );

    animation:
        floatShape 17s
        ease-in-out
        infinite;
}

.shape-4 {

    width: 250px;
    height: 250px;

    bottom: -100px;
    right: 15%;

    background:
        radial-gradient(
            circle,
            rgba(96, 165, 250, 0.08),
            transparent 70%
        );

    animation:
        floatShape 14s
        ease-in-out
        infinite reverse;
}

@keyframes floatShape {

    0%,
    100% {
        transform:
            translate(0, 0)
            scale(1);
    }

    50% {
        transform:
            translate(40px, -40px)
            scale(1.1);
    }
}


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

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 20px 0;

    transition: var(--transition);
}

.navbar.scrolled {

    padding: 12px 0;

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

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 5px 30px
        rgba(76, 29, 149, 0.08);

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

.nav-container {

    display: flex;

    align-items: center;

    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    font-family: "Space Grotesk", sans-serif;

    font-size: 22px;

    font-weight: 800;

    color: var(--text-dark);

    letter-spacing: -0.5px;
}

.logo-bracket {

    color: var(--primary);

    font-weight: 700;
}


/* =========================================================
   NAV MENU
========================================================= */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 32px;
}

.nav-link {

    position: relative;

    color: var(--text);

    font-size: 14px;

    font-weight: 500;

    transition: var(--transition);
}

.nav-link::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--primary);

    border-radius: 5px;

    transform:
        translateX(-50%);

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {

    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {

    width: 20px;
}


/* =========================================================
   MENU BUTTON
========================================================= */

.menu-toggle {

    display: none;

    width: 44px;
    height: 44px;

    border-radius: 12px;

    background: var(--purple-light);

    color: var(--primary);

    font-size: 18px;
}


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

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding-top: 130px;

    position: relative;

    overflow: hidden;
}

.hero-container {

    display: grid;

    grid-template-columns:
        1.1fr
        0.9fr;

    gap: 70px;

    align-items: center;
}


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

.hero-small-title {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding:
        7px
        14px;

    border-radius: 50px;

    background: var(--purple-soft);

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

    color: var(--primary);

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 22px;
}

.status-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px
        rgba(34, 197, 94, 0.12);

    animation:
        pulseStatus
        2s
        infinite;
}

@keyframes pulseStatus {

    0%,
    100% {
        box-shadow:
            0 0 0 5px
            rgba(34, 197, 94, 0.12);
    }

    50% {
        box-shadow:
            0 0 0 9px
            rgba(34, 197, 94, 0.03);
    }
}

.hero h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -2.8px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.gradient-text {

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #6366f1,
            #8b5cf6
        );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;

    background-size: 200% auto;

    animation:
        gradientMove
        5s
        ease
        infinite;
}

@keyframes gradientMove {

    0% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

.typing-text {
    color: var(--text);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(30px, 4vw, 50px);
    font-weight: 500;
    letter-spacing: -1.5px;
    min-height: 1.2em;
}


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

.hero-description {

    max-width: 650px;

    color: var(--text-light);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 35px;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 35px;
}

.btn {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        13px
        22px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;

    overflow: hidden;

    transition: var(--transition);
}

.btn-primary {

    background: var(--gradient);

    color: var(--white);

    box-shadow:
        0 10px 25px
        rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {

    transform:
        translateY(-4px);

    box-shadow:
        0 18px 35px
        rgba(124, 58, 237, 0.28);
}

.btn-primary i {

    transition: var(--transition);
}

.btn-primary:hover i {

    transform:
        translateX(5px);
}

.btn-secondary {

    background: var(--white);

    color: var(--primary);

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

    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {

    transform:
        translateY(-4px);

    background:
        var(--purple-soft);

    border-color:
        rgba(124, 58, 237, 0.25);
}


/* =========================================================
   SOCIALS
========================================================= */

.hero-socials {

    display: flex;

    align-items: center;

    gap: 18px;
}

.hero-socials > span {

    color: var(--text-light);

    font-size: 12px;

    font-weight: 500;
}

.social-icons {

    display: flex;

    gap: 9px;
}

.social-icons a {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: var(--white);

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

    color: var(--text);

    transition: var(--transition);
}

.social-icons a:hover {

    color: var(--white);

    background: var(--primary);

    transform:
        translateY(-4px)
        rotate(5deg);

    box-shadow:
        0 10px 20px
        rgba(124, 58, 237, 0.2);
}


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

.hero-visual {

    display: flex;

    justify-content: center;

    align-items: center;
}

.profile-wrapper {

    position: relative;

    width:
        clamp(
            280px,
            32vw,
            420px
        );

    height:
        clamp(
            280px,
            32vw,
            420px
        );

    display: flex;

    align-items: center;

    justify-content: center;
}


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

.profile-ring {

    position: absolute;

    inset: 5%;

    border-radius: 50%;

    border:
        2px dashed
        rgba(124, 58, 237, 0.25);

    animation:
        rotateRing
        25s
        linear
        infinite;
}

@keyframes rotateRing {

    from {
        transform: rotate(0deg);
    }

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


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

.profile-image {

    position: relative;

    width: 72%;
    height: 72%;

    border-radius: 50%;

    padding: 8px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #ede9fe
        );

    box-shadow:
        0 30px 70px
        rgba(76, 29, 149, 0.18);

    z-index: 2;

    animation:
        profileFloat
        5s
        ease-in-out
        infinite;
}

.profile-image img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border:
        5px solid
        var(--white);
}

@keyframes profileFloat {

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

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


/* =========================================================
   FLOATING CARDS
========================================================= */

.floating-card {

    position: absolute;

    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        10px
        14px;

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

    backdrop-filter:
        blur(15px);

    border:
        1px solid
        rgba(124, 58, 237, 0.12);

    border-radius: 12px;

    box-shadow: var(--shadow);

    font-size: 11px;

    font-weight: 600;

    color: var(--text-dark);

    z-index: 5;
}

.floating-card i {

    font-size: 18px;

    color: var(--primary);
}

.card-html {

    top: 15%;
    left: 0;

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

.card-js {

    right: 0;
    top: 30%;

    animation:
        floatCard
        4.5s
        ease-in-out
        infinite
        0.5s;
}

.card-python {

    bottom: 18%;
    left: 4%;

    animation:
        floatCard
        5s
        ease-in-out
        infinite
        1s;
}

.card-code {

    bottom: 8%;
    right: 4%;

    animation:
        floatCard
        4.5s
        ease-in-out
        infinite
        1.5s;
}

@keyframes floatCard {

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

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


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {

    position: absolute;

    bottom: 25px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 5px;

    color: var(--text-light);

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.scroll-indicator i {

    animation:
        scrollBounce
        1.5s
        infinite;
}

@keyframes scrollBounce {

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

    50% {
        transform:
            translateY(6px);
    }
}


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

.section-heading {

    text-align: center;

    max-width: 700px;

    margin:
        0
        auto
        65px;
}

.section-tag {

    display: inline-block;

    padding:
        6px
        13px;

    border-radius: 50px;

    background: var(--purple-soft);

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 15px;
}

.section-heading h2 {

    font-family: "Space Grotesk", sans-serif;

    font-size:
        clamp(
            30px,
            4vw,
            46px
        );

    line-height: 1.2;

    color: var(--text-dark);

    letter-spacing: -1px;

    margin-bottom: 15px;
}

.section-heading p {

    color: var(--text-light);

    font-size: 14px;
}


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

.about {

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(237, 233, 254, 0.25),
            transparent
        );
}

.about-grid {

    display: grid;

    grid-template-columns:
        0.85fr
        1.15fr;

    gap: 80px;

    align-items: center;
}

.about-image-wrapper {

    position: relative;

    width: 85%;

    margin: auto;
}

.about-image-wrapper::before {

    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    top: 20px;
    left: 20px;

    border-radius: 25px;

    background:
        var(--gradient-soft);

    z-index: 0;
}

.about-image-wrapper img {

    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 25px;

    box-shadow: var(--shadow-lg);

    z-index: 1;
}

.experience-badge {

    position: absolute;

    right: -35px;
    bottom: 35px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        13px
        17px;

    background: var(--white);

    border-radius: 15px;

    box-shadow: var(--shadow);

    z-index: 3;

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

.experience-badge strong {

    font-size: 28px;

    color: var(--primary);

    line-height: 1;
}

.experience-badge span {

    font-size: 10px;

    color: var(--text-light);

    line-height: 1.4;
}

.about-content h3 {

    font-family: "Space Grotesk", sans-serif;

    color: var(--text-dark);

    font-size: 28px;

    margin-bottom: 20px;
}

.about-content > p {

    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 15px;
}

.about-info {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-top: 28px;
}

.info-item {

    padding:
        14px
        16px;

    border-radius: 12px;

    background: var(--white);

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

    transition: var(--transition);
}

.info-item:hover {

    transform:
        translateY(-4px);

    box-shadow: var(--shadow-sm);
}

.info-item span {

    display: block;

    color: var(--text-light);

    font-size: 10px;

    margin-bottom: 3px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.info-item strong {

    color: var(--text-dark);

    font-size: 13px;
}


/* =========================================================
   STATS
========================================================= */

.stats-section {

    padding: 30px 0 100px;
}

.stats-grid {

    display: grid;

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

    gap: 20px;
}

.stat-card {

    position: relative;

    text-align: center;

    padding: 30px 20px;

    background: var(--white);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition: var(--transition);
}

.stat-card::before {

    content: "";

    position: absolute;

    width: 100px;
    height: 100px;

    right: -50px;
    top: -50px;

    border-radius: 50%;

    background:
        var(--purple-soft);

    transition: var(--transition);
}

.stat-card:hover {

    transform:
        translateY(-8px);

    box-shadow: var(--shadow);
}

.stat-card:hover::before {

    transform:
        scale(2);
}

.stat-card i {

    position: relative;

    color: var(--primary);

    font-size: 22px;

    margin-bottom: 10px;
}

.stat-card h3 {

    position: relative;

    font-family: "Space Grotesk", sans-serif;

    font-size: 30px;

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

.stat-card p {

    position: relative;

    color: var(--text-light);

    font-size: 12px;
}


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

.skills-grid {

    display: grid;

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

    gap: 20px;
}

.skill-card {

    position: relative;

    padding: 25px;

    background: var(--white);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    overflow: hidden;
}

.skill-card::after {

    content: "";

    position: absolute;

    width: 80px;
    height: 80px;

    right: -35px;
    bottom: -35px;

    border-radius: 50%;

    background:
        var(--purple-soft);

    transition: var(--transition);
}

.skill-card:hover {

    transform:
        translateY(-10px);

    box-shadow: var(--shadow);
}

.skill-card:hover::after {

    transform:
        scale(2.3);
}

.skill-icon {

    position: relative;

    z-index: 2;

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: var(--purple-soft);

    color: var(--primary);

    font-size: 23px;

    margin-bottom: 18px;

    transition: var(--transition);
}

.skill-card:hover .skill-icon {

    transform:
        rotate(-8deg)
        scale(1.1);

    background: var(--primary);

    color: var(--white);
}

.skill-card h3 {

    position: relative;

    z-index: 2;

    font-family: "Space Grotesk", sans-serif;

    font-size: 17px;

    color: var(--text-dark);

    margin-bottom: 5px;
}

.skill-card p {

    position: relative;

    z-index: 2;

    color: var(--text-light);

    font-size: 11px;

    min-height: 38px;

    margin-bottom: 15px;
}

.skill-bar {

    position: relative;

    z-index: 2;

    width: 100%;

    height: 5px;

    background:
        #eeeef8;

    border-radius: 20px;

    overflow: hidden;

    margin-bottom: 6px;
}

.skill-bar span {

    display: block;

    width: 0;

    height: 100%;

    border-radius: 20px;

    background:
        var(--gradient);

    transition:
        width 1.5s
        cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );
}

.skill-card small {

    position: relative;

    z-index: 2;

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   EXPERIENCE TIMELINE
========================================================= */

.experience {

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(237, 233, 254, 0.25),
            transparent
        );
}

.timeline {

    position: relative;

    max-width: 850px;

    margin: auto;
}

.timeline::before {

    content: "";

    position: absolute;

    left: 50%;

    top: 0;
    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            var(--primary),
            rgba(124, 58, 237, 0.05)
        );

    transform:
        translateX(-50%);
}

.timeline-item {

    position: relative;

    width: 50%;

    padding: 0 40px 50px;
}

.timeline-item:nth-child(odd) {

    left: 0;

    text-align: right;
}

.timeline-item:nth-child(even) {

    left: 50%;
}

.timeline-dot {

    position: absolute;

    width: 14px;
    height: 14px;

    top: 5px;

    border-radius: 50%;

    background: var(--white);

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

    box-shadow:
        0 0 0 5px
        rgba(124, 58, 237, 0.08);

    z-index: 2;
}

.timeline-item:nth-child(odd)
.timeline-dot {

    right: -7px;
}

.timeline-item:nth-child(even)
.timeline-dot {

    left: -7px;
}

.timeline-content {

    padding: 25px;

    background: var(--white);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.timeline-content:hover {

    transform:
        translateY(-7px);

    box-shadow: var(--shadow);
}

.timeline-date {

    display: inline-block;

    padding:
        5px
        10px;

    border-radius: 50px;

    background: var(--purple-soft);

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 10px;
}

.timeline-content h3 {

    font-family: "Space Grotesk", sans-serif;

    color: var(--text-dark);

    font-size: 17px;

    line-height: 1.4;

    margin-bottom: 3px;
}

.timeline-content h4 {

    color: var(--primary);

    font-size: 12px;

    margin-bottom: 10px;
}

.timeline-content p {

    color: var(--text-light);

    font-size: 12px;
}

.timeline-tags {

    display: flex;

    gap: 6px;

    flex-wrap: wrap;

    margin-top: 15px;
}

.timeline-item:nth-child(odd)
.timeline-tags {

    justify-content: flex-end;
}

.timeline-tags span {

    padding:
        4px
        8px;

    background: var(--background-2);

    color: var(--text-light);

    border-radius: 5px;

    font-size: 9px;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-grid {

    display: grid;

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

    gap: 25px;
}

.project-card {

    background: var(--white);

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

    border-radius: var(--radius-lg);

    overflow: hidden;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);

    transform-style: preserve-3d;
}

.project-card:hover {

    transform:
        translateY(-12px);

    box-shadow: var(--shadow-lg);
}

.project-image {

    position: relative;

    height: 200px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eef2ff
        );
}

.project-placeholder {

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 55px;

    color:
        rgba(124, 58, 237, 0.2);

    transition: var(--transition);
}

.project-card:hover
.project-placeholder {

    transform:
        scale(1.15)
        rotate(5deg);

    color:
        rgba(124, 58, 237, 0.4);
}

.project-overlay {

    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(124, 58, 237, 0.78);

    opacity: 0;

    transition: var(--transition);
}

.project-card:hover
.project-overlay {

    opacity: 1;
}

.project-overlay a {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background: var(--white);

    color: var(--primary);

    transform:
        translateY(20px)
        scale(0.8);

    transition: var(--transition);
}

.project-card:hover
.project-overlay a {

    transform:
        translateY(0)
        scale(1);
}

.project-overlay a:hover {

    transform:
        rotate(10deg)
        scale(1.1);
}

.project-content {

    position: relative;

    padding: 25px;
}

.project-number {

    position: absolute;

    right: 20px;
    top: 20px;

    color:
        rgba(124, 58, 237, 0.12);

    font-size: 38px;

    font-family: "Space Grotesk", sans-serif;

    font-weight: 800;
}

.project-content h3 {

    position: relative;

    font-family: "Space Grotesk", sans-serif;

    color: var(--text-dark);

    font-size: 18px;

    margin-bottom: 10px;
}

.project-content p {

    color: var(--text-light);

    font-size: 12px;

    line-height: 1.7;

    margin-bottom: 17px;
}

.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 18px;
}

.project-tech span {

    padding:
        5px
        9px;

    background: var(--purple-soft);

    color: var(--primary);

    border-radius: 5px;

    font-size: 9px;

    font-weight: 600;
}

.project-links a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--primary);

    font-size: 11px;

    font-weight: 700;
}

.project-links a i {

    transition: var(--transition);
}

.project-links a:hover i {

    transform:
        translateX(5px);
}

.projects-more {

    display: flex;

    justify-content: center;

    margin-top: 45px;
}


/* =========================================================
   EDUCATION
========================================================= */

.education-grid {

    display: grid;

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

    gap: 25px;
}

.education-card {

    display: flex;

    gap: 20px;

    padding: 30px;

    background: var(--white);

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

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.education-card:hover {

    transform:
        translateY(-8px);

    box-shadow: var(--shadow);
}

.education-icon {

    flex-shrink: 0;

    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: var(--purple-soft);

    color: var(--primary);

    font-size: 23px;

    transition: var(--transition);
}

.education-card:hover
.education-icon {

    background: var(--primary);

    color: var(--white);

    transform:
        rotate(-7deg);
}

.education-year {

    display: inline-block;

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    margin-bottom: 6px;
}

.education-content h3 {

    font-family: "Space Grotesk", sans-serif;

    color: var(--text-dark);

    font-size: 17px;

    line-height: 1.4;
}

.education-content h4 {

    color: var(--primary);

    font-size: 12px;

    margin: 5px 0 10px;
}

.education-content p {

    color: var(--text-light);

    font-size: 12px;
}

.education-result {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 15px;

    padding:
        8px
        12px;

    background: var(--purple-soft);

    border-radius: 8px;
}

.education-result strong {

    color: var(--primary);

    font-size: 16px;
}

.education-result span {

    color: var(--text-light);

    font-size: 9px;
}


/* =========================================================
   TRAINING
========================================================= */

.training {

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(237, 233, 254, 0.2),
            transparent
        );
}

.training-grid {

    display: grid;

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

    gap: 18px;
}

.training-card {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 20px;

    background: var(--white);

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

    border-radius: 15px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.training-card:hover {

    transform:
        translateX(8px);

    box-shadow: var(--shadow);
}

.training-icon {

    width: 48px;
    height: 48px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--purple-soft);

    color: var(--primary);

    border-radius: 12px;

    font-size: 21px;
}

.training-card h3 {

    color: var(--text-dark);

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;
}

.training-card p {

    color: var(--primary);

    font-size: 11px;

    font-weight: 600;
}

.training-card span {

    color: var(--text-light);

    font-size: 9px;
}


/* =========================================================
   CTA
========================================================= */

.cta-section {

    padding:
        40px 0
        110px;
}

.cta-box {

    position: relative;

    padding:
        65px;

    border-radius: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eef2ff
        );

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

.cta-box::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    right: -100px;
    top: -150px;

    background:
        rgba(124, 58, 237, 0.08);

    animation:
        floatShape
        8s
        ease-in-out
        infinite;
}

.cta-content {

    position: relative;

    z-index: 2;

    max-width: 650px;
}

.cta-content h2 {

    font-family: "Space Grotesk", sans-serif;

    color: var(--text-dark);

    font-size:
        clamp(
            30px,
            4vw,
            45px
        );

    line-height: 1.2;

    margin-bottom: 15px;
}

.cta-content p {

    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 25px;
}

.cta-decoration {

    position: absolute;

    right: 10%;

    top: 50%;

    transform:
        translateY(-50%);

    width: 160px;
    height: 160px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

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

    color:
        rgba(124, 58, 237, 0.18);

    font-size: 70px;

    animation:
        profileFloat
        5s
        ease-in-out
        infinite;
}


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

.contact-grid {

    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 60px;

    align-items: start;
}

.contact-info {

    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-card {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 18px;

    background: var(--white);

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

    border-radius: 14px;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.contact-card:hover {

    transform:
        translateX(7px);

    box-shadow: var(--shadow);
}

.contact-icon {

    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--purple-soft);

    color: var(--primary);

    border-radius: 11px;
}

.contact-card span {

    display: block;

    color: var(--text-light);

    font-size: 10px;

    margin-bottom: 2px;
}

.contact-card a,
.contact-card strong {

    color: var(--text-dark);

    font-size: 12px;

    font-weight: 600;

    word-break: break-word;
}

.contact-card a:hover {

    color: var(--primary);
}


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

.contact-form-wrapper {

    padding: 30px;

    background: var(--white);

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

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.contact-form {

    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 20px;
}

.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-group:nth-child(3),
.form-group:nth-child(4),
.submit-btn {

    grid-column:
        1 / -1;
}

.form-group label {

    color: var(--text-dark);

    font-size: 11px;

    font-weight: 600;
}

.form-group input,
.form-group textarea {

    width: 100%;

    padding:
        13px
        15px;

    background: var(--background);

    border:
        1px solid
        rgba(124, 58, 237, 0.1);

    border-radius: 10px;

    outline: none;

    color: var(--text-dark);

    font-size: 12px;

    resize: vertical;

    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {

    border-color:
        rgba(124, 58, 237, 0.45);

    background: var(--white);

    box-shadow:
        0 0 0 4px
        rgba(124, 58, 237, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #a1a1aa;
}

.submit-btn {

    justify-self: start;
}


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

.footer {

    padding:
        35px
        0
        25px;

    background:
        #f5f3ff;

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

.footer-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-bottom: 25px;

    border-bottom:
        1px solid
        rgba(124, 58, 237, 0.08);
}

.footer-socials {

    display: flex;

    gap: 8px;
}

.footer-socials a {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--white);

    color: var(--text);

    border-radius: 9px;

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

    transition: var(--transition);
}

.footer-socials a:hover {

    color: var(--white);

    background: var(--primary);

    transform:
        translateY(-4px);
}

.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding-top: 20px;

    color: var(--text-light);

    font-size: 10px;
}

.footer-bottom i {

    color: #ef4444;

    margin: 0 3px;
}


/* =========================================================
   BACK TO TOP
========================================================= */

.back-to-top {

    position: fixed;

    right: 25px;

    bottom: 25px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: var(--primary);

    color: var(--white);

    box-shadow:
        0 10px 25px
        rgba(124, 58, 237, 0.25);

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(20px);

    transition: var(--transition);

    z-index: 500;
}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}

.back-to-top:hover {

    transform:
        translateY(-5px);
}


/* =========================================================
   SCROLL REVEAL ANIMATIONS
========================================================= */

.reveal {

    opacity: 0;

    transform:
        translateY(50px);

    transition:
        opacity 0.9s ease,
        transform 0.9s
        cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );
}

.reveal-left {

    opacity: 0;

    transform:
        translateX(-70px);

    transition:
        opacity 0.9s ease,
        transform 0.9s
        cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );
}

.reveal-right {

    opacity: 0;

    transform:
        translateX(70px);

    transition:
        opacity 0.9s ease,
        transform 0.9s
        cubic-bezier(
            0.4,
            0,
            0.2,
            1
        );
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {

    opacity: 1;

    transform:
        translate(0);
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background: var(--primary);

    color: var(--white);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width: 8px;
}

::-webkit-scrollbar-track {

    background:
        var(--background);
}

::-webkit-scrollbar-thumb {

    background:
        linear-gradient(
            var(--primary),
            var(--secondary)
        );

    border-radius: 10px;
}


/* =========================================================
   RESPONSIVE - 1100px
========================================================= */

@media (max-width: 1100px) {

    .skills-grid {

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

    .projects-grid {

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

    .hero-container {

        gap: 35px;
    }

}


/* =========================================================
   RESPONSIVE - 900px
========================================================= */

@media (max-width: 900px) {

    .section {

        padding:
            90px 0;
    }


    /* Navbar */

    .nav-menu {

        position: fixed;

        top: 75px;

        left: 20px;
        right: 20px;

        padding: 25px;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

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

        backdrop-filter:
            blur(20px);

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

        border-radius: 18px;

        box-shadow: var(--shadow);

        opacity: 0;

        visibility: hidden;

        transform:
            translateY(-15px);

        transition: var(--transition);
    }

    .nav-menu.active {

        opacity: 1;

        visibility: visible;

        transform:
            translateY(0);
    }

    .menu-toggle {

        display: block;
    }


    /* Hero */

    .hero {

        padding-top: 120px;
    }

    .hero-container {

        grid-template-columns:
            1fr;

        text-align: center;
    }

    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-description {

        max-width: 600px;
    }

    .hero-socials {

        justify-content: center;
    }

    .hero-visual {

        order: -1;
    }

    .profile-wrapper {

        width: 330px;
        height: 330px;
    }


    /* About */

    .about-grid {

        grid-template-columns:
            1fr;

        gap: 50px;
    }

    .about-image-wrapper {

        width: 60%;

        min-width: 280px;
    }


    /* Stats */

    .stats-grid {

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


    /* Skills */

    .skills-grid {

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


    /* Contact */

    .contact-grid {

        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   RESPONSIVE - 700px
========================================================= */

@media (max-width: 700px) {

    .container {

        width:
            min(
                100% - 30px,
                600px
            );
    }


    .hero h1 {

        letter-spacing: -1px;
    }


    .floating-card {

        transform:
            scale(0.85);
    }

    .card-html {

        left: -15px;
    }

    .card-js {

        right: -15px;
    }


    /* Projects */

    .projects-grid {

        grid-template-columns:
            1fr;
    }


    /* Education */

    .education-grid {

        grid-template-columns:
            1fr;
    }


    /* Training */

    .training-grid {

        grid-template-columns:
            1fr;
    }


    /* Timeline */

    .timeline::before {

        left: 10px;
    }

    .timeline-item {

        width: 100%;

        left: 0 !important;

        text-align: left !important;

        padding:
            0
            0
            35px
            40px;
    }

    .timeline-dot {

        left: 3px !important;

        right: auto !important;
    }

    .timeline-item:nth-child(odd)
    .timeline-tags {

        justify-content: flex-start;
    }


    /* CTA */

    .cta-box {

        padding: 40px 25px;
    }

    .cta-decoration {

        display: none;
    }


    /* Footer */

    .footer-top,
    .footer-bottom {

        flex-direction: column;

        gap: 18px;

        text-align: center;
    }

}


/* =========================================================
   RESPONSIVE - 500px
========================================================= */

@media (max-width: 500px) {

    .section {

        padding:
            75px 0;
    }


    .hero {

        padding-top: 110px;
    }

    .profile-wrapper {

        width: 270px;
        height: 270px;
    }

    .floating-card {

        padding:
            7px
            10px;

        font-size: 9px;
    }

    .floating-card i {

        font-size: 14px;
    }


    .hero-buttons {

        width: 100%;

        flex-direction: column;
    }

    .hero-buttons .btn {

        width: 100%;
    }


    .about-image-wrapper {

        width: 80%;

        min-width: 0;
    }

    .experience-badge {

        right: -20px;

        padding:
            10px
            12px;
    }


    .about-info {

        grid-template-columns:
            1fr;
    }


    .stats-grid {

        grid-template-columns:
            1fr
            1fr;

        gap: 10px;
    }

    .stat-card {

        padding:
            20px
            10px;
    }


    .skills-grid {

        grid-template-columns:
            1fr;
    }


    .contact-form {

        grid-template-columns:
            1fr;
    }

    .form-group:nth-child(3),
    .form-group:nth-child(4),
    .submit-btn {

        grid-column:
            auto;
    }

    .contact-form-wrapper {

        padding:
            20px;
    }


    .scroll-indicator {

        display: none;
    }


    .back-to-top {

        right: 15px;

        bottom: 15px;
    }

}


/* =========================================================
   REDUCED 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;
    }
}
