/* =====================================================
   FINDIT - MAIN STYLE
   Campus Lost & Found
===================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #faf8ff;
    color: #242424;
    line-height: 1.6;
}


/* =====================================================
   NAVBAR
===================================================== */

.navbar {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1250px;
    margin: auto;
    padding: 12px 30px;

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: 145px;
    height: 55px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #6b21c8;
}

.login-link {
    color: #5b21b6 !important;
}

.signup-button {
    color: white !important;
    background: linear-gradient(
        135deg,
        #5b21b6,
        #9333d8
    );

    padding: 11px 22px;
    border-radius: 8px;
}


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

.hero {
    background: linear-gradient(
        135deg,
        #5420b8,
        #7927c7,
        #9333d8
    );

    color: white;
    padding: 90px 30px;
}

.hero-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.hero-tag {
    display: inline-block;

    background: rgba(255,255,255,0.15);

    padding: 8px 15px;
    border-radius: 20px;

    font-size: 14px;
    font-weight: bold;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    color: #ffb000;
}

.hero p {
    font-size: 19px;
    max-width: 600px;
    margin-bottom: 30px;
    color: #f4eaff;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-button,
.secondary-button {
    display: inline-block;

    text-decoration: none;

    padding: 14px 25px;

    border-radius: 8px;

    font-weight: bold;

    transition: 0.3s;
}

.primary-button {
    background: #ffae00;
    color: #ffffff;
}

.primary-button:hover {
    background: #ff9700;
    transform: translateY(-2px);
}

.secondary-button {
    background: #ffffff;
    color: #6323b9;
}

.secondary-button:hover {
    transform: translateY(-2px);
}


/* =====================================================
   SEARCH CARD
===================================================== */

.search-card {
    background: #ffffff;
    color: #222222;

    padding: 35px;

    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.20);
}

.search-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1e7ff;

    border-radius: 15px;

    font-size: 30px;

    margin-bottom: 20px;
}

.search-card h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.search-card p {
    color: #777777;
    font-size: 15px;
    margin-bottom: 20px;
}

.search-card input {
    width: 100%;

    padding: 14px;

    border: 1px solid #dddddd;

    border-radius: 8px;

    font-size: 15px;

    outline: none;

    margin-bottom: 12px;
}

.search-card input:focus {
    border-color: #7c2dcc;
}

.search-button {
    width: 100%;

    border: none;

    padding: 14px;

    background: linear-gradient(
        135deg,
        #6021bc,
        #9635d9
    );

    color: white;

    border-radius: 8px;

    font-size: 15px;
    font-weight: bold;

    cursor: pointer;
}

.search-message {
    text-align: center;
    margin-top: 12px;
}


/* =====================================================
   COMMON SECTION
===================================================== */

