/* Reset & Base */
:root {
  --black: #121915;
  --text-color: #241e1e;
  --dark-green: #062f16;
  --medium-blue: #05829e;
  --white: #ffffff;
  --light-blue: #dbf2ff;
  --black-80: rgba(18, 25, 21, 0.8);
  --grey: #f8f8f8;
  
  /* Area Card Colors */
  --bg-rent: #ffdddc;
  --text-rent: #51180d;
  --bg-job: #d6f8d7;
  --text-job: #062f16;
  --bg-booking: #e2f4ff;
  --text-booking: #06222f;
  --bg-events: #e9dafa;
  --text-events: #220b3c;
  --bg-shopping: #fef1d4;
  --text-shopping: #2f2606;
  --bg-food: #d4f7ee;
  --text-food: #0d352b;

  --font-primary: 'Public Sans', Arial, sans-serif;
  --font-display: 'Clash Grotesk', Arial, sans-serif;
}

html {
  overscroll-behavior-y: none; /* Prevent scroll bouncing at the top */
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--black);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 56px;
  line-height: 1.14;
}

h2 {
  font-size: 44px;
  line-height: 1.09;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

/* Fonts */
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/68a72ac06e88a478a408d54a_PublicSans-Regular.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('../fonts/68a72ad3632fdf4b0832f0e2_PublicSans-Medium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Grotesk';
  src: url('../fonts/681c06055006adb5af55b1e9_ClashGrotesk-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

.section {
  padding-bottom: 150px;
}

/* Hero Section */
.hero-section {
  background-image: linear-gradient(#dbf2ff 45%, #fff);
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 116px;
  padding-bottom: 177px;
  position: relative;
  z-index: 2;
  perspective: 900px;
}

.hero-left {
  width: 495px;
  padding-top: 123px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  perspective: 900px;
  align-items: flex-start;
}

.hero-text h1 {
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.66;
}

.btn-install {
  background-color: var(--white);
  color: var(--black-80);
  border-radius: 12px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 3px rgba(0,0,0,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  width: auto;
  min-width: 220px;
  text-align: left;
  justify-content: space-between;
}

.btn-install:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 14px rgba(0,0,0,0.15);
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
}

.btn-icon {
  width: 36px;
  height: 36px;
  margin-left: auto;
}

/* Chrome Icon Spin Animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.btn-install:hover .btn-icon {
  animation: spin 1s linear infinite;
}

.hero-right {
  width: 465px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  transition: transform 0.3s ease;
}

/* Hover interaction: Rotate image slightly on hover of container */
.hero-right:hover .hero-image,
.hero-right:hover .hero-shadow {
  transform: rotate(8deg) scale(1.02);
}

.hero-image {
  width: 380px;
  border-radius: 28px;
  transform: rotate(5deg);
  z-index: 2;
  position: relative;
  margin-right: -24px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-shadow {
  position: absolute;
  width: 370px;
  height: 99%;
  border-radius: 28px;
  transform: rotate(5deg);
  box-shadow: 0 50px 97px rgba(0,0,0,0.4), 0 0 10px rgba(0,0,0,0.25);
  z-index: 1;
  margin-right: -19px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-bg-img {
  position: absolute;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  width: 126.25%;
  max-width: none;
  z-index: 1;
}

/* Areas Grid */
.areas-section {
  margin-top: -89px;
  position: relative;
  z-index: 3;
}

.section-title {
  margin-bottom: 40px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.area-card {
  height: 309px;
  border-radius: 20px;
  padding: 28px 32px;
  border: 2px solid rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.area-card h3 {
  margin-bottom: 0;
}

.area-card.rent { background-color: var(--bg-rent); color: var(--text-rent); grid-column: span 2; }
.area-card.job { background-color: var(--bg-job); color: var(--text-job); }
.area-card.booking { background-color: var(--bg-booking); color: var(--text-booking); perspective: 900px; }
.area-card.events { background-color: var(--bg-events); color: var(--text-events); grid-column: span 2; }
.area-card.shopping { background-color: var(--bg-shopping); color: var(--text-shopping); grid-column: span 2; }
.area-card.food { background-color: var(--bg-food); color: var(--text-food); }

/* Card Specific Images/Content */
.card-content {
  position: absolute;
}

/* Rent Card */
.rent-img-photos {
  top: 119px; left: 29px; width: 292px; z-index: 1;
  transition: transform 0.3s;
}
.rent-group {
  position: absolute; top: 97px; right: 32px; width: 374px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end;
  transition: transform 0.3s;
}
.rent-emoji { width: 73px; margin-bottom: -10px; margin-right: 90px; position: relative; z-index: 3; }
.rent-card-ui { width: 100%; border-radius: 16px; box-shadow: 0 41px 114px rgba(0,0,0,0.4); }

.area-card.rent:hover .rent-img-photos { transform: rotate(-12deg) translateY(-30px); }
.area-card.rent:hover .rent-group { transform: rotate(8deg) translateY(-40px); }

/* Job Card */
.job-card-1 {
  top: 191px; left: 29px; width: 305px; z-index: 3;
  border-radius: 13px; box-shadow: 0 33px 93px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.job-card-2 {
  top: 153px; right: 83px; width: 278px; z-index: 2;
  border-radius: 12px; transform: rotate(-8.77deg);
  box-shadow: 0 30px 85px rgba(0,0,0,0.4);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.job-card-2 img { position: absolute; top: 0; left: 0; width: 100%; }

/* Job Card Hover Interaction */
.area-card.job:hover .job-card-1 {
  transform: translateY(10px) rotate(8deg); z-index: 1;
}
.area-card.job:hover .job-card-2 {
  transform: translate(70px, 0) rotate(3deg); z-index: 3;
}

/* Booking Card */
.booking-img {
  top: 145px; left: 35px; width: 340px;
  border-radius: 16px; transform: rotate(-10.32deg);
  box-shadow: 0 40px 111px rgba(0,0,0,0.4);
  transition: all 0.3s;
  transform-style: preserve-3d;
}
.area-card.booking:hover .booking-img {
  transform: scale(0.95) rotateX(30deg) rotate(-10.32deg);
}

/* Events Card */
.events-rows {
  position: absolute; top: 133px; left: 0; width: 100%;
  display: flex; flex-direction: column; gap: 10px;
}
.event-row { 
  display: flex; gap: 10px; perspective: 900px;
}
.event-row.r1 { padding-left: 15px; }
.event-row.r2 { margin-left: -37px; }
.event-row.r3 { padding-left: 15px; }
.event-img {
  width: 366px; border-radius: 26px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.1);
  transition: transform 0.3s, opacity 0.3s, z-index 0s;
  transform: perspective(500px);
}

/* World Events Dimming Interaction */
.events-rows:hover .event-img { opacity: 0.3; }
.events-rows .event-img:hover { 
  opacity: 1; 
  transform: scale(1.05); 
  z-index: 2; 
  box-shadow: 0 0 40px rgba(0,0,0,0.2); 
}

/* Shopping Card */
.shop-img-1 {
  bottom: 16px; right: 20px; width: 350px; z-index: 4;
  border-radius: 15px; box-shadow: 0 38px 107px rgba(0,0,0,0.4);
  transition: transform 0.4s;
}
.shop-img-2 {
  bottom: 88px; right: 35px; width: 314px; z-index: 3;
  border-radius: 15px; transform: rotate(3.5deg);
  box-shadow: 0 38px 107px rgba(0,0,0,0.4);
  transition: transform 0.4s;
}
.shop-bg {
  bottom: -24px; left: 28px; width: 336px; z-index: 1;
  border-radius: 15px;
}
.shop-emoji-group {
  position: absolute; bottom: 10px; left: 13px; width: 73px; z-index: 4;
}
.shop-emoji-group img:nth-child(1) {
  position: relative;
  z-index: 1;
}
.shop-emoji-group img:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

/* Hover States for Shopping */
.area-card.shopping:hover .shop-img-1 { transform: translateY(30px) rotate(8deg); z-index: 2; }
.area-card.shopping:hover .shop-img-2 { transform: scale(1.1) rotate(-7deg); }

/* Food Card */
.food-content { 
  top: 128px; left: 16px; width: 277px; 
  transition: transform 0.3s ease;
}
.food-card-img { width: 100%; border-radius: 15px; transform: rotate(-6deg); box-shadow: 0 22px 83px rgba(0,0,0,0.25); }
.food-emoji { width: 59px; margin-top: 4px; margin-left: 109px; }

/* Food Card Interaction */
.area-card.food:hover .food-content {
  transform: translateY(-10px) rotate(2deg) scale(1.05);
}

/* Access Section */
.access-section {
  padding-bottom: 150px;
  padding-top: 150px; 
}

.access-wrapper {
  display: flex;
  margin-top: 120px;
}
.access-left { width: 384px; padding-right: 60px; }
.access-right {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 24px;
}
.access-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.icon-40 { width: 40px; height: 40px; }

/* CTA Section */
.cta-section { padding-bottom: 124px; }
.cta-box {
  background-color: var(--light-blue);
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: 20px;
  padding: 83px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.cta-box h2, .cta-box .btn-install { 
  position: relative; z-index: 2;
}
.cta-box h2 { max-width: 440px; }

/* Balls Animation Container */
.balls-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.balls-container {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
}
.ball {
  position: absolute;
  width: 100%;
  top: 0; left: 0;
}

/* Footer */
.footer {
  padding-bottom: 40px;
}
.footer-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 91px;
  border-bottom: 1px solid rgba(18,25,21,0.1);
}
.opacity-20 { opacity: 0.2; }
.video-thumbnail {
  width: 98px; height: 64px;
  position: relative;
  transition: transform 0.2s;
}
.video-thumbnail:hover { transform: scale(1.2); }
.video-img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; transform: rotate(6deg); }
.play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 28px; }

.footer-bottom {
  padding-top: 74px;
  position: relative;
}
.footer-image-wrapper {
  position: relative;
  width: 100%;
}
.footer-logo-img { width: 100%; display: block; }

.footer-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.footer-copyright-wrapper {
  position: absolute;
  top: 24px;
  left: 372px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}

.footer-links-wrapper {
  position: absolute;
  top: 128px;
  left: 371px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}

.footer-text {
  font-size: 14px;
  line-height: 1.43;
  color: var(--black);
}

.footer-link {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.43;
  color: var(--black-80);
  text-decoration: none;
  transition: opacity 0.3s;
}
.footer-link:hover { opacity: 0.4; }

.opacity-30 { opacity: 0.3; }

/* Responsive Media Queries */
@media (max-width: 991px) {
  h1 { font-size: 7vw; }
  .container { padding: 0 20px; }
  
  /* Hero */
  .hero-wrapper { flex-direction: column; align-items: center; gap: 60px; padding-top: 60px; }
  .hero-left { width: 100%; max-width: 440px; text-align: center; padding-top: 0; align-items: center; }
  .hero-text { margin-top: 20px; }
  .hero-right { justify-content: center; width: 100%; transform: none; }
  .hero-image { margin-right: 0; width: 70%; transform: none; border-radius: 0; }
  .hero-shadow { margin-right: 0; width: 68%; transform: none; }
  .hero-bg-img { width: 96%; top: 40px; }
  
  /* Disable hover interaction on mobile */
  .hero-right:hover .hero-image,
  .hero-right:hover .hero-shadow {
    transform: none;
  }
  
  /* Buttons */
  .btn-install { text-align: left; }
  .btn-content { align-items: flex-start; }

  /* Areas */
  .areas-grid { grid-template-columns: 1fr; }
  .area-card { height: auto; aspect-ratio: 634/400; padding: 24px; }
  .area-card.rent, .area-card.events, .area-card.shopping { grid-column: span 1; }
  .rent-img-photos { width: 46%; bottom: -19%; top: auto; }
  .rent-group { width: 59%; bottom: -13%; top: auto; right: 5%; }
  .events-rows { top: auto; bottom: -3%; }
  .shop-img-1 { width: 55%; bottom: 5%; right: 3%; }
  .shop-img-2 { width: 50%; bottom: 23%; right: 5.5%; }
  .shop-bg { width: 53%; bottom: -8%; left: 4%; }

  /* Access */
  .access-wrapper { flex-direction: column; gap: 40px; margin-top: 120px; }
  .access-left { width: 100%; padding-right: 0; }
  .access-right { width: 100%; grid-template-columns: repeat(3, 1fr); }
  .access-section { padding-top: 80px; padding-bottom: 120px; }

  /* Footer */
  .footer-top { flex-direction: column; }
  .footer-nav { position: relative; height: auto; margin-top: 20px; }
  .footer-copyright-wrapper { position: static; margin-bottom: 20px; }
  .footer-links-wrapper { position: static; }
  .footer-bottom { padding-bottom: 60px; }
}

@media (max-width: 767px) {
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }
  .access-right { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-bottom: 74px; }
  .footer-nav { 
    display: flex; 
    justify-content: space-between; 
    flex-direction: row; 
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 18px; }
  .section { padding-bottom: 120px; }
  .balls-wrapper {
    width: 150%;
    height: 150%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .balls-container { width: 100%; }
}
