:root {
    --primary: #1F4C52;
    --primary-dark: #163b40;
    --primary-light: #eaf3f3;

    --accent: #FFA62E;
    --accent-light: #fff1dc;

    --white: #ffffff;
    --black: #122024;

    --text: #34464a;
    --muted: #708084;

    --background: #f8faf9;
    --border: #e5ebeb;

    --radius: 20px;
    --shadow: 0 20px 50px rgba(31, 76, 82, 0.10);

    --transition: 0.3s ease;
}


/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}


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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 110px 0;
}

.section-label {
    display: inline-block;
    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2,
.hostel-content h2,
.study-content h2,
.about-heading h2 {
    color: var(--black);

    font-family: "Manrope", sans-serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading h2 span,
.hostel-content h2 span,
.study-content h2 span,
.about-heading h2 span {
    color: var(--primary);
}

.section-heading p {
    margin-top: 20px;

    color: var(--muted);
    font-size: 1.05rem;
}


/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 22px;

    border-radius: 12px;

    font-size: 0.95rem;
    font-weight: 700;

    transition: var(--transition);
}

.button span {
    font-size: 1.15rem;
    transition: var(--transition);
}

.button:hover span {
    transform: translateX(4px);
}

.button-primary {
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 25px rgba(31, 76, 82, 0.18);
}

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

.button-secondary {
    color: var(--primary);
    background: var(--white);
    border: 1px solid var(--border);
}

.button-secondary:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.button-light {
    color: var(--primary);
    background: var(--white);
}

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


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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 18px 0;

    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(15px);

    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.06);
}

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

.logo img {
    width: 125px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links > a:not(.nav-button) {
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.nav-links > a:not(.nav-button):hover {
    color: var(--accent);
}

.nav-button {
    padding: 11px 18px;

    color: var(--white) !important;
    background: var(--primary);

    border-radius: 10px;

    font-size: 0.9rem;
    font-weight: 700;
}

.mobile-menu {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 10px;

    background: var(--primary);

    cursor: pointer;
}

.mobile-menu span {
    display: block;

    width: 20px;
    height: 2px;

    margin: 4px auto;

    background: var(--white);

    transition: var(--transition);
}


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

.hero {
    position: relative;

    min-height: 850px;

    display: flex;
    align-items: center;

    padding: 150px 0 100px;

    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(255, 166, 46, 0.13),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #f6faf9 0%,
            #ffffff 100%
        );

    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 70px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;
    padding: 8px 13px;

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 50px;

    font-size: 0.8rem;
    font-weight: 700;
}

.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--accent);
}

.hero h1 {
    max-width: 650px;

    color: var(--black);

    font-family: "Manrope", sans-serif;
    font-size: clamp(3.2rem, 5.5vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--primary);
}

