@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Obsidian & Deep Navy Palette */
    --bg-color: #030712; /* Deepest almost-black */
    --panel-bg: rgba(15, 23, 42, 0.45); /* Sleek slate glass */
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-highlight: rgba(255, 255, 255, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Consultant Accent (Gold Only) */
    --accent-blue: #d4af37;
    --accent-blue-hover: #b8962e;
    --accent-gold: #d4af37;
    --accent-gold-gradient: linear-gradient(135deg, #d4af37 0%, #fde047 100%);
    --accent-blue-gradient: linear-gradient(135deg, #d4af37 0%, #fde047 100%);
    
    /* Message Bubbles */
    --user-msg: rgba(212, 175, 55, 0.12);
    --user-msg-border: rgba(212, 175, 55, 0.25);
    --ai-msg: rgba(255, 255, 255, 0.04);
    --ai-msg-border: rgba(255, 255, 255, 0.06);

    /* Shadows */
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.02);
    --glow-blue: 0 0 20px rgba(212, 175, 55, 0.2);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(197, 160, 89, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.05), transparent 25%);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dynamic Ambient Glow */
.background-glow {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.8) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(120px);
    opacity: 0.6;
    animation: slowDrift 15s infinite alternate ease-in-out;
}

@keyframes slowDrift {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-48%, -52%) scale(1.05); opacity: 0.7; }
}

/* Chat Container */
.chat-container {
    width: 100%;
    max-width: 950px;
    height: 92vh;
    background: var(--panel-bg);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
}

/* Top Inner Light Reflection */
.chat-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    z-index: 10;
}

/* Header */
.chat-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.6), transparent);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.chat-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Logout Button */
.logout-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Chat Window */
.chat-window {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.chat-window::-webkit-scrollbar { width: 6px; }
.chat-window::-webkit-scrollbar-track { background: transparent; }
.chat-window::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.1);
    border-radius: 10px;
}
.chat-window::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,0.2); }

/* Messages */
.message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    animation: floatUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes floatUp {
    to { opacity: 1; transform: translateY(0); }
}

.user-message { align-self: flex-end; }
.ai-message { align-self: flex-start; }

.message-bubble {
    padding: 18px 24px;
    border-radius: 20px;
    line-height: 1.6;
    font-size: 1rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Code block / Monospace support in bubbles */
.message-bubble pre {
    background: rgba(0,0,0,0.3);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin-top: 10px;
    border: 1px solid var(--glass-border);
}
.message-bubble code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.user-message .message-bubble {
    background: var(--user-msg);
    border: 1px solid var(--user-msg-border);
    border-bottom-right-radius: 6px;
    color: #eff6ff;
    backdrop-filter: blur(10px);
}

.ai-message .message-bubble {
    background: var(--ai-msg);
    border: 1px solid var(--ai-msg-border);
    border-top-left-radius: 6px;
    color: #e2e8f0;
}

.ai-message .message-bubble strong {
    color: #f8fafc;
    font-weight: 600;
}

/* Citations Source Box */
.citations {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
}

.citations strong {
    color: var(--accent-gold);
    display: block;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.citations ul {
    margin-top: 4px;
    padding-left: 16px;
    list-style-type: square;
}
.citations li { margin-bottom: 4px; }

/* Input Area */
.chat-input-area {
    padding: 24px 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.5);
}

#chat-form {
    display: flex;
    gap: 16px;
    position: relative;
    align-items: center;
}

#user-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px 24px;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

#user-input::placeholder {
    color: #64748b;
}

#user-input:focus {
    border-color: rgba(197, 160, 89, 0.5);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(197, 160, 89, 0.1);
    transform: translateY(-1px);
}

#send-btn {
    background: var(--accent-blue-gradient);
    color: white;
    border: none;
    border-radius: 16px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

#send-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
}

#send-btn:active {
    transform: translateY(1px) scale(0.95);
}

#send-btn svg {
    transition: transform 0.3s ease;
}

#send-btn:hover svg {
    transform: translateX(2px) translateY(-2px);
}

/* Typing Indicator */
.typing-indicator {
    padding: 0 32px 16px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-indicator.hidden { display: none; }

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--accent-blue);
    border-radius: 50%;
    animation: wave 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.4s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.2s; }

