/* ============================================ */
/* THEME VARIABLES                              */
/* ============================================ */

:root {
    /* ---- Surface ---- */
    --color-bg:             #0A0A0A;
    --color-bg-alt:         #1A1A1A;
    --color-bg-card:        rgba(255, 255, 255, 0.01);
    --color-bg-card-hover:  rgba(255, 255, 255, 0.02);

    /* ---- Accent ---- */
    --color-accent:         #D4AF37;
    --color-accent-hover:   #E8D5A3;

    /* ---- Text ---- */
    --color-text-heading:   rgba(255, 255, 255, 1.00);
    --color-text:           rgba(255, 255, 255, 0.85);
    --color-text-secondary: rgba(255, 255, 255, 0.60);

    /* ---- Border ---- */
    --color-border:         rgba(255, 255, 255, 0.06);
    --color-border-hover:   rgba(201, 168, 76, 0.20);

    /* ---- Special ---- */
    --color-whatsapp:       #25D366;

    /* ---- Typography ---- */
    --font-display:         'Playfair Display', Georgia, serif;
    --font-body:            'Cormorant Garamond', Georgia, serif;

    /* ---- Transitions ---- */
    --transition-slow:      500ms ease;
    --transition-reveal:    0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================ */
/* BASE & RESETS                                */
/* ============================================ */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    font-size: 18px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
}

::selection {
    background: rgba(212, 175, 55, 0.25);
    color: var(--color-accent-hover);
}

/* ============================================ */
/* NAVBAR                                       */
/* ============================================ */

#navbar {
    background: transparent;
    transition: background var(--transition-slow), backdrop-filter var(--transition-slow);
}

#navbar.scrolled {
    background: var(--color-bg-alt);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* ============================================ */
/* HAMBURGER ANIMATION                          */
/* ============================================ */

.hamburger-lines span:first-child {
    transform-origin: center;
}

.hamburger-lines span:last-child {
    transform-origin: center;
}

.hamburger-open .hamburger-lines span:first-child {
    transform: translateY(3.75px) rotate(45deg);
    width: 1.5rem;
}

.hamburger-open .hamburger-lines span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
    width: 1.5rem;
}

/* ============================================ */
/* MOBILE MENU                                  */
/* ============================================ */

#mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

/* ============================================ */
/* SCROLL REVEAL ANIMATION                      */
/* ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--transition-reveal),
                transform var(--transition-reveal);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================ */
/* SCROLL LINE ANIMATION (hero)                 */
/* ============================================ */

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* ============================================ */
/* SERVICE CARDS                                */
/* ============================================ */

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0), transparent);
    transition: background var(--transition-slow);
}

.service-card:hover::before {
    background: linear-gradient(90deg, transparent, var(--color-border-hover), transparent);
}

/* Subtle shimmer on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(212, 175, 55, 0.03),
        transparent
    );
    transition: left var(--transition-reveal);
}

.service-card:hover::after {
    left: 100%;
}

/* ============================================ */
/* WHATSAPP FLOAT                               */
/* ============================================ */

#whatsapp-float {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow), box-shadow var(--transition-base);
}

#whatsapp-float.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse ring */
#whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.30);
    animation: waPulse 2.5s ease-out infinite;
}

@keyframes waPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ============================================ */
/* RESPONSIVE TWEAKS                            */
/* ============================================ */

@media (max-width: 640px) {
    .service-card {
        padding: 1.25rem 1.5rem;
    }
}

/* ============================================ */
/* NOISE TEXTURE OVERLAY (subtle grain)         */
/* ============================================ */

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}