.hero-content > p {
    max-width: 580px;

    margin: 28px 0;

    color: var(--muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 35px;
}

.hero-trust strong,
.hero-trust small {
    display: block;
}

.hero-trust strong {
    color: var(--black);
    font-size: 0.85rem;
}

.hero-trust small {
    color: var(--muted);
    font-size: 0.75rem;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    margin-left: -7px;

    color: var(--white);
    background: var(--primary);

    border: 2px solid var(--white);
    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 700;
}

.avatar-stack span:first-child {
    margin-left: 0;
}

.avatar-stack span:nth-child(2) {
    background: var(--accent);
}

.avatar-stack span:nth-child(3) {
    background: #557c81;
}

.avatar-stack span:nth-child(4) {
    color: var(--primary);
    background: var(--primary-light);
}


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

.hero-visual {
    position: relative;
    min-height: 570px;

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

.dashboard-card {
    position: relative;
    z-index: 2;

    width: min(100%, 540px);

    padding: 30px;

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

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 26px;

    box-shadow:
        0 30px 80px rgba(31, 76, 82, 0.16);

    backdrop-filter: blur(20px);
}

.dashboard-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dashboard-label {
    color: var(--muted);
    font-size: 0.75rem;
}

.dashboard-top h3 {
    margin-top: 4px;

    color: var(--black);

    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
}

.dashboard-top h3 span {
    color: var(--primary);
}

.notification-icon {
    width: 40px;
    height: 40px;

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

    background: var(--primary-light);
    border-radius: 12px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 25px 0;

    padding: 15px 17px;

    color: #8a989a;
    background: #f5f7f7;

    border-radius: 12px;

    font-size: 0.8rem;
}

.search-box span:first-child {
    color: var(--primary);
    font-size: 1.2rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.quick-card {
    padding: 19px;

    border: 1px solid var(--border);
    border-radius: 16px;

    transition: var(--transition);
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.quick-icon {
    width: 42px;
    height: 42px;

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

    margin-bottom: 13px;

    background: var(--primary-light);
    border-radius: 12px;
}

.gist-card .quick-icon,
.advert-card .quick-icon {
    background: var(--accent-light);
}

.quick-card strong,
.quick-card small {
    display: block;
}

.quick-card strong {
    color: var(--black);
    font-size: 0.9rem;
}

.quick-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.7rem;
}

.dashboard-bottom {
    display: flex;
    align-items: center;
    gap: 12px;

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

    border-top: 1px solid var(--border);
}

.mini-avatar {
    width: 38px;
    height: 38px;

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

    color: var(--white);
    background: var(--primary);

    border-radius: 50%;

    font-weight: 700;
}

.dashboard-bottom strong,
.dashboard-bottom small {
    display: block;
}

.dashboard-bottom strong {
    color: var(--black);
    font-size: 0.8rem;
}

.dashboard-bottom small {
    color: var(--muted);
    font-size: 0.7rem;
}

.arrow {
    margin-left: auto;

    color: var(--primary);

    font-size: 1.2rem;
}


/* Floating cards */

.floating-card {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 15px;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 20px 45px rgba(31, 76, 82, 0.14);

    animation: float 5s ease-in-out infinite;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    color: var(--black);
    font-size: 0.72rem;
}

.floating-card small {
    color: var(--muted);
    font-size: 0.65rem;
}

.floating-hostel {
    top: 90px;
    right: -20px;
}

.floating-study {
    bottom: 75px;
    left: -20px;
}

.floating-icon,
.study-icon {
    width: 38px;
    height: 38px;

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

    background: var(--primary-light);

    border-radius: 10px;
}

.study-icon {
    background: var(--accent-light);
}

.check {
    color: #27955b;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}


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

.features {
    background: var(--white);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.feature-card {
    position: relative;

    min-height: 310px;

    padding: 30px;

    background: #f8faf9;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;

    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-large {
    background: var(--primary);
    color: var(--white);
}

.feature-icon {
    width: 48px;
    height: 48px;

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

    margin-bottom: 25px;

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

    border-radius: 13px;

    font-size: 1.3rem;
}

.feature-card:not(.feature-large) .feature-icon {
    background: var(--primary-light);
}

.feature-icon.orange {
    background: var(--accent-light) !important;
}

.feature-number {
    display: block;

    margin-bottom: 8px;

    color: var(--accent);

    font-size: 0.7rem;
    font-weight: 700;
}

.feature-card h3 {
    margin-bottom: 10px;

    color: var(--black);

    font-family: "Manrope", sans-serif;
    font-size: 1.4rem;
}

.feature-large h3 {
    color: var(--white);
}

.feature-card p {
    max-width: 450px;

    color: var(--muted);
    font-size: 0.9rem;
}

.feature-large p {
    color: rgba(255, 255, 255, 0.72);
}

.feature-link {
    display: inline-block;

    margin-top: 22px;

    color: var(--primary);

    font-size: 0.8rem;
    font-weight: 700;
}

.feature-large .feature-link {
    color: var(--accent);
}

.feature-pattern {
    position: absolute;

    width: 240px;
    height: 240px;

    right: -90px;
    bottom: -100px;

    border: 35px solid rgba(255, 255, 255, 0.05);

    border-radius: 50%;
}

.feature-ad {
    background: var(--accent-light);
}

.feature-ad-content {
    position: relative;
    z-index: 2;
}

.feature-ad .feature-icon {
    color: var(--primary);
}

.ad-shape {
    position: absolute;

    right: 35px;
    bottom: -35px;

    width: 140px;
    height: 140px;

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

    color: rgba(31, 76, 82, 0.15);

    border: 25px solid rgba(31, 76, 82, 0.06);
    border-radius: 50%;

    font-size: 1.5rem;
    font-weight: 800;
}


/* =========================
   HOSTELS
========================= */

.hostels-section {
    background: #f2f7f6;
}

.hostel-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 80px;
}

.hostel-content p,
.study-content p {
    max-width: 520px;

    margin: 22px 0;

    color: var(--muted);
}

.hostel-points {
    margin: 28px 0;
}

.hostel-points div {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 13px 0;

    color: var(--text);
    font-size: 0.9rem;
}

.hostel-points span {
    width: 24px;
    height: 24px;

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

    color: var(--primary);
    background: var(--primary-light);

    border-radius: 50%;

    font-size: 0.7rem;
    font-weight: 800;
}

.hostel-visual {
    padding: 30px;

    background: var(--white);

    border-radius: 26px;

    box-shadow: var(--shadow);
}

.hostel-main-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
}

.hostel-image {
    position: relative;

    height: 260px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #5d8588
        );
}

.image-placeholder {
    height: 100%;

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

    font-size: 5rem;

    opacity: 0.9;
}

.verified {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 7px 11px;

    color: var(--primary);
    background: var(--white);

    border-radius: 50px;

    font-size: 0.7rem;
    font-weight: 700;
}

.hostel-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    padding: 20px;
}

.hostel-location {
    color: var(--muted);
    font-size: 0.7rem;
}

.hostel-details h3 {
    margin-top: 4px;

    color: var(--black);

    font-family: "Manrope", sans-serif;
}

.hostel-rating {
    color: #d88600;

    font-size: 0.75rem;
    font-weight: 700;
}

.hostel-meta {
    display: flex;
    gap: 10px;

    padding: 0 20px 20px;
}

.hostel-meta span {
    padding: 7px 9px;

    color: var(--muted);
    background: #f5f7f7;

    border-radius: 8px;

    font-size: 0.65rem;
}


/* =========================
   STUDY
========================= */

.study-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 80px;
}

.question-window {
    background: var(--white);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);

    overflow: hidden;
}