@keyframes wave {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ---------------- Auth Overlay Styles ---------------- */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.auth-overlay.hidden { display: none; }

.auth-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border-highlight);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-premium);
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50px; right: -50px;
    width: 100px; height: 100px;
    background: var(--accent-blue);
    filter: blur(60px);
    opacity: 0.3;
    border-radius: 50%;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-form input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.auth-form input:focus {
    border-color: rgba(197, 160, 89, 0.5);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
    background: rgba(0, 0, 0, 0.4);
}

.auth-form button {
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.auth-form button:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.auth-form button:active {
    transform: translateY(1px) scale(0.98);
}

.auth-toggle {
    text-align: center;
    margin-top: 28px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-toggle a:hover {
    color: var(--accent-blue);
}

.auth-error {
    margin-top: 20px;
    padding: 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 0.9rem;
    text-align: center;
}

.auth-error.hidden { display: none; }

.auth-warning {
    margin-top: 24px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: #fde047;
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.6;
}

.secondary-btn {
    background: transparent !important;
    border: 1px solid var(--accent-gold) !important;
    color: var(--accent-gold) !important;
    width: 100%;
    margin-top: 16px !important;
}

.secondary-btn:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    box-shadow: none !important;
    color: #fde047 !important;
}

.hidden { display: none !important; }

/* Survey Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-overlay.hidden { display: none; }

.modal-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--glass-border-highlight);
    border-radius: 24px;
    width: 90%;
    max-width: 800px;
    height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-premium);
    animation: scaleIn 0.3s ease-out forwards;
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover { color: #ef4444; }

.modal-body {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.question-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
}

.question-text {
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-primary);
}

.likert-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.likert-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.likert-radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--glass-border-highlight);
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(0,0,0,0.3);
}

.likert-radio:checked {
    border-color: var(--accent-blue);
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.likert-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

.modal-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: flex-end;
}

.primary-btn {
    background: var(--accent-blue-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}
/* Citations Accordion Styles */
.citations-accordion {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.citations-accordion summary {
    cursor: pointer;
    font-size: 0.85em;
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 0.2rem;
    outline: none;
    user-select: none;
    transition: color 0.2s ease;
}

.citations-accordion summary:hover {
    color: var(--text-color);
}

.citations-accordion ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
    font-size: 0.85em;
    color: var(--secondary-text);
}

/* ---------------- Landing Page Styles ---------------- */
.landing-body {
    overflow: auto; /* Allow scrolling if needed on small screens */
    align-items: flex-start; /* Reset flex alignment for landing page */
}

.second-glow {
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4) 0%, transparent 60%);
    width: 50vw;
    height: 50vw;
    top: 20%;
    left: 80%;
    animation: driftReverse 20s infinite alternate ease-in-out;
}

@keyframes driftReverse {
    0% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.4; }
    100% { transform: translate(-60%, -40%) scale(0.9); opacity: 0.7; }
}

.landing-container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
}

.landing-header {
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeInDown 0.8s ease-out forwards;
}

