/* ── Custom Properties ── */
:root {
    --charcoal: #1A1D23;
    --charcoal-dark: #13161B;
    --coral: #FF6B6B;
    --coral-dark: #E85555;
    --offwhite: #F5F3F0;
    --offwhite-dim: #E8E5E0;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--charcoal);
    color: var(--offwhite);
}

/* ── Tailwind Config Override ── */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* ── Custom Theme Colors ── */
.bg-charcoal { background-color: var(--charcoal); }
.bg-charcoal-dark { background-color: var(--charcoal-dark); }
.bg-coral { background-color: var(--coral); }
.bg-coral-dark { background-color: var(--coral-dark); }
.text-coral { color: var(--coral); }
.text-coral-dark { color: var(--coral-dark); }
.text-offwhite { color: var(--offwhite); }

/* ── Navbar ── */
#navbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(26, 29, 35, 0.95);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ── Mobile Menu ── */
#mobileMenu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobileMenu.open .mobile-link {
    animation: slideIn 0.4s ease forwards;
}

#mobileMenu.open .mobile-link:nth-child(1) { animation-delay: 0.05s; }
#mobileMenu.open .mobile-link:nth-child(2) { animation-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(3) { animation-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(4) { animation-delay: 0.2s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Geometric Shapes ── */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    bottom: 100px;
    left: -60px;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.06) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 107, 0.06);
    border: 2px solid rgba(255, 107, 107, 0.15);
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-rect-2 {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    top: -50px;
    right: 10%;
    transform: rotate(30deg);
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 107, 0.05);
    top: 20%;
    right: 15%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(255, 107, 107, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 20%;
    left: 10%;
}

.geo-dots-2 {
    width: 150px;
    height: 150px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 16px 16px;
    top: 10%;
    right: 5%;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* ── Room Cards ── */
.room-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    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; }

/* ── Selection ── */
::selection {
    background: var(--coral);
    color: white;
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--charcoal-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 107, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 107, 0.6);
}