.how-section,
.features-section {
    padding: 80px 30px;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-heading span {
    color: #7025c1;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
}

.section-heading h2 {
    font-size: 36px;
    margin: 8px 0;
}

.section-heading p {
    color: #777777;
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.steps-container {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 25px;
}

.step-card {
    background: white;

    padding: 30px;

    text-align: center;

    border-radius: 15px;

    border: 1px solid #eeeeee;

    transition: 0.3s;
}

.step-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 15px 30px rgba(90,30,150,0.10);
}

.step-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f2e8ff;

    border-radius: 50%;

    font-size: 28px;

    margin: 0 auto 18px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.step-card p {
    color: #777777;
    font-size: 14px;
}


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

.features-section {
    background: #f5f1fa;
}

.features-grid {
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.feature-card {
    background: white;

    padding: 30px;

    border-radius: 15px;

    border: 1px solid #eeeeee;
}

.feature-icon {
    font-size: 30px;

    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1e8ff;

    border-radius: 12px;

    margin-bottom: 15px;
}

.feature-card h3 {
    margin-bottom: 8px;
}

.feature-card p {
    color: #777777;
    font-size: 14px;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {
    padding: 80px 30px;

    background: white;
}

.about-container {
    max-width: 1000px;
    margin: auto;

    text-align: center;
}

.about-tag {
    color: #7025c1;
    font-weight: bold;
    font-size: 13px;
}

.about-container h2 {
    font-size: 40px;
    margin: 12px 0 20px;
}

.about-container h2 span {
    color: #7025c1;
}

.about-container p {
    color: #666666;
    max-width: 750px;
    margin: auto;
}


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

.cta-section {
    padding: 70px 30px;

    background: linear-gradient(
        135deg,
        #5b21b6,
        #9333d8
    );

    color: white;
}

.cta-container {
    text-align: center;
}

.cta-container h2 {
    font-size: 36px;
}

.cta-container p {
    margin: 10px 0 25px;
    color: #f0e5ff;
}

.cta-button {
    display: inline-block;

    text-decoration: none;

    background: #ffac00;
    color: white;

    padding: 13px 30px;

    border-radius: 8px;

    font-weight: bold;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #24103d;
    color: white;
    padding: 40px 30px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;

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

.footer-logo img {
    width: 120px;
    height: 50px;
    object-fit: contain;
}

.footer-logo p {
    color: #cbbbd7;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffae00;
}

.copyright {
    text-align: center;

    border-top: 1px solid rgba(255,255,255,0.1);

    margin-top: 30px;
    padding-top: 20px;

    color: #a99bb4;

    font-size: 13px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 900px) {

    .nav-container {
        padding: 12px 18px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-menu a {
        font-size: 13px;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 45px;
    }

    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .nav-menu a:nth-child(2),
    .nav-menu a:nth-child(3),
    .nav-menu a:nth-child(4) {
        display: none;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        text-align: center;
    }

    .steps-container,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

}

/* =====================================================
   FINAL MOBILE FIX
   ===================================================== */

@media (max-width: 600px) {

    /* PAGE SAFETY */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* NAVBAR */
    .navbar {
        width: 100%;
    }

    .nav-container {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        gap: 8px;
    }

    .logo-link {
        flex-shrink: 0;
    }

    .logo {
        width: 95px;
        height: 48px;
    }

    .nav-menu {
        flex: 1;
        min-width: 0;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .nav-menu a {
        font-size: 12px;
        white-space: nowrap;
    }

    /* Hide desktop navigation links */
    .nav-menu a:nth-child(2),
    .nav-menu a:nth-child(3),
    .nav-menu a:nth-child(4) {
        display: none;
    }

    .login-link {
        display: inline-block !important;
    }

    .signup-button {
        display: inline-block !important;
        padding: 9px 13px;
        border-radius: 7px;
    }

    /* HERO */
    .hero {
        width: 100%;
        padding: 55px 16px;
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-content {
        width: 100%;
        min-width: 0;
    }

    .hero-tag {
        max-width: 100%;
        font-size: 12px;
        padding: 7px 11px;
        white-space: normal;
    }

    .hero h1 {
        font-size: 38px;
        line-height: 1.08;
        word-break: normal;
    }

    .hero p {
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.6;
    }

    /* HERO BUTTONS */
    .hero-buttons {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        text-align: center;
        padding: 14px 18px;
    }

    /* SEARCH CARD */
    .search-card {
        width: 100%;
        padding: 24px 18px;
        border-radius: 16px;
    }

    .search-card h2 {
        font-size: 24px;
    }

    .search-card input {
        width: 100%;
        max-width: 100%;
    }

    /* SECTIONS */
    .how-section,
    .features-section {
        padding: 60px 16px;
    }

    .section-heading {
        width: 100%;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .steps-container,
    .features-grid {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .step-card,
    .feature-card {
        width: 100%;
    }

    /* ABOUT */
    .about-section {
        padding: 60px 16px;
    }

    .about-container h2 {
        font-size: 30px;
    }

    /* CTA */
    .cta-section {
        padding: 55px 16px;
    }

    .cta-container h2 {
        font-size: 28px;
    }

    /* FOOTER */
    footer {
        padding: 35px 16px 20px;
    }

    .footer-container {
        width: 100%;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}


/* EXTRA SMALL PHONES */
@media (max-width: 380px) {

    .nav-container {
        padding: 7px 8px;
    }

    .logo {
        width: 82px;
        height: 43px;
    }

    .nav-menu {
        gap: 5px;
    }

    .nav-menu a {
        font-size: 11px;
    }

    .signup-button {
        padding: 8px 10px;
    }

    .hero {
        padding: 45px 14px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-tag {
        font-size: 11px;
    }
}