@font-face {
    font-family: 'Cormorant Garamond';
    src: url('Fonts/CormorantGaramond-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Manrope';
    src: url('Fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}

:root {
    --bg-color: #070707;
    --text-primary: #e6e6e6;
    --text-muted: #888888;
    --gold: #9d8c6b;
    --border-color: #2a2a2a;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Manrope', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-serif) !important;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    line-height: 1.5;
}


/* Helpers */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.text-sm {
    font-size: 0.85rem;
}

.text-xs {
    font-size: 0.75rem;
}

.mb-sm {
    margin-bottom: 0.5rem;
}

.mb-md {
    margin-bottom: 1.5rem;
}

.mb-lg {
    margin-bottom: 3rem;
}

.mt-sm {
    margin-top: 0.5rem;
}

.mt-md {
    margin-top: 1.5rem;
}

.mt-lg {
    margin-top: 3rem;
}

.my-sm {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.opacity-50 {
    opacity: 0.5;
}

.max-w-lg {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.app-container {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.slider-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.view {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    flex: 0 0 100vh;
    flex: 0 0 100dvh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Typography */
.main-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
}

.gold-label {
    font-family: var(--font-sans);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.gold-text {
    color: var(--gold);
}

/* Header & Footer */
.top-nav {
    position: absolute;
    top: 2rem;
    left: 0;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.bottom-nav {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    margin-top: auto;
}

.stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stats .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.stats .value {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    animation: counterFadeIn 1s ease-out 0.5s both;
}

@keyframes counterFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.page-indicator {
    font-size: 0.75rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.pagination {
    display: flex;
    gap: 1.5rem;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: #444;
}

.pagination .dot {
    cursor: pointer;
    transition: color 0.3s ease;
}

.pagination .dot.active {
    color: var(--gold);
}

.pagination .dot:hover {
    color: var(--text-primary);
}

/* Center Content */
.content-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.separator-small {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    border: none;
    margin: 2rem auto;
}

.separator-small.centered {
    margin: 1rem auto;
}

/* Buttons */
.btn-primary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    max-width: 400px;
    margin: 10px auto;
    display: block;
}

.btn-primary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Form View */
.form-container {
    max-width: 600px;
    margin: 5rem auto;
    padding: 0 2rem;
    width: 100%;
}

.form-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    margin: 1rem 0;
}

.form-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.form-desc-small {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.input-group label {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    padding: 0.75rem 0;
    outline: none;
    transition: border-color 0.3s ease;
}

/* Remove Chrome autofill background */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group textarea:-webkit-autofill,
.input-group select:-webkit-autofill {
    -webkit-text-fill-color: #fff !important; /* text color */

    /* Apne input ke background color se cover karo */
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
    box-shadow: 0 0 0 1000px #000 inset !important;

    border-bottom: 1px solid var(--border-color) !important;
    caret-color: #fff;

    transition: background-color 5000s ease-in-out 0s;
}
.input-group textarea {
    resize: vertical;
    min-height: 80px;
    font-size: 1.1rem;
    line-height: 1.4;
    padding-top: 0.5rem;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #555;
    font-style: italic;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-bottom-color: var(--gold);
}

.input-group select {
    appearance: none;
    cursor: pointer;
}

.input-group select option {
    background-color: var(--bg-color);
    color: var(--text-primary);
}



.select-group::after {
    content: 'v';
    font-family: var(--font-sans);
    position: absolute;
    right: 0;
    bottom: 1rem;
    color: #555;
    pointer-events: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 3rem 0 2rem;
}

.divider-text {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.15em;
    margin-right: 1.5rem;
}

.divider hr {
    flex: 1;
    border: none;
    height: 1px;
    background-color: var(--border-color);
}

.disclaimer {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: #444;
    text-align: center;
    margin-top: 2rem;
    line-height: 1.6;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
}
.active .fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.fade-in {
    opacity: 0;
}
.active .fade-in {
    animation: fadeIn 1.5s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Counter View */
.giant-counter {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 400;
    line-height: 1;
    margin: 1rem 0;
    color: #fff;
    font-variant-numeric: tabular-nums;
    animation: counterReveal 1.2s ease-out forwards;
}

@keyframes counterReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(12px);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* Envelope */
.envelope-container {
    position: relative;
    width: min(380px, 90vw);
    aspect-ratio: 380 / 300;
    margin: 0 auto;
    background: #000;
    border: 1px solid var(--gold);
}

.envelope-back {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #080808;
    z-index: 1;
}

.envelope-left {
    position: absolute;
    top: 0; left: 0; width: 50%; height: 100%;
    background: var(--gold);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    z-index: 3;
}
.envelope-left::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0c0c0c;
    clip-path: polygon(0 1.5px, calc(100% - 1.7px) 50%, 0 calc(100% - 1.5px));
}

.envelope-right {
    position: absolute;
    top: 0; right: 0; width: 50%; height: 100%;
    background: var(--gold);
    clip-path: polygon(100% 0, 0 50%, 100% 100%);
    z-index: 3;
}
.envelope-right::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0c0c0c;
    clip-path: polygon(100% 1.5px, 1.7px 50%, 100% calc(100% - 1.5px));
}

.envelope-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: var(--gold);
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    z-index: 4;
}
.envelope-bottom::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 100%;
    background: #111;
    clip-path: polygon(1.5px calc(100% - 1.5px), 50% 1.7px, calc(100% - 1.5px) calc(100% - 1.5px));
}

.seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #9f8759;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    color: #111;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.envelope-paper {
    position: absolute;
    bottom: 32%;
    left: 7.5%;
    width: 85%;
    height: 115%;
    background: #f1ebd9;
    color: #111;
    z-index: 2;
    padding: 0.4rem;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    display: flex;
}

.paper-inner-border {
    border: 1px solid #9f8759;
    width: 100%;
    height: 100%;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent;
}

/* Email View */
.email-card {
    background: #f4f0e6;
    color: #111;
    max-width: 500px;
    width: 100%;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1.2rem, 4vw, 2.5rem);
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.email-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    margin-bottom: 2rem;
}

.email-p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #222;
}

.email-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.landing-form-btn {
    width: 100%;
    max-width: 280px;
}

/* Responsive: Tablet (max-width: 768px) */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 1rem;
        top: 1rem;
        font-size: 0.65rem;
    }

    .bottom-nav {
        width: 100%;
        padding: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        background: rgba(7, 7, 7, 0.9);
        backdrop-filter: blur(4px);
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }

    .stats {
        gap: 0.5rem;
    }

    .stats .label,
    .stats .value {
        font-size: 0.65rem;
    }

    .page-indicator {
        font-size: 0.65rem;
        font-family: var(--font-sans);
        letter-spacing: 0.15em;
    }

    .pagination {
        gap: 1rem;
        font-size: 0.75rem;
    }

    .content-center {
        padding: 0 1.5rem;
    }

    .form-container {
        margin: 3rem auto;
        padding: 0 1.5rem;
    }

    .form-desc {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .envelope-paper {
        padding: 1.2rem 0.8rem;
    }

    .paper-title {
        font-size: 1rem;
    }

    .paper-subtitle {
        font-size: 0.55rem;
    }

    .email-card {
        margin: 0 1rem;
    }

    .email-p {
        font-size: 1rem;
    }
}

/* Responsive: Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .top-nav {
        padding: 0 0.75rem;
        top: 0.75rem;
        font-size: 0.6rem;
        letter-spacing: 0.1em;
    }

    .bottom-nav {
        width: 100%;
        padding: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        background: rgba(7, 7, 7, 0.9);
        backdrop-filter: blur(4px);
        border-top: 1px solid var(--border-color);
        margin-top: auto;
    }

    .stats {
        gap: 0.4rem;
    }

    .stats .label,
    .stats .value {
        font-size: 0.55rem;
        letter-spacing: 0.1em;
    }

    .page-indicator {
        font-size: 0.55rem;
        font-family: var(--font-sans);
        letter-spacing: 0.12em;
    }

    .pagination {
        gap: 0.6rem;
        font-size: 0.65rem;
    }

    .content-center {
        padding: 0 1rem;
    }

    .separator-small {
        margin: 1.5rem auto;
    }

    .form-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .form-desc {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    .form-desc-small {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .input-group {
        margin-bottom: 1.2rem;
    }

    .input-group label {
        font-size: 0.6rem;
    }

    .input-group input,
    .input-group select {
        font-size: 1rem;
        padding: 0.6rem 0;
    }

    .divider {
        margin: 2rem 0 1.5rem;
    }

    .divider-text {
        font-size: 0.65rem;
        margin-right: 1rem;
    }

    .btn-primary {
        padding: 0.85rem 1.5rem;
        font-size: 0.7rem;
        max-width: 100%;
    }

    .landing-form-btn {
        max-width: 80%;
    }

    .disclaimer {
        font-size: 0.65rem;
        line-height: 1.5;
    }

    .envelope-container {
        width: min(320px, 85vw);
    }

    .envelope-paper {
        padding: 1rem 0.6rem;
    }

    .paper-title {
        font-size: 0.9rem;
    }

    .paper-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.1em;
    }

    .paper-footer {
        font-size: 0.75rem;
    }

    .seal {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .email-card {
        margin: 0 0.75rem;
        padding: 1.5rem 1rem;
    }

    .email-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .email-p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .email-footer {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .gold-label {
        font-size: 0.65rem;
        letter-spacing: 0.15em;
    }
}