/* ===============================
   ROOT VARIABLES (DESIGN SYSTEM)
================================= */
:root {
    --primary-blue: #1e5eff;
    --primary-blue-dark: #1746c9;
    --primary-blue-light: #e9f0ff;

    --white: #ffffff;
    --grey-50: #f8f9fc;
    --grey-100: #eef1f6;
    --grey-300: #c7cbd6;
    --grey-500: #6b7280;
    --grey-700: #374151;
    --grey-900: #111827;
    --green-500: #10b981;

    --font-main: 'Poppins', sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);

    --max-width: 1200px;
}

/* ===============================
   RESET & GLOBAL
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--grey-700);
    line-height: 1.6;
}

/* ===============================
   GLOBAL ELEMENTS
================================= */
img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 80px 20px;
}

/* ===============================
   BUTTONS (GLOBAL)
================================= */
.btn-primary {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--primary-blue);
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 500;
    border: 1px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--primary-blue-light);
}





/* ===============================
   HEADER / NAVBAR
================================= */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--grey-100);
}

.header-container {
    max-width: var(--max-width);
    margin: auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.logo-area img {
    width: 36px;
}

.logo-highlight {
    color: var(--primary-blue);
}

/* NAV LINKS */
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-item {
    font-size: 14px;
    font-weight: 500;
    color: var(--grey-700);
    position: relative;
}

.nav-item::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    bottom: -6px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* LOGIN BUTTON */
.btn-nav-login {
    background: var(--primary-blue);
    color: var(--white);
    padding: 10px 22px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.btn-nav-login:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
}

/* ===============================
   MOBILE NAV
================================= */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--grey-700);
    transition: all 0.3s ease;
}

/* MOBILE STYLES */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 72px;
        right: 20px;
        width: 260px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-item {
        font-size: 15px;
        width: 100%;
    }

    .btn-nav-login {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}









/* ===============================
   HERO SECTION
================================= */
.hero {
    background: linear-gradient(
        180deg,
        var(--primary-blue-light),
        var(--white)
    );
    padding: 100px 20px 120px;
    overflow: hidden;
}

.hero-inner {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

/* HERO TEXT */
.hero-badge {
    display: inline-block;
    background: var(--green-500);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--grey-900);
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary-blue);
}

.hero-content p {
    max-width: 520px;
    font-size: 16px;
    color: var(--grey-500);
    margin-bottom: 32px;
}

/* HERO IMAGE */
.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    filter: drop-shadow(0 30px 50px rgba(30, 94, 255, 0.25));
}

/* ===============================
   HERO MOBILE
================================= */
@media (max-width: 900px) {
    .hero {
        padding: 80px 20px 100px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image img {
        margin: auto;
        max-width: 360px;
    }
}
/* ===============================
   ABOUT IMAGE – ROUNDED
================================= */
.hero-image img {
    max-width: 480px;
    width: 100%;
    display: block;
    margin: 0 auto;

    border-radius: 18px;          /* 👈 rounded corners */
    box-shadow: 0 18px 40px rgba(0,0,0,0.08); /* 👈 optional polish */
}




/* ===============================
   ABOUT SECTION (FIXED)
================================= */
.about {
    background: var(--white);
    padding: 100px 20px;
    width: 100%;
}

.about-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--grey-900);
}

.about-text p {
    font-size: 16px;
    color: var(--grey-500);
    margin-bottom: 16px;
    line-height: 1.7;
}

/* IMAGE */
.about-image {
    width: 100%;
}

