/* =========================================================
   TANISHKA DHUMAL — PORTFOLIO
   DARK / PURPLE PREMIUM THEME
========================================================= */


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

:root {

    --bg: #080808;
    --bg-soft: #0D0D0D;

    --surface: #111111;
    --card: #151515;
    --card-hover: #1A1A1A;

    --white: #FFFFFF;
    --text: #A1A1AA;
    --text-light: #D4D4D8;

    --accent: #7C3AED;
    --accent-light: #A78BFA;
    --accent-dark: #5B21B6;

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

    --shadow:
        0 20px 60px rgba(0,0,0,0.35);

    --purple-shadow:
        0 20px 60px rgba(124,58,237,0.18);
}


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

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {

    font-family: 'Manrope', sans-serif;

    color: var(--white);

    background:

        radial-gradient(
            circle at 80% 15%,
            rgba(124,58,237,0.14),
            transparent 28%
        ),

        radial-gradient(
            circle at 15% 55%,
            rgba(124,58,237,0.08),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(124,58,237,0.10),
            transparent 30%
        ),

        var(--bg);

    background-attachment: fixed;

    min-height: 100vh;

    overflow-x: hidden;
}


/* =========================================================
   GLOBAL ELEMENTS
========================================================= */

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

ul,
ol {
    list-style: none;
}

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

button {
    font-family: inherit;
}

section {
    width: 100%;
    padding: 110px 10%;
    position: relative;
}


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

.section-heading {

    max-width: 760px;

    margin: 0 auto 65px;

    text-align: center;
}

.section-heading > span {

    display: inline-block;

    color: var(--accent-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 14px;
}

.section-heading h2 {

    color: var(--white);

    font-size: clamp(32px, 4vw, 52px);

    line-height: 1.1;

    font-weight: 800;

    letter-spacing: -1.5px;

    margin-bottom: 18px;
}

.section-heading p {

    color: var(--text);

    font-size: 16px;

    line-height: 1.8;

    max-width: 650px;

    margin: auto;
}


/* =========================================================
   HEADER
========================================================= */

.header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    padding: 14px 7%;

    background: rgba(8,8,8,0.72);

    backdrop-filter: blur(18px);

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

    border-bottom:
        1px solid rgba(255,255,255,0.07);
}


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

.navbar {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


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

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;
}

.logo img {

    width: 58px;

    height: 58px;

    object-fit: contain;
}


/* =========================================================
   NAV LINKS
========================================================= */

.nav-links {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 32px;

    margin-left: auto;
}

.nav-links li {

    list-style: none;
}

.nav-links a {

    color: var(--text);

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;

    position: relative;
}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;

    bottom: -7px;

    width: 0;

    height: 2px;

    background: var(--accent);

    transition: 0.3s ease;
}

.nav-links a:hover {

    color: var(--white);
}

.nav-links a:hover::after {

    width: 100%;
}


/* =========================================================
   RESUME BUTTON
========================================================= */

.resume-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 23px;

    border-radius: 50px;

    background: var(--accent);

    color: var(--white);

    font-size: 14px;

    font-weight: 700;

    white-space: nowrap;

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

    box-shadow:
        0 8px 25px rgba(124,58,237,0.20);

    transition: 0.3s ease;
}

.resume-btn:hover {

    background: #8B5CF6;

    transform: translateY(-2px);

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


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

.hero {

    min-height: 100vh;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;

    gap: 70px;

    padding-top: 150px;

    padding-bottom: 90px;

    position: relative;

    overflow: hidden;
}


/* HERO PURPLE GLOW */

.hero::before {

    content: "";

    position: absolute;

    width: 550px;

    height: 550px;

    right: -180px;

    top: 5%;

    border-radius: 50%;

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

    filter: blur(130px);

    pointer-events: none;
}

.hero::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    left: -120px;

    bottom: 5%;

    border-radius: 50%;

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

    filter: blur(100px);

    pointer-events: none;
}


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

.hero-content {

    position: relative;

    z-index: 2;

    max-width: 700px;
}

.greeting {

    color: var(--accent-light);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;

    margin-bottom: 18px;
}

.hero h1 {

    font-size: clamp(52px, 6vw, 84px);

    font-weight: 800;

    line-height: 0.98;

    letter-spacing: -4px;

    margin-bottom: 24px;
}

.hero h1 span {

    display: block;

    color: var(--accent-light);
}

