/* 
 * Anika Sayeema Portfolio - V3 Luxury Theme
 * Theme: "Royal Private Banking" (Deep Emerald, Metallic Gold, Glass)
 */

:root {
    /* Colors - Royal Palette */
    --emerald-deep: #0B1C13;
    --emerald-mid: #142B1F;
    --emerald-light: #1E3A2B;

    --gold-metallic: linear-gradient(135deg, #BF953F 0%, #FCF6BA 45%, #B38728 50%, #FBF5B7 100%);
    --gold-text: #D4AF37;
    --gold-dim: #AA8C49;

    --parchment: #F4F1EA;
    --white-glass: rgba(255, 255, 255, 0.95);

    /* Backgrounds */
    --bg-royal: radial-gradient(circle at 50% 0%, #193325 0%, #0B1C13 100%);
    --bg-alt: rgba(255, 255, 255, 0.02);
    /* Alternating section bg */

    /* Fonts */
    --font-display: "Cinzel", serif;
    --font-body: "Inter", sans-serif;
    --font-mono: "IBM Plex Mono", monospace;

    /* Spacing - Gallery Scale */
    --section-gap: 120px;
    --header-height: 90px;

    /* Effects */
    --glass: blur(12px);
    --shadow-luxury: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    --border-gold: 1px solid rgba(191, 149, 63, 0.3);

    --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
    /* Custom easeOutQuint */
}

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

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

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-royal);
    color: var(--parchment);
    line-height: 1.7;
    position: relative;
}

/* Luxury Grain Overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Utilities */
.text-center {
    text-align: center;
}

.bg-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Typography - Magazine Style */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--parchment);
    font-weight: 400;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: -60px;
    position: relative;
    display: inline-block;
}

/* Gold Underline Decoration */
/* Section Divider (Icon + Lines) */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 60px;
    width: 100%;
}

.section-divider .line {
    height: 1px;
    width: 60px;
    background: var(--gold-metallic);
    opacity: 0.8;
}

.section-divider .icon {
    color: var(--gold-text);
    width: 16px;
    height: 16px;
    opacity: 0.9;
}

.text-gold {
    background: var(--gold-metallic);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.text-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

/* Layout Containers */
.container {
    width: 88%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

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

/* Buttons - Magnetic Feel */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.6s var(--ease-luxury);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    text-decoration: none;
}

.btn-primary {
    background: transparent;
    color: var(--gold-text);
    border: 1px solid rgba(191, 149, 63, 0.5);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-metallic);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-luxury);
}

.btn-primary:hover {
    color: var(--emerald-deep);
    border-color: #BF953F;
}

.btn-primary:hover::before {
    transform: translateX(0);
}

/* Navigation - Split Layout */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.5s ease;
}

.header.scrolled {
    background: rgba(11, 28, 19, 0.9);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid rgba(191, 149, 63, 0.1);
    padding: 10px 0;
}

.nav-split-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.nav-group {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--parchment);
    opacity: 0.7;
    position: relative;
    text-decoration: none;
    transition: 0.3s;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--gold-text);
}

/* Logo - Center (No Shine) */
.logo-center {
    position: relative;
    height: 80px;
    width: 80px;
    /* Bigger Logo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-luxury);
}

.logo-center img {
    height: 100%;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(191, 149, 63, 0.3));
}

.logo-center:hover {
    transform: scale(1.1);
}

/* Scroll Top Arrow */
#scrollTop {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold-metallic);
    color: var(--emerald-deep);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease-luxury);
    z-index: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

#scrollTop.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#scrollTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(191, 149, 63, 0.6);
}

/* Hero - Asymmetric */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.hero-crest-bg {
    position: absolute;
    right: -5%;
    top: 20%;
    width: 50vw;
    opacity: 0.05;
    pointer-events: none;
    animation: rotateSlow 60s linear infinite;
}

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

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

/* Cards - Glassmorphism & Gold Corners */
.luxury-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    position: relative;
    transition: transform 0.6s var(--ease-luxury), background 0.6s;
    display: flex;
    flex-direction: column;
}

.luxury-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(191, 149, 63, 0.3);
    box-shadow: var(--shadow-luxury);
}

/* Gold Corners Effect */
.luxury-card::before,
.luxury-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    transition: 0.4s var(--ease-luxury);
    opacity: 0;
    pointer-events: none;
}

.luxury-card::before {
    top: -1px;
    left: -1px;
    border-top: 2px solid var(--gold-text);
    border-left: 2px solid var(--gold-text);
}

.luxury-card::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 2px solid var(--gold-text);
    border-right: 2px solid var(--gold-text);
}

