/* ==========================
   GLOBAL / BODY
========================== */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: #222;
    line-height: 1.6;
}


/* ==========================
   HEADER
========================== */

.site-header {
    position: relative;
    width: 100%;
    height: 150px;
    overflow: visible;
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================
   LOGIN BUTTON (TOP RIGHT)
========================== */

.login-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    cursor: pointer;
    z-index: 50;
}


/* ==========================
   LOGIN FORM (GLASS STYLE)
========================== */

.login-form {
    position: absolute;
    top: 40px; /* overlaps header nicely */
    right: 20px;
    width: 300px;

    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    z-index: 40;

    opacity: 0;
    transform: translateY(-40px);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55),
                opacity 0.35s ease;
}

.login-form.slide-down {
    opacity: 1;
    transform: translateY(0);
}

.login-form h2 {
    margin: 0 0 15px;
    text-align: center;
    font-size: 1.4rem;
}

/* Close button (X) */
.login-close {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.login-close:hover {
    color: #007BFF;
}

/* Inputs */
.login-form input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
}

/* Button */
.login-form button {
    width: 100%;
    padding: 11px;
    margin-top: 8px;
    background: #007BFF;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.login-form button:hover {
    background: #0056b3;
}

.hidden {
    display: none !important;
}


/* ==========================
   MAIN CONTENT
========================== */

main {
    width: 100%;
    padding: 40px 60px;
}


/* ==========================
   HERO SECTION
========================== */

.hero {
    text-align: center;
    padding: 40px 20px 20px;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}


/* ==========================
   FEATURES GRID
========================== */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 50px 0;
}

.feature-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.feature-card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #007BFF;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 1rem;
    color: #555;
}


/* ==========================
   CTA SECTION
========================== */

.cta {
    text-align: center;
    margin: 60px 0;
    font-size: 1.2rem;
}

.login-btn-cta {
    width: 32px;
    vertical-align: middle;
    cursor: pointer;
    margin-left: 8px;
}


/* ==========================
   RESPONSIVE
========================== */

/* Tablet */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }

    main {
        padding: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    html {
        font-size: 18px; /* increase base size */
    }

    .site-header {
        height: 120px;
    }

    .login-btn {
        width: 30px;
        top: 10px;
        right: 10px;
    }

    .login-form {
        left: 50%;                  /* center on screen */
        transform: translateX(-50%) translateY(-30px);
        width: 90%;                 /* almost full width */
        max-width: 400px;           /* bigger than before */
        padding: 25px;              /* more space inside */
    }

    .login-form.slide-down {
        transform: translateX(-50%) translateY(0);
    }

    .login-form input {
        font-size: 1rem;            /* bigger inputs */
        padding: 12px;
    }

    .login-form button {
        font-size: 1rem;
        padding: 12px;
    }


    main {
        padding: 25px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 40px 0;
    }

    .feature-card {
        padding: 28px;
    }

    .feature-card h2 {
        font-size: 1.6rem;
    }

    .feature-card p {
        font-size: 1.05rem;
    }
}

