@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --maroon-deep: #4D0000;
    --maroon-primary: #6D0018;
    --maroon-light: #8B1A1A;
    --cream-bg: #FFFBF2;
    --cream-bg-mid: #FDF5E6;
    --cream-bg-end: #F5F5DC;
    --accent-gold: #C9A227;
    --accent-gold-light: #D4AF37;
    --text-dark: #331111;
    --text-muted: #5D4037;
    --white: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow-soft: 0 10px 30px rgba(109, 0, 24, 0.08);
    --shadow-card: 0 20px 60px rgba(109, 0, 24, 0.12);
    --border-subtle: rgba(109, 0, 24, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--cream-bg) 0%, var(--cream-bg-mid) 50%, var(--cream-bg-end) 100%);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, .brand-name {
    font-family: 'Cinzel', serif;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(109, 0, 24, 0.06);
    border-bottom: 1px solid var(--border-subtle);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-area img {
    height: 45px;
    width: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.logo-area span {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--maroon-deep);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links li a.nav-register-btn {
    background: var(--maroon-primary);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 0, 24, 0.2);
}

.nav-links li a.nav-register-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5rem 5% 6rem;
    min-height: 80vh;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-main-layout {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
}

/* New Attractive Coming Soon Badge */
.hero-header-badge {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 5rem;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge-pill {
    position: relative;
    background: rgba(255, 251, 242, 0.4);
    padding: 0.9rem 2.8rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--maroon-primary);
    box-shadow: 0 10px 30px rgba(109, 0, 24, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    cursor: default;
    animation: breathing 4s infinite ease-in-out;
    border-radius: 4px; /* More sophisticated rectangular shape with slight rounding */
}

/* Gold Corner Accents */
.badge-pill::before, .badge-pill::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 3px solid var(--accent-gold);
    pointer-events: none;
    transition: all 0.5s ease;
}

.badge-pill::before {
    top: -5px;
    left: -5px;
    border-right: none;
    border-bottom: none;
}

.badge-pill::after {
    bottom: -5px;
    right: -5px;
    border-left: none;
    border-top: none;
}

.badge-pill:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 251, 242, 0.8);
    box-shadow: 0 15px 40px rgba(109, 0, 24, 0.1);
}

.badge-pill:hover::before {
    top: -8px;
    left: -8px;
}

.badge-pill:hover::after {
    bottom: -8px;
    right: -8px;
}

.badge-pill span {
    font-family: 'Cinzel', serif;
    color: var(--maroon-deep);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.gold-icon {
    color: var(--accent-gold);
    font-size: 0.9rem;
    animation: shimmer 3s infinite linear;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 30px rgba(109, 0, 24, 0.05); }
    50% { transform: scale(1.02); box-shadow: 0 10px 40px rgba(201, 162, 39, 0.15); }
}

@keyframes shimmer {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2) rotate(10deg); }
    100% { opacity: 0.6; transform: scale(1); }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

/* Decorative frame for hero image */
.decorative-frame {
    border: 8px solid var(--white);
    box-shadow: 0 20px 50px rgba(109, 0, 24, 0.15);
}

.decorative-frame::after {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    border: 1px solid var(--accent-gold);
    border-radius: 32px;
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--maroon-primary) 0%, var(--maroon-light) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(109, 0, 24, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(109, 0, 24, 0.4);
    background: linear-gradient(135deg, var(--maroon-light) 0%, var(--maroon-primary) 100%);
}

/* Decorative gradient orbs */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(109, 0, 24, 0.08), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    position: relative;
    flex: 1.2;
    z-index: 2;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-brand-intro h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: var(--maroon-deep);
    text-transform: uppercase;
}

.hero-brand-intro p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.gold-text {
    color: var(--accent-gold);
    font-weight: 700;
}

/* New Form Features & Contact Styles */
.form-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 2rem 0;
}

.f-pill {
    background: rgba(109, 0, 24, 0.03);
    border: 1px solid rgba(109, 0, 24, 0.1);
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--maroon-deep);
    font-weight: 500;
    transition: all 0.3s ease;
}

.f-pill span {
    color: var(--accent-gold);
    font-weight: 900;
    margin-right: 6px;
}

.f-pill:hover {
    background: rgba(109, 0, 24, 0.06);
    transform: translateY(-2px);
}

.form-footer-info {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.contact-item i {
    color: var(--maroon-primary);
    width: 20px;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--maroon-primary);
}

.dev-credit {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.5px;
}

.nexgen-logo {
    color: #6a1b75; /* Keeping original brand color for NEXGEN as shown in image */
    font-weight: 800;
    text-transform: uppercase;
}

.hero-form-box {
    width: 100%;
    max-width: 500px;
    z-index: 10;
}