.luxury-card:hover::before,
.luxury-card:hover::after {
    opacity: 1;
}


.luxury-card-compact {
    padding: 30px;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--gold-text);
    filter: drop-shadow(0 0 10px rgba(191, 149, 63, 0.3));
}

.card-image-frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(191, 149, 63, 0.2);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.6s;
}

.luxury-card:hover .card-image-frame img {
    transform: scale(1.05);
    opacity: 1;
}

.tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    border: 1px solid rgba(191, 149, 63, 0.3);
    padding: 4px 8px;
    color: var(--gold-dim);
}

/* Grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Case Study Expansion */
#case-studies .grid-2 {
    max-width: 100%;
    /* Ensure full width */
    gap: 40px;
}

#case-studies .luxury-card {
    min-height: 450px;
    /* Taller for impact */
    justify-content: space-between;
}

/* Enhanced Credentials Layout */
.credentials-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.credential-header {
    font-size: 1.5rem;
    color: var(--gold-text);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 12px;
    display: inline-block;
    width: 100%;
}

.edu-card {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--gold-dim);
    padding: 24px 30px;
    margin-bottom: 24px;
    position: relative;
    transition: 0.3s;
}

.edu-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--gold-text);
}


.metrics-strip {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    margin: 60px 0;
}

.metric-item {
    text-align: center;
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item:last-child {
    border: none;
}

.metric-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--gold-text);
    display: block;
}

/* Timeline - Royal */
.royal-timeline {
    border-left: 1px solid rgba(191, 149, 63, 0.3);
    margin-left: 20px;
    padding-left: 40px;
}

.rt-item {
    position: relative;
    margin-bottom: 60px;
}

.rt-marker {
    position: absolute;
    left: -46px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--gold-metallic);
    transform: rotate(45deg);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.5);
}

/* Modals - Glass */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 19, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(8px);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-glass {
    background: rgba(20, 43, 31, 0.95);
    border: 1px solid rgba(191, 149, 63, 0.4);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 60px;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s var(--ease-luxury);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.modal-backdrop.active .modal-glass {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold-text);
    cursor: pointer;
}

/* Video Play Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: 0.3s;
}

.play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--gold-text);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    background: rgba(11, 28, 19, 0.6);
    backdrop-filter: blur(4px);
}

.luxury-card:hover .video-overlay {
    background: rgba(0, 0, 0, 0.1);
}

.luxury-card:hover .play-btn {
    transform: scale(1.1);
    background: var(--gold-text);
    color: var(--emerald-deep);
}

/* Education & List Cards */
.list-card {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
    align-items: baseline;
}

.list-card:last-child {
    border-bottom: none;
}

.award-item {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Highlight Award */
.award-highlight {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.05) 0%, rgba(11, 28, 19, 0.6) 100%);
    border: 1px solid rgba(191, 149, 63, 0.4);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-luxury);
    display: flex;
    gap: 20px;
    align-items: start;
}

.award-highlight:hover {
    transform: translateY(-5px);
    border-color: var(--gold-text);
    box-shadow: 0 10px 30px rgba(191, 149, 63, 0.15);
    background: linear-gradient(135deg, rgba(191, 149, 63, 0.08) 0%, rgba(11, 28, 19, 0.7) 100%);
}

.award-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold-metallic);
}

.award-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-text);
    background: rgba(11, 28, 19, 0.8);
    box-shadow: 0 0 15px rgba(191, 149, 63, 0.2);
}

.award-title-lg {
    color: var(--gold-text);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Scroll Reveal Class */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s var(--ease-luxury);
}

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

/* Mobile Menu Button */
.mobile-toggle {
    display: none;
    /* Desktop hidden */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002;
}

.mobile-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--gold-text);
    transition: 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 19, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--parchment);
    text-decoration: none;
    transition: 0.3s;
}

.mobile-link:hover {
    color: var(--gold-text);
    transform: scale(1.1);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .nav-group {
        display: none;
    }

    /* Hide desktop nav */
    .mobile-toggle {
        display: flex;
    }

    .nav-split-container {
        justify-content: space-between;
        padding: 0 24px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .grid-3,
    .grid-2,
    .credentials-wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .metrics-strip {
        flex-direction: column;
        gap: 40px;
    }

    .metric-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 40px;
    }

    .list-card {
        flex-direction: column;
        gap: 8px;
    }

    /* Modal stack */
    .modal-glass {
        padding: 30px;
        max-height: 80vh;
    }

    #modal-saas>div,
    #modal-cash>div {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
}