/* ===== COLOR PALETTE - BLACK & LIGHT GREY WITH GREEN ===== */
:root {
    --cream-bg: #FFF4E0;
    --black-primary: #2C2C2C;
    --grey-light: #D3D3D3;
    --grey-medium: #B8B8B8;
    --green-light: #90C695;
    --green-lighter: #B8DDB8;
    --green-pale: #D4EDD4;
    --text-dark: #5A4A4A;
    --white: #FFFFFF;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--cream-bg);
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION BAR ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 248, 240, 0.98);
    box-shadow: 0 2px 10px rgba(44, 44, 44, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--black-primary);
}

nav.scrolled {
    background: rgba(255, 248, 240, 1);
    box-shadow: 0 2px 20px rgba(44, 44, 44, 0.25);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.4rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== LOGO WITH IMAGE ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-image {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-text .campus {
    color: var(--green-light);
}

.logo-text .thrift {
    color: var(--black-primary);
    font-style: italic;
    font-weight: 800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--green-light);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== NAVBAR DOWNLOAD BUTTON ===== */
.nav-download {
    background: linear-gradient(135deg, var(--green-light), var(--green-lighter));
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(1, 22, 3, 0.35);
    transition: all 0.3s ease;
}

.nav-download::after {
    display: none;
}

.nav-download:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(144, 198, 149, 0.45);
    background: linear-gradient(135deg, #7AB680, var(--green-light));
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black-primary);
}

/* ===== HOME SECTION ===== */
.home-section {
    min-height: 100vh;
    background: url('frontpage.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 500px;
    text-align: left;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.buy-sell {
    color: #6B9F8E !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.campus-essentials {
    color: #2D2D2D;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    display: inline;
}

.hero-content p,
.hero-subtitle {
    color: #2C5F4F;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--green-light), var(--green-lighter));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(144, 198, 149, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(144, 198, 149, 0.4);
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--green-light);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--black-primary);
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--black-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    line-height: 1.8;
    position: relative;
    padding-left: 1.5rem;
}

.about-list li::before {
    content: 'x';
    position: absolute;
    left: 0;
    color: var(--green-lighter);
    font-weight: bold;
    font-size: 1.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-placeholder {
    width: 100%;
    max-width: 400px;
    height: 400px;
    background: var(--cream-bg);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(44, 44, 44, 0.3);
    border: 3px solid var(--green-lighter);
}

.about-placeholder svg {
    margin-bottom: 1.5rem;
}

.about-placeholder svg path {
    fill: var(--green-light);
}

.about-placeholder p {
    font-size: 1.2rem;
    text-align: center;
    padding: 0 2rem;
    color: var(--text-dark);
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 5rem 0;
    background: var(--cream-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--cream-bg);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 44, 44, 0.2);
    border-color: var(--black-primary);
}

.feature-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--green-light);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 5rem 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--cream-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
    border: 2px solid var(--grey-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--green-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--grey-light);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-light);
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    min-height: 1.2rem;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--green-light), var(--green-lighter));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(144, 198, 149, 0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: var(--cream-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
    transition: transform 0.3s ease;
    border: 2px solid var(--grey-light);
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.contact-card h4 {
    font-size: 1.2rem;
    color: var(--green-light);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-dark);
}

/* ===== DOWNLOAD SECTION ===== */
.download-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--black-primary) 0%, var(--grey-light) 100%);
    color: white;
}

.download-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-text > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.download-features {
    margin-bottom: 2rem;
}

.download-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.download-feature span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--green-pale);
}

.download-feature p {
    font-size: 1.1rem;
}

.download-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--green-light), var(--green-lighter));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== IKEA-STYLE 3D ROTATING PHONE MOCKUP ===== */

.phone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    perspective-origin: center center;
}

.phone-rotation-wrapper {
    position: relative;
    width: 300px;
    height: 600px;
    transform-style: preserve-3d;
    animation: ikea-rotate 8s ease-in-out infinite;
    cursor: grab;
    user-select: none;
}

.phone-rotation-wrapper:active {
    cursor: grabbing;
}

@keyframes ikea-rotate {
    0%   { transform: rotateY(0deg)   rotateX(0deg); }
    10%  { transform: rotateY(20deg)  rotateX(3deg); }
    25%  { transform: rotateY(45deg)  rotateX(5deg); }
    40%  { transform: rotateY(25deg)  rotateX(2deg); }
    50%  { transform: rotateY(0deg)   rotateX(0deg); }
    60%  { transform: rotateY(-20deg) rotateX(-3deg); }
    75%  { transform: rotateY(-45deg) rotateX(-5deg); }
    90%  { transform: rotateY(-20deg) rotateX(-2deg); }
    100% { transform: rotateY(0deg)   rotateX(0deg); }
}

