/* ===== Variables ===== */
:root {
    --bg: #0b0b0b;
    --accent: #7c5cff;
    --accent-2: #00d4ff;
    --text: #ffffff;
    --muted: #e0e0e0;
}

/* ===== Base styles ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ===== Scroll progress bar ===== */
.scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 1001;
    box-shadow: 0 0 12px var(--accent);
}

/* ===== Glowing background blobs ===== */
.bgBlobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
    animation: floatBlob 18s ease-in-out infinite;
}

.blob1 {
    width: 480px;
    height: 480px;
    background: var(--accent);
    top: -120px;
    left: -100px;
}

.blob2 {
    width: 420px;
    height: 420px;
    background: var(--accent-2);
    bottom: -120px;
    right: -80px;
    animation-delay: -6s;
}

.blob3 {
    width: 320px;
    height: 320px;
    background: #ff4ecd;
    top: 45%;
    left: 50%;
    opacity: 0.18;
    animation-delay: -11s;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(60px, 40px) scale(1.15); }
    66%      { transform: translate(-40px, 70px) scale(0.9); }
}

/* ===== Cursor glow ===== */
.cursorGlow {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 65%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s;
}

/* ===== Header ===== */
.headerBox {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(18, 18, 18, 0.6);
    height: 70px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: height 0.3s, background-color 0.3s;
}

.headerBox.scrolled {
    height: 58px;
    background-color: rgba(10, 10, 10, 0.85);
}

.headerButton {
    position: relative;
    background-color: transparent;
    color: var(--text);
    height: 100%;
    padding: 0 22px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

/* Animated underline */
.headerButton::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 14px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.headerButton:hover::after,
.headerButton.active::after {
    width: calc(100% - 44px);
}

.headerButton:hover,
.headerButton.active {
    color: var(--accent-2);
}

/* ===== Sections ===== */
.contentSection {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 100px 10% 50px 10%;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ===== About ===== */
.aboutMeBox {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.aboutMeText {
    width: 55%;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
}

.aboutMeText h1 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 20px;
}

.wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 2.4s ease-in-out infinite;
}

@keyframes wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30%      { transform: rotate(14deg); }
    20%           { transform: rotate(-8deg); }
    40%           { transform: rotate(-4deg); }
    50%           { transform: rotate(10deg); }
}

/* Quick info list (role / age / location) */
.infoList {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    font-size: 1.05rem;
}

.infoList li {
    margin-bottom: 6px;
}

.infoList li span {
    display: inline-block;
    min-width: 90px;
    color: var(--accent-2);
    font-weight: 500;
}

/* "Available" badge */
.availableBadge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-top: 18px;
    padding: 8px 18px;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 255, 140, 0.35);
    background: rgba(0, 255, 140, 0.08);
    border-radius: 999px;
    color: #9dffcf;
}

.availableBadge .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00ff8c;
    box-shadow: 0 0 10px #00ff8c;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    50% { opacity: 0.35; transform: scale(0.8); }
}

/* Gradient text */
.gradientText {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), #ff4ecd, var(--accent));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    to { background-position: 300% 0; }
}

/* Typewriter cursor */
.cursorBlink::after {
    content: "|";
    margin-left: 4px;
    color: var(--accent-2);
    -webkit-text-fill-color: var(--accent-2);
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.imageContainer {
    width: 35%;
    display: flex;
    justify-content: center;
    perspective: 900px;
}

.aboutMeImg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 20px;
    background: #111;
}

/* ===== Section headings ===== */
.contentSection h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text);
    position: relative;
    display: inline-block;
    width: fit-content;
}

.contentSection h2::after {
    content: "";
    display: block;
    height: 4px;
    width: 0;
    margin-top: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width 0.9s ease 0.3s;
}

.contentSection.visible h2::after {
    width: 100%;
}

.contentSection p {
    max-width: 640px;
    line-height: 1.7;
    color: var(--muted);
}

/* ===== Skills / Interests / Personality tags ===== */
.skillsList {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.skillsList span {
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid #333333;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    backdrop-filter: blur(6px);
    cursor: default;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.skillsList span:hover {
    transform: translateY(-6px) scale(1.06);
    border-color: var(--accent);
    background-color: rgba(124, 92, 255, 0.15);
    box-shadow: 0 10px 25px rgba(124, 92, 255, 0.35);
}

/* ===== Goals ===== */
.goalsList {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    max-width: 640px;
}

.goalsList li {
    position: relative;
    padding: 14px 20px 14px 48px;
    margin-bottom: 12px;
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid #333333;
    border-radius: 10px;
    color: var(--muted);
    backdrop-filter: blur(6px);
    transition: transform 0.3s, border-color 0.3s, background-color 0.3s;
}

.goalsList li::before {
    content: "→";
    position: absolute;
    left: 20px;
    color: var(--accent-2);
    font-weight: 700;
}

.goalsList li:hover {
    transform: translateX(6px);
    border-color: var(--accent);
    background-color: rgba(124, 92, 255, 0.12);
}

/* ===== Contact links ===== */
.contactLinks {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contactLinks a {
    background-color: rgba(26, 26, 26, 0.7);
    border: 1px solid #333333;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    backdrop-filter: blur(6px);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background-color 0.3s, color 0.3s;
}

.contactLinks a:hover {
    transform: translateY(-6px) scale(1.06);
    color: var(--accent-2);
    border-color: var(--accent-2);
    background-color: rgba(0, 212, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Tooltip popup (shows the text from data-tooltip) */
.hasTooltip {
    position: relative;
}

.hasTooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    padding: 8px 14px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-2);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 10;
}

/* Little arrow under the popup */
.hasTooltip::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    width: 10px;
    height: 10px;
    background: rgba(10, 10, 10, 0.95);
    border-right: 1px solid var(--accent-2);
    border-bottom: 1px solid var(--accent-2);
    transform: translateX(-50%) rotate(45deg) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 11;
}

.hasTooltip:hover::after,
.hasTooltip:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hasTooltip:hover::before,
.hasTooltip:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) rotate(45deg) translateY(0);
}

.contentSection .footerNote {
    margin-top: 60px;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.95rem;
    color: #6b7390;
}

/* ===== Scroll reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.reveal.left  { transform: translateX(-60px); }
.reveal.right { transform: translateX(60px); }

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ===== Responsive ===== */
@media (max-width: 800px) {
    .aboutMeBox {
        flex-direction: column-reverse;
        gap: 40px;
        justify-content: center;
    }

    .aboutMeText,
    .imageContainer {
        width: 100%;
    }

    .aboutMeText h1 {
        font-size: 2.6rem;
    }

    .headerButton {
        padding: 0 7px;
        font-size: 12px;
    }

    .headerButton:hover::after,
    .headerButton.active::after {
        width: calc(100% - 14px);
    }

    .cursorGlow {
        display: none;
    }
}

/* Respect the "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.mySkillsImg{
    position: relative;
    margin-top: 5%;
}

.myInterestsImg{
    position: relative;
    margin-top: 5%;
    width: 50%;
    flex-direction: row;
    display: flex;
}