/* PP Mori Font */
@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/ppmori-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/ppmori-blackitalic.woff2') format('woff2');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PP Mori';
    src: url('../fonts/ppmori-black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

html {
    overflow-x: hidden;
    overscroll-behavior: none; /* Prevents the browser's native bounce effect at page edges */
    margin: 0;
    padding: 0;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

body {
    background-color: #FFFFFF;
    animation: fadeInPage 0.8s ease-in-out;
    margin: 0;
    font-family: 'Urbanist', sans-serif;
    font-weight: 300 ;
    font-size: clamp(0.9rem, 1vw, 1.1rem);
    color: #000000;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0); 
}

body.fade-out {
    opacity: 0;
}










/* --- Type Styling --- */

h1 {
    font-family: 'PP Mori', sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 10vw, 25rem);
    max-width: 100%;
    overflow-wrap: anywhere;
    color: #006DFF;
}

h2 {
    font-family: 'PP Mori', sans-serif;
    font-weight: 900 ;
    font-size: clamp(2rem, 7vw, 7rem);
    color: #006DFF;
}

h3 {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400 ;
    font-size: clamp(2.5rem, 5vw, 6rem);
    color: #000000;
}

p {
    font-family: 'Urbanist', sans-serif;
    font-weight: 400 ;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: #000000;
}











/* --- Header --- */

header {
    --header-height: 5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #FFFFFF;
    z-index: 1000;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* Homepage specific header override */
header.home-header {
    background-color: transparent;
    position: absolute;
}

header.home-header a {
    color: #FFFFFF;
}

header.home-header a::after {
    background-color: #FFFFFF;
}

header.home-header p {
    color: #FFFFFF !important;
}

header a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #006DFF;
    font-weight: 400;
    position: relative;
    font-family: 'PP Mori', sans-serif;
}

header a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #006DFF;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

header a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Logo Header Styling */
header > a {
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

header nav {
    display: flex;
    gap: 3rem; 
}

/* Navigation - Projects & About */
header nav a {
    font-size: clamp(0.7rem, 0.8vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-meta {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Header Text */
header p, .nav-meta, .scroll-next, a.scroll-next {
    font-family: 'PP Mori', sans-serif;
    font-weight: 500;
    font-size: clamp(0.6rem, 0.7vw, 0.8rem);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #006DFF !important;
    margin: 0;
    text-decoration: none;
}

.nav-pull-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px; 
    background: rgba(0, 109, 255, 0.1); 
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-pull-overlay {
    position: fixed;
    inset: 0;
    background: #000; 
    z-index: 9998; 
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

.nav-pull-bar {
    width: 100%;
    height: 100%;
    background: #006DFF;
    transform: scaleX(0);
    transform-origin: left;
    will-change: transform;
}

/* --- Loader Styling --- */
#loader {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #ffffff; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}
.loader-logo {
    width: 72px; 
    height: 72px; 
    opacity: 0; 
}
.loader-logo path {
    fill: #006DFF;
    stroke: none;
}
.loader-progress {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.9rem;
    color: #006DFF; 
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 1rem; 
    opacity: 0;
}









/* --- Homepage Section  -------------------------------------------- */
#hero {
  position: relative;
  display: flex;
  align-items: center; 
  justify-content: center;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #006DFF;
  padding: 0 2rem;
  box-sizing: border-box;
  perspective: 1000px;
}

.hero-bg-slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0; 
}

#p5-canvas-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto; 
}

#hero-content {
  text-align: center;
  max-width: 1200px;
  position: relative;
  z-index: 10;
  will-change: transform, opacity;
  transform-style: preserve-3d;
  pointer-events: none; 
}

#hero-content .char, #hero-content .hero-spin {
  pointer-events: auto; 
  cursor: pointer;
}

.hero-spin {
  width: clamp(80px, 12vw, 150px);
  height: auto;
  animation: spinSlowly 20s linear infinite;
  margin-bottom: 2rem;
  display: inline-block;
}

@keyframes spinSlowly {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

#hero-text {
  font-family: 'PP Mori', sans-serif;
  font-weight: 100; 
  font-size: clamp(2.5rem, 10vw, 4rem); 
  color: #FFFFFF;
  letter-spacing: -.03em;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap; 
  gap: 0.3em;
  margin: 0 0 2rem;
  cursor: default;
}

.word {
  display: inline-flex;
  overflow: hidden;
  padding: 0 0.02em 0.15em;
}

.char {
  display: inline-block;
  transform: translateY(0);
  will-change: transform;
  backface-visibility: hidden;
}

#hero-sub {
  font-family: 'PP Mori', sans-serif;
  font-weight: 200;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

#scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 4rem;
  text-decoration: none;
  opacity: 0;
}

#scroll-hint span {
  font-family: 'PP Mori', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #FFFFFF;
}

.hint-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #FFFFFF, transparent);
  transform-origin: top;
}

#scroll-hint:hover .hint-line {
  background: #006DFF;
}
 









/* --- Homepage Portfolio Section  -------------------------------------------- */
.portfolio-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
    background-color: #FFFFFF;
}

.portfolio-main-header {
    font-family: 'PP Mori', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: clamp(2.5rem, 10vw, 20rem);
    line-height: 0.7;
    max-width: 100%;
    text-align: center;
    color: #006DFF;
    padding: 4rem 2rem;
    will-change: transform, clip-path, opacity;
    backface-visibility: hidden;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 48px 0;
}
 