/* Native Form Card Styles */
.form-card {
    background: var(--white);
    padding: 0 1rem 0 2.5rem; /* Remove top/bottom padding, move to container */
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(109, 0, 24, 0.12);
    border: 1px solid var(--border-subtle);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.form-scroll-container {
    max-height: 700px;
    overflow-y: auto;
    padding: 2.5rem 1.5rem 2.5rem 0;
}

/* Custom Scrollbar for Form */
.form-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.form-scroll-container::-webkit-scrollbar-track {
    background: var(--cream-bg);
}

.form-scroll-container::-webkit-scrollbar-thumb {
    background: var(--maroon-primary);
    border-radius: 10px;
}

.form-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--maroon-deep);
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-primary), var(--accent-gold), var(--maroon-primary));
}

.form-card h2 {
    font-size: 1.8rem;
    color: var(--maroon-deep);
    margin-bottom: 0.5rem;
}

.form-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0 1rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--maroon-primary);
    box-shadow: 0 0 0 4px rgba(109, 0, 24, 0.08);
}

.btn {
    width: 100%;
    height: 52px;
    background: var(--maroon-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn:hover {
    background: var(--maroon-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 0, 117, 0.2);
}

.btn.loading {
    background: #999;
    pointer-events: none;
}

.note {
    margin-top: 1.5rem;
    font-size: 0.75rem !important;
    color: #888 !important;
    line-height: 1.5;
    text-align: center;
}

/* Custom Status Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-overlay.show .modal-card {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.modal-icon.success { color: #28a745; }
.modal-icon.error { color: var(--accent-gold); }

.modal-card h3 {
    font-size: 1.8rem;
    color: var(--maroon-deep);
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.modal-card .btn {
    max-width: 200px;
    margin: 0 auto;
}


.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero-image-frame {
    width: 100%;
    max-width: 500px;
    height: 650px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    position: relative;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Feature Section */
.features {
    padding: 7rem 5%;
    text-align: center;
    background: var(--white);
    position: relative;
}

/* Decorative top wave separator */
.features::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--maroon-primary), var(--accent-gold), var(--maroon-primary), transparent);
}

.section-overline {
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.features h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 4rem;
    color: var(--maroon-deep);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 3rem 2rem;
    border-radius: 20px;
    background: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-subtle);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(109, 0, 24, 0.12);
}

.feature-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(109, 0, 24, 0.04), rgba(201, 162, 39, 0.04));
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--cream-bg), var(--white));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-soft);
    color: var(--maroon-primary);
    font-size: 1.4rem;
}

.feature-card:nth-child(2) .icon-circle {
    background: linear-gradient(135deg, var(--maroon-primary), var(--maroon-light));
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.6rem;
    color: var(--maroon-deep);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Workflow Section */
.workflow {
    padding: 7rem 5%;
    text-align: center;
    background: linear-gradient(180deg, var(--white) 0%, var(--cream-bg) 100%);
}

.workflow h2 {
    color: var(--maroon-deep);
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 4rem;
}

.step-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(109, 0, 24, 0.12);
}

.step-card::after {
    content: attr(data-step);
    position: absolute;
    top: 20px;
    right: 30px;
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: rgba(109, 0, 24, 0.05);
    font-weight: 700;
}

.step-card h3 {
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--maroon-primary);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.step-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--maroon-deep) 0%, #4a1054 50%, #351240 100%);
    color: var(--white);
    padding: 6rem 5% 3rem;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-primary), var(--accent-gold), var(--maroon-primary));
}

.footer-logo-area {
    margin-bottom: 2rem;
}

.footer-logo-area img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-logo-area h2 {
    font-size: 2rem;
    color: var(--white);
}

.footer-quote {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 600px;
    margin: 2rem auto;
    opacity: 0.8;
    font-family: 'Poppins', sans-serif;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

.footer-legal {
    text-align: left;
}

.footer-tools {
    text-align: right;
}

.replay-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.8;
}

.replay-btn:hover {
    background: rgba(201, 162, 39, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    opacity: 1;
    transform: translateY(-2px);
}

.replay-btn i {
    font-size: 0.8rem;
}

/* Removed old floating badge animations */

/* Registration Section */
.registration {
    padding: 8rem 5%;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream-bg) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.registration-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.registration h2 {
    color: var(--maroon-deep);
    margin-bottom: 1.5rem;
}

.registration p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
}

.registration-frame-wrapper {
    position: relative;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(109, 0, 24, 0.15);
    border: 1px solid var(--border-subtle);
}

/* Decorative gold frame effect */
.registration-frame-wrapper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--accent-gold);
    border-radius: 30px;
    pointer-events: none;
    opacity: 0.3;
}

.registration-frame {
    width: 100%;
    height: 750px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: var(--white);
}

.registration-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive for Registration */
@media (max-width: 768px) {
    .registration {
        padding: 5rem 5%;
    }
    .registration-frame-wrapper {
        padding: 1rem;
        border-radius: 25px;
    }
    .registration-frame-wrapper::before {
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border-radius: 20px;
    }
    .registration-frame {
        height: 600px;
        border-radius: 15px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 3rem 5% 4rem;
    }
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-main-layout {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        justify-content: center;
        width: 100%;
    }
    .hero-image-frame {
        width: 100%;
        max-width: 450px;
        height: 650px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .hero-image-frame {
        height: 500px;
        border-radius: 16px;
    }
    .floating-coming-soon {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}
