@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

html {
  scroll-behavior: smooth;
}

.portfolio-root {
  font-family: "Geist", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.5;
  color: #eae5ec;
  background-color: var(--backgroundColor);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  --accentColor: #c2a4ff;
  --backgroundColor: #0b080c;
  --vh: 100svh;
  --cWidth: calc(100% - 30px);
  --cMaxWidth: 1920px;
  max-width: 100vw;
  overflow-x: hidden;
}
.portfolio-root h1, .portfolio-root h2, .portfolio-root h3, .portfolio-root h4, .portfolio-root h5, .portfolio-root h6 { font-family: "Geist", sans-serif; }
.portfolio-root a { color: inherit; text-decoration: inherit; }
.portfolio-root a:hover { color: var(--accentColor); }
.portfolio-root .container-main { width: 100%; margin: auto; position: relative; }
.portfolio-root .split-line { overflow: hidden; }
.portfolio-root .section-container { width: 1300px; }

@media screen and (min-width: 768px) { .portfolio-root { --cWidth: 94%; } }
@media only screen and (max-width: 1600px) { .portfolio-root .section-container { width: 1200px; max-width: calc(100% - 160px); } }
@media only screen and (max-width: 1400px) { .portfolio-root .section-container { width: 900px; } }
@media only screen and (max-width: 900px) { .portfolio-root .section-container { width: 500px; max-width: var(--cWidth); } }

/* Work item: description + view live button */
.portfolio-root .work-desc {
  margin-top: 0.5rem;
  opacity: 0.8;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.4;
}
.portfolio-root .view-live-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  color: inherit;
  width: fit-content;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.portfolio-root .view-live-btn:hover {
  background-color: var(--accentColor);
  color: #0b080c;
}
.portfolio-root .view-live-btn svg { width: 14px; height: 14px; }

@media only screen and (max-width: 600px) {
  .portfolio-root .work-desc { font-size: 0.875rem; }
  .portfolio-root .view-live-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    margin-top: 0.85rem;
  }
}

