/* =========================================================================
   CSS Variables & Tokens (PractiOne - 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: 1.5rem;
    --space-md: 3rem;
    --space-lg: 6rem;
    --space-xl: 10rem;
}

/* =========================================================================
   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.15;
    letter-spacing: -0.02em;
    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(-4px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3), 0 0 15px rgba(197, 160, 89, 0.1);
}

.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: 1rem 0;
    transition: all var(--transition-fast);
    /* Matte Black Background */
    background: var(--color-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.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);
    display: flex;
    align-items: center;
}

.logo img {
    height: 180px;
    width: auto;
    object-fit: contain;
    margin: -60px 0;
    /* Let it overflow slightly so it doesn't stretch the navbar */
}

.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: 800px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 5% 0;
    /* Added top padding to push content down away from header */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox=\"0 0 200 200\" xmlns=\"http://www.w3.org/2000/svg\"%3E%3Cfilter id=\"noiseFilter\"%3E%3CfeTurbulence type=\"fractalNoise\" baseFrequency=\"0.85\" numOctaves=\"3\" stitchTiles=\"stitch\"/%3E%3C/filter%3E%3Crect width=\"100%25\" height=\"100%25\" filter=\"url(%23noiseFilter)\"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.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(3.5rem, 8vw, 7rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #B0B0B0 100%);
    -webkit-background-clip: text;
    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;
    }
}

/* =========================================================================
   Abstract Neural Form (Hero Section)
   ========================================================================= */
.hero-neural-net {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) scale(1.15);
    /* Scaled slightly larger for desktop */
    width: 600px;
    height: 600px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

.neural-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1.5;
    fill: none;
}

/* Orbiting animations */
.orbit-rotation,
.orbit-container {
    transform-origin: 300px 300px;
    animation: spinOrbit 40s linear infinite;
}

.orbit-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.orbiting-node {
    /* Counter-rotate the nodes so icons stay upright */
    animation: counterSpinOrbit 40s linear infinite, pulseNode 6s ease-in-out infinite alternate !important;
    transform-origin: center center;
}

@keyframes spinOrbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes counterSpinOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

.neural-line {
    stroke-dasharray: 10 15;
    animation: dashAnim 20s linear infinite;
}

.neural-line:nth-child(even) {
    animation-direction: reverse;
    stroke: rgba(255, 255, 255, 0.25);
}

@keyframes dashAnim {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: 1000;
    }
}

.neural-node {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.neural-node:nth-child(1) {
    animation-delay: 0s, 0s;
}

.neural-node:nth-child(2) {
    animation-delay: 0s, 1.5s;
}

.neural-node:nth-child(3) {
    animation-delay: 0s, 3s;
}

.neural-node:nth-child(4) {
    animation-delay: 0s, 2s;
}

.neural-node:nth-child(5) {
    animation-delay: 0s, 0.5s;
}

@keyframes pulseNode {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.02);
        color: rgba(255, 255, 255, 0.3);
    }

    100% {
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
        color: rgba(255, 255, 255, 0.8);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Brain Node Special Styles */
.neural-brain {
    width: 80px;
    height: 80px;
    font-size: 3rem;
    color: var(--color-accent);
    border-color: rgba(197, 160, 89, 0.4);
    background: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.15);
    animation: pulseBrain 6s ease-in-out infinite alternate;
    z-index: 3;
}

.brain-label {
    position: absolute;
    bottom: -35px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    white-space: nowrap;
    opacity: 0.9;
}

@keyframes pulseBrain {
    0% {
        transform: translate(-50%, -50%) scale(1) translateY(8px);
        box-shadow: 0 0 20px rgba(197, 160, 89, 0.1);
        border-color: rgba(197, 160, 89, 0.3);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1) translateY(-8px);
        box-shadow: 0 0 40px rgba(197, 160, 89, 0.3);
        border-color: rgba(197, 160, 89, 0.6);
        color: #E2C78A;
        /* Lighter gold */
    }
}

/* =========================================================================
   Reading Progress Bar
   ========================================================================= */
.reading-progress-container {
    position: absolute;
    bottom: -1px;
    /* positioned right under the header */
    left: 0;
    width: 100%;
    height: 1px;
    /* much thinner bar */
    background: transparent;
    z-index: 1001;
    pointer-events: none;
}

.reading-progress-bar {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--color-accent);
}

/* Mobile sizing handled in main media queries */

/* =========================================================================
   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.05);
    padding: 4rem 3rem;
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.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(-8px);
    background: var(--color-surface-hover);
    border-color: var(--color-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(197, 160, 89, 0.1);
}

.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;
}

.expertise-card ul {
    list-style: none;
    margin-top: 1rem;
}

.expertise-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.expertise-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

/* =========================================================================
   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, #0a0a0a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(197, 160, 89, 0.15);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.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: -40px;
    right: -40px;
    width: 70%;
    height: 70%;
    border: 1px solid rgba(197, 160, 89, 0.4);
    z-index: 1;
    transition: transform var(--transition-slow);
}

.bio-grid:hover .accent-line {
    transform: translate(-10px, -10px);
}

.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;
}

/* =========================================================================
   Premium Services Addon
   ========================================================================= */
.premium-services {
    background-color: var(--color-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.premium-text {
    flex: 1;
}

.premium-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.premium-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
    font-size: 1.1rem;
}

.premium-item:hover {
    border-color: rgba(197, 160, 89, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    background: rgba(10, 10, 10, 0.8);
}

.premium-item i {
    color: var(--color-accent);
    font-size: 1.5rem;
}


/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background-color: #030303;
    padding: 8rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.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) {
    .hero {
        align-items: flex-start;
        padding-top: 20vh;
        /* Pushed further down on tablet/mobile */
    }

    .hero-neural-net {
        top: auto;
        bottom: 5%;
        right: 50%;
        transform: translate(50%, 20%) scale(0.8);
        /* Scaled up on tablet */
        opacity: 0.35;
    }

    .bio-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

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

    .premium-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-bg);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        /* Below navbar container but above content */
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a:not(.btn) {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
        /* Above the mobile menu overlay */
    }

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

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

    .hero {
        padding-top: 15vh;
        /* Larger gap below header on mobile */
    }

    .hero-neural-net {
        bottom: 5%;
        transform: translate(50%, 25%) scale(0.7);
        /* Scaled up on mobile */
        opacity: 0.25;
    }

    .premium-list {
        grid-template-columns: 1fr;
    }

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

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

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