.phone-rotation-wrapper:hover {
    animation-play-state: paused;
}

.phone-rotation-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.35) 0%, transparent 70%);
    border-radius: 50%;
    animation: shadow-pulse 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shadow-pulse {
    0%   { transform: translateX(-50%) scaleX(1);   opacity: 0.7; }
    25%  { transform: translateX(-50%) scaleX(0.6); opacity: 0.4; }
    50%  { transform: translateX(-50%) scaleX(1);   opacity: 0.7; }
    75%  { transform: translateX(-50%) scaleX(0.6); opacity: 0.4; }
    100% { transform: translateX(-50%) scaleX(1);   opacity: 0.7; }
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: var(--text-dark);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255,255,255,0.08),
        inset 0 0 0 2px rgba(255,255,255,0.05),
        -4px 0 12px rgba(255,255,255,0.06),
        4px 0 12px rgba(0,0,0,0.3);
    position: relative;
    border: 3px solid var(--green-lighter);
    transform-style: preserve-3d;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 30px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.05) 30%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 10;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: var(--text-dark);
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-preview {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--green-light) 0%, var(--green-lighter) 100%);
}

.app-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-rotation-wrapper.dragging {
    animation: none;
    transition: transform 0.05s linear;
}

/* ===== MODERN FOOTER ===== */
.footer {
    background: #1f1f1f;
    color: #e5e5e5;
    padding-top: 4rem;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand p {
    margin: 1rem 0;
    line-height: 1.7;
    color: #cfcfcf;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-logo img {
    width: 42px;
}

.footer-logo h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--green-light);
}

.footer-socials {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    background: #2b2b2b;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--green-light);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-links a {
    display: block;
    margin-bottom: 0.6rem;
    color: #cfcfcf;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--green-light);
    transform: translateX(4px);
}

.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-newsletter p {
    color: #cfcfcf;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.7rem;
    border-radius: 6px;
    border: none;
    outline: none;
}

.newsletter-form button {
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    border: none;
    background: var(--green-light);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--green-lighter);
}

