/* =========================================================================
   ORYVANT CAPITAL - PREMIUM PORTFOLIO STYLES
   ========================================================================= */

/* --- CSS Variables & Theme Configuration --- */
:root {
    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 80px;
    --border-radius: 4px;
    --border-radius-lg: 8px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Default Dark Mode (Premium Financial Theme) */
[data-theme="dark"] {
    --bg-primary: #050505;
    --bg-secondary: #0f0f0f;
    --bg-tertiary: #191919;

    --accent: #D4AF37;
    /* Gold */
    --accent-hover: #C5A028;
    /* Deep Gold */

    --text-primary: #F3F4F6;
    --text-secondary: #A1A1AA;

    --border: #27272A;
    --border-subtle: #1F1F22;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 10px 30px rgba(212, 175, 55, 0.1);
}

/* Light Mode Variant */
[data-theme="light"] {
    --bg-primary: #F8FAFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F1F5F9;

    --accent: #B08D28;
    /* Darker gold for better contrast */
    --accent-hover: #8F7220;

    --text-primary: #0F172A;
    --text-secondary: #475569;

    --border: #E2E8F0;
    --border-subtle: #F1F5F9;

    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(176, 141, 40, 0.15);
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

img,
svg {
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* --- Typography Helpers --- */
.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.heading-line {
    height: 3px;
    width: 60px;
    background-color: var(--accent);
    margin-top: 1rem;
}

.heading-line.center-line {
    margin: 1rem auto 0;
}

.mt-md {
    margin-top: 1.5rem;
}

.mt-lg {
    margin-top: 2.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-heading);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #050505;
    /* Always dark for contrast against gold */
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #050505;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

[data-theme="light"] .navbar {
    background-color: rgba(248, 250, 252, 0.9);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--accent);
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .moon-icon {
    display: none;
}

[data-theme="light"] .sun-icon {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: calc(var(--nav-height) + 2rem);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.hero-subtitle {
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.hero-title span {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    background-clip: text;
    -webkit-background-clip: text;
}

[data-theme="dark"] .hero-title span {
    background-image: linear-gradient(135deg, var(--accent) 0%, #FFFFFF 100%);
    -webkit-text-stroke: 0;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 2px;
    animation: scroll 2s infinite cubic-bezier(0.15, 0.41, 0.69, 0.94);
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 16px;
    }
}

/* --- About The Firm --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content {
    font-size: 1.125rem;
}

.mission-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
}

.mission-card {
    position: relative;
    overflow: hidden;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent);
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.mission-card:hover::before {
    transform: scaleY(1);
}

.card-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* --- Methodology Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.hover-lift {
    transition: var(--transition-slow);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- Services List --- */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.service-item:hover {
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
}

.service-check {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-details h3 {
    margin-bottom: 0.5rem;
}

.service-details p {
    margin-bottom: 0;
}

/* --- Portfolio Summary --- */
.portfolio-content {
    display: grid;
    grid-template-columns: auto auto;
    gap: 4rem;
    align-items: center;
}

.portfolio-text {
    flex: 1;
}

.firm-tags {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.firm-tags li {
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.portfolio-visual {
    width: 400px;
    flex-shrink: 0;
}

.chart-illustration {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    height: 300px;
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    box-shadow: var(--shadow);
}

.bar {
    background: linear-gradient(180deg, var(--accent) 0%, rgba(212, 175, 55, 0.2) 100%);
    width: 15%;
    border-radius: 4px 4px 0 0;
    flex: 1;
    animation: growUp 1.5s ease-out forwards;
    transform-origin: bottom;
}

.bar-1 {
    height: 40%;
    animation-delay: 0.1s;
}

.bar-2 {
    height: 60%;
    animation-delay: 0.3s;
}

.bar-3 {
    height: 30%;
    animation-delay: 0.5s;
}

.bar-4 {
    height: 85%;
    animation-delay: 0.7s;
}

.line-graph {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    bottom: 2rem;
    z-index: 2;
    pointer-events: none;
}

.line-graph svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

@keyframes growUp {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-tertiary);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-group h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.social-link svg {
    color: var(--accent);
}

.social-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.875rem;
}

/* --- Animations & Interactivity --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .portfolio-content {
        grid-template-columns: 1fr;
    }

    .portfolio-visual {
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links,
    .theme-toggle {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1002;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        padding: 1.5rem;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 1rem;
        z-index: 1000;
    }

    .nav-links.active .nav-link {
        width: 100%;
        padding: 0.75rem 0;
        font-size: 1.125rem;
    }

    .theme-toggle.active {
        display: flex;
        position: absolute;
        top: calc(100% + 1.5rem);
        right: 1.5rem;
        z-index: 1001;
        background-color: var(--bg-tertiary);
        border: 1px solid var(--border);
    }

    .hero-title {
        font-size: 2.75rem;
        word-break: break-word;
        /* Prevent scaling issues */
    }

    .hero-description {
        font-size: 1rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .service-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .card {
        padding: 1.5rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .chart-illustration {
        padding: 1rem;
        height: 250px;
    }

    .hero-scroll-indicator {
        bottom: 1rem;
    }
}