.landing-header .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: var(--accent-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0 100px;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-badge {
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.3);
    color: #60a5fa;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-title .gradient-text {
    background: var(--accent-blue-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 650px;
    font-weight: 300;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-actions {
    margin-top: 16px;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.premium-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border-highlight);
    color: var(--text-primary);
    padding: 20px 40px;
    border-radius: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.premium-cta::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-blue-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.premium-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(197, 160, 89, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    color: #ffffff;
}

.premium-cta:hover::before {
    opacity: 1;
}

.premium-cta svg {
    transition: transform 0.4s ease;
}

.premium-cta:hover svg {
    transform: translateX(4px);
}

.landing-footer {
    padding: 30px 0;
    text-align: center;
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out 1s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .landing-container { padding: 0 24px; }
}

/* ---------------- Portfolio / Multipotentialite Styles ---------------- */
:root {
    --portfolio-bg: #1A1A1A;
    --gold-accent: #C5A059;
    --gold-gradient: linear-gradient(135deg, #C5A059 0%, #E8D08D 50%, #C5A059 100%);
}

.portfolio-body {
    background-color: var(--portfolio-bg);
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
}

.texture-overlay {
    position: fixed;
    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.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.06"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

.portfolio-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
    padding: 0 24px 60px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero */
.portfolio-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 1.2s ease-out;
}

.geometric-logo {
    width: 25vw;
    height: 25vw;
    margin-top: 0px;
    margin-bottom: 20px;
    /* Removed filter because it blocks mix-blend-mode from reaching the background */
}

.geometric-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.signature-container {
    margin-bottom: 0px;
    width: 100vw;
    position: relative;
    left: calc(-50vw + 50%);
}

.signature-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* Turn the black signature into pure white */
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--gold-accent);
    margin-bottom: 24px;
    margin-left: 0.5em;
    text-transform: uppercase;
}

.tagline {
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #cccccc;
    border-top: 1px solid rgba(197, 160, 89, 0.3);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
    padding: 12px 24px;
    display: inline-block;
}

/* Convergence Hub */
.convergence-hub {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    width: 100%;
    margin-bottom: 80px;
}

.hub-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999999;
    width: 160px;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    background: rgba(0,0,0,0.2);
}

.hub-link.main-action {
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.2);
    color: var(--gold-accent);
}

.hub-icon {
    margin-bottom: 16px;
    color: var(--gold-accent);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hub-text {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-align: center;
    line-height: 1.4;
    transition: color 0.4s ease;
}

.hub-link:hover {
    border-color: rgba(197, 160, 89, 0.5);
    background: rgba(197, 160, 89, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hub-link:hover .hub-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.5));
}

.hub-link:hover .hub-text {
    color: #ffffff;
}

/* Footer */
.portfolio-footer {
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: rgba(197, 160, 89, 0.6);
    text-transform: uppercase;
    animation: fadeIn 2s ease-in;
}

/* Image Card Overrides */
.image-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    padding: 0;
    justify-content: flex-end;
    min-height: 140px; /* Ensure it matches the height of other cards */
}

.image-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    z-index: 1;
}

.image-card .overlay-text {
    position: relative;
    z-index: 2;
    padding: 16px;
    width: 100%;
    text-align: center;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(197, 160, 89, 0.3);
}

/* Social Media Cards in Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.social-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 6px;
    color: var(--gold-accent);
    opacity: 0.6;
    transition: all 0.3s ease;
    text-decoration: none;
    background: rgba(26, 26, 26, 0.5);
}

.social-card:hover {
    opacity: 1;
    border-color: rgba(197, 160, 89, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.15);
    background: rgba(197, 160, 89, 0.1);
}

.social-card svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Geometric Carousel Animations */
.spinning-circle {
    animation: rotateSlowly 8s linear infinite;
}

@keyframes rotateSlowly {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .convergence-hub { gap: 16px; }
    .hub-link { width: 140px; }
}

/* ==========================================================================
   Real Estate Property Page Styles
   ========================================================================== */

/* Two Column Layout */
.property-two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .property-two-col {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }
}

/* Hero Section */
.property-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    z-index: 1;
    pointer-events: none; /* Prevent Montserratacting with YouTube controls if they appear */
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 80px;
    text-align: center;
}

.property-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.property-location {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--gold-accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Property Details */
.property-details-section {
    padding: 60px 20px;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 3;
    margin-top: -50px;
}

.property-details-card {
    max-width: 800px;
    width: 100%;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    background: rgba(26, 26, 26, 0.95);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
}

.property-specs {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
}

.spec-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 5px;
}

.spec-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: var(--gold-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.inquiry-btn {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--gold-accent);
    color: var(--gold-accent);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.inquiry-btn:hover {
    background: var(--gold-accent);
    color: #000;
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
}

/* Masonry Gallery */
.property-gallery-section {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.masonry-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .masonry-grid { display: block; column-count: 2; column-gap: 20px; }
}

@media (min-width: 1024px) {
    .masonry-grid { display: block; column-count: 3; column-gap: 20px; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(197, 160, 89, 0.2);
}

.masonry-item img {
    width: 100%;
    display: block;
    object-fit: cover;
}