.footer-bottom {
    margin-top: 3rem;
    border-top: 1px solid #333;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #aaa;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0.8rem 1.5rem;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--cream-bg);
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        box-shadow: 0 10px 20px rgba(44, 44, 44, 0.2);
        border-bottom: 2px solid var(--black-primary);
    }

    .nav-links.active {
        max-height: 500px;
        padding-bottom: 1rem;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid rgba(211, 211, 211, 0.3);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: var(--green-light);
        background: rgba(144, 198, 149, 0.1);
    }

    .nav-download {
        display: block;
        margin: 1.5rem 1.5rem 0.5rem 1.5rem;
        text-align: center;
        padding: 1rem 1.5rem;
        border-radius: 50px;
        font-size: 1.05rem;
        box-shadow: 0 4px 12px rgba(144, 198, 149, 0.4);
    }

    .nav-download:hover {
        background: linear-gradient(135deg, var(--green-light), var(--green-lighter));
        transform: none;
    }

    .nav-download:active {
        transform: scale(0.98);
    }

    .mobile-menu-btn {
        display: block;
        padding: 0.5rem;
        z-index: 1001;
    }

    .logo-image { width: 55px; height: 55px; }
    .logo-text  { font-size: 1.4rem; }

    .home-section {
        padding: 5rem 1.5rem 2rem;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p  { font-size: 1.15rem; }
    .cta-button      { padding: 1rem 2.5rem; }

    .about-section   { padding: 3rem 0; }
    .about-content   { grid-template-columns: 1fr; gap: 2rem; }
    .about-text h3   { font-size: 1.5rem; margin-top: 1.5rem; }

    .about-placeholder {
        height: 300px;
        max-width: 300px;
        margin: 0 auto;
    }

    .features-section { padding: 3rem 0; }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .feature-card { padding: 1.5rem; }

    .download-section  { padding: 3rem 0; }
    .download-content  { grid-template-columns: 1fr; gap: 2rem; }
    .download-text     { text-align: center; order: 2; }
    .phone-mockup      { order: 1; }

    .phone-rotation-wrapper { width: 240px; height: 480px; }
    .phone-frame            { width: 240px; height: 480px; }

    .contact-section   { padding: 3rem 0; }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .form-group { margin-bottom: 1rem; }

    input, textarea { padding: 0.9rem; font-size: 1rem; }
    .submit-button  { width: 100%; padding: 1rem; }

    body       { overflow-x: hidden; width: 100%; position: relative; }
    .container { width: 100%; max-width: 100%; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0.6rem 1rem; }

    .logo-text  { font-size: 1.25rem; }
    .logo-image { width: 50px; height: 50px; }

    .mobile-menu-btn { font-size: 1.5rem; }

    .nav-links.active { max-height: 450px; }

    .nav-links a {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }

    .nav-download {
        margin: 1.2rem 1rem 0.5rem 1rem;
        padding: 0.9rem 1.2rem;
        font-size: 1rem;
    }

    .home-section { min-height: 90vh; padding: 4.5rem 1rem 2rem; }

    .hero-content h1 { font-size: 2rem; }
    .hero-content p  { font-size: 1.05rem; margin-bottom: 1.5rem; }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .section-title    { font-size: 2rem; }
    .section-subtitle { font-size: 1rem; padding: 0 1rem; }
    .about-text p     { font-size: 0.95rem; line-height: 1.7; }
    .about-list li    { font-size: 0.95rem; }

    .about-placeholder { height: 260px; max-width: 260px; }
    .features-section  { padding: 2.5rem 0; }

    .feature-card h3 { font-size: 1.25rem; }
    .feature-card p  { font-size: 0.95rem; }

    .download-text h2 { font-size: 2rem; }
    .download-text p  { font-size: 1rem; }
    .download-feature { font-size: 0.95rem; }

    .download-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .phone-rotation-wrapper { width: 200px; height: 400px; }

    .phone-frame {
        width: 200px;
        height: 400px;
        border-radius: 30px;
        padding: 10px;
    }

    .phone-frame::before { width: 120px; height: 25px; }

    .contact-form, .contact-card { padding: 1.5rem; }

    .footer { padding: 1.5rem 1rem; font-size: 0.9rem; }

    .footer-container { grid-template-columns: 1fr; gap: 2rem; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-content h1 { font-size: 1.75rem; }
    .logo-text       { font-size: 1.1rem; }
    .logo-image      { width: 45px; height: 45px; }

    .nav-download {
        margin: 1rem 0.8rem 0.5rem 0.8rem;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .phone-rotation-wrapper { width: 180px; height: 360px; }
    .phone-frame            { width: 180px; height: 360px; }
    .about-placeholder      { height: 230px; max-width: 230px; }
    .section-title          { font-size: 1.65rem; }
    .cta-button             { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
}

@media (hover: none) and (pointer: coarse) {
    .nav-links a:hover::after { width: 0; }

    .cta-button, .download-button, .submit-button, .nav-download {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    input, textarea, button { font-size: 16px; }

    .chatbot-quick-reply-btn,
    .chatbot-send-btn,
    .chatbot-toggle,
    .chatbot-minimize-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .chatbot-input { font-size: 16px; }
}

@media (max-height: 500px) and (orientation: landscape) {
    .home-section {
        min-height: auto;
        padding: 4rem 1rem 1rem;
    }

    .nav-links.active {
        max-height: 250px;
        overflow-y: auto;
    }

    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p  { font-size: 1rem; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .chatbot-window { height: 90vh; max-height: 90vh; }
    .chatbot-messages { max-height: calc(90vh - 180px); }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInFromLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

.fade-in    { opacity: 0; animation: fadeInUp 0.6s ease forwards; }
.slide-left  { animation: slideInFromLeft 0.6s ease forwards; }
.slide-right { animation: slideInFromRight 0.6s ease forwards; }

/* ===== CAMPUSTHRIFT CHATBOT ===== */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

.chatbot-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #90C695, #B8DDB8);
    border: none;
    box-shadow: 0 4px 20px rgba(144, 198, 149, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(144, 198, 149, 0.5);
}

.chatbot-toggle:active { transform: scale(0.95); }

.chatbot-icon,
.chatbot-close-icon {
    font-size: 24px;
    transition: all 0.3s ease;
    position: absolute;
}

.chatbot-icon { opacity: 1; transform: rotate(0deg); }

.chatbot-close-icon {
    opacity: 0;
    transform: rotate(180deg);
    color: white;
    font-weight: bold;
}

.chatbot-toggle.active .chatbot-icon         { opacity: 0; transform: rotate(-180deg); }
.chatbot-toggle.active .chatbot-close-icon   { opacity: 1; transform: rotate(0deg); }

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    max-width: calc(100vw - 40px);
    height: 420px;
    max-height: 70vh;
    background: white;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, #90C695, #B8DDB8);
    color: white;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-radius: 14px 14px 0 0;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.chatbot-avatar {
    width: 34px;
    height: 34px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.chatbot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-header-text h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.chatbot-status {
    font-size: 10px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

.chatbot-minimize-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.chatbot-minimize-btn:hover { background: rgba(255, 255, 255, 0.2); }

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chatbot-messages::-webkit-scrollbar       { width: 6px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
.chatbot-messages::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

.chatbot-message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
    animation: messageSlideIn 0.3s ease;
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.chatbot-message.bot {
    align-self: flex-start;
    background: white;
    color: #2C2C2C;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #90C695, #B8DDB8);
    color: white;
    border-bottom-right-radius: 4px;
}

.chatbot-quick-replies {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.chatbot-quick-reply-btn {
    background: white;
    border: 2px solid #90C695;
    color: #2C2C2C;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

.chatbot-quick-reply-btn:hover {
    background: #90C695;
    color: white;
    transform: translateX(4px);
}

.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}

.chatbot-input:focus { border-color: #90C695; }

.chatbot-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #90C695, #B8DDB8);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-send-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(144, 198, 149, 0.3); }
.chatbot-send-btn:active { transform: scale(0.95); }
.chatbot-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.chatbot-send-btn:disabled:hover { transform: none; box-shadow: none; }

.chatbot-typing {
    align-self: flex-start;
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e0e0;
    display: flex;
    gap: 4px;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #90C695;
    animation: typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.7; }
    30%           { transform: translateY(-10px); opacity: 1; }
}

/* Chatbot tablet */
@media (max-width: 768px) and (min-width: 481px) {
    .chatbot-window {
        width: 380px;
        height: 550px;
        max-height: calc(100vh - 100px);
    }

    .chatbot-toggle { width: 64px; height: 64px; }
    .chatbot-icon, .chatbot-close-icon { font-size: 26px; }
    .chatbot-header { padding: 18px; }
    .chatbot-avatar { width: 48px; height: 48px; }
    .chatbot-header-text h4 { font-size: 17px; }
    .chatbot-messages { padding: 18px; gap: 14px; }
    .chatbot-message { font-size: 15px; padding: 12px 16px; }
    .chatbot-input { font-size: 15px; padding: 12px 18px; }
    .chatbot-send-btn { width: 44px; height: 44px; }
}

/* Chatbot mobile */
@media (max-width: 480px) {
    .chatbot-container { bottom: 10px; right: 10px; left: 10px; }

    .chatbot-window {
        width: 100%;
        max-width: 100%;
        height: 75vh;
        max-height: 480px;
        bottom: 70px;
        right: 0;
        left: 0;
        margin: 0 auto;
        border-radius: 16px 16px 0 0;
    }

    .chatbot-toggle {
        width: 56px;
        height: 56px;
        position: absolute;
        right: 10px;
        bottom: 0;
    }

    .chatbot-icon, .chatbot-close-icon { font-size: 22px; }
    .chatbot-avatar { width: 40px; height: 40px; }
    .chatbot-header { padding: 14px 16px; }
    .chatbot-header-text h4 { font-size: 15px; }
    .chatbot-status { font-size: 11px; }
    .chatbot-messages { padding: 14px; gap: 10px; }
    .chatbot-message { max-width: 85%; font-size: 14px; padding: 10px 14px; }
    .chatbot-quick-reply-btn { font-size: 13px; padding: 10px 14px; min-height: 44px; }
    .chatbot-input-area { padding: 10px 12px; }
    .chatbot-input { font-size: 16px; padding: 12px 16px; }
    .chatbot-send-btn { width: 44px; height: 44px; }
}

@media (max-width: 360px) {
    .chatbot-window { height: 80vh; max-height: 500px; }
    .chatbot-toggle { width: 52px; height: 52px; }
    .chatbot-header { padding: 12px 14px; }
    .chatbot-avatar { width: 36px; height: 36px; }
    .chatbot-header-text h4 { font-size: 14px; }
    .chatbot-messages { padding: 12px; }
    .chatbot-message { font-size: 13px; padding: 9px 12px; }
}

/* ===== CAPTCHA ===== */
.captcha-box {
    background: #f9fafb;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    margin-top: 20px;
}

.captcha-title    { font-weight: 600; margin-bottom: 6px; }
.captcha-instruction { font-size: 14px; margin-bottom: 10px; }

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.captcha-img {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.2s ease;
}

.captcha-img img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    display: block;
}

.captcha-img.selected {
    border-color: #2D5F3F;
    box-shadow: 0 0 0 2px rgba(45, 95, 63, 0.3);
}

.captcha-img:hover { transform: scale(1.03); }

.captcha-error {
    display: none;
    color: red;
    font-size: 13px;
    margin-top: 6px;
}

@media (max-width: 480px) {
    .captcha-grid { grid-template-columns: repeat(2, 1fr); }
    .captcha-img img { height: 100px; }
}

/* ===== FOOTER MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-overlay.active { display: flex; }

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 14px;
    position: relative;
}

.modal-content h2 { margin-bottom: 1rem; }
.modal-content h4 { margin-top: 1.5rem; }

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.newsletter-message {
    margin-top: 10px;
    font-size: 0.9rem;
}