/* ── DESIGN TOKENS ── */
:root {
    --bg: #08090C;
    --surface: #0F1117;
    --surface-2: #161820;
    --border: rgba(255,255,255,0.07);
    --border-hover: rgba(255,255,255,0.15);
    --text: #F0F1F5;
    --text-secondary: #9497A1;
    --text-muted: #4F5266;
    --accent: #C8A96E; /* warm gold */
    --accent-glow: rgba(200, 169, 110, 0.15);
    --glass: #000000;
    --nav-height: 110px;
}

/* ── BASE STYLES ── */
*, *::before, *::after { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND EFFECTS ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 60vh;
    background: radial-gradient(circle at center, rgba(200, 169, 110, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    height: var(--nav-height);
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-brand {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 1100;
}

.nav-logo-mark {
    height: 89px;
    width: auto; /* Keeping aspect ratio, but ensuring height is 89px as requested */
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.btn-nav {
    background: rgba(200, 169, 110, 0.1) !important;
    border: 1px solid var(--accent) !important;
    color: var(--accent) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600 !important;
}

.btn-nav:hover {
    background: var(--accent) !important;
    color: #000 !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ── MOBILE NAV ── */
.hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(135deg); }
.hamburger.open span:nth-child(2) { opacity: 0; left: -60px; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-135deg); }

@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
        padding: 2rem;
        z-index: 1050;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { font-size: 1.5rem; }
}

/* ── COMPONENTS ── */
.btn-primary, .btn-secondary {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    display: inline-block;
}

.btn-primary:hover, .btn-secondary:hover {
    background: #DFC07E;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 169, 110, 0.4);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ── FOOTER ── */
.footer {
    padding: 6rem 6% 3rem;
    background: #050608;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand-name {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.footer-brand-name span { color: var(--accent); }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── REVEAL ANIMATION ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 80px;
    }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .navbar { padding: 0 5%; }
    .nav-logo-mark {
        height: 55px; /* Scaled down for mobile */
    }
}

/* ── CONTACT LAYOUT ── */
.contact-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.contact-left {
    padding: 160px 8% 80px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-left h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.contact-left h1 em { color: var(--accent); font-style: italic; }

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-detail:first-child { border-top: 1px solid var(--border); }

.contact-detail-icon {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.contact-detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ── FORM ── */
.contact-right {
    padding: 160px 8% 80px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    margin-bottom: 3rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
    background: var(--bg);
}

.form-group textarea { min-height: 150px; resize: vertical; }

@media (max-width: 900px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-left { padding: 120px 6% 60px; border-right: none; border-bottom: 1px solid var(--border); }
    .contact-right { padding: 60px 6% 80px; }
    .form-row { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 0; }
}

/* ── MISSION SECTION ── */
.mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border);
}

.mission-left, .mission-right {
    padding: 100px 8%;
}

.mission-left {
    border-right: 1px solid var(--border);
}

.mission-left h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
}

.mission-left h2 em { color: var(--accent); font-style: italic; }

.mission-left p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ── PILLARS (MISSION RIGHT) ── */
.pillar {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.pillar:first-child { border-top: 1px solid var(--border); }

.pillar-num {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.pillar-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.pillar-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── VALUES BAND ── */
.values-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.value-item {
    padding: 60px 8%;
    border-right: 1px solid var(--border);
}

.value-item:last-child { border-right: none; }

.value-icon {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.value-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-body {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── TEAM SECTION ── */
.team-section {
    padding: 100px 8%;
}

.team-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface);
}

.team-avatar {
    position: relative;
    background: var(--surface-2);
    border-right: 1px solid var(--border);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(transparent, var(--bg));
    text-align: center;
}

.team-role {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.team-info {
    padding: 4rem;
}

.team-name {
    font-family: 'DM Serif Display', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.team-bio {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.team-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 3rem;
}

.credential-tag {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
}

/* ── CTA SECTION ── */
.cta-section {
    padding: 120px 8%;
    text-align: center;
    background: radial-gradient(circle at center, var(--surface) 0%, var(--bg) 100%);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.cta-section h2 em { color: var(--accent); font-style: italic; }

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

@media (max-width: 1000px) {
    .mission { grid-template-columns: 1fr; }
    .mission-left { border-right: none; border-bottom: 1px solid var(--border); }
    .values-band { grid-template-columns: 1fr; }
    .value-item { border-right: none; border-bottom: 1px solid var(--border); }
    .team-card { grid-template-columns: 1fr; }
    .team-avatar { height: 400px; border-right: none; border-bottom: 1px solid var(--border); }
    .team-info { padding: 2.5rem; }
}
/* ── CHATBOT ── */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    font-family: 'DM Sans', sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(200, 169, 110, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    animation: float 3s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.robot-eye {
    animation: blink 4s infinite;
    transform-origin: center;
}

@keyframes blink {
    0%, 90%, 100% { transform: scaleY(1); }
    95% { transform: scaleY(0.1); }
}

.chatbot-toggle:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-toggle svg {
    width: 38px;
    height: 38px;
    stroke: #000;
    fill: none;
    stroke-width: 2;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.chatbot-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    padding: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 0.8rem;
    position: relative;
}

.chat-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #4CAF50;
    border: 2px solid var(--surface);
    border-radius: 50%;
}

.chat-header-info h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-primary);
}

.chat-header-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: messageIn 0.3s ease forwards;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.ai {
    background: var(--surface);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--border);
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chat-message.user {
    background: var(--accent);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(200, 169, 110, 0.2);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: 12px;
    border-bottom-left-radius: 2px;
    align-self: flex-start;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(-4px); opacity: 1; }
}

/* Greeting Bubble */
.chat-greeting-bubble {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: var(--accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    border-bottom-right-radius: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(200, 169, 110, 0.3);
    animation: bubblePop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    pointer-events: none;
}

@keyframes bubblePop {
    from { opacity: 0; transform: scale(0.5) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 15px;
}

.chat-action-btn {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-action-btn:hover {
    background: var(--accent);
    color: #000;
}
.chat-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.chat-input {
    flex: 1;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.chat-input:focus {
    border-color: var(--accent);
}

.chat-send {
    background: var(--accent);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-send:hover {
    background: #DFC07E;
    transform: scale(1.05);
}

.chat-send svg {
    width: 18px;
    height: 18px;
    stroke: #000;
    fill: none;
    stroke-width: 2.5;
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 70px;
        right: -10px;
    }
}
