:root {
    --bg-deep: #0a0a0f;
    --bg-dark: #12121a;
    --bg-card: #1a1a24;
    --text-primary: #e8e4df;
    --text-muted: #9a9590;
    --accent-gold: #c9a962;
    --accent-purple: #6b5b7a;
    --accent-rose: #8b6b6b;
    --veil: rgba(200, 180, 160, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 3px; }

.font-display { font-family: 'Cormorant Garamond', serif; }

a { color: var(--accent-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-deep), transparent);
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.2em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent-gold); text-decoration: none; }

@media (max-width: 768px) {
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.65rem; letter-spacing: 0.1em; }
}

/* Section Base */
section {
    padding: 8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 3rem;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(107, 91, 122, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 169, 98, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.veil-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
    background: repeating-linear-gradient(90deg, transparent, transparent 80px, var(--veil) 80px, var(--veil) 81px);
    animation: veilShift 20s ease-in-out infinite;
}

@keyframes veilShift {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-primary);
    opacity: 0;
    animation: fadeUp 1.5s ease-out 0.3s forwards;
    text-shadow: 0 0 80px rgba(201, 169, 98, 0.3);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp 1.5s ease-out 0.6s forwards;
}

.hero-urdu {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-gold);
    margin-top: 2rem;
    opacity: 0;
    animation: fadeUp 1.5s ease-out 0.9s forwards;
    direction: rtl;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1.5s ease-out 1.2s forwards;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent-gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.5; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page Header (for inner pages) */
.page-header {
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 6rem;
}

.page-header .hero-bg { opacity: 0.5; }

.page-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 500px;
}

/* Blind Spot */
.blind-spot {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.blind-spot-content { max-width: 800px; margin: 0 auto; }

.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal-text.visible { opacity: 1; transform: translateY(0); }

.blind-spot p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.9;
}

.blind-spot .highlight { color: var(--text-primary); font-weight: 500; }
.blind-spot .gold { color: var(--accent-gold); }

.purdah-visual {
    position: relative;
    height: 200px;
    margin: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.purdah-layers {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 100%;
}

.purdah-layer {
    position: absolute;
    inset: 0;
    border: 1px solid;
    opacity: 0.3;
}

.purdah-layer:nth-child(1) { border-color: var(--accent-purple); transform: rotate(-2deg); }
.purdah-layer:nth-child(2) { border-color: var(--accent-rose); transform: rotate(1deg) scale(0.95); }
.purdah-layer:nth-child(3) { border-color: var(--accent-gold); transform: rotate(-1deg) scale(0.9); }

.purdah-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-gold);
    white-space: nowrap;
}

/* Voices Gallery */
.voices {
    background: var(--bg-dark);
    padding: 8rem 2rem;
    margin: 0;
    max-width: none;
}

.voices-inner { max-width: 1400px; margin: 0 auto; }

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.voice-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.voice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-purple), var(--accent-rose));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.voice-card:hover {
    transform: translateY(-5px);
    border-color: rgba(201, 169, 98, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.voice-card:hover::before { transform: scaleX(1); }

.voice-card.art-card { min-height: 350px; display: flex; flex-direction: column; }

.voice-card.art-card .card-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    margin: -2rem -2rem 1.5rem -2rem;
    min-height: 200px;
}

.card-type {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.card-preview {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-expand {
    position: absolute;
    bottom: 2rem; right: 2rem;
    width: 30px; height: 30px;
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.voice-card:hover .card-expand { opacity: 1; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    background: var(--bg-card);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    width: 40px; height: 40px;
    background: none;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

.modal-type {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.modal-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-primary);
    white-space: pre-line;
}

.modal-text.poetry { font-style: italic; }

.modal-meta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* Mechanisms */
.mechanisms {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mechanisms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) { .mechanisms-grid { grid-template-columns: 1fr; } }

.mechanism-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.mechanism-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0;
    background: linear-gradient(to top, rgba(201, 169, 98, 0.1), transparent);
    transition: height 0.4s ease;
}

.mechanism-card:hover::after { height: 100%; }
.mechanism-card.active { border-color: var(--accent-gold); }

.mechanism-number {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.mechanism-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.mechanism-urdu {
    font-size: 1rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    direction: rtl;
    position: relative;
    z-index: 1;
}

.mechanism-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.mechanism-quote {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.mechanism-card.active .mechanism-quote { max-height: 200px; opacity: 1; }

/* Cost */
.cost {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.cost-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 107, 107, 0.1) 0%, transparent 70%);
}

.cost-content { position: relative; z-index: 1; max-width: 700px; }

.cost-quote {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cost-quote .emphasis {
    color: var(--text-primary);
    display: block;
    margin-top: 1rem;
}

.cost-hope {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--accent-gold);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.cost-hope.visible { opacity: 1; transform: translateY(0); }

/* Guide */
.guide-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.guide-header {
    background: rgba(201, 169, 98, 0.1);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.guide-status {
    width: 10px; height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.guide-header span { font-size: 0.85rem; color: var(--text-primary); }

.guide-messages {
    height: 450px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    max-width: 85%;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.message.guide {
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.2);
    align-self: flex-start;
}

.message.user {
    background: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-end;
}

.message strong { color: var(--accent-gold); }
.message em { color: var(--text-muted); }

.guide-input-container {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 1rem;
}

.guide-input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.guide-input:focus { border-color: var(--accent-gold); }
.guide-input::placeholder { color: var(--text-muted); }

.guide-send {
    background: var(--accent-gold);
    color: var(--bg-deep);
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.guide-send:hover { background: var(--text-primary); }
.guide-send:disabled { opacity: 0.5; cursor: not-allowed; }

.guide-disclaimer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.typing-indicator { display: flex; gap: 4px; padding: 0.5rem 0; }

.typing-indicator span {
    width: 8px; height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* Resources */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.resource-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.3s ease;
}

.resource-card:hover { border-color: rgba(201, 169, 98, 0.3); }

.resource-card h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.resource-card .resource-type {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.resource-card .resource-contact { font-size: 0.85rem; color: var(--text-primary); }

/* About */
.about-content {
    max-width: 750px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.about-content .highlight { color: var(--text-primary); }

/* Contact Form */
.contact-form { max-width: 600px; margin: 3rem auto 0; }

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent-gold); }

.form-group textarea { min-height: 150px; resize: vertical; }
.form-group select option { background: var(--bg-card); }

.form-submit {
    background: var(--accent-gold);
    color: var(--bg-deep);
    border: none;
    padding: 1rem 2rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover { background: var(--text-primary); }

.form-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* Closing */
.closing {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--bg-dark);
    padding: 6rem 2rem;
    margin: 0;
    max-width: none;
}

.closing-text {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.closing-text span { display: block; }
.closing-text span:nth-child(2) { color: var(--accent-gold); }

.closing-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 2rem;
    letter-spacing: 0.2em;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-dark);
}