.projects-grid a {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  clip-path: inset(0% 0% 0% 0%); 
}
 
.projects-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
}
 
.projects-grid a:hover img {
  transform: scale(1.1);
  opacity: 2;
}
 
.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
 
.projects-grid a:hover .project-info {
  transform: translateY(0);
}
 
.project-info .num {
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
 
.project-info .title {
  font-size: clamp(16px, 1.2vw, 20px);
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
}
 
.project-info .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
 
.project-info .tags p {
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 500;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  padding: 5px 12px;
  margin: 0;
  white-space: nowrap;
}
 
.btn-all {
  display: block;
  width: fit-content;
  text-decoration: none;
  margin: 4rem auto;
  padding: 16px 48px;
  background-color: #111;
  color: #fff;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: .08em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.3s ease-out, box-shadow 0.3s ease-out;
}
 
.btn-all:hover {
  background-color: #333;
  transform: scale(1.02); 
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); 
}











/* --- All Projects Section -------------------------------------------- */

.project-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 40px;
  margin: 4rem 2rem;
}
 
.project-header h2 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  line-height: 1;
  margin: 0;
}
 
.project-meta {
  padding-top: 12px;
}
 
.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
 
.project-tags p {
  font-size: clamp(10px, 0.9vw, 12px);
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0;
}
 
.project-meta p {
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
}
 
.project-meta a {
  position: relative;
  font-size: clamp(12px, 1vw, 14px);
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-meta a:hover {
  color: #006DFF;
}

.project-meta a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #006DFF;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.project-meta a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
 
/* ── Hero Image Full Width ── */
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
  will-change: transform, opacity;
}
 
/* ── Project Images Grid ── */
.project-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
 
/* Full Width Inside Grid */
.project-imgs .full {
  grid-column: 1 / -1;
}
 
.project-imgs > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  will-change: transform, opacity;
}

.project-imgs video {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9; 
  will-change: transform, opacity;
}
 
/* ── Scroll Next ── */
.scroll-next, a.scroll-next {
  position: relative;
  width: fit-content;
  margin: 80px auto 40px;
  display: block;
  will-change: transform, opacity;
}

.scroll-next::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #006DFF;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.scroll-next:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Stack Images */
.stack {
  display: flex;
  flex-direction: column;
  line-height: 0;
  gap: 8px; 
}
 
.stack img {
  width: 100%;
  height: auto;
  display: block;
}











/* --- About Section -------------------------------------------- */
.aboutmain {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 32px;
  gap: 40px;
  margin: 4rem 0rem;
  overflow: hidden;
}

#p5-about-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.about-content {
  position: relative;
  z-index: 2;
}
 
.aboutmain h2 {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 600;
  color: #006DFF;
  margin-bottom: 16px;
}
 
.aboutmain p {
  font-size: clamp(12px, 1vw, 14px);
  color: #006DFF;
  line-height: 1.6;
  max-width: 420px;
  letter-spacing: 0.015em;
}

.aboutsocials {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 48px;
}
 
.aboutsocials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid #006DFF;
  border-radius: 8px;
}
 
.aboutsocials a:hover { background: #f0f4ff; }
 
.about-blue-icon {
  display: block;
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease;
}

.aboutsocials a:hover .about-blue-icon {
  opacity: 0.7; 
}

.aboutbanner-img {
  width: 280px;
  min-height: 260px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  position: relative;
  z-index: 2;
}

/* --- About Flowers Gallery --- */
.about-flowers-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 12px;
    width: 100%;
    margin-top: 0rem;
}

.about-flowers-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* GPU Acceleration properties */
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  
}

.about-flowers-gallery img:hover {
    transform: scale(1.03);
}












/* --- Footer -------------------------------------------- */
footer {
    background: #006DFF;
    color: #FFFFFF;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    font-family: 'Urbanist', sans-serif;
    will-change: transform, opacity;
}
 
.footer-top {
    display: grid;
    grid-template-columns: 5fr 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
}
 
footer p, footer a {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
 
.tagline {
    font-family: 'Urbanist', sans-serif;
    font-size: clamp(1rem, 1.2vw, 2rem);
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-top: 0;
}

footer a:hover { color: #FFFFFF; }
 
.name {
    font-size: clamp(1rem, 10vw, 2rem);
    font-weight: 800;
    margin-top: 0;
    color: #FFFFFF;
}
 
.label {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.875rem;
}
 
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: clamp(1.5rem, 2.5vw, 2rem) 0 0;
}
 
footer img{
    width: 5rem;
    filter: brightness(0) invert(1);
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

footer img:hover {
    transform: rotate(360deg);
}
 
.socials { display: flex; gap: 8px; }
 
.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255,255,255,0.5);
    border-radius: 6px;
}


.socials a:hover { 
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    border-color: #FFFFFF;
}
 
.socials img {
    width: 16px;
    filter: none;
    transition: transform 0.4s ease-out;
}

.socials a:hover img {
    transform: rotate(360deg);
}
 
footer hr {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.25);
}
 
.copy {
    padding: 14px 0;
    font-size: clamp(0.5rem, 1.5vw, 1rem);
    color: rgba(255,255,255,0.65);
}
