/* ===== RESET & ROOT ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gold Palette - matching logo */
    --gold-lightest: #f5e6a3;
    --gold-light: #e8c547;
    --gold: #d4a529;
    --gold-dark: #b8860b;
    --gold-darkest: #8b6914;
    --gold-deep: #6b4f0a;

    /* Dark Theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;

    /* Text */
    --text-primary: #f0e6d2;
    --text-secondary: #a89b8c;
    --text-muted: #6b5f52;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #d4a529, #f5e6a3, #d4a529, #b8860b);
    --gradient-gold-shine: linear-gradient(135deg, #f5e6a3 0%, #d4a529 25%, #b8860b 50%, #d4a529 75%, #f5e6a3 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0d0d0d 100%);

    /* Shadows */
    --shadow-gold: 0 0 30px rgba(212, 165, 41, 0.15);
    --shadow-gold-strong: 0 0 60px rgba(212, 165, 41, 0.25);
    --glow-gold: 0 0 15px rgba(212, 165, 41, 0.4), 0 0 45px rgba(212, 165, 41, 0.1);

    /* Spacing */
    --section-gap: 4rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== GLITTER CANVAS ===== */
#glitterCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ===== LIGHT RAYS ===== */
.light-rays {
    position: fixed;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            rgba(212, 165, 41, 0.03) 10deg,
            transparent 20deg,
            transparent 40deg,
            rgba(212, 165, 41, 0.02) 50deg,
            transparent 60deg,
            transparent 80deg,
            rgba(212, 165, 41, 0.03) 90deg,
            transparent 100deg,
            transparent 120deg,
            rgba(212, 165, 41, 0.02) 130deg,
            transparent 140deg,
            transparent 160deg,
            rgba(212, 165, 41, 0.03) 170deg,
            transparent 180deg,
            transparent 200deg,
            rgba(212, 165, 41, 0.02) 210deg,
            transparent 220deg,
            transparent 240deg,
            rgba(212, 165, 41, 0.03) 250deg,
            transparent 260deg,
            transparent 280deg,
            rgba(212, 165, 41, 0.02) 290deg,
            transparent 300deg,
            transparent 320deg,
            rgba(212, 165, 41, 0.03) 330deg,
            transparent 340deg,
            transparent 360deg);
    pointer-events: none;
    z-index: 0;
    animation: rotateRays 60s linear infinite;
}

@keyframes rotateRays {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* ===== MOUSE SPARKLE ===== */
.mouse-sparkle {
    position: fixed;
    width: var(--size, 4px);
    height: var(--size, 4px);
    background: radial-gradient(circle, var(--gold-light), transparent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: sparkleOut 0.8s ease-out forwards;
}

@keyframes sparkleOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0) translateY(-20px);
        opacity: 0;
    }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ===== LOGO ===== */
.logo-wrapper {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 165, 41, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

.logo {
    width: 220px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(212, 165, 41, 0.4)) drop-shadow(0 0 60px rgba(212, 165, 41, 0.15));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

.divider-diamond {
    font-size: 0.7rem;
    color: var(--gold);
    padding: 0 1rem;
    animation: rotateDiamond 6s ease-in-out infinite;
}

@keyframes rotateDiamond {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(45deg);
    }

    50% {
        transform: rotate(0deg);
    }

    75% {
        transform: rotate(-45deg);
    }
}

/* ===== CONTENT ===== */
.content {
    text-align: center;
    width: 100%;
    animation: fadeIn 1.2s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== TITLE ===== */
.title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin: 0.5rem 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.title-line {
    display: block;
    font-size: 2rem;
    color: var(--text-primary);
    text-shadow: 0 0 20px rgba(212, 165, 41, 0.1);
}

.title-line.accent {
    font-size: 3.2rem;
    font-weight: 900;
    background: var(--gradient-gold-shine);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    filter: drop-shadow(0 0 10px rgba(212, 165, 41, 0.3));
}

@keyframes shimmer {
    from {
        background-position: -200% center;
    }

    to {
        background-position: 200% center;
    }
}

/* ===== SUBTITLE ===== */
.subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 1.5rem auto;
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* ===== INFO CARDS ===== */
.info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: var(--section-gap) 0;
    width: 100%;
}

