/* ============================================
   RESET & ROOT VARIABLES
   ============================================ */
* {
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: "Helvetica", sans-serif;
}

:root {
    --bg-color: #1B1D36;
    --second-bg-color: #2C2F54;
    --text-color: #EAEAEA;
    --main-color: #6B52B8;
    --accent-color: #39FF14;
    --hover-color: #3D97D8;
    --secondary-accent: #FF8FF3;

    /* Aurora palette */
    --aurora-cyan: #00E5FF;
    --aurora-green: #39FF14;
    --aurora-purple: #BF5FFF;
    --aurora-pink: #FF71CE;

    /* Element palette */
    --earth-light: #8B9D3F;
    --earth-dark: #5C4A1E;
    --wind-light: #C8DFF0;
    --wind-dark: #7BA7C2;
    --water-light: #29B6F6;
    --water-dark: #0D47A1;
    --fire-light: #FFD700;
    --fire-mid: #FF6B35;
    --fire-dark: #CC1100;
}

/* ============================================
   BASE ELEMENTS
   ============================================ */
p.home-content {
    text-size-adjust: large;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: var(--bg-color);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    padding: 0 5% 0;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

h2 {
    font-size: 2.4rem;
}

img {
    display: block;
    margin: 0 auto;
}

iframe {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    position: fixed;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    padding: 1.8rem 6% 1.8rem;
    background-image: url('header.jpeg');
    background-size: 100% 100%;
    background-position: center center;
    backdrop-filter: blur(225px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.menu-icon {
    font-size: 3.5rem;
    color: var(--text-color);
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.menu-icon:hover {
    background: none;
    color: var(--accent-color);
}

.contact-btn {
    border-radius: 50px;
}

.logo {
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    padding-top: 9px;
}

.logo img {
    width: 120px;
    height: 70px;
    object-fit: contain;
    display: inline-flex;
}

.logo:hover {
    transform: scale(1.1);
}

.logo span {
    text-shadow: 0 0 25px var(--hover-color);
    color: var(--hover-color);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-right: 1.5rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

/* ============================================
   BUTTONS
   ============================================ */
button {
    background-color: var(--main-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.4rem;
    border-radius: 4px;
    transition: 0.3s ease;
}

button:hover {
    background-color: var(--hover-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    box-shadow: 0 0 25px var(--main-color);
    border-radius: 4rem;
    font-size: 1.2rem;
    color: azure;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    background-color: var(--main-color);
}

.btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 50px var(--secondary-accent);
    background: var(--main-color);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--text-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-group a:nth-of-type(2) {
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}

.btn-group a:nth-of-type(2):hover {
    color: var(--main-color);
    box-shadow: 0 0 25px transparent;
    background-color: black;
}

#btnSpace {
    margin-right: 1.5rem;
}

/* ============================================
   CARDS & LAYOUT HELPERS
   ============================================ */
.card {
    background-color: var(--second-bg-color);
    border: 2px solid var(--main-color);
    padding: 20px;
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

/* Heading style */
.heading {
    font-size: 3.6rem;
    padding-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--aurora-cyan), var(--aurora-purple), transparent);
}

/* Social icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--hover-color);
    margin: 3rem 2.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 55px var(--hover-color);
    background-color: var(--hover-color);
}

/* ============================================
   TYPING ANIMATION (existing pages)
   ============================================ */
.text-animation {
    font-size: 3rem;
    font-weight: 600;
    min-width: 280px;
    margin: 1.5rem 0;
}

.text-animation span {
    position: relative;
    color: var(--accent-color);
}

.text-animation span::before {
    content: "UX Designer/ Researcher";
    color: var(--accent-color);
    animation: words 30s infinite;
}

.text-animation span::after {
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--second-bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to { border-left: 2px solid var(--main-color); }
}

@keyframes words {
    0%, 20%   { content: "UX Strategist"; }
    21%, 40%  { content: "Front-end Design"; }
    41%, 60%  { content: "UX Research"; }
    61%, 80%  { content: "Service Design"; }
    81%, 100% { content: "Product Design"; }
}

@keyframes typing {
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% { width: 0; }
    5%, 20%, 25%, 40%, 50%, 60%, 65%, 80%, 85% { width: calc(100% + 8px); }
}

/* ============================================
   LEGACY HOME SECTION (index.html old layout)
   ============================================ */
.home {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: center;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1rem;
    line-height: 1;
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

.home-img img {
    position: relative;
    top: 6rem;
    right: 8rem;
    width: 30vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--secondary-accent);
    cursor: pointer;
    transition: 0.5s ease-out;
    padding-top: 8px;
}

.home-img img:hover {
    box-shadow: 0 0 25px var(--secondary-accent),
                0 0 55px var(--secondary-accent),
                0 0 105px var(--secondary-accent);
}

/* ============================================
   ★ NEW: HERO SECTION — AURORA + ELEMENTS
   ============================================ */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 10rem 6% 6rem;
}

/* --- Aurora animated background --- */
.aurora-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.aurora-layer {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

.a1 {
    width: 65%;
    height: 70%;
    top: -15%;
    left: -10%;
    background: radial-gradient(ellipse at center, #00E5FF 0%, #0044AA 40%, transparent 70%);
    animation: auroraMove1 14s ease-in-out infinite alternate;
}

.a2 {
    width: 55%;
    height: 80%;
    top: 5%;
    right: -15%;
    background: radial-gradient(ellipse at center, #39FF14 0%, #006633 40%, transparent 70%);
    animation: auroraMove2 18s ease-in-out infinite alternate;
}

.a3 {
    width: 75%;
    height: 55%;
    bottom: -25%;
    left: 15%;
    background: radial-gradient(ellipse at center, #BF5FFF 0%, #440088 40%, transparent 70%);
    animation: auroraMove3 11s ease-in-out infinite alternate;
}

.a4 {
    width: 45%;
    height: 65%;
    top: 25%;
    left: 5%;
    background: radial-gradient(ellipse at center, #FF71CE 0%, #660033 40%, transparent 70%);
    animation: auroraMove4 20s ease-in-out infinite alternate;
}

/* A subtle ground/earth layer at the bottom */
.aurora-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(44, 25, 8, 0.6) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

@keyframes auroraMove1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.25; }
    100% { transform: translate(12%, 8%) scale(1.25); opacity: 0.45; }
}
@keyframes auroraMove2 {
    0%   { transform: translate(0, 0) scale(1.1); opacity: 0.2; }
    100% { transform: translate(-8%, 12%) scale(0.85); opacity: 0.4; }
}
@keyframes auroraMove3 {
    0%   { transform: translate(0, 0) scale(0.9); opacity: 0.3; }
    100% { transform: translate(-6%, -18%) scale(1.15); opacity: 0.45; }
}
@keyframes auroraMove4 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.15; }
    100% { transform: translate(18%, -8%) scale(1.35); opacity: 0.35; }
}

/* --- Stars --- */
.stars {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: white;
    animation: twinkle var(--dur, 3s) var(--delay, 0s) ease-in-out infinite alternate;
}

@keyframes twinkle {
    0%   { opacity: 0.1; transform: scale(0.8); }
    100% { opacity: 0.9; transform: scale(1.4); }
}

/* --- Floating element particles (decorative) --- */
.element-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.elem-particle {
    position: absolute;
    font-size: 2.4rem;
    opacity: 0.12;
    animation: floatParticle var(--float-dur, 12s) var(--float-delay, 0s) ease-in-out infinite alternate;
}

.fire-p  { top: 15%; left: 8%;  --float-dur: 9s; --float-delay: 0s; }
.wind-p  { top: 65%; left: 5%;  --float-dur: 13s; --float-delay: 2s; }
.earth-p { top: 80%; right: 8%; --float-dur: 11s; --float-delay: 1s; }
.water-p { top: 10%; right: 6%; --float-dur: 15s; --float-delay: 3s; }

@keyframes floatParticle {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0.1; }
    50%  { opacity: 0.2; }
    100% { transform: translateY(-40px) rotate(15deg); opacity: 0.08; }
}

/* --- Hero layout grid --- */
.hero-layout {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

/* --- Hero content (left) --- */
.hero-content {
    flex: 1;
    max-width: 520px;
}

.hero-label {
    display: inline-block;
    font-size: 1.3rem;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
    color: var(--aurora-cyan);
    margin-bottom: 1.5rem;
    font-family: "Courier New", monospace;
    position: relative;
    padding-left: 2rem;
}

.hero-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.4rem;
    height: 2px;
    background: var(--aurora-cyan);
}

.hero-name {
    font-size: 7.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #EAEAEA 25%, var(--aurora-cyan) 55%, var(--aurora-green) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-size: 1.8rem;
    font-weight: 300;
    color: rgba(234, 234, 234, 0.55);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05rem;
}

.hero-description {
    font-size: 1.55rem;
    line-height: 1.8;
    color: rgba(234, 234, 234, 0.75);
    margin: 1.5rem 0 3rem;
    max-width: 440px;
}

/* ============================================
   ★ DROPLET RING
   ============================================ */
.ring-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.droplet-ring {
    position: relative;
    width: 520px;
    height: 520px;
    flex-shrink: 0;
}

/* Decorative orbit rings */
.droplet-ring::before,
.droplet-ring::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    pointer-events: none;
}

.droplet-ring::before {
    width: 440px;
    height: 440px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(107, 82, 184, 0.3);
    animation: orbitSpin 35s linear infinite;
}

.droplet-ring::after {
    width: 360px;
    height: 360px;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(57, 255, 20, 0.15);
    animation: orbitSpin 22s linear infinite reverse;
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Ring center panel --- */
.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 175px;
    height: 175px;
    background: rgba(17, 19, 40, 0.88);
    border: 2px solid rgba(107, 82, 184, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.8rem;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.ring-center.active {
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.center-default {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: opacity 0.3s ease;
}

.center-icon {
    font-size: 2.8rem;
    color: var(--main-color);
    animation: centerPulse 3s ease-in-out infinite;
    line-height: 1;
}

.center-default p {
    font-size: 1.1rem;
    color: rgba(234, 234, 234, 0.45);
    line-height: 1.4;
    margin: 0;
}

.center-project {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.35s ease;
    width: 100%;
}

.center-project.visible {
    opacity: 1;
}

#proj-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

#proj-desc {
    font-size: 0.95rem;
    color: rgba(234, 234, 234, 0.65);
    line-height: 1.35;
    margin: 0;
}

#proj-category {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.2rem 0.85rem;
    border-radius: 2rem;
    background: var(--main-color);
    color: white;
    letter-spacing: 0.05em;
}

#proj-link {
    font-size: 0.85rem;
    padding: 0.4rem 1.1rem;
    margin-top: 0.2rem;
    box-shadow: none;
    background: var(--main-color);
    color: white;
}

#proj-link:hover {
    transform: scale(1.05);
    background: var(--hover-color);
}

@keyframes centerPulse {
    0%, 100% { transform: scale(1);    opacity: 0.7; }
    50%       { transform: scale(1.15); opacity: 1; }
}

/* --- Individual droplets --- */
.droplet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 78px;
    margin-left: -29px;
    margin-top: -39px;
    cursor: pointer;
    z-index: 5;
    transition: filter 0.3s ease;

    /* CSS custom property for angle, set per-droplet */
    --angle: 0deg;
    --radius: 215px;
    transform: rotate(var(--angle)) translateY(calc(-1 * var(--radius)));
}

/* Angle for each droplet (8 × 45°) */
.droplet[data-n="1"] { --angle: 0deg; }
.droplet[data-n="2"] { --angle: 45deg; }
.droplet[data-n="3"] { --angle: 90deg; }
.droplet[data-n="4"] { --angle: 135deg; }
.droplet[data-n="5"] { --angle: 180deg; }
.droplet[data-n="6"] { --angle: 225deg; }
.droplet[data-n="7"] { --angle: 270deg; }
.droplet[data-n="8"] { --angle: 315deg; }

/* Droplet inner shape — wide base, narrows to top (points outward from ring) */
.drop-inner {
    width: 100%;
    height: 100%;
    border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    transition: transform 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;

    /* Counter-rotate to stay upright */
    transform: rotate(calc(-1 * var(--angle)));
}

.drop-inner::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 25%;
    width: 20%;
    height: 25%;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    filter: blur(3px);
}