.hero h2 {

    color: var(--text-light);

    font-size: clamp(19px, 2vw, 27px);

    font-weight: 600;

    line-height: 1.4;

    margin-bottom: 18px;
}


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

.hero-role {

    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 8px;

    color: var(--white);

    font-size: 15px;

    font-weight: 700;

    margin-bottom: 22px;
}

.hero-role span {

    color: var(--accent);
}


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

.hero-description {

    max-width: 600px;

    color: var(--text);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 32px;
}


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

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

    margin-bottom: 30px;
}

.primary-btn,
.secondary-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 50px;

    padding: 14px 25px;

    border-radius: 14px;

    font-size: 14px;

    font-weight: 700;

    transition: 0.3s ease;
}

.primary-btn {

    background: var(--accent);

    color: var(--white);

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

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

.primary-btn:hover {

    background: #8B5CF6;

    transform: translateY(-3px);

    box-shadow:
        0 15px 40px rgba(124,58,237,0.35);
}

.secondary-btn {

    color: var(--white);

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

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

.secondary-btn:hover {

    border-color: var(--accent);

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

    transform: translateY(-3px);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 25px;
}

.social-links a {

    color: var(--text);

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;
}

.social-links a:hover {

    color: var(--white);
}


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

.hero-image {

    display: flex;

    align-items: center;

    justify-content: center;

    position: relative;

    z-index: 2;
}

.hero-image::before {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    border-radius: 50%;

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

    filter: blur(80px);

    z-index: -1;
}

.hero-image img {

    width: min(430px, 100%);

    border-radius: 28px;

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

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

    transition: 0.4s ease;
}

.hero-image img:hover {

    transform: translateY(-8px);

    box-shadow:
        0 30px 80px rgba(124,58,237,0.35);
}


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

/* =========================================================
   ABOUT — BENTO / FLASH CARD DESIGN
========================================================= */

.about {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.about::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: -180px;
    top: 20%;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.10);
    filter: blur(110px);
    pointer-events: none;
}

.about-container {
    max-width: 1150px;
    margin: 0 auto;

    display: grid;

    grid-template-columns: 1.35fr 0.65fr;

    grid-template-areas:
        "main education"
        "focus software"
        "embedded learning";

    gap: 18px;

    position: relative;
    z-index: 2;
}


/* =========================================================
   MAIN ABOUT CARD
========================================================= */

.about-main-card {

    grid-area: main;

    min-height: 300px;

    padding: 38px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 26px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.018)
        );

    box-shadow:
        0 20px 55px rgba(0,0,0,0.22);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    position: relative;

    overflow: hidden;
}

.about-main-card::after {

    content: "";

    position: absolute;

    width: 220px;
    height: 220px;

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

    border-radius: 50%;

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

    filter: blur(55px);

    pointer-events: none;
}