/* Landing */
.landing-section { width: 100%; max-width: var(--cMaxWidth); margin: auto; position: relative; height: var(--vh); }
.landing-container { width: var(--cWidth); margin: auto; height: 100%; position: relative; max-width: var(--cMaxWidth); }
.landing-circle1 { top: 0%; left: 0%; z-index: 15; position: fixed; width: 300px; height: 300px; background-color: #fb8dff; box-shadow: inset -50px 40px 50px rgba(84,0,255,0.6); filter: blur(60px); border-radius: 50%; animation: loadingCircle 5s linear infinite; pointer-events: none; }
.landing-circle2 { top: 50%; right: 0%; transform: translate(calc(100% - 2px), -50%); z-index: 9; position: fixed; display: none; width: 300px; height: 300px; background-color: #fb8dff; box-shadow: inset -50px 40px 50px rgba(84,0,255,0.6); filter: blur(50px); border-radius: 50%; animation: loadingCircle2 5s linear infinite; pointer-events: none; }
.nav-fade { position: fixed; top: 0; width: 100%; height: 130px; background-image: linear-gradient(0deg, transparent, var(--backgroundColor) 70%); pointer-events: none; z-index: 12; opacity: 1; left: 0; }
@keyframes loadingCircle { 0% { transform: translate(-95%, -75%) rotateZ(0deg); } 100% { transform: translate(-95%, -75%) rotateZ(360deg); } }
@keyframes loadingCircle2 { 100% { transform: translate(calc(100% - 2px), -50%) rotate(360deg); } }
.character-rim { position: absolute; width: 400px; height: 400px; z-index: 1; background-color: #f59bf8; box-shadow: inset 66px 35px 85px 0px rgba(85,0,255,0.65); filter: blur(50px); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -10%) scale(1.4); opacity: 0.85; pointer-events: none; }
.character-model { height: 80vh; position: absolute; max-width: 1920px; max-height: 1080px; transform: translateX(-50%); width: 100%; left: 50%; z-index: 0; bottom: 50px; pointer-events: inherit; }
.character-model::after { content: ""; width: 100vw; height: 250px; background-image: linear-gradient(to bottom, transparent, var(--backgroundColor) 70%); bottom: -50px; left: 50%; transform: translateX(-50%); z-index: 9; position: absolute; }
.character-model::before { content: ""; width: 100vw; height: 700px; background-color: var(--backgroundColor); top: 100%; left: 50%; transform: translateX(-50%); z-index: 9; position: absolute; }
.character-img { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-50%); z-index: 2; pointer-events: none; filter: drop-shadow(0 30px 60px rgba(120,60,220,0.55)); will-change: transform; max-width: none; object-fit: contain; }
.landing-intro { position: absolute; z-index: 9; top: 12%; left: 0; }
.landing-intro h2 { margin: 0; color: var(--accentColor); font-size: 22px; font-weight: 300; letter-spacing: 2px; }
.landing-intro h1 { margin: 0; letter-spacing: 2px; font-size: 28px; line-height: 28px; font-weight: 500; }
.landing-info { position: absolute; right: 50%; transform: translateX(50%); bottom: 40px; z-index: 9; }
.landing-info h3 { font-size: 22px; letter-spacing: 2px; font-weight: 300; color: var(--accentColor); margin: 0; }
.landing-info h2 { margin: 0; margin-top: -20px; margin-left: 20px; font-weight: 600; font-size: 32px; line-height: 40px; position: relative; display: flex; flex-wrap: nowrap; text-transform: uppercase; letter-spacing: 2px; }
.landing-h2-info-1 { position: absolute; top: 0; }
h2.landing-info-h2 { color: #c481ff; font-size: 42px; width: 120%; margin: 0; font-weight: 600; position: relative; margin-left: -5px; }
.landing-h2-2 { position: absolute; top: 0; }
.landing-info-h2::after { content: ""; position: absolute; width: 100%; height: 120%; z-index: 3; background-image: linear-gradient(0deg, var(--backgroundColor) 40%, rgba(0,0,0,0) 110%); top: 0; left: 0; }

@media screen and (min-width: 500px) {
  .landing-circle2 { display: block; }
  .landing-info h3 { font-size: 18px; }
  .landing-intro h2 { font-size: 18px; }
  .landing-intro h1 { font-size: 30px; line-height: 30px; }
  .landing-info h2 { font-size: 35px; line-height: 40px; }
  h2.landing-info-h2 { font-size: 38px; }
}
@media screen and (min-width: 768px) {
  .landing-intro h2 { font-size: 25px; }
  .landing-intro h1 { font-size: 40px; line-height: 35px; }
  .landing-info h3 { font-size: 25px; }
  .landing-info h2 { font-size: 45px; line-height: 42px; }
  h2.landing-info-h2 { font-size: 55px; }
}
@media screen and (min-width: 1025px) {
  .character-model { height: 100vh; bottom: 0; z-index: 1; position: fixed; }
  .character-img { z-index: 1; }
  .character-rim { z-index: 0; }
  .landing-intro, .landing-info { z-index: 20; }
  .character-model::after, .character-model::before { display: none; }
  .landing-intro { top: 50%; left: auto; right: 66%; transform: translate(0%, -50%); }
  .landing-info { bottom: auto; top: 51%; text-align: left; transform: translate(0%, -50%); right: auto; left: 66%; }
}
@media screen and (min-width: 1200px) {
  .landing-intro { right: 70%; }
  .landing-info { left: 70%; }
}
@media screen and (min-width: 1600px) {
  .landing-intro h2 { font-size: 35px; }
  .landing-intro h1 { font-size: 60px; line-height: 55px; }
  .landing-info h3 { font-size: 35px; }
  .landing-info h2 { font-size: 65px; line-height: 62px; }
  h2.landing-info-h2 { font-size: 75px; }
}

/* About */
.about-section { display: flex; align-items: center; justify-content: left; position: relative; opacity: 1; height: auto; width: var(--cWidth); margin: auto; }
.about-me { padding: 50px 0; padding-bottom: 0; width: 500px; max-width: calc(100% - 15px); }
.about-me h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 6px; font-weight: 400; color: var(--accentColor); margin-bottom: 25px; }
.about-me p { font-size: 24px; font-weight: 300; line-height: 1.6; letter-spacing: 0.5px; color: #adacac; }
.about-me .highlight { color: #eae5ec; font-weight: 500; transition: text-shadow 0.3s, color 0.3s; position: relative; }
.about-me:hover .highlight { color: #fff; text-shadow: 0 0 15px rgba(194, 164, 255, 0.6); }
@media (min-width: 600px) { .about-section { justify-content: center; } }
@media (min-width: 768px) { .about-me { width: 500px; max-width: calc(100% - 70px); } }
@media (min-width: 1025px) {
  .about-section { width: var(--cWidth); justify-content: right; max-width: 1920px; height: var(--vh); padding: 0; }
  .about-me { padding: 0; width: 50%; }
  .about-me p { font-size: 1.4vw; line-height: 2.1vw; }
}
@media (min-width: 1950px) { .about-me p { font-size: 1.8rem; line-height: 2.6rem; } }

/* What I Do */
.whatIDO { display: flex; align-items: center; justify-content: center; position: relative; opacity: 1; height: 100vh; width: var(--cWidth); max-width: 1920px; margin: auto; z-index: 9; }
.what-box { width: 50%; display: flex; justify-content: center; position: relative; z-index: 9; }
.what-box h2 { font-size: calc(4vw + 25px); line-height: calc(4vw + 20px); font-weight: 600; margin-right: 10%; margin-bottom: 100px; }
.hat-h2 { font-style: italic; }
.do-h2 { color: var(--accentColor); }
.what-box-in { flex-direction: column; height: 500px; margin-left: 200px; position: relative; display: flex; justify-content: center; gap: 20px; }
.what-content {
  width: 450px;
  height: 33%;
  min-height: 50%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 40px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(194, 164, 255, 0.04), rgba(255, 255, 255, 0.01));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.what-noTouch:hover, .what-content.what-content-active {
  min-height: 67%;
  padding: 30px 40px;
  border-color: rgba(194, 164, 255, 0.3);
  box-shadow: 0 20px 40px rgba(194, 164, 255, 0.12), 0 0 0 1px rgba(194, 164, 255, 0.1);
  background: linear-gradient(160deg, rgba(194, 164, 255, 0.08), rgba(255, 255, 255, 0.02));
}
.what-noTouch:hover ~ .what-content, .what-box-in:hover .what-noTouch:not(:hover), .what-content.what-sibling {
  min-height: 33%;
  padding: 20px 40px;
  opacity: 0.6;
}
.what-content h3 { font-size: 35px; letter-spacing: 1px; margin: 0; }
.what-content p { font-size: 14px; line-height: 1.5; font-weight: 200; letter-spacing: 0.7px; margin-top: 10px; }
.what-content h4 { font-weight: 300; letter-spacing: 1px; margin: 0; font-size: 14px; opacity: 0.3; }
.what-content-in { height: 100%; overflow: hidden; opacity: 1; transition: opacity 0.3s; }
.what-content-in h5 { font-weight: 300; opacity: 0.5; font-size: 12px; letter-spacing: 1px; margin-bottom: 5px; margin-top: 15px; }
.what-arrow { position: absolute; bottom: 20px; right: 20px; width: 25px; height: 25px; border: 1px solid #fff; }
.what-arrow::before { content: ""; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-45deg); border-left: 1px solid #fff; border-bottom: 1px solid #fff; transition: 0.5s; width: 10px; height: 10px; }
.what-noTouch:hover .what-arrow::before, .what-content-active .what-arrow::before { transform: translate(-50%, -20%) rotate(-225deg); }
.what-border1 { position: absolute; top: 0; width: 100%; left: 50%; transform: translateX(-50%); height: 100%; transition: 0.5s; max-width: 0; overflow: hidden; opacity: 0.8; animation: whatBorders 1.2s 1 forwards; }
.what-border1 svg { position: absolute; left: 50%; transform: translateX(-50%); width: 450px; }
.what-border2 { position: absolute; top: 50%; width: 100%; left: 0; transform: translateY(-50%); height: 100%; max-height: 0; overflow: hidden; transition: 0.5s; opacity: 0.8; animation: whatBorders 1.2s 1 forwards; }
.what-border2 svg { height: 500px; top: 50%; transform: translateY(-50%); position: absolute; }
@keyframes whatBorders { 80% { opacity: 0.8; } 100% { max-height: 100%; max-width: 100%; opacity: 0.2; } }
.what-content-flex { display: flex; gap: 5px; flex-wrap: wrap; }
.what-tags { font-size: 13px; font-weight: 400; padding: 2px 7px; background-color: rgba(255,255,255,0.15); border: 1px solid #ffffff50; border-radius: 30px; }
@media (max-width: 1600px) { .what-box h2 { margin-right: 18%; } }
@media (max-width: 1400px) {
  .what-box h2 { margin-right: 20%; }
  .what-box-in { height: 400px; margin-left: 50px; }
  .what-content h3 { font-size: 28px; }
  .what-content { padding: 30px; width: 380px; }
  .what-content p { font-size: 13px; }
  .what-noTouch:hover, .what-content-active { padding: 20px 30px; }
  .what-noTouch:hover ~ .what-content, .what-box-in:hover .what-noTouch:not(:hover), .what-content.what-sibling { padding: 10px 30px; }
  .what-tags { font-size: 12px; }
}
@media (max-width: 1024px) {
  .whatIDO { height: auto; padding: 50px 0; }
  .what-box-in { height: 500px; margin-left: -50px; }
  .what-content { padding: 50px; width: 500px; }
  .what-content p { font-size: 14px; }
}
@media (max-width: 900px) {
  .whatIDO { flex-direction: column; }
  .what-box h2 { margin: 50px 0; font-size: 55px; line-height: 53px; }
  .what-box:first-child { justify-content: left; }
  .what-box:last-child { height: 500px; }
  .what-box { width: 500px; max-width: calc(100% - 50px); margin: auto; }
  .what-content { width: 100%; padding: 30px; }
  .what-box-in { margin-left: 0; height: 450px; }
  .what-content h5, .what-content-flex { opacity: 0; transition: 0.3s; }
  .what-noTouch:hover h5, .what-content-active h5, .what-noTouch:hover .what-content-flex, .what-content-active .what-content-flex { opacity: 1; }
  .what-content p { font-size: 11px; }
  .what-noTouch:hover, .what-content-active { padding: 10px 30px; }
  .what-tags { font-size: 11px; }
  .what-noTouch:hover ~ .what-content, .what-box-in:hover .what-noTouch:not(:hover), .what-content.what-sibling { padding: 5px 30px; }
  .what-content h3 { font-size: 25px; }
}
@media (max-width: 550px) {
  .whatIDO { align-items: start; justify-content: left; }
  .what-box { max-width: calc(100% - 25px); margin: 0; }
}
@media (min-width: 1950px) { .what-box h2 { font-size: 7rem; line-height: 6.8rem; } }

/* Career */
.career-section { display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; opacity: 1; height: auto; margin: auto; margin-bottom: 250px; padding: 120px 0; }
.career-section h2 { font-size: 70px; line-height: 70px; font-weight: 400; text-align: center; background: linear-gradient(0deg, #7f40ff, #ffffff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; color: transparent; margin-top: 50px; margin-bottom: 90px; }
.career-section h2 > span { font-weight: 300; }
.career-info { position: relative; display: flex; flex-direction: column; margin: 0 auto; }
.career-info-box { display: flex; justify-content: space-between; margin-bottom: 50px; }
.career-info-box p { width: 40%; font-size: 18px; font-weight: 300; margin: 0; }
.career-info-in { display: flex; width: 40%; justify-content: space-between; gap: 50px; }
.career-info h3 { font-size: 48px; margin: 0; font-weight: 500; line-height: 45px; }
.career-info h4 { font-size: 33px; line-height: 30px; letter-spacing: 0.8px; font-weight: 500; margin: 0; }
.career-info h5 { font-weight: 400; letter-spacing: 0.7px; font-size: 20px; text-transform: capitalize; margin: 10px 0; color: var(--accentColor); }
.career-timeline { position: absolute; top: -50px; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background-image: linear-gradient(to top, #aa42ff 20%, var(--accentColor) 50%, transparent 95%); max-height: 100%; }
.career-dot { position: absolute; bottom: 0; left: 50%; transform: translate(-50%, 50%); background-color: #aa42ff; width: 10px; height: 10px; border-radius: 50px; box-shadow: 0px 0px 5px 2px #d29bff, 0px 0px 15px 8px #d097ff, 0px 0px 110px 20px #f2c0ff; animation: timeline 0.8s linear infinite forwards; }
@keyframes timeline {
  10%,20%,50%,70%,90% { box-shadow: 0px 0px 5px 2px #d29bff; }
  10%,30%,0%,100%,64%,80% { box-shadow: 0px 0px 5px 2px #d29bff, 0px 0px 15px 5px #d097ff, 0px 0px 110px 20px #f2c0ff; }
}
@media (max-width: 1400px) {
  .career-section h2 { font-size: 50px; line-height: 50px; }
  .career-info h4 { font-size: 22px; line-height: 24px; width: 180px; }
  .career-info h5 { font-size: 17px; }
  .career-info h3 { font-size: 40px; }
  .career-info-box p { font-size: 14px; width: 45%; }
  .career-info-in { width: 45%; gap: 20px; }
}
@media (max-width: 1025px) { .career-section { padding: 70px 0; padding-top: 220px; margin-top: -200px; margin-bottom: 0; } }
@media (max-width: 900px) {
  .career-info-box { flex-direction: column; gap: 10px; margin-bottom: 70px; }
  .career-info-in, .career-info-box p { width: 100%; padding-left: 10%; box-sizing: border-box; }
  .career-timeline { left: 0; }
}
@media (max-width: 600px) {
  .career-info { margin: 0; }
  .career-section h2 { width: 100%; font-size: 45px; line-height: 45px; margin-top: 0; }
  .career-info-in { gap: 0; }
  .career-info h3 { font-size: 33px; }
  .career-info-in, .career-info-box p { padding-left: 5%; }
  .career-section { padding-top: 90px; margin-top: -70px; align-items: start; justify-content: left; }
}

/* Work */
.work-section h2 { margin: 0; font-size: 70px; font-weight: 500; }
.work-section h2 > span { color: var(--accentColor); }
.work-section { transition: 0s; height: 100vh; box-sizing: border-box; will-change: transform; overflow: hidden; display: flex; align-items: center; }
.work-container { margin: auto; display: flex; flex-direction: column; height: auto; width: 100%; }
.work-header { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; margin-top: 40px; margin-bottom: 25px; }
.work-flex {
  width: 100%;
  display: flex;
  height: auto;
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 20px;
  padding-bottom: 10px;
  cursor: grab;
}
.work-flex.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
.work-flex.dragging * {
  user-select: none !important;
  pointer-events: none !important;
}
.work-flex::-webkit-scrollbar { display: none; }
.work-box {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  width: 520px;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 16px;
  flex-shrink: 0;
  gap: 30px;
  justify-content: space-between;
  scroll-snap-align: start;
  transition: border-color 0.3s, background-color 0.3s;
}
.work-box:hover {
  border-color: rgba(194, 164, 255, 0.25);
  background: rgba(255, 255, 255, 0.02);
}
.work-flex .work-box:nth-child(even) { flex-direction: column; }
.work-title { justify-content: space-between; display: flex; width: 100%; margin-bottom: 15px; }
.work-title > div { text-align: right; }
.work-title h3 { font-size: 44px; line-height: 44px; margin: 0; font-weight: 600; opacity: 0.2; }
.work-info h4 { font-size: 18px; font-weight: 400; margin: 0; }
.work-info p { font-weight: 200; color: #adacac; margin: 0; margin-top: 3px; }
.work-info > p { width: 100%; }
.work-image { display: flex; width: 100%; justify-content: center; }
.work-image-in { position: relative; width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 8px; }
.work-image img { max-width: 100%; height: 220px; object-fit: cover; border-radius: 8px; transition: transform 0.4s ease; }
.work-box:hover .work-image img { transform: scale(1.03); }
@media (max-width: 1400px) {
  .work-title h3 { font-size: 35px; }
  .work-info p { font-size: 13px; }
  .work-info h4 { font-size: 15px; }
  .work-box { width: 350px; padding: 30px; }
  .work-flex { margin-left: -30px; padding-right: 45px; }
  .work-section h2 { font-size: 50px; }
}

/* Contact */
.contact-section { margin: auto; padding-bottom: 100px; margin-top: 100px; }
.contact-section h3 { font-size: 60px; font-weight: 400; text-transform: uppercase; margin: 0; }
.contact-flex { display: flex; justify-content: space-between; }
.contact-flex h4 { font-weight: 500; margin: 0; opacity: 0.6; }
.contact-box { display: flex; flex-direction: column; }
.contact-flex p { margin-top: 10px; margin-bottom: 20px; }
a.contact-social { font-size: 25px; border-bottom: 1px solid #ccc; display: inline-flex; align-items: center; gap: 6px; }
.contact-box h2 { font-weight: 400; font-size: 23px; margin: 0; }
.contact-box h2 > span { color: var(--accentColor); }
.contact-box h5 { font-size: 20px; font-weight: 500; line-height: 20px; display: flex; gap: 10px; opacity: 0.5; align-items: center; }
@media (max-width: 1600px) { .contact-section h3 { font-size: 50px; } .contact-box h2 { font-size: 20px; } a.contact-social { font-size: 22px; } }
@media (max-width: 1300px) { .contact-section h3 { font-size: 40px; } .contact-box h2 { font-size: 18px; } a.contact-social { font-size: 20px; } .contact-flex p { margin-top: 0; } }
@media (max-width: 900px) { .contact-flex { flex-direction: column; gap: 40px; } .contact-flex p { margin-bottom: 0; } .contact-flex h4 { margin-top: 20px; } .contact-section { margin-top: 50px; padding-bottom: 50px; } }

/* Enhanced Contact */
.portfolio-root .contact-eyebrow { color: var(--accentColor); text-transform: uppercase; letter-spacing: 3px; font-size: 14px; margin: 0 0 8px; opacity: 0.9; }
.portfolio-root .contact-section h3 span { color: var(--accentColor); }
.portfolio-root .contact-lead { max-width: 560px; opacity: 0.75; font-size: 17px; margin: 14px 0 50px; line-height: 1.6; }
.portfolio-root .contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; }
.portfolio-root .contact-form { display: flex; flex-direction: column; gap: 18px; padding: 32px; border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; background: linear-gradient(160deg, rgba(194,164,255,0.06), rgba(255,255,255,0.02)); backdrop-filter: blur(8px); }
.portfolio-root .contact-field { display: flex; flex-direction: column; gap: 6px; }
.portfolio-root .contact-field label { font-size: 13px; opacity: 0.7; letter-spacing: 1px; text-transform: uppercase; }
.portfolio-root .contact-field input,
.portfolio-root .contact-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #eae5ec;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  resize: vertical;
}
.portfolio-root .contact-field input:focus,
.portfolio-root .contact-field textarea:focus { border-color: var(--accentColor); background: rgba(194,164,255,0.08); }
.portfolio-root .contact-error { color: #ff8b8b; font-size: 14px; margin: 0; }
.portfolio-root .contact-success { color: #9bf3a8; font-size: 14px; margin: 0; }
.portfolio-root .contact-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accentColor); color: #0b080c;
  border: none; border-radius: 999px; padding: 14px 24px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 6px; align-self: flex-start;
}
.portfolio-root .contact-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(194,164,255,0.35); }
.portfolio-root .contact-side { display: flex; flex-direction: column; gap: 30px; }
.portfolio-root .contact-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 10px #4ade80; margin-right: 8px; vertical-align: middle; }
.portfolio-root .contact-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); }
.portfolio-root .contact-footer h2 { font-weight: 400; font-size: 20px; margin: 0; }
.portfolio-root .contact-footer h2 > span, .portfolio-root .footer-admin-link { color: var(--accentColor); font-weight: 500; text-decoration: none; transition: color 0.3s, text-shadow 0.3s; }
.portfolio-root .footer-admin-link:hover { color: #fff; text-shadow: 0 0 10px rgba(194,164,255,0.6); }
.portfolio-root .contact-footer h5 { font-size: 16px; font-weight: 500; display: flex; gap: 8px; opacity: 0.5; align-items: center; margin: 0; }

@media (max-width: 900px) {
  .portfolio-root .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .portfolio-root .contact-form { padding: 22px; }
  .portfolio-root .contact-submit { width: 100%; align-self: stretch; }
  .portfolio-root .contact-lead { font-size: 15px; margin-bottom: 30px; }
  .portfolio-root .contact-footer { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* Navbar with Hamburger Menu */
.header { display: flex; max-width: var(--cMaxWidth); width: var(--cWidth); justify-content: space-between; align-items: center; padding: 20px 0; box-sizing: border-box; position: fixed; left: 50%; transform: translateX(-50%); top: 0; z-index: 9999; }
.header ul { font-size: 12px; display: flex; flex-direction: row; margin: 0; padding: 0; list-style: none; column-gap: 40px; align-items: center; }
.header ul li { letter-spacing: 1px; color: #eae5ec; font-weight: 600; cursor: pointer; }
.navbar-connect { position: absolute; display: none; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 15px; letter-spacing: 1px; font-weight: 500; }
.navbar-title { font-weight: 700; font-size: 16px; letter-spacing: 0.2px; }

/* Hamburger Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10000;
  outline: none;
}
.hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #eae5ec;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

@media (min-width: 900px) { .navbar-connect { display: block; } }
@media (min-width: 1200px) {
  .header { padding: 35px 0; }
  .header ul { column-gap: 80px; font-size: 16px; }
  .navbar-connect { font-size: 16px; }
  .navbar-title { font-size: 18px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(11, 8, 12, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 35px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
  }
  .header.nav-open ul { right: 0; }
  .header.nav-open .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.nav-open .hamburger-bar:nth-child(2) { opacity: 0; }
  .header.nav-open .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .navbar-connect { display: none !important; }
}

/* SocialIcons */
.icons-section { position: fixed; max-width: var(--cMaxWidth); width: var(--cWidth); bottom: 0; z-index: 99; left: 50%; transform: translateX(-50%); pointer-events: none; }
.social-icons { position: absolute; left: -20px; bottom: 20px; display: none; flex-direction: column; gap: 12px; z-index: 999; padding: 10px; pointer-events: auto; }
.social-icons span { width: 44px; height: 44px; position: relative; display: flex; justify-content: center; align-items: center; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 50%; background: rgba(255, 255, 255, 0.02); transition: border-color 0.3s, background-color 0.3s, transform 0.3s; }
.social-icons span:hover { border-color: var(--accentColor); background: rgba(194, 164, 255, 0.08); transform: translateY(-3px); }
.social-icons a { display: flex; align-items: center; justify-content: center; color: #eae5ec; width: 100%; height: 100%; transition: color 0.3s; }
.social-icons a:hover { color: var(--accentColor); }
.resume-button { position: absolute; z-index: 99; display: flex; gap: 6px; bottom: 40px; right: 0; text-wrap: nowrap; letter-spacing: 4px; font-size: 15px; line-height: 15px; font-weight: 600; color: #adacac; cursor: pointer; transition: 0.3s; transform-origin: left bottom; transform: translateX(100%) rotateZ(-90deg); pointer-events: auto; }
.resume-button:hover { color: var(--accentColor); }
div.resume-button span { color: inherit; font-size: 17px; margin-top: -1px; display: flex; align-items: center; }
@media (min-width: 900px) { .social-icons { display: flex; } }
@media (min-width: 768px) { .resume-button { transform: none; font-size: 18px; line-height: 18px; } }

/* Modern Smooth Custom Cursor */
.cursor-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  background-color: var(--accentColor);
  mix-blend-mode: difference;
  will-change: transform;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), height 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, border 0.2s;
}
.cursor-hover {
  width: 46px;
  height: 46px;
  background-color: rgba(194, 164, 255, 0.12);
  border: 1px solid var(--accentColor);
}

/* Hover link */
.hover-link { position: relative; display: flex; text-wrap: nowrap; overflow: hidden; }
.hover-in { position: relative; transition: 0.3s; }
.hover-in div { display: flex; position: absolute; top: 100%; left: 0; }
.hover-link:hover .hover-in { transform: translateY(-100%); color: var(--accentColor); }

/* 3D Tech Stack Card Grid */
.techstack { width: 100%; position: relative; height: auto; margin: 100px auto 0; padding: 80px 0; overflow: hidden; }
.techstack h2 { font-size: 80px; text-align: center; width: 100%; font-weight: 400; text-transform: uppercase; margin: 0 0 60px; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  gap: 18px;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}
.tech-card {
  perspective: 1000px;
  cursor: pointer;
  height: 125px;
}
.tech-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.tech-card:hover .tech-card-inner {
  border-color: var(--accentColor);
  background: linear-gradient(135deg, rgba(194, 164, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 20px 40px rgba(194, 164, 255, 0.18);
}
.tech-card-inner img {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s;
  transform: translateZ(30px);
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4));
}
.tech-card-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #adacac;
  transition: color 0.3s;
  transform: translateZ(15px);
}
.tech-card:hover .tech-card-name {
  color: #fff;
}
@media (max-width: 900px) {
  .techstack h2 { font-size: 40px; margin-bottom: 40px; }
  .tech-grid {
    grid-template-columns: repeat(3, 120px);
    gap: 16px;
  }
  .tech-card {
    height: 115px;
  }
  .tech-card-inner img {
    height: 50px;
  }
}
@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: repeat(2, 120px);
  }
}

/* Live Status Badge */
.admin-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  background: rgba(11, 8, 12, 0.85);
  color: #fff;
  font-family: -apple-system, Inter, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  animation: badgeGlowPulse 3s infinite ease-in-out;
}

.admin-fab:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.live-text {
  font-weight: 700;
  background: linear-gradient(135deg, #a3e635, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expand-text {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.72rem;
  color: #adacac;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
}

.admin-fab:hover .expand-text {
  max-width: 160px;
  opacity: 1;
  margin-left: 4px;
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseGlow 2s infinite ease-in-out;
}

/* Database Error State for Live Status Badge */
.admin-fab.db-error-badge {
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  animation: badgeErrorGlowPulse 3s infinite ease-in-out;
}

.admin-fab.db-error-badge:hover {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.pulse-dot.error-pulse {
  background-color: #ef4444;
}

.pulse-dot.error-pulse::after {
  background-color: #ef4444;
}

.live-text.error-text {
  background: linear-gradient(135deg, #f87171, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expand-text.error-expand {
  color: #fca5a5;
}

/* Keyframes */
@keyframes badgeGlowPulse {
  0% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 197, 94, 0.45);
  }
  100% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 197, 94, 0.2);
  }
}

@keyframes badgeErrorGlowPulse {
  0% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.35), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.45);
  }
  100% {
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15), 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: rgba(239, 68, 68, 0.2);
  }
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* DB Error Details Modal */
.db-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.db-error-modal.modal-open {
  opacity: 1;
  pointer-events: auto;
}

.db-error-modal-content {
  background: rgba(18, 14, 20, 0.95);
  border: 1px solid rgba(239, 68, 68, 0.25);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(239, 68, 68, 0.05);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 2.2rem 2rem;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, Inter, sans-serif;
  color: #eae5ec;
}

.db-error-modal.modal-open .db-error-modal-content {
  transform: translateY(0) scale(1);
}

.db-error-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #adacac;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.db-error-modal-close:hover {
  color: #fff;
}

.db-error-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}

.db-error-warning-icon {
  font-size: 1.5rem;
}

.db-error-header h3 {
  font-size: 1.25rem;
  margin: 0;
  color: #f87171;
  font-weight: 600;
}

.db-error-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #adacac;
  margin-bottom: 1.25rem;
}

.db-error-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #fca5a5;
  word-break: break-all;
  margin-bottom: 1.5rem;
  max-height: 120px;
  overflow-y: auto;
}

.db-error-checklist h4 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0;
  color: #eae5ec;
  font-weight: 600;
}

.db-error-checklist ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  color: #adacac;
  line-height: 1.5;
}

.db-error-checklist li {
  margin-bottom: 0.4rem;
}

.db-error-checklist code {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #eae5ec;
}

@media print{.admin-fab{display:none}}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.reveal-immediate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-immediate.active {
  opacity: 1;
  transform: translateY(0);
}

/* Spinner Loader Animation */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Work Slider Nav Controls */
.work-slider-nav { display: flex; gap: 12px; }
.slider-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #eae5ec;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
  outline: none;
}
.slider-btn:hover {
  background: var(--accentColor);
  color: #0b080c;
  border-color: var(--accentColor);
  transform: scale(1.05);
}
.slider-btn:active {
  transform: scale(0.95);
}

/* Work Section Media Breakpoints */
@media (max-width: 1024px) {
  .work-section { height: auto; overflow: visible; padding: 60px 0; }
  .work-container { height: auto; }
  .work-header { flex-direction: row; align-items: center; gap: 20px; margin-top: 0; }
  .work-flex { margin-left: 0; padding-right: 0; min-height: auto; }
  .work-box { width: 85vw; max-width: 420px; padding: 40px 30px; gap: 25px; border: 1px solid rgba(255, 255, 255, 0.08); }
  .work-flex .work-box:nth-child(even) { flex-direction: column; }
  .work-slider-nav { display: none; }
}
@media (max-width: 600px) {
  .work-section h2 { font-size: 45px; }
  .work-box { width: 90vw; padding: 30px 20px; }
}