.drop-icon {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.5));
}

.drop-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Courier New", monospace;
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
    line-height: 1;
}

/* Hover — scale the inner shape (transform uses --angle already) */
.droplet:hover .drop-inner {
    transform: rotate(calc(-1 * var(--angle))) scale(1.22);
    filter: brightness(1.35) saturate(1.2);
}

.droplet:hover .drop-icon {
    transform: scale(1.15);
}

.droplet:hover {
    z-index: 20;
    filter: drop-shadow(0 0 18px currentColor);
}

/* ---- AURORA DROPLET COLOURS ---- */
.aurora-cyan .drop-inner {
    background: linear-gradient(170deg, #00E5FF 0%, #0066CC 60%, #003380 100%);
    box-shadow: 0 0 22px rgba(0, 229, 255, 0.55),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(0, 229, 255, 0.6);
}

.aurora-green .drop-inner {
    background: linear-gradient(170deg, #39FF14 0%, #00AA44 60%, #005522 100%);
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.55),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(57, 255, 20, 0.6);
}

.aurora-purple .drop-inner {
    background: linear-gradient(170deg, #BF5FFF 0%, #7700CC 60%, #380066 100%);
    box-shadow: 0 0 22px rgba(191, 95, 255, 0.55),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(191, 95, 255, 0.6);
}

.aurora-pink .drop-inner {
    background: linear-gradient(170deg, #FF71CE 0%, #CC0077 60%, #660033 100%);
    box-shadow: 0 0 22px rgba(255, 113, 206, 0.55),
                inset 0 0 18px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 113, 206, 0.6);
}

/* ---- ELEMENT DROPLET COLOURS ---- */
.earth-drop .drop-inner {
    background: linear-gradient(170deg, #A8B84B 0%, #6B7D2A 40%, #5C4A1E 100%);
    box-shadow: 0 0 22px rgba(139, 157, 63, 0.5),
                inset 0 0 18px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(168, 184, 75, 0.55);
}

.wind-drop .drop-inner {
    background: linear-gradient(170deg, #E8F4FA 0%, #A8CCDF 50%, #6896B4 100%);
    box-shadow: 0 0 22px rgba(200, 223, 240, 0.5),
                inset 0 0 18px rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(200, 223, 240, 0.65);
}

.wind-drop .drop-icon,
.wind-drop .drop-label {
    color: #1B2D3E;
}

.water-drop .drop-inner {
    background: linear-gradient(170deg, #40C4FF 0%, #0277BD 55%, #01337C 100%);
    box-shadow: 0 0 22px rgba(41, 182, 246, 0.55),
                inset 0 0 18px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(64, 196, 255, 0.6);
}

.fire-drop .drop-inner {
    background: linear-gradient(170deg, #FFD700 0%, #FF6B35 45%, #CC1100 100%);
    box-shadow: 0 0 22px rgba(255, 107, 53, 0.6),
                inset 0 0 18px rgba(255, 220, 0, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.65);
    animation: flicker 2.5s ease-in-out infinite alternate;
}

@keyframes flicker {
    0%   { box-shadow: 0 0 22px rgba(255, 107, 53, 0.6), inset 0 0 18px rgba(255, 220, 0, 0.2); }
    50%  { box-shadow: 0 0 35px rgba(255, 200, 0, 0.7), inset 0 0 22px rgba(255, 220, 0, 0.3); }
    100% { box-shadow: 0 0 18px rgba(204, 17, 0, 0.5), inset 0 0 14px rgba(255, 220, 0, 0.15); }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 10rem 12% 8rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
}

.about-img-wrap {
    position: relative;
}

.about-img-wrap img {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(107, 82, 184, 0.4);
}

.about-text h3 {
    font-size: 2.2rem;
    color: var(--aurora-cyan);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.55rem;
    line-height: 1.85;
    color: rgba(234, 234, 234, 0.82);
    margin-bottom: 2rem;
}

.overview-items {
    padding-bottom: 4px;
    font-size: 1.6rem;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-icons i {
    font-size: 4rem;
    margin: 3rem 3rem 5rem;
}

.skillsOverview ul {
    list-style-type: disc;
    font-size: 1.8rem;
    column-count: 3;
    padding: 0px 13% 3rem;
}

.skills-list li:hover {
    color: #2C2F54;
    font-size: 2rem;
    text-shadow: 0 0 3px #EAEAEA, 0 0 8px #FF8FF3;
    animation: float 2s ease-in-out infinite alternate;
}

.disco-container ul li {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio {
    padding: 7% 2% 10%;
}

/* Filter */
.filter-container {
    margin-bottom: 2rem;
    position: static;
    margin-right: 3rem;
}

.filter-toggle {
    padding: 0.5rem 1.5rem;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.4rem;
}

.filter-toggle:hover {
    background-color: var(--hover-color);
}

.filter-menu {
    background: #EAEAEA;
    border: 1px solid #3D97D8;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 1rem;
    margin: 0 2rem 3rem;
    color: #1B1D36;
}

.filter-menu label {
    margin-bottom: 0.5rem;
    margin-right: 1rem;
}

.filter-menu select {
    padding: 0.5rem;
    margin-bottom: 1rem;
    margin-right: 3rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#filter-select {
    padding: 0.6rem 1rem;
    border-radius: 5px;
    font-size: 1.4rem;
    margin-left: 1rem;
}

#apply-filter {
    font-size: 1.4rem;
}

/* Projects grid */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
}

.projects-grid p {
    word-wrap: break-word;
    max-width: 230px;
    font-size: 1.4rem;
}

.projects-grid h3 {
    font-size: 1.9rem;
}

.project-item,
.project-item-one,
.project-item-three,
.project-item-five,
.project-item-seven {
    box-sizing: border-box;
    background: rgba(44, 47, 84, 0.5);
    border: 1px solid rgba(107, 82, 184, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover,
.project-item-one:hover,
.project-item-three:hover,
.project-item-five:hover,
.project-item-seven:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(107, 82, 184, 0.3);
}

.projects-grid img {
    width: 19.2rem;
    height: 10.8rem;
    border-radius: 8px;
    object-fit: cover;
}

#video {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   PROJECT DETAIL PAGES
   ============================================ */
.overview-project p {
    font-size: large;
    align-content: center;
    margin: 3rem 0 4rem;
}

.overview-project iframe {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-project li {
    font-size: 1.8rem;
    padding-left: 4rem;
}

/* PDF embed */
.pdf-container {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    border: 1px solid #ccc;
}

/* Resume */
.resume {
    padding: 7% 2% 10%;
}

#df {
    margin-bottom: 9rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--second-bg-color);
    text-align: center;
    padding: 3rem 6%;
    border-top: 1px solid rgba(107, 82, 184, 0.2);
}

.footer p {
    font-size: 1.4rem;
    color: rgba(234, 234, 234, 0.6);
    margin-bottom: 0.5rem;
}

/* ============================================
   SPANS & MISC
   ============================================ */
span {
    color: var(--text-color);
}

.logo span {
    color: var(--hover-color);
}

/* ============================================
   ★ RESPONSIVE — TABLET (≤ 1100px)
   ============================================ */
@media (max-width: 1100px) {
    .hero-layout {
        gap: 2.5rem;
    }

    .droplet-ring {
        width: 420px;
        height: 420px;
    }

    .droplet-ring::before {
        width: 355px;
        height: 355px;
    }

    .droplet-ring::after {
        width: 285px;
        height: 285px;
    }

    .droplet {
        --radius: 170px;
    }

    .ring-center {
        width: 145px;
        height: 145px;
    }

    .hero-name {
        font-size: 6rem;
    }

    .hero-content {
        max-width: 420px;
    }

    .skillsOverview ul {
        column-count: 2;
        padding: 0 5% 3rem;
    }
}

/* ============================================
   ★ RESPONSIVE — MOBILE/TABLET (≤ 900px)
   ============================================ */
@media (max-width: 900px) {
    html {
        font-size: 55%;
        padding: 0 2%;
    }

    /* Header */
    header {
        padding: 1.5rem 4%;
    }

    .menu-icon {
        display: block;
    }

    .navbar {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(27, 29, 54, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2rem 4%;
        gap: 0.5rem;
        z-index: 998;
        border-bottom: 1px solid rgba(107, 82, 184, 0.3);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }

    .navbar.nav-open {
        display: flex;
    }

    .navbar a {
        font-size: 2rem;
        margin-right: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(107, 82, 184, 0.15);
        width: 100%;
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .contact-btn {
        margin-top: 1rem;
    }

    /* Hero — stack vertically */
    .hero {
        padding: 10rem 5% 5rem;
    }

    .hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 4rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-label {
        justify-content: center;
    }

    .hero-label::before {
        display: none;
    }

    .hero-name {
        font-size: 5.5rem;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-group {
        justify-content: center;
    }

    .text-animation {
        text-align: left;
    }

    /* Droplet ring — smaller */
    .droplet-ring {
        width: 360px;
        height: 360px;
    }

    .droplet-ring::before {
        width: 305px;
        height: 305px;
    }

    .droplet-ring::after {
        width: 240px;
        height: 240px;
    }

    .droplet {
        --radius: 145px;
        width: 50px;
        height: 67px;
        margin-left: -25px;
        margin-top: -33px;
    }

    .drop-icon { font-size: 1.5rem; }
    .drop-label { font-size: 0.55rem; }

    .ring-center {
        width: 130px;
        height: 130px;
        padding: 1.2rem;
    }

    #proj-title { font-size: 1rem; }
    #proj-desc  { font-size: 0.8rem; }
    #proj-link  { font-size: 0.75rem; padding: 0.3rem 0.8rem; }

    /* Legacy home layout */
    .home {
        flex-direction: column;
        padding-top: 12rem;
    }

    .home-img img {
        position: static;
        width: 55vw;
        margin: 0 auto 3rem;
    }

    .home-content h1 { font-size: 5rem; }
    .home-content h3 { font-size: 2.8rem; }

    /* Portfolio grid */
    .projects-grid {
        gap: 2rem;
    }

    .projects-grid img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .projects-grid p { max-width: 100%; }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Skills */
    .skillsOverview ul {
        column-count: 1;
    }

    section {
        padding: 10rem 5% 6rem;
    }
}

/* ============================================
   ★ RESPONSIVE — SMALL MOBILE (≤ 540px)
   ============================================ */
@media (max-width: 540px) {
    html { font-size: 48%; }

    .hero-name { font-size: 4.8rem; }
    .hero-label { font-size: 1.1rem; }
    .text-animation { font-size: 2.4rem; }

    /* Ring even smaller */
    .droplet-ring {
        width: 300px;
        height: 300px;
    }

    .droplet-ring::before {
        width: 252px;
        height: 252px;
    }

    .droplet-ring::after {
        width: 200px;
        height: 200px;
    }

    .droplet {
        --radius: 118px;
        width: 44px;
        height: 58px;
        margin-left: -22px;
        margin-top: -29px;
    }

    .drop-icon  { font-size: 1.2rem; }
    .drop-label { display: none; }

    .ring-center {
        width: 110px;
        height: 110px;
        padding: 1rem;
    }

    #proj-title  { font-size: 0.9rem; }
    #proj-desc   { display: none; }
    #proj-link   { font-size: 0.7rem; }
    .center-icon { font-size: 2rem; }

    .home-img img { width: 75vw; }
    .home-content h1 { font-size: 4rem; }

    section { padding: 9rem 4% 5rem; }
}

/* ============================================
   ★ RESPONSIVE — EXTRA SMALL (≤ 380px)
   ============================================ */
@media (max-width: 380px) {
    .hero-name { font-size: 4rem; }

    .droplet-ring {
        width: 260px;
        height: 260px;
    }

    .droplet-ring::before { width: 218px; height: 218px; }
    .droplet-ring::after  { width: 172px; height: 172px; }

    .droplet {
        --radius: 100px;
        width: 38px;
        height: 50px;
        margin-left: -19px;
        margin-top: -25px;
    }

    .ring-center {
        width: 96px;
        height: 96px;
    }
}