.about-main-card:hover {

    transform: translateY(-6px);

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

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


.about-card-number {

    color: var(--accent-light);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


.about-main-card h3 {

    max-width: 720px;

    color: var(--white);

    font-size: clamp(27px, 3vw, 42px);

    line-height: 1.12;

    letter-spacing: -1.4px;

    margin-bottom: 18px;
}

.about-main-card h3 span {

    color: var(--accent-light);
}


.about-main-card > p {

    max-width: 680px;

    color: var(--text);

    font-size: 15px;

    line-height: 1.8;

    margin-bottom: 25px;
}


/* =========================================================
   FOCUS TAGS
========================================================= */

.about-focus {

    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}

.about-focus span {

    padding: 9px 13px;

    border-radius: 50px;

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

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

    color: #DDD3FF;

    font-size: 11px;

    font-weight: 700;

    transition: 0.3s ease;
}

.about-focus span:hover {

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

    border-color:
        rgba(167,139,250,0.55);

    transform: translateY(-2px);
}


/* =========================================================
   STANDARD ABOUT CARDS
========================================================= */

.about-card {

    min-height: 230px;

    padding: 27px;

    border-radius: 24px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.012)
        );

    display: flex;

    flex-direction: column;

    justify-content: center;

    position: relative;

    overflow: hidden;

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

.about-card::before {

    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -70px;
    bottom: -70px;

    border-radius: 50%;

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

    filter: blur(35px);
}

.about-card:hover {

    transform: translateY(-6px);

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

    background:
        linear-gradient(
            145deg,
            rgba(124,58,237,0.075),
            rgba(255,255,255,0.015)
        );

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


/* =========================================================
   GRID POSITIONING
========================================================= */

.about-card:nth-of-type(2) {
    grid-area: education;
}

.about-card:nth-of-type(3) {
    grid-area: focus;
}

.about-card:nth-of-type(4) {
    grid-area: software;
}

.about-card-wide {
    grid-area: embedded;
}

.about-learning {
    grid-area: learning;
}


/* =========================================================
   CARD LABEL
========================================================= */

.about-card-label {

    color: var(--accent-light);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 16px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   CARD ICON / MONOGRAM
========================================================= */

.about-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;

    border-radius: 14px;

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

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

    color: var(--accent-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    position: relative;

    z-index: 2;
}


.about-card h3 {

    color: var(--white);

    font-size: 22px;

    line-height: 1.2;

    letter-spacing: -0.5px;

    margin-bottom: 10px;

    position: relative;

    z-index: 2;
}


.about-card p {

    color: var(--text);

    font-size: 13px;

    line-height: 1.7;

    position: relative;

    z-index: 2;
}


.about-card small {

    color: #777780;

    font-size: 11px;

    margin-top: 10px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   LEARNING CARD
========================================================= */

.about-learning {

    justify-content: flex-start;
}

.about-learning h3 {

    font-size: 23px;

    margin-bottom: 19px;
}


.learning-list {

    display: grid;

    grid-template-columns: 1fr;

    gap: 8px;
}

.learning-list span {

    display: block;

    padding: 10px 12px;

    border-radius: 11px;

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

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

    color: var(--text-light);

    font-size: 12px;

    font-weight: 600;

    transition: 0.3s ease;
}

.learning-list span:hover {

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

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

    color: var(--white);
}


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

@media (max-width: 900px) {

    .about-container {

        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "main main"
            "education focus"
            "software learning"
            "embedded embedded";

        gap: 15px;
    }

    .about-main-card {

        min-height: 280px;
    }

    .about-card {

        min-height: 210px;
    }
}


@media (max-width: 650px) {

    .about-container {

        grid-template-columns: 1fr;

        grid-template-areas:
            "main"
            "education"
            "focus"
            "software"
            "embedded"
            "learning";

        gap: 13px;
    }

    .about-main-card {

        min-height: auto;

        padding: 26px;

        border-radius: 21px;
    }

    .about-main-card h3 {

        font-size: 28px;

        line-height: 1.15;
    }

    .about-main-card > p {

        font-size: 14px;

        line-height: 1.75;
    }

    .about-card {

        min-height: auto;

        padding: 23px;

        border-radius: 20px;
    }

    .about-card h3 {

        font-size: 20px;
    }

    .about-card p {

        font-size: 13px;
    }

    .about-focus {

        gap: 7px;
    }

    .about-focus span {

        font-size: 10px;

        padding: 8px 11px;
    }
}
/* =========================================================
   ABOUT DETAIL CARDS
========================================================= */

.about-details {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.detail-card {

    padding: 24px;

    min-height: 130px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.015)
        );

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

    border-radius: 20px;

    transition: 0.3s ease;
}

.detail-card:hover {

    transform: translateY(-5px);

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

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

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

.detail-card h4 {

    color: var(--accent-light);

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 12px;
}

.detail-card p {

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   SKILLS — FLASH / BENTO CARDS
========================================================= */

.skills {
    position: relative;
    overflow: hidden;
    background: transparent;
}

.skills::before {
    content: "";
    position: absolute;

    width: 450px;
    height: 450px;

    right: -180px;
    top: 10%;

    border-radius: 50%;

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

    filter: blur(120px);

    pointer-events: none;
}


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

.skills-container {

    max-width: 1150px;

    margin: 0 auto;

    display: grid;

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

    grid-template-areas:
        "featured software"
        "python embedded-c"
        "embedded additional";

    gap: 18px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SKILL CARD
========================================================= */

.skill-card {

    position: relative;

    padding: 30px;

    min-height: 250px;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    overflow: hidden;

    border-radius: 24px;

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

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.012)
        );

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


/* Decorative glow */

.skill-card::before {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    right: -90px;
    top: -90px;

    border-radius: 50%;

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

    filter: blur(45px);

    pointer-events: none;
}


.skill-card:hover {

    transform: translateY(-7px);

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

    background:
        linear-gradient(
            145deg,
            rgba(124,58,237,0.075),
            rgba(255,255,255,0.015)
        );

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


/* =========================================================
   CARD GRID POSITIONS
========================================================= */

.skill-card:nth-child(1) {
    grid-area: featured;
}

.skill-card:nth-child(2) {
    grid-area: software;
}

.skill-card:nth-child(3) {
    grid-area: python;
}

.skill-card:nth-child(4) {
    grid-area: embedded-c;
}

.skill-card:nth-child(5) {
    grid-area: embedded;
}

.skill-card:nth-child(6) {
    grid-area: additional;
}


/* =========================================================
   FEATURED DSA CARD
========================================================= */

.skill-card-featured {

    min-height: 285px;

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

    background:
        linear-gradient(
            145deg,
            rgba(124,58,237,0.12),
            rgba(255,255,255,0.02)
        );
}

.skill-card-featured::after {

    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: -110px;
    bottom: -150px;

    border-radius: 50%;

    border:
        1px solid rgba(167,139,250,0.20);

    pointer-events: none;
}


/* =========================================================
   CARD NUMBER
========================================================= */

.skill-number {

    position: absolute;

    top: 22px;
    right: 25px;

    color:
        rgba(167,139,250,0.55);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* =========================================================
   SKILL ICON
========================================================= */

.skill-icon {

    width: 52px;
    height: 52px;

    display: flex;

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

    border-radius: 15px;

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

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

    color:
        var(--accent-light);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 20px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SKILL TITLE
========================================================= */

.skill-card h3 {

    color: var(--white);

    font-size: 22px;

    line-height: 1.2;

    letter-spacing: -0.6px;

    margin-bottom: 12px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SKILL DESCRIPTION
========================================================= */

.skill-card p {

    color: var(--text);

    font-size: 13px;

    line-height: 1.7;

    max-width: 500px;

    margin-bottom: 20px;

    position: relative;

    z-index: 2;
}


/* =========================================================
   SKILL TAGS
========================================================= */

.skill-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    position: relative;

    z-index: 2;
}

.skill-tags span {

    display: inline-flex;

    align-items: center;

    padding: 8px 11px;

    border-radius: 50px;

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

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

    color:
        #DDD3FF;

    font-size: 10px;

    font-weight: 700;

    transition: 0.3s ease;
}

.skill-tags span:hover {

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

    border-color:
        rgba(167,139,250,0.45);

    color: var(--white);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .skills-container {

        grid-template-columns: 1fr 1fr;

        grid-template-areas:
            "featured featured"
            "software python"
            "embedded-c additional"
            "embedded embedded";
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .skills-container {

        grid-template-columns: 1fr;

        grid-template-areas:
            "featured"
            "software"
            "python"
            "embedded-c"
            "embedded"
            "additional";

        gap: 13px;
    }


    .skill-card,
    .skill-card-featured {

        min-height: auto;

        padding: 24px;

        border-radius: 20px;
    }


    .skill-card h3 {

        font-size: 20px;
    }


    .skill-card p {

        font-size: 13px;

        line-height: 1.7;
    }


    .skill-icon {

        width: 47px;
        height: 47px;

        border-radius: 13px;

        margin-bottom: 17px;
    }


    .skill-number {

        top: 20px;

        right: 21px;
    }


    .skill-tags span {

        font-size: 10px;

        padding: 7px 10px;
    }

}

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

.projects {

    background:
        linear-gradient(
            180deg,
            rgba(124,58,237,0.025),
            transparent
        );
}

.projects-grid {

    display: grid;

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

    gap: 25px;
}


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

.project-card {

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.012)
        );

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

    border-radius: 24px;

    overflow: hidden;

    transition: 0.35s ease;
}

.project-card:hover {

    transform: translateY(-8px);

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

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


/* PROJECT IMAGE */

.project-image {

    width: 100%;

    height: 240px;

    overflow: hidden;

    background: #101010;
}

.project-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: 0.5s ease;
}

.project-card:hover .project-image img {

    transform: scale(1.05);
}


/* PROJECT CONTENT */

.project-content {

    padding: 28px;
}

.project-content h3 {

    color: var(--white);

    font-size: 24px;

    margin-bottom: 13px;
}

.project-content p {

    color: var(--text);

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 20px;
}


/* PROJECT TECH */

.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 22px;
}

.project-tech span {

    padding: 7px 11px;

    border-radius: 50px;

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

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

    color: var(--accent-light);

    font-size: 11px;

    font-weight: 700;
}


/* PROJECT LINKS */

.project-links {

    display: flex;

    flex-wrap: wrap;

    gap: 18px;
}

.project-links a {

    color: var(--white);

    font-size: 13px;

    font-weight: 700;

    transition: 0.3s ease;
}

.project-links a:hover {

    color: var(--accent-light);
}


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

.timeline {

    max-width: 850px;

    margin: auto;

    position: relative;
}

.timeline::before {

    content: "";

    position: absolute;

    left: 9px;

    top: 0;

    bottom: 0;

    width: 2px;

    background:
        linear-gradient(
            to bottom,
            var(--accent),
            rgba(124,58,237,0.08)
        );
}

.timeline-item {

    position: relative;

    padding-left: 45px;

    margin-bottom: 35px;
}

.timeline-dot {

    position: absolute;

    left: 0;

    top: 8px;

    width: 20px;

    height: 20px;

    border-radius: 50%;

    background: var(--accent);

    border: 5px solid var(--bg);

    box-shadow:
        0 0 0 2px rgba(124,58,237,0.4);
}

.timeline-content {

    padding: 27px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.045),
            rgba(255,255,255,0.012)
        );

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

    border-radius: 20px;

    transition: 0.3s ease;
}

.timeline-content:hover {

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

    transform: translateX(5px);

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

.timeline-date {

    display: inline-block;

    color: var(--accent-light);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;

    margin-bottom: 10px;
}

.timeline-content h3 {

    color: var(--white);

    font-size: 20px;

    margin-bottom: 7px;
}

.timeline-content h4 {

    color: var(--text-light);

    font-size: 14px;

    margin-bottom: 14px;
}

.timeline-content p {

    color: var(--text);

    font-size: 14px;

    line-height: 1.8;
}


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

.contact {

    background:
        radial-gradient(
            circle at center,
            rgba(124,58,237,0.08),
            transparent 45%
        );
}

.contact-container {

    max-width: 950px;

    margin: auto;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.contact-card {

    padding: 32px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.05),
            rgba(255,255,255,0.012)
        );

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

    border-radius: 22px;

    transition: 0.3s ease;
}

.contact-card:hover {

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

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

.contact-card h3 {

    color: var(--white);

    font-size: 21px;

    margin-bottom: 25px;
}

.contact-card > p {

    color: var(--text);

    line-height: 1.8;

    font-size: 14px;

    margin-bottom: 25px;
}

.contact-item {

    padding: 15px 0;

    border-bottom:
        1px solid rgba(255,255,255,0.06);
}

.contact-item:last-child {

    border-bottom: none;
}

.contact-item h4 {

    color: var(--accent-light);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 6px;
}

.contact-item p,
.contact-item a {

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.6;

    word-break: break-word;
}

.contact-item a:hover {

    color: var(--accent-light);
}


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

footer {

    padding: 35px 10%;

    text-align: center;

    border-top:
        1px solid rgba(255,255,255,0.07);

    background: #070707;
}

footer p {

    color: #71717A;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    section {

        padding: 90px 7%;
    }

    .header {

        padding: 13px 5%;
    }

    .nav-links {

        gap: 20px;
    }

    .hero {

        grid-template-columns: 1fr;

        text-align: center;

        gap: 55px;
    }

    .hero-content {

        max-width: 750px;

        margin: auto;
    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }

    .hero-role {

        justify-content: center;
    }

    .hero-buttons {

        justify-content: center;
    }

    .social-links {

        justify-content: center;
    }

    .hero-image {

        order: -1;
    }

    .hero-image img {

        width: 340px;
    }

    .about-container {

        grid-template-columns: 1fr;

        gap: 40px;
    }

    .skills-container {

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    body {

        background:

            radial-gradient(
                circle at 85% 10%,
                rgba(124,58,237,0.13),
                transparent 35%
            ),

            radial-gradient(
                circle at 10% 60%,
                rgba(124,58,237,0.07),
                transparent 30%
            ),

            var(--bg);

        background-attachment: scroll;
    }


    /* HEADER */

    .header {

        padding: 10px 4%;

        background:
            rgba(8,8,8,0.88);
    }

    .navbar {

        gap: 10px;
    }

    .logo img {

        width: 43px;

        height: 43px;
    }


    /* NAV */

    .nav-links {

        gap: 10px;

        margin-left: 0;

        flex: 1;

        justify-content: center;
    }

    .nav-links a {

        font-size: 10px;
    }

    .nav-links a::after {

        display: none;
    }


    /* RESUME */

    .resume-btn {

        padding: 8px 12px;

        font-size: 10px;
    }


    /* SECTIONS */

    section {

        padding: 75px 5%;
    }


    /* HERO */

    .hero {

        min-height: auto;

        padding-top: 125px;

        padding-bottom: 75px;

        grid-template-columns: 1fr;

        gap: 35px;
    }

    .hero-image {

        order: -1;
    }

    .hero-image img {

        width: min(300px, 85vw);

        border-radius: 22px;
    }

    .hero h1 {

        font-size: clamp(45px, 14vw, 65px);

        letter-spacing: -2.5px;

        margin-bottom: 18px;
    }

    .hero h2 {

        font-size: 18px;

        margin-bottom: 14px;
    }

    .greeting {

        font-size: 11px;

        letter-spacing: 2.5px;
    }

    .hero-role {

        font-size: 13px;

        gap: 6px;

        justify-content: center;
    }

    .hero-description {

        font-size: 14px;

        line-height: 1.75;

        margin-bottom: 25px;
    }

    .hero-buttons {

        flex-direction: column;

        width: 100%;

        gap: 10px;
    }

    .primary-btn,
    .secondary-btn {

        width: 100%;

        min-height: 48px;
    }

    .social-links {

        gap: 18px;

        justify-content: center;
    }

    .social-links a {

        font-size: 12px;
    }


    /* SECTION HEADINGS */

    .section-heading {

        margin-bottom: 40px;
    }

    .section-heading > span {

        font-size: 10px;

        letter-spacing: 2px;
    }

    .section-heading h2 {

        font-size: 32px;

        letter-spacing: -1px;
    }

    .section-heading p {

        font-size: 13px;

        line-height: 1.7;
    }


    /* ABOUT */

    .about-container {

        gap: 30px;
    }

    .about-content {

        font-size: 14px;

        line-height: 1.8;
    }

    .about-content .intro {

        font-size: 16px;
    }

    .about-details {

        grid-template-columns: 1fr;

        gap: 12px;
    }

    .detail-card {

        min-height: auto;

        padding: 20px;
    }


    /* SKILLS */

    .skills-container {

        grid-template-columns: 1fr;

        gap: 14px;
    }

    .skill-card {

        min-height: auto;

        padding: 22px;
    }

    .skill-card h3 {

        font-size: 17px;

        margin-bottom: 17px;
    }


    /* PROJECTS */

    .projects-grid {

        grid-template-columns: 1fr;

        gap: 18px;
    }

    .project-card {

        border-radius: 20px;
    }

    .project-image {

        height: 200px;
    }

    .project-content {

        padding: 22px;
    }

    .project-content h3 {

        font-size: 21px;
    }

    .project-content p {

        font-size: 13px;

        line-height: 1.7;
    }


    /* EXPERIENCE */

    .timeline::before {

        left: 8px;
    }

    .timeline-item {

        padding-left: 32px;

        margin-bottom: 25px;
    }

    .timeline-dot {

        width: 18px;

        height: 18px;
    }

    .timeline-content {

        padding: 20px;
    }

    .timeline-content h3 {

        font-size: 17px;
    }

    .timeline-content h4 {

        font-size: 12px;
    }

    .timeline-content p {

        font-size: 13px;

        line-height: 1.7;
    }


    /* CONTACT */

    .contact-container {

        grid-template-columns: 1fr;

        gap: 15px;
    }

    .contact-card {

        padding: 23px;
    }

    .contact-item a,
    .contact-item p {

        font-size: 13px;
    }


    /* FOOTER */

    footer {

        padding: 28px 5%;
    }

    footer p {

        font-size: 11px;

        line-height: 1.6;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .nav-links {

        gap: 7px;
    }

    .nav-links a {

        font-size: 8.5px;
    }

    .resume-btn {

        padding: 7px 9px;

        font-size: 9px;
    }

    .logo img {

        width: 38px;

        height: 38px;
    }

    .hero {

        padding-top: 110px;
    }

    .hero-image img {

        width: 250px;
    }

    .hero h1 {

        font-size: 46px;
    }

    .hero h2 {

        font-size: 16px;
    }

    .section-heading h2 {

        font-size: 28px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

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

    html {

        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        transition: none !important;

        animation: none !important;
    }
}
