/* ===========================
   SUPREMACY.PROPERTIES CSS
   Elegant Property Ownership
   =========================== */

/* Root variables for colors and spacing */
:root {
    --color-void: #1a1a1a;
    --color-gold: #d4af37;
    --color-gold-light: #e6c854;
    --color-white: #ffffff;
    --color-gray: #8f8f8f;
    --color-gray-light: #f5f5f5;
    --color-shadow: #2a2a2a;
    --spacing-unit: 1rem;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-body: 'Lora', serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    line-height: 1.8;
    letter-spacing: 0.02em;
    background-attachment: fixed;
    position: relative;
}

/* Background grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 59px,
        rgba(212, 175, 55, 0.08) 59px,
        rgba(212, 175, 55, 0.08) 60px
    ),
    repeating-linear-gradient(
        90deg,
        transparent,
        transparent 59px,
        rgba(212, 175, 55, 0.08) 59px,
        rgba(212, 175, 55, 0.08) 60px
    );
    pointer-events: none;
    z-index: 1;
}

/* Main container */
.container {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 90%;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--color-white);
    text-transform: uppercase;
    animation: titleRender 6s ease-out forwards;
    overflow: hidden;
}

.hero-title::first-letter {
    animation: charFade 0.1s ease-out;
}

@keyframes titleRender {
    0% {
        opacity: 0;
        filter: blur(4px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes charFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.2vw, 1.6rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--color-gold);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.5s both;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-lines {
    width: 100%;
    max-width: 600px;
    height: 200px;
    margin-top: 2rem;
}

.accent-line-draw {
    animation: lineReveal 1.2s ease-out 0.8s both;
    stroke-linecap: round;
}

@keyframes lineReveal {
    0% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    100% {
        stroke-dasharray: 1000;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* ===========================
   PROPERTY CARDS
   =========================== */

.property-card {
    position: relative;
    width: 90vw;
    margin: 3rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, var(--color-void) 0%, var(--color-shadow) 100%);
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(212, 175, 55, 0.1);
    animation: cardFadeIn 0.6s ease-out forwards;
    opacity: 0;
}

.property-card:nth-child(2) {
    animation-delay: 0s;
    animation-duration: 0.6s;
}

.property-card:nth-child(n+3) {
    animation-delay: 0.2s;
}

@keyframes cardFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card.property-card-central {
    width: 85vw;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    box-shadow: 0 40px 100px rgba(212, 175, 55, 0.15), 
                inset 0 2px 0 rgba(212, 175, 55, 0.2),
                0 0 60px rgba(212, 175, 55, 0.1);
    border-radius: 4px;
}

.property-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-gold);
    animation: borderGrow 0.8s ease-out forwards;
    transform-origin: left;
    opacity: 0;
}

@keyframes borderGrow {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.property-content {
    position: relative;
    z-index: 2;
}

.property-title {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 2rem;
    margin-top: 1rem;
    color: var(--color-white);
    text-transform: uppercase;
    animation: titleSlide 0.6s ease-out forwards;
    opacity: 0;
}

@keyframes titleSlide {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.property-description {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1vw, 1.1rem);
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 65ch;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    letter-spacing: 0.01em;
}

.gold-text {
    color: var(--color-gold);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    animation: gridReveal 0.8s ease-out 0.5s both;
}

@keyframes gridReveal {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-item {
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.03);
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.property-item:hover {
    background: rgba(212, 175, 55, 0.08);
    border-left-color: var(--color-gold);
    transform: translateX(8px);
}

.property-item-title {
    font-family: var(--font-sans);
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.property-item-text {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 0.95vw, 1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.01em;
}

/* ===========================
   ACCENT LINES & ELEMENTS
   =========================== */

.accent-line {
    width: 100%;
    height: 150px;
    margin: 2rem auto;
    display: block;
    animation: lineAppear 0.8s ease-out forwards;
    opacity: 0;
}

.accent-line-animate {
    animation: linePulse 3s ease-in-out infinite;
    stroke-linecap: round;
}

@keyframes lineAppear {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes linePulse {
    0%, 100% {
        stroke-dasharray: 0, 100;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 100, 0;
        stroke-dashoffset: -100;
    }
}

.focal-point-pulse {
    animation: pointPulse 2s ease-in-out infinite;
}

@keyframes pointPulse {
    0%, 100% {
        r: 8px;
        opacity: 1;
    }
    50% {
        r: 12px;
        opacity: 0.6;
    }
}

.accent-line-final {
    width: 100%;
    height: 150px;
    margin: 2rem auto;
    display: block;
}

.accent-line-fade {
    animation: lineFade 2s ease-out forwards;
    stroke-linecap: round;
}

@keyframes lineFade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* ===========================
   NAVIGATION & DEPTH
   =========================== */

.nav-depth {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--color-gold);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-gold);
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.depth-indicator {
    display: inline-block;
    min-width: 80px;
}

.depth-expand {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.depth-expand:hover {
    transform: rotate(180deg);
}

.property-index {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 99;
    background: rgba(26, 26, 26, 0.98);
    border: 2px solid var(--color-gold);
    border-radius: 4px;
    padding: 1.5rem;
    max-width: 200px;
    animation: indexSlide 0.3s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.property-index h3 {
    font-family: var(--font-serif);
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--color-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.property-index ul {
    list-style: none;
}

.property-index li {
    margin-bottom: 0.8rem;
}

.property-index a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: block;
    padding: 0.5rem 0.8rem;
    border-left: 2px solid transparent;
    border-radius: 2px;
    letter-spacing: 0.01em;
}

.property-index a:hover {
    color: var(--color-gold);
    border-left-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.05);
}

@keyframes indexSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   SCROLL INTERACTIONS
   =========================== */

.property-card {
    scroll-margin-top: 100px;
}

/* Text animation on scroll */
@keyframes scrollReveal {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-description.animate-in {
    animation: scrollReveal 0.6s ease-out;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 768px) {
    .property-card {
        width: 95vw;
        padding: 2rem;
        margin: 2rem auto;
    }

    .property-card.property-card-central {
        width: 95vw;
    }

    .property-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-content {
        max-width: 95%;
    }

    .nav-depth {
        bottom: 1rem;
        right: 1rem;
        padding: 0.8rem 1rem;
        font-size: 0.75rem;
    }

    .property-index {
        bottom: 5rem;
        right: 1rem;
        max-width: 180px;
        padding: 1rem;
    }

    .property-title {
        font-size: clamp(1rem, 2.5vw, 1.8rem);
        margin-bottom: 1.5rem;
    }

    .property-description {
        font-size: clamp(0.9rem, 1vw, 1rem);
        margin-bottom: 1.5rem;
    }

    .hero-lines {
        height: 120px;
    }

    .accent-line {
        height: 100px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .property-card {
        width: 98vw;
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 3rem);
        letter-spacing: 0.06em;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }

    .property-item {
        padding: 1rem;
    }

    .property-item-title {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
    }

    .nav-depth {
        padding: 0.6rem 0.8rem;
        font-size: 0.7rem;
    }

    .property-index {
        max-width: 160px;
        padding: 0.8rem;
    }

    .property-index a {
        font-size: 0.85rem;
    }
}

/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode already implemented as default */
@media (prefers-color-scheme: dark) {
    /* Maintains dark aesthetic */
}