.info-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid rgba(212, 165, 41, 0.12);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(30px);
}

.info-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 41, 0.05), transparent);
    transition: left 0.7s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: rgba(212, 165, 41, 0.35);
    transform: translateY(-8px);
    box-shadow: var(--shadow-gold);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 165, 41, 0.15), rgba(212, 165, 41, 0.05));
    border: 1px solid rgba(212, 165, 41, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.info-icon i {
    font-size: 1.4rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, rgba(212, 165, 41, 0.3), rgba(212, 165, 41, 0.1));
    box-shadow: var(--glow-gold);
    transform: scale(1.1);
}

.info-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.6rem;
    letter-spacing: 0.08em;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    margin: var(--section-gap) 0 2rem;
    width: 100%;
}

.contact-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(212, 165, 41, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s ease;
    min-width: 340px;
    opacity: 0;
    transform: translateX(-20px);
}

.contact-item.revealed {
    opacity: 1;
    transform: translateX(0);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--gold);
    width: 24px;
    text-align: center;
}

.contact-item span {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.contact-item:hover {
    border-color: var(--gold-dark);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-gold);
    transform: translateX(5px);
}

.contact-item:hover i {
    color: var(--gold-light);
    text-shadow: 0 0 10px rgba(212, 165, 41, 0.5);
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    margin: var(--section-gap) 0 2rem;
    width: 100%;
    text-align: center;
}

.social-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1.5px solid rgba(212, 165, 41, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--gold);
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: scale(0.5);
}

.social-link.revealed {
    opacity: 1;
    transform: scale(1);
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: var(--gradient-gold-shine);
    background-size: 200% auto;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: shimmer 3s linear infinite;
}

.social-link:hover {
    background: rgba(212, 165, 41, 0.1);
    color: var(--gold-light);
    border-color: var(--gold);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--glow-gold);
}

.social-link:hover::before {
    opacity: 1;
}

.social-tooltip {
    position: absolute;
    bottom: -32px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gold-light);
    background: var(--bg-card);
    border: 1px solid rgba(212, 165, 41, 0.2);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    bottom: -38px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: auto;
    padding-top: 3rem;
    text-align: center;
    width: 100%;
    animation: fadeIn 1.5s ease-out 0.8s both;
}

.footer-divider {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
    margin: 0 auto 1.5rem;
}

.footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-tagline {
    margin-top: 0.4rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem !important;
    color: var(--gold-darkest) !important;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-gap: 3rem;
    }

    .container {
        padding: 2rem 1.2rem;
        padding-left: max(1.2rem, env(safe-area-inset-left));
        padding-right: max(1.2rem, env(safe-area-inset-right));
    }

    .logo {
        width: 170px;
    }

    .logo-glow {
        width: 250px;
        height: 250px;
    }

    .title-line {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
    }

    .title-line.accent {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.05rem;
        padding: 0 1rem;
    }

    .divider {
        max-width: 350px;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .info-card {
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Ensure cards are visible on mobile (no intersection observer delay) */
    .info-card,
    .contact-item,
    .social-link {
        opacity: 1;
        transform: none;
    }

    .contact-section {
        margin: var(--section-gap) 0 1.5rem;
    }

    .contact-item {
        min-width: unset;
        width: 100%;
        max-width: 380px;
        padding: 1rem 1.4rem;
        /* Touch-friendly tap target: minimum 44px height */
        min-height: 48px;
    }

    .contact-item i {
        font-size: 1.3rem;
    }

    .social-section {
        margin: var(--section-gap) 0 1.5rem;
    }

    .social-links {
        gap: 1.2rem;
    }

    .social-link {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
    }

    /* Hide tooltip on touch devices */
    .social-tooltip {
        display: none;
    }

    .footer {
        padding-top: 2rem;
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-gap: 2.5rem;
    }

    .container {
        padding: 1.5rem 1rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .logo {
        width: 150px;
    }

    .logo-glow {
        width: 200px;
        height: 200px;
    }

    .logo-wrapper {
        margin-bottom: 1.5rem;
    }

    .title {
        margin: 0.3rem 0;
    }

    .title-line {
        font-size: 1.25rem;
        letter-spacing: 0.08em;
    }

    .title-line.accent {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 0.5rem;
        margin: 1rem auto;
    }

    .divider {
        max-width: 280px;
        margin: 1rem auto;
    }

    .info-section {
        max-width: 100%;
        gap: 0.8rem;
    }

    .info-card {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }

    .info-icon i {
        font-size: 1.2rem;
    }

    .info-card h3 {
        font-size: 1rem;
    }

    .info-card p {
        font-size: 0.82rem;
    }

    .contact-title {
        font-size: 1.3rem;
        letter-spacing: 0.08em;
    }

    .contact-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .contact-info {
        gap: 0.8rem;
    }

    .contact-item {
        max-width: 100%;
        padding: 0.9rem 1.2rem;
        gap: 0.8rem;
        border-radius: 10px;
    }

    .contact-item span {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .social-title {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .footer {
        padding-top: 1.5rem;
    }

    .footer p {
        font-size: 0.75rem;
    }

    .footer-tagline {
        font-size: 0.82rem !important;
    }

    .footer-divider {
        width: 100px;
        margin-bottom: 1rem;
    }
}

/* Extra small mobile */
@media (max-width: 360px) {
    .container {
        padding: 1.2rem 0.8rem;
    }

    .logo {
        width: 130px;
    }

    .logo-glow {
        width: 170px;
        height: 170px;
    }

    .title-line {
        font-size: 1.1rem;
    }

    .title-line.accent {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 0.88rem;
    }

    .contact-title {
        font-size: 1.15rem;
    }

    .contact-item {
        padding: 0.8rem 1rem;
    }

    .contact-item i {
        font-size: 1rem;
        width: 20px;
    }

    .contact-item span {
        font-size: 0.8rem;
    }

    .social-link {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .social-links {
        gap: 0.8rem;
    }
}

/* Reduce motion for users who prefer it & improve mobile performance */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .light-rays {
        display: none;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem 2rem;
    }

    .logo {
        width: 100px;
    }

    .logo-glow {
        width: 140px;
        height: 140px;
    }

    .logo-wrapper {
        margin-bottom: 0.8rem;
    }

    .title-line {
        font-size: 1.2rem;
    }

    .title-line.accent {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin: 0.8rem auto;
    }

    .divider {
        margin: 0.8rem auto;
    }

    .info-section {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .info-card {
        padding: 1.2rem 1rem;
    }

    .footer {
        padding-top: 1rem;
    }
}

/* ===== TOUCH DEVICE ENHANCEMENTS ===== */
@media (hover: none) and (pointer: coarse) {

    /* Disable hover-dependent effects on touch */
    .info-card:hover {
        transform: none;
        border-color: rgba(212, 165, 41, 0.12);
        box-shadow: none;
    }

    .social-link:hover {
        transform: none;
    }

    .contact-item:hover {
        transform: none;
    }

    /* Add active states instead for touch feedback */
    .social-link:active {
        background: rgba(212, 165, 41, 0.15);
        transform: scale(0.95);
        border-color: var(--gold);
    }

    .contact-item:active {
        background: var(--bg-card-hover);
        border-color: var(--gold-dark);
    }

    .info-card:active {
        border-color: rgba(212, 165, 41, 0.3);
        background: linear-gradient(145deg, var(--bg-card-hover), var(--bg-secondary));
    }

    /* Ensure all interactive elements are easy to tap */
    .social-link,
    .contact-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(212, 165, 41, 0.1);
    }
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(212, 165, 41, 0.3);
    color: var(--gold-lightest);
}