@import url('https://fonts.googleapis.com/css2?family=Belanosima&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* Lenis Smooth Scroll Core Styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Core Variables */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f6f6;
  --bg-tertiary: #f0f0f0;
  --text-primary: #000000;
  --text-secondary: #555555;
  --text-tertiary: #969696;
  --border-color: #e5e5e5;
  --max-width: 1200px;
  
  --font-display: 'Belanosima', sans-serif;
  --font-body: 'Manrope', sans-serif;
  
  --spring-transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --hover-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  --header-height: 80px;
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--spring-transition);
}

li {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Typography Utility Classes */
.font-display {
  font-family: var(--font-display);
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid & Layout Containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Global Header (Sticky Navigation) */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

header.site-header.header-hidden {
  transform: translateY(-100%);
}

header.site-header.scrolled {
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

header.site-header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

header.site-header .logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

header.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

header.site-header .nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

header.site-header .nav-link:hover,
header.site-header .nav-link.active {
  color: var(--text-primary);
}

header.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

header.site-header .nav-link:hover::after,
header.site-header .nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

header.site-header .btn-cv {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--text-primary);
  transition: var(--hover-spring);
}

header.site-header .btn-cv:hover {
  background-color: transparent;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Language Switcher Component */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  user-select: none;
}

.lang-switch .lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--hover-spring);
  line-height: 1;
}

.lang-switch .lang-btn:hover {
  color: var(--text-primary);
}

.lang-switch .lang-btn.active {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Mobile Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
  background: transparent;
  border: none;
  z-index: 110;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: var(--spring-transition);
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  header.site-header .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
    transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  }
  
  header.site-header .nav-menu.open {
    right: 0;
  }

  /* Hamburger transform when menu is active */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .badge {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -2px;
  max-width: 1000px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
}

.hero .scroll-down-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 4px;
  margin-top: 10px;
}

.hero .scroll-down-btn svg {
  transition: transform 0.3s ease;
}

.hero .scroll-down-btn:hover svg {
  transform: translateY(4px);
}

/* Project Grid Section */
.projects-section {
  padding: 80px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Project Card */
.project-card {
  display: block;
  background-color: var(--bg-secondary);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--spring-transition);
}

.project-card .img-container {
  width: 100%;
  aspect-ratio: 1.7;
  overflow: hidden;
  background-color: #eaeaea;
  position: relative;
}

.project-card img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card .info {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-card .info h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.project-card .info p {
  font-size: 14px;
  color: var(--text-secondary);
}

.project-card .arrow-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  transition: var(--hover-spring);
}

.project-card .arrow-icon svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* Hover effects */
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.15);
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card:hover .arrow-icon {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.project-card:hover .arrow-icon svg {
  transform: translate(2px, -2px);
}

/* My Story / Designing Success Banner Section (Matching Framer reference) */
.story-section {
  padding: 100px 0;
  background-color: transparent;
}

.story-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.story-tag-col {
  flex: 0 0 160px;
}

.story-tag-col .tag {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.story-title-col {
  flex: 1;
  max-width: 680px;
}

.story-title-col h2 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -1.2px;
}

.story-title-col h2 .highlight {
  color: #000000;
  font-weight: 500;
}

.story-title-col h2 .muted {
  color: #888888;
  font-weight: 400;
}

.story-btn-col {
  flex: 0 0 auto;
}

.story-btn-col .btn-story {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f2f2f2;
  color: #000000;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.story-btn-col .btn-story:hover {
  background-color: #e5e5e5;
  transform: translateY(-2px);
}

.story-btn-col .btn-story svg {
  transition: transform 0.3s ease;
}

.story-btn-col .btn-story:hover svg {
  transform: translate(2px, -2px);
}

@media (max-width: 992px) {
  .story-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .story-tag-col {
    flex: auto;
  }
  .story-title-col h2 {
    font-size: 32px;
    letter-spacing: -0.8px;
  }
}

/* Contact Footer CTA (Let's start creating together) */
/* Unified Contact Footer Section (Matching Framer Reference Site) */
/* Full-Width Dark Contact Footer Section (Edge-to-Edge matching Framer reference site) */
footer.site-footer {
  width: 100%;
  background-color: #000000;
  color: #ffffff;
  padding: 100px 0 60px 0;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  border-top: none;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  width: 100%;
}

/* Left CTA area */
.footer-cta-left {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-cta-left .cta-tag {
  font-size: 15px;
  font-weight: 500;
  color: #888888;
  margin-bottom: 28px;
  letter-spacing: -0.2px;
}

.footer-cta-left .cta-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #ffffff;
  margin-bottom: 48px;
}

.footer-cta-left .btn-talk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #000000;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #ffffff;
  transition: var(--hover-spring);
}