.about-image img {
    max-width: 480px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* ===============================
   ABOUT – MOBILE FIX (CRITICAL)
================================= */
@media (max-width: 900px) {
    .about {
        padding: 70px 18px;
    }

    .about-inner {
        grid-template-columns: 1fr;
        text-align: center;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .about-text h2 {
        font-size: 28px;
    }

    .about-image img {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* ===============================
   ABOUT – IMAGE LEFT (DESKTOP)
================================= */
@media (min-width: 901px) {
    .about-image {
        order: -1;
    }
}


/* ===============================
   ABOUT IMAGE – ROUNDED
================================= */
.about-image img {
    max-width: 480px;
    width: 100%;
    display: block;
    margin: 0 auto;

    border-radius: 18px;          /* 👈 rounded corners */
    box-shadow: 0 18px 40px rgba(0,0,0,0.08); /* 👈 optional polish */
}












/* ===============================
   ABOUT FEATURES (FIXED)
================================= */
.about-features {
    background: var(--grey-50);
    padding: 100px 20px;
    text-align: center;
    width: 100%;
}

.about-features h2 {
    font-size: 34px;
    margin-bottom: 60px;
    color: var(--grey-900);
}

.feature-grid {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

/* FEATURE CARD */
.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature-card h4 {
    margin-bottom: 14px;
    color: var(--grey-900);
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
}

.feature-card li {
    font-size: 14px;
    color: var(--grey-500);
    margin-bottom: 8px;
}

/* MOBILE */
@media (max-width: 900px) {
    .about-features {
        padding: 70px 18px;
    }

    .feature-grid {
        max-width: 100%;
        margin: 0;
    }

    .feature-card {
        text-align: center;
    }
}

/* ===============================
   ABOUT VALUE (FIXED)
================================= */
.about-value {
    background: linear-gradient(
        180deg,
        var(--white),
        var(--primary-blue-light)
    );
    padding: 100px 20px;
    text-align: center;
    width: 100%;
}

.value-inner {
    max-width: 700px;
    margin: 0 auto;
}

.value-inner h2 {
    font-size: 34px;
    margin-bottom: 16px;
    color: var(--grey-900);
}

.value-inner p {
    font-size: 16px;
    color: var(--grey-500);
    margin-bottom: 32px;
}

.value-points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-weight: 500;
}

/* MOBILE */
@media (max-width: 900px) {
    .about-value {
        padding: 70px 18px;
    }

    .value-inner h2 {
        font-size: 28px;
    }
}



/* ===============================
   FEATURES (CAROUSEL STYLE)
================================= */
.features {
    background: var(--grey-50);
    padding: 100px 20px;
}

.features-header {
    max-width: var(--max-width);
    margin: auto;
    margin-bottom: 40px;
}

.features-header h2 {
    font-size: 34px;
    color: var(--grey-900);
    text-align: center;
    margin-bottom: 10px;
}

.features-header p {
    color: var(--grey-500);
    font-size: 16px;
    text-align: center;
}

/* CAROUSEL */
/* CENTERING WRAPPER */
.features-carousel-wrapper {
    max-width: var(--max-width);
    margin: auto;
}

/* CAROUSEL */
.features-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
}

/* OPTIONAL: CENTER START ON LARGE SCREENS */
@media (min-width: 1100px) {
    .features-carousel {
        justify-content: center;
    }
}


.features-carousel::-webkit-scrollbar {
    height: 6px;
}

.features-carousel::-webkit-scrollbar-thumb {
    background: var(--grey-300);
    border-radius: 20px;
}

/* FEATURE CARD */
.features .feature-card {
    min-width: 280px;
    max-width: 280px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.features .feature-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.features .feature-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--grey-900);
}

.features .feature-card p {
    font-size: 14px;
    color: var(--grey-500);
}



/* ===============================
   HOW IT WORKS
================================= */
.how-it-works {
    background: var(--primary-blue-light);
    padding: 100px 20px;
}

.how-inner {
    max-width: var(--max-width);
    margin: auto;
}

.how-header {
    text-align: center;
    max-width: 600px;
    margin: auto;
    margin-bottom: 60px;
}

.how-header h2 {
    font-size: 34px;
    color: var(--grey-900);
    margin-bottom: 12px;
}

.how-header p {
    font-size: 16px;
    color: var(--grey-500);
}

/* STEPS */
.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.how-step {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: transform 0.3s ease;
}

.how-step:hover {
    transform: translateY(-8px);
}

/* STEP NUMBER */
.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 20px;
}

.how-step h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--grey-900);
}

.how-step p {
    font-size: 14px;
    color: var(--grey-500);
    line-height: 1.6;
}

/* MOBILE */
@media (max-width: 900px) {
    .how-steps {
        grid-template-columns: 1fr;
    }

    .how-step {
        text-align: center;
    }

    .step-number {
        margin-left: auto;
        margin-right: auto;
    }
}




/* ===============================
   LOGIN SECTION – MODERN
================================= */
.login-section {
    background: linear-gradient(
        180deg,
        var(--white),
        var(--primary-blue-light)
    );
    padding: 120px 20px;
}

.login-inner {
    max-width: 720px;
    margin: auto;
    text-align: center;
}

