/* Base Styles & Typography */
:root {
    --bg-color-dark: #010511;
    --font-primary: 'Poppins', sans-serif;
}

html, body {
    font-family: var(--font-primary);
    font-size: 16px; /* 12pt */
    background-color: var(--bg-color-dark);
    color: #ffffff;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: clip; /* Advanced fix for mobile Safari to prevent overflow without breaking fixed-top navbar */
}

.page-wrapper {
    width: 100%;
    overflow-x: clip;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Navbar Styling */
.navbar {
    transition: background-color 0.3s ease-in-out;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar.scrolled {
    background-color: rgba(1, 5, 17, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo {
    height: 48px;
}

.nav-link {
    font-weight: 400;
    font-size: 1.05rem;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Button Styles */
.btn-primary-glowing {
    background-color: #ffffff;
    color: var(--bg-color-dark);
    border: 2px solid #ffffff;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary-glowing:hover {
    background-color: transparent;
    color: #ffffff;
    box-shadow: 0 0 30px rgba(255, 255, 255, 1);
}

.btn-secondary-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Nav Actions */
@media (max-width: 991.98px) {
    .navbar {
        background-color: transparent;
    }
    .navbar-collapse {
        background-color: var(--bg-color-dark);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .nav-logo {
        height: 40px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 100px;
    overflow: hidden;
    background-color: var(--bg-color-dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

/* Default to mobile background */
.hero-section {
    background-image: url('../assets/mobile-background.jpg');
}

/* Desktop background */
@media (min-width: 992px) {
    .hero-section {
        background-image: url('../assets/desktop-background.jpg');
    }
}

.hero-content-col {
    padding-top: 0; 
}

.hero-title-img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

.z-index-2 {
    z-index: 2 !important;
}

.z-index-1 {
    z-index: 1 !important;
}

/* Custom spacing for buttons on mobile */
@media (max-width: 991.98px) {
    .hero-section {
        align-items: flex-start;
        padding-top: 90px;
        padding-bottom: 50vh; /* Safeguards space for the 100vw image height */
    }
    .hero-content-col {
        padding-top: 2vh;
    }
    .hero-buttons {
         margin-top: 1rem !important;
    }
    .hero-buttons .btn {
        width: auto;
        min-width: 130px;
        font-size: 0.95rem;
        padding: 0.6rem 1rem !important;
    }
    .hero-title-img {
        max-width: 260px; /* Much smaller for mobile */
        margin-top: 0;
        margin-bottom: 2rem !important;
    }
}

/* Hero Images */
.hero-image-desktop {
    position: absolute;
    bottom: 0;
    right: 5%;
    height: 85vh; /* Keep it relatively tall but fitting screen */
    width: auto;
    max-width: 50vw;
    object-fit: contain;
    object-position: bottom;
}

/* Mobile Hero Image rules - Crucial as per instruction */
.hero-image-mobile {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    max-width: 100%;
    z-index: 1;
}

/* Typography & Dividers */
.section-subtitle {
    letter-spacing: 3px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, #666666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About Section */
.about-section {
    padding: 120px 0;
    background-color: var(--bg-color-dark);
    /* Thin line separators as requested */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.about-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-quote-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
}

.about-image-wrapper {
    position: relative;
    padding: 1rem;
}

.about-img {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    width: 100%;
}

.about-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.08); /* White soft glow behind image */
    filter: blur(60px);
    z-index: 1;
    border-radius: 50%;
}

/* Mobile Adjustments for About */
@media (max-width: 991.98px) {
    .about-section {
        padding: 80px 0;
    }
    .about-heading {
        font-size: 2.1rem;
    }
    .about-quote-box {
        padding: 1.2rem;
    }
}

/* Features Section (Bento Grid) */
.features-section {
    padding: 120px 0;
    background-color: var(--bg-color-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.features-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 70%);
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.bento-card:hover .bento-icon {
    background: #ffffff;
    color: var(--bg-color-dark);
    transform: scale(1.05) rotate(-5deg);
}

.bento-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.4;
}

.bento-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Pushes CTA to the bottom */
}

.bento-cta {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    margin-top: auto; /* Aligns to bottom */
}

.bento-cta:hover {
    gap: 12px;
    color: #cccccc;
    opacity: 1;
}

.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 991.98px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .col-span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 767.98px) {
    .features-section {
        padding: 80px 0;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}

/* ------------------ Packages Section ------------------ */
.packages-section {
    padding: 100px 0;
    background-color: #010511;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.package-card {
    background: #010614;
    border-radius: 30px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
    z-index: -1;
    border-radius: 30px;
}

.package-card:hover {
    transform: translateY(-10px);
}

.diamond-package {
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.2);
}
.diamond-package:hover {
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}
.diamond-package::before {
    background: radial-gradient(circle at top right, rgba(255,215,0,0.4), transparent 60%);
}

.silver-package {
    box-shadow: 0 20px 50px rgba(192, 192, 192, 0.1);
    border-color: rgba(192, 192, 192, 0.2);
}
.silver-package:hover {
    box-shadow: 0 20px 60px rgba(192, 192, 192, 0.2);
}
.silver-package::before {
    background: radial-gradient(circle at top right, rgba(200,200,200,0.3), transparent 60%);
}

.pkg-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.diamond-package .pkg-title {
    color: #e6b800;
    text-shadow: 0 0 20px rgba(230, 184, 0, 0.3);
}

.silver-package .pkg-title {
    color: #f8f9fa;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.package-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.package-grid-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media(min-width: 768px) {
    .package-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pkg-item {
    background: rgba(10, 20, 50, 0.6);
    border: 1px solid rgba(50, 100, 255, 0.3);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: inset 0 0 15px rgba(0, 50, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.diamond-package .pkg-item {
    border-color: rgba(230, 184, 0, 0.4);
    box-shadow: inset 0 0 15px rgba(230, 184, 0, 0.1);
}

.pkg-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.pkg-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.text-gold {
    color: #ffd700 !important;
}

.job-aspect-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}
.job-aspect-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}
.job-aspect-divider span {
    position: relative;
    background: #010614;
    padding: 0 15px;
    z-index: 2;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
}
.diamond-divider span {
    border-color: rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.pkg-btn-silver {
    background: #fff;
    color: #000;
    border-radius: 12px;
    transition: all 0.3s;
}
.pkg-btn-silver:hover {
    background: #e0e0e0;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.pkg-btn-diamond {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #000;
    border-radius: 12px;
    transition: all 0.3s;
}
.pkg-btn-diamond:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(45deg, #ffb300, #ffd700);
}

/* ------------------ FAQs Section ------------------ */
.faqs-section {
    padding: 100px 0;
    background-color: #020716;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.custom-accordion .accordion-button {
    background-color: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: none;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
    transition: transform 0.3s ease;
}

.custom-accordion .accordion-body {
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 12px;
}

/* ------------------ CTA Section ------------------ */
.cta-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #010511 0%, #0a1128 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vw;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

/* ------------------ Footer ------------------ */
.site-footer {
    padding: 80px 0 30px;
    background-color: #00020a;
}
.footer-logo {
    height: 35px;
}
.footer-heading {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: #fff;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}
.newsletter-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px 0 0 50px;
    color: #fff;
    padding-left: 20px;
}
.newsletter-group .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.2);
}

/* ------------------ Authentication Pages ------------------ */
.auth-body {
    background: radial-gradient(circle at center, #0a1128 0%, #010511 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-y: auto;
}
.auth-body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Subtle background image overlay pattern if image exists, else it just fades */
    background-image: url('../assets/hero-image-desktop.png');
    background-size: cover;
    background-position: center bottom;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* Cardless Design Inputs */
.cardless-form {
    text-align: left;
}
.cardless-input {
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding-left: 0;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
    font-size: 1.1rem;
}
.cardless-input:focus {
    border-bottom: 2px solid #fff;
    background: transparent;
}
.form-floating > .form-control.cardless-input:focus ~ label,
.form-floating > .form-control.cardless-input:not(:placeholder-shown) ~ label {
    color: #fff !important;
    transform: scale(0.85) translateY(-1.5rem) translateX(0);
}
.form-floating > label {
    padding-left: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.custom-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #ff6b6b;
    border-radius: 12px;
}

/* Global register routing UX */
.route-to-register {
    cursor: pointer;
    transition: filter 0.3s ease, transform 0.3s ease;
}
.route-to-register:hover {
    filter: brightness(1.15);
}