.window-header {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 16px 20px;

    color: var(--primary);

    border-bottom: 1px solid var(--border);

    font-size: 0.8rem;
    font-weight: 700;
}

.window-dots {
    display: flex;
    gap: 5px;
}

.window-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--border);
}

.question-list {
    padding: 12px;
}

.question-item {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px;

    border-radius: 12px;

    transition: var(--transition);
}

.question-item:hover {
    background: var(--primary-light);
}

.question-icon {
    width: 40px;
    height: 40px;

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

    background: var(--accent-light);

    border-radius: 10px;
}

.question-item strong,
.question-item small {
    display: block;
}

.question-item strong {
    color: var(--black);
    font-size: 0.8rem;
}

.question-item small {
    margin-top: 2px;

    color: var(--muted);
    font-size: 0.65rem;
}

.question-item > span:last-child {
    margin-left: auto;

    color: var(--primary);
}


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

.cta-section {
    padding: 30px 0 110px;

    background: var(--white);
}

.cta-card {
    position: relative;

    padding: 80px 70px;

    color: var(--white);
    background: var(--primary);

    border-radius: 28px;

    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}

.cta-card .section-label {
    color: var(--accent);
}

.cta-card h2 {
    color: var(--white);

    font-family: "Manrope", sans-serif;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.cta-card h2 span {
    color: var(--accent);
}

.cta-card p {
    margin: 20px 0 28px;

    color: rgba(255, 255, 255, 0.72);
}

.cta-decoration {
    position: absolute;

    right: -100px;
    top: -100px;

    width: 400px;
    height: 400px;

    border: 70px solid rgba(255, 255, 255, 0.04);

    border-radius: 50%;
}


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

.about-section {
    background: var(--background);
}

.about-container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.about-text {
    padding-top: 40px;
}

.about-text p {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.9;
}


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

.footer {
    padding: 70px 0 25px;

    color: rgba(255, 255, 255, 0.65);
    background: #122f33;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 80px;

    padding-bottom: 50px;

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

.footer-brand img {
    width: 125px;

    margin-bottom: 15px;

    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 220px;

    font-size: 0.8rem;
}

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

.footer-links h4 {
    margin-bottom: 16px;

    color: var(--white);

    font-size: 0.8rem;
}

.footer-links a {
    display: block;

    margin: 9px 0;

    font-size: 0.75rem;

    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding-top: 22px;

    font-size: 0.7rem;
}


/* =========================
   REVEAL ANIMATION
========================= */

.reveal {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


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

@media (max-width: 1000px) {

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

    .hero {
        padding-top: 130px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-visual {
        min-height: 530px;
    }

    .hostel-container,
    .study-container {
        gap: 50px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-text {
        padding-top: 0;
    }
}


@media (max-width: 760px) {

    .container {
        width: min(100% - 28px, 1180px);
    }

    .section {
        padding: 75px 0;
    }

    .nav-links {
        position: absolute;

        top: 75px;
        left: 14px;
        right: 14px;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;

        padding: 15px;

        background: var(--white);

        border: 1px solid var(--border);
        border-radius: 16px;

        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a {
        padding: 12px;
    }

    .nav-button {
        text-align: center;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: auto;
        padding: 125px 0 70px;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
    }

    .hero-content > p {
        font-size: 1rem;
    }

    .hero-visual {
        min-height: 460px;
    }

    .dashboard-card {
        padding: 20px;
    }

    .floating-hostel {
        top: 20px;
        right: -5px;
    }

    .floating-study {
        bottom: 20px;
        left: -5px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 280px;
    }

    .hostel-visual {
        padding: 15px;
    }

    .hostel-image {
        height: 220px;
    }

    .hostel-meta {
        flex-wrap: wrap;
    }

    .cta-card {
        padding: 55px 28px;
    }

    .footer-main {
        flex-direction: column;
        gap: 45px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}


@media (max-width: 450px) {

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

    .button {
        width: 100%;
    }

    .quick-grid {
        gap: 8px;
    }

    .quick-card {
        padding: 13px;
    }

    .quick-card strong {
        font-size: 0.78rem;
    }

    .quick-card small {
        font-size: 0.62rem;
    }

    .floating-card {
        transform: scale(0.85);
    }

    .floating-hostel {
        right: -25px;
    }

    .floating-study {
        left: -25px;
    }
}