.login-header h2 {
    font-size: 36px;
    font-weight: 600;
    color: var(--grey-900);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--grey-500);
    margin-bottom: 60px;
}

/* BUTTON STACK */
.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* BUTTON BASE */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fbff, #ffffff);
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px var(--grey-100);
    transition: all 0.35s ease;
    text-align: left;
}

/* LEFT CONTENT */
.login-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ICON CONTAINER */
.login-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

/* TEXT */
.login-text strong {
    display: block;
    font-size: 16px;
    color: var(--grey-900);
}

.login-text small {
    font-size: 13px;
    color: var(--grey-500);
}

/* ARROW */
.arrow {
    font-size: 20px;
    color: var(--grey-400);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* HOVER */
.login-btn:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 45px rgba(30, 94, 255, 0.18),
        inset 0 0 0 1px rgba(30, 94, 255, 0.25);
}

.login-btn:hover .arrow {
    transform: translateX(6px);
    color: var(--primary-blue);
}

/* ROLE COLORS */
.owner-bg {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.attendant-bg {
    background: linear-gradient(135deg, #22c55e, #15803d);
}

.admin-bg {
    background: linear-gradient(135deg, #f59e0b, #b45309);
}

/* MOBILE */
@media (max-width: 600px) {
    .login-btn {
        padding: 18px 20px;
    }

    .login-header h2 {
        font-size: 30px;
    }
}



/* ===============================
   CONTACT SECTION
================================= */
.contact {
    background: var(--grey-50);
    padding: 120px 20px;
}

.contact-inner {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* LEFT */
.contact-info h2 {
    font-size: 36px;
    color: var(--grey-900);
    margin-bottom: 14px;
}

.contact-info p {
    font-size: 16px;
    color: var(--grey-500);
    margin-bottom: 40px;
    max-width: 420px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 15px;
    color: var(--grey-700);
}

.contact-icon {
    font-size: 18px;
}

/* RIGHT – FORM */
.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--grey-300);
    font-family: var(--font-main);
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* MOBILE */
@media (max-width: 900px) {
    .contact-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info p {
        margin: auto;
        margin-bottom: 40px;
    }
}




/* ===============================
   FOOTER
================================= */
.footer {
    background: var(--grey-900);
    color: #d1d5db;
    padding: 80px 20px 30px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

/* BRAND */
.footer-brand p {
    max-width: 360px;
    font-size: 14px;
    color: #9ca3af;
    margin-top: 14px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
}

.footer-logo img {
    width: 36px;
}

.footer-highlight {
    color: var(--primary-blue);
}

/* LINKS */
.footer-links h4 {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-links a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: #9ca3af;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-blue);
}

/* BOTTOM */
.footer-bottom {
    max-width: var(--max-width);
    margin: 50px auto 0;
    padding-top: 20px;
    border-top: 1px solid #1f2937;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

/* MOBILE */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand p {
        margin: auto;
    }
}






/* =====================================================
   HARD MOBILE LAYOUT FIX (CRITICAL)
===================================================== */
@media (max-width: 768px) {

    /* Force full-width layout */
    html, body {
        width: 100%;
        overflow-x: hidden;
    }

    /* Remove desktop max-width constraints */
    .header-container,
    .hero-inner,
    .about-inner,
    .features-header,
    .features-carousel-wrapper,
    .how-inner,
    .login-inner,
    .contact-inner,
    .footer-inner,
    .footer-bottom {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 18px !important;
        padding-right: 18px !important;
    }

    /* Sections should span full viewport */
    section {
        width: 100%;
        padding-left: 18px;
        padding-right: 18px;
    }

    /* HERO */
    .hero {
        padding: 70px 18px 80px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.25;
    }

    .hero-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }

    /* ABOUT */
    .about-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        margin: 0 auto;
    }

    /* FEATURES CAROUSEL */
    .features-carousel {
        justify-content: flex-start;
        padding-left: 0;
        padding-right: 0;
    }

    /* HOW IT WORKS */
    .how-steps {
        grid-template-columns: 1fr;
    }

    .how-step {
        text-align: center;
    }

    /* LOGIN */
    .login-buttons {
        width: 100%;
    }

    .login-btn {
        width: 100%;
    }

    /* CONTACT */
    .contact-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-form {
        width: 100%;
    }

    /* FOOTER */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


















