/* =========================================================================
   CSS Variables & Tokens (Eva Riberio - Luxury Consulting Theme)
   ========================================================================= */
:root {
    /* Colors */
    --color-bg: #0A0A0A;
    /* Deep Charcoal / Matte Black */
    --color-surface: #141414;
    /* Slightly lighter surface */
    --color-surface-hover: #1C1C1C;
    --color-accent: #C5A059;
    /* Champagne Gold */
    --color-accent-hover: #D8B263;
    --color-text-main: #F8F8F8;
    /* Pearl White */
    --color-text-muted: #A0A0A0;
    /* Subtle grey for readable subtext */
    --color-border: rgba(197, 160, 89, 0.2);
    --color-glass: rgba(10, 10, 10, 0.65);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-padding {
    padding: var(--space-xl) 0;
}

/* =========================================================================
   Typography Utilities
   ========================================================================= */
.section-label {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-lg);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
}

.btn-secondary,
.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover,
.btn-outline:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-fast);
    /* Glassmorphism setup */
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.nav-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-main);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a:not(.btn) {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.75rem 1.5rem;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    background: var(--color-accent);
    animation: floatShapes 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.shape-1 {
    width: 45vw;
    height: 45vw;
    max-width: 700px;
    max-height: 700px;
    top: -10%;
    right: -10%;
}

.shape-2 {
    width: 35vw;
    height: 35vw;
    max-width: 500px;
    max-height: 500px;
    bottom: -10%;
    left: -5%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.shape-3 {
    width: 25vw;
    height: 25vw;
    max-width: 400px;
    max-height: 400px;
    top: 40%;
    left: 40%;
    opacity: 0.1;
    animation-delay: -14s;
    animation-duration: 18s;
}

@keyframes floatShapes {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-8%, 8%) scale(1.1);
    }

    66% {
        transform: translate(5%, -5%) scale(0.9);
    }

    100% {
        transform: translate(2%, 2%) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #FFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-muted);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.scroll-line {
    width: 100%;
    height: 0;
    background: var(--color-accent);
    animation: scrollDown 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes scrollDown {
    0% {
        height: 0;
        top: 0;
        position: absolute;
    }

    50% {
        height: 100%;
        top: 0;
        position: absolute;
    }

    100% {
        height: 0;
        top: 100%;
        position: absolute;
    }
}

/* =========================================================================
   Expertise Section
   ========================================================================= */
.expertise {
    background-color: var(--color-bg);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.expertise-card {
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3rem 2rem;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.expertise-card:hover {
    transform: translateY(-5px);
    background: var(--color-surface-hover);
    border-color: var(--color-border);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.expertise-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.expertise-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* =========================================================================
   Bio Section (Magazine Feature)
   ========================================================================= */
.bio {
    background-color: #0d0d0d;
}

.bio-grid {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: 6rem;
    align-items: center;
}

.bio-image-wrapper {
    position: relative;
}

.bio-image-placeholder {
    aspect-ratio: 3/4;
    background: linear-gradient(45deg, #111, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.placeholder-text {
    font-family: var(--font-heading);
    color: var(--color-text-muted);
    letter-spacing: 2px;
    font-style: italic;
    opacity: 0.5;
}

.accent-line {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--color-accent);
    z-index: 1;
}

.bio-content {
    max-width: 600px;
}

.bio-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    line-height: 1.8;
}

.signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-top: 3rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #050505;
    padding: 6rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--color-accent);
}

.footer-brand p {
    color: var(--color-text-muted);
}

.footer-links h4,
.footer-social h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.footer-link {
    display: block;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.footer-link:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.legal-links a {
    margin-left: 2rem;
}

.legal-links a:hover {
    color: var(--color-text-main);
}

/* =========================================================================
   Animations & Reveal
   ========================================================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

.fade-up {
    transform: translateY(50px);
}

.fade-right {
    transform: translateX(-50px);
}

.fade-left {
    transform: translateX(50px);
}

/* Apply staggered delays if defined */
.active[style*="--delay"] {
    transition-delay: var(--delay);
}

/* =========================================================================
   Media Queries
   ========================================================================= */
@media (max-width: 992px) {
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .bio-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links a {
        margin: 0 1rem;
    }
}