.footer-cta-left .btn-talk:hover {
  background-color: transparent;
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-cta-left .btn-talk svg {
  transition: transform 0.3s ease;
}

.footer-cta-left .btn-talk:hover svg {
  transform: translate(2px, -2px);
}

/* Right Nav & Social Links */
.footer-links-right {
  display: flex;
  gap: 100px;
  padding-top: 10px;
}

.footer-nav-col,
.footer-social-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav-col a,
.footer-social-col a {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-nav-col a:hover,
.footer-social-col a:hover {
  color: #aaaaaa;
  opacity: 0.8;
  transform: translateX(4px);
}

.footer-social-col a svg {
  transition: transform 0.3s ease;
}

.footer-social-col a:hover svg {
  transform: translate(2px, -2px);
}

/* Bottom copyright row */
.footer-bottom-row {
  margin-top: 120px;
  display: flex;
  align-items: center;
  width: 100%;
}

.footer-bottom-row .copyright {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
}

/* Staggered Scroll Animation Rules for Footer Items */
.footer-reveal-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-reveal-item.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.15s; }
.delay-3 { transition-delay: 0.25s; }
.delay-4 { transition-delay: 0.35s; }
.delay-5 { transition-delay: 0.45s; }
.delay-6 { transition-delay: 0.55s; }

/* Responsive adjustments */
@media (max-width: 992px) {
  footer.site-footer {
    padding: 80px 0 50px 0;
    margin-top: 80px;
  }
  .footer-top-row {
    flex-direction: column;
    gap: 48px;
  }
  .footer-cta-left .cta-title {
    font-size: 42px;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
  }
  .footer-links-right {
    gap: 60px;
    padding-top: 0;
  }
  .footer-bottom-row {
    margin-top: 60px;
  }
}

@media (max-width: 600px) {
  footer.site-footer {
    padding: 60px 0 40px 0;
    margin-top: 60px;
  }
  .footer-cta-left .cta-title {
    font-size: 34px;
    letter-spacing: -1px;
  }
  .footer-links-right {
    flex-direction: column;
    gap: 32px;
  }
  .footer-bottom-row {
    margin-top: 48px;
  }
}

/* About Page Styles */
.about-page-hero {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 40px;
}

.about-page-hero h1 {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.15;
  margin-bottom: 24px;
}

.about-intro-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 900px;
}

@media (max-width: 768px) {
  .about-page-hero h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .about-intro-text {
    font-size: 17px;
  }
}

.about-sections {
  padding: 40px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 0;
  }
}

.about-grid h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.about-grid .desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-grid .desc p {
  margin-bottom: 20px;
}

.about-grid .desc p:last-child {
  margin-bottom: 0;
}

/* Contact Page Styles */
.contact-hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 40px;
}

.contact-hero h1 {
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.contact-hero p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 700px;
}

@media (max-width: 768px) {
  .contact-hero h1 {
    font-size: 36px;
  }
  .contact-hero p {
    font-size: 16px;
  }
}

.contact-details {
  padding: 40px 0 80px 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.contact-info-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 20px;
  transition: var(--spring-transition);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02);
}

.contact-info-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.contact-info-card .value {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-all;
}

/* Project Detail Page Layout */
.project-detail-hero {
  padding-top: calc(var(--header-height) + 80px);
  padding-bottom: 60px;
}

.project-detail-hero .meta-badge {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  display: block;
}

.project-detail-hero h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 32px;
  max-width: 800px;
}

@media (max-width: 768px) {
  .project-detail-hero h1 {
    font-size: 32px;
  }
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
  .project-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.project-meta-item span.label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 6px;
}

.project-meta-item span.value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-content {
  padding: 60px 0;
}

.project-banner-img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 60px;
  aspect-ratio: 1.8;
}

.project-story-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 768px) {
  .project-story-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.project-story-section h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.project-story-section .text-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.project-story-section .text-body p {
  margin-bottom: 24px;
}

.project-story-section .text-body p:last-child {
  margin-bottom: 0;
}

/* Animations CSS classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Custom Text Reveal / Letter Animation classes */
.word-reveal span {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.word-reveal.active span {
  opacity: 1;
  transform: translateY(0);
}

/* Curtain / Mask Reveal Animation (Text emerges from behind hidden top/bottom boundary) */
.mask-container {
  overflow: hidden;
  display: block;
}

.mask-container.inline {
  display: inline-block;
}

.mask-content {
  display: block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.mask-container.active .mask-content,
.mask-content.active {
  transform: translateY(0%);
  opacity: 1;
}

