@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=MuseoModerno:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Brand Colors from iamroshanjose.com */
  --bg-color: #0b0b0d;
  --text-primary: #ffffff;
  --text-secondary: #a1a1a6;
  --accent-pink: #FC5185;
  --accent-purple: #673DE6;
  --accent-violet: #F78AFD;
  --accent-purple-deep: #5025D1;

  /* UI Components - Apple-esque Materials */
  --card-bg: rgba(28, 28, 30, 0.45);
  --card-hover: rgba(36, 36, 38, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(11, 11, 13, 0.85);

  /* Fonts */
  --font-heading: 'MuseoModerno', display;
  --font-body: 'Work Sans', sans-serif;
  --font-ui: 'DM Sans', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-lg: 32px;

  /* Animations */
  --spring-easing: cubic-bezier(0.23, 1, 0.32, 1);
  --snap-easing: cubic-bezier(0.4, 0, 0, 1.2);
  --breath-duration: 8s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(103, 61, 230, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(252, 81, 133, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  animation: bg-breath 12s infinite alternate ease-in-out;
}

@keyframes bg-breath {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 10% 5%;
  }
}

/* Typography Hierarchy */
h1 {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(48px, 10vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* Apple-style Glass Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  /* Increased from 60px */
  width: auto;
  filter: brightness(1);
  transition: transform 0.3s var(--spring-easing);
}

@media (max-width: 650px) {
  .logo-img {
    height: 55px;
    /* Balanced for mobile header */
  }
}

.logo-container:hover .logo-img {
  transform: scale(1.05);
}

nav a {
  font-family: var(--font-ui);
  margin-left: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Premium Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}

.bento-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.8s var(--spring-easing), border-color 0.4s;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  perspective: 1000px;
}

/* Solar Border Beam Effect */
.bento-item::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg at 50% 50%, transparent 0%, transparent 70%, var(--accent-pink) 85%, var(--accent-purple) 95%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s;
  animation: border-rotate 4s linear infinite;
  pointer-events: none;
  z-index: 5;
}

.bento-item:hover::before {
  opacity: 1;
}

@keyframes border-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.bento-item.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.bento-item:hover {
  transform: translateY(-12px) scale(1.02) rotateX(2deg) rotateY(1deg);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 30px rgba(103, 61, 230, 0.15);
  background-color: var(--card-hover);
}

.bento-item>* {
  animation: slow-breath var(--breath-duration) infinite alternate ease-in-out;
}

@keyframes slow-breath {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-3px);
  }
}

/* Face/Image Blending Refinement */
.bento-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center !important;
  /* Force priority for head focus */
  z-index: 0;
  opacity: 0.55;
  filter: contrast(115%) brightness(0.85) saturate(90%);
  transition: transform 1.2s var(--spring-easing), opacity 0.8s, filter 0.8s;
}

.bento-item:hover .bento-img {
  opacity: 0.85;
  filter: contrast(100%) brightness(1) saturate(110%);
  transform: scale(1.08) translateZ(20px);
}

.grad-overlay {
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0) 0%, rgba(11, 11, 13, 0.85) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Bento Utilities */
.span-2 {
  grid-column: span 2;
}

.span-4 {
  grid-column: span 4;
}

.row-2 {
  grid-row: span 2;
}

/* Content Elements */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(252, 81, 133, 0.1);
  color: var(--accent-pink);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid rgba(252, 81, 133, 0.2);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 15px var(--accent-pink);
}

@keyframes pulse {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(252, 81, 133, 0.7);
  }

  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(252, 81, 133, 0);
  }

  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(252, 81, 133, 0);
  }
}

.stat-val {
  font-family: var(--font-heading);
  font-size: clamp(48px, 6vw, 64px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-desc {
  font-family: var(--font-ui);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
}

/* Images & Overlays */


.grad-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(11, 11, 13, 0.95) 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

/* Call to Action */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  color: white;
  padding: 20px 40px;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  box-shadow: 0 20px 40px rgba(103, 61, 230, 0.3);
  transition: transform 0.3s var(--spring-easing), box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px rgba(103, 61, 230, 0.4);
}

/* Residency Tags */
.res-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.res-tag {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: 16px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  font-family: var(--font-ui);
}

.res-tag span {
  color: var(--accent-violet);
  font-weight: 700;
}

/* Header Actions & Buttons */
.header-actions {
  display: flex;
  gap: 12px;
  margin-left: 32px;
}

.header-btn {
  padding: 10px 18px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-radius: 100px;
  transition: all 0.3s var(--spring-easing);
  white-space: nowrap;
}

.booking-btn {
  background: var(--accent-pink);
  color: white;
  box-shadow: 0 4px 15px rgba(252, 81, 133, 0.2);
}

.press-btn {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  transform: translateY(-2px);
  background: #E1306C; /* Instagram Brand Color */
  border-color: #E1306C;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.booking-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-violet);
  box-shadow: 0 8px 25px rgba(247, 138, 253, 0.3);
}

.press-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 800px) {
  .header-actions {
    margin-left: 12px;
    gap: 8px;
  }

  .header-btn {
    padding: 8px 14px;
    font-size: 10px;
  }
}

@media (max-width: 500px) {
  .header-actions {
    margin-left: 8px;
    gap: 6px;
  }

  .header-btn {
    padding: 6px 10px;
    font-size: 9px;
  }
}

/* Animations - Initial Hidden state */
.reveal-init {
  opacity: 0;
  transform: translateY(30px);
}

/* Footer */
footer {
  padding: 100px 0 60px;
  background: #000;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-logo-img {
  height: 65px;
  /* Increased from 50px */
  filter: invert(1);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  font-size: 13px;
  color: #555;
  font-family: var(--font-ui);
}

/* Mobile Adjustments */
@media (max-width: 1000px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .span-4 {
    grid-column: span 2;
  }
}

@media (max-width: 650px) {
  section {
    padding: 60px 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-item {
    padding: 24px;
    min-height: 200px;
  }

  .bento-photo {
    min-height: 520px;
    /* Even taller to force the portrait orientation */
    aspect-ratio: 3 / 4;
  }

  /* Disable 3D tilt on mobile for better stability */
  .bento-item:hover {
    transform: translateY(-8px);
  }

  .span-2,
  .span-4,
  .row-2 {
    grid-column: span 1;
    grid-row: span 1;
  }

  nav {
    display: none;
  }

  h1 {
    font-size: 48px;
    line-height: 1.1;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
  }

  .status-badge {
    margin-bottom: 16px;
    font-size: 11px;
  }
}