/* ============================================================
   SISTEM PEMINJAMAN ALAT GUNUNG
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --primary: #1e3a2f;
    /* Deep Forest */
    --primary-dark: #13261f;
    --primary-light: #2c5445;
    --secondary: #c29f63;
    /* Muted Gold */
    --secondary-dark: #a3824b;
    --accent: #214035;
    --bg-dark: #0b1411;
    /* Very dark forest */
    --bg-medium: #111e19;
    --bg-light: #192e26;
    --card-bg: rgba(17, 30, 25, 0.65);
    /* Glassmorphism base */
    --card-border: rgba(194, 159, 99, 0.15);
    /* Gold tint border */
    --text-primary: #f0f4f2;
    --text-secondary: #c29f63;
    --text-muted: #8d9e96;
    --danger: #d9534f;
    --warning: #c29f63;
    --success: #3a755d;
    --info: #4a7c8c;
    --white: #ffffff;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
}

ul {
    list-style: none;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 20, 17, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(194, 159, 99, 0.1);
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.nav-logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(26, 122, 74, 0.4);
}

.custom-logo-img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-logo span {
    color: var(--secondary);
}

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

.nav-links a {
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.nav-links a:hover {
    background: rgba(26, 122, 74, 0.2);
    color: var(--white);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--white);
}

.btn-admin {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark)) !important;
    color: var(--bg-dark) !important;
    font-weight: 600 !important;
    padding: 8px 20px !important;
}

.btn-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    background-color: var(--bg-dark);
    background:
        linear-gradient(135deg, rgba(11, 20, 17, 0.7) 0%, rgba(11, 20, 17, 0.3) 50%, rgba(11, 20, 17, 0.85) 100%),
        url('../images/background.png') center/cover no-repeat;
    background-position: center center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(26, 122, 74, 0.15) 0%, transparent 60%);
}

@keyframes pulse-bg {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(194, 159, 99, 0.08);
    border: 1px solid rgba(194, 159, 99, 0.2);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 28px;
    backdrop-filter: blur(15px);
    animation: fadeInDown 0.6s ease;
    box-shadow: 0 4px 15px rgba(194, 159, 99, 0.1);
    letter-spacing: 0.5px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 20px;
    animation: fadeInUp 0.4s ease forwards;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--secondary), #fbbf24, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 64px auto 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease forwards;
}

.stat-item {
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.01);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(194, 159, 99, 0.2);
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Mountain silhouette animation - Removed for elegance */
.mountain-bg {
    display: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
    padding: 90px 24px;
}

.section-fitur {
    background: linear-gradient(rgba(11, 20, 17, 0.85), rgba(11, 20, 17, 0.95)), url('../images/background2.png') center/cover;
}

.section-alt {
    background: linear-gradient(rgba(11, 20, 17, 0.75), rgba(11, 20, 17, 0.85)), url('../images/background3.png') center/cover;
}

.section-steps {
    background: linear-gradient(rgba(11, 20, 17, 0.85), rgba(11, 20, 17, 0.95)), url('../images/background2.png') center/cover;
}

.relative-z {
    position: relative;
    z-index: 2;
}

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

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(194, 159, 99, 0.08);
    border: 1px solid rgba(194, 159, 99, 0.2);
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 8px 22px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(194, 159, 99, 0.08);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-body);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(26, 122, 74, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(26, 122, 74, 0.5);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-warning {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--bg-dark);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    color: var(--bg-dark);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    color: var(--white);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary-light);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid rgba(194, 159, 99, 0.15);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: rgba(194, 159, 99, 0.1);
    color: var(--secondary);
    border-color: rgba(194, 159, 99, 0.3);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: var(--bg-dark);
    border-color: var(--secondary);
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(194, 159, 99, 0.35);
}

/* ============================================================
   EQUIPMENT CARDS
   ============================================================ */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.equipment-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.equipment-card:hover {
    transform: translateY(-10px);
    border-color: rgba(194, 159, 99, 0.4);
    box-shadow: 0 20px 40px rgba(194, 159, 99, 0.15);
}

.card-image {
    height: 190px;
    background: linear-gradient(135deg, var(--bg-light), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at bottom right, rgba(194, 159, 99, 0.15), transparent);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.equipment-card:hover .card-image img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(11, 20, 17, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(194, 159, 99, 0.25);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.card-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(58, 117, 93, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(58, 117, 93, 0.4);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6ee7b7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.card-stock.empty {
    background: rgba(217, 83, 79, 0.2);
    border: 1px solid rgba(217, 83, 79, 0.4);
    color: #fca5a5;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--card-border);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.price-unit {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-card {
    background: rgba(17, 30, 25, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(194, 159, 99, 0.12);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--secondary);
    letter-spacing: 0.3px;
}

.form-label span {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(26, 122, 74, 0.1);
    box-shadow: 0 0 0 3px rgba(26, 122, 74, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

select.form-control option {
    background: var(--bg-dark);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Custom File Upload */
.custom-file-upload {
    position: relative;
    width: 100%;
}

.file-input-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-upload-trigger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(194, 159, 99, 0.2);
    border-radius: var(--radius);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-upload-trigger:hover {
    background: rgba(194, 159, 99, 0.05);
    border-color: var(--secondary);
    color: var(--text-primary);
}

.file-upload-trigger i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.file-upload-trigger:hover i {
    transform: translateY(-4px);
}

.file-upload-trigger span {
    font-size: 0.9rem;
    font-weight: 600;
}

.file-name-preview {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    font-weight: 400 !important;
    margin-top: 4px;
    display: block;
    word-break: break-all;
}

/* Price preview */
.price-preview {
    background: rgba(26, 122, 74, 0.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 24px;
    display: none;
}

.price-preview.show {
    display: block;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--card-border);
}

.price-row:last-child {
    border: none;
    padding-top: 12px;
}

.price-row.total {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ============================================================
   ALERTS & MESSAGES
   ============================================================ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    animation: fadeInDown 0.4s ease;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.badge-menunggu {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-disetujui {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-dipinjam {
    background: rgba(26, 122, 74, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(26, 122, 74, 0.3);
}

.badge-selesai {
    background: rgba(156, 163, 175, 0.15);
    color: #d1d5db;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.badge-ditolak {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(194, 159, 99, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(194, 159, 99, 0.35);
    box-shadow: 0 20px 40px rgba(194, 159, 99, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(194, 159, 99, 0.15), rgba(30, 58, 47, 0.25));
    border: 1px solid rgba(194, 159, 99, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--secondary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(194, 159, 99, 0.1);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(5deg);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--bg-dark);
    box-shadow: 0 10px 25px rgba(194, 159, 99, 0.3);
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    position: relative;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.015);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border: 2px solid rgba(255, 255, 255, 0.05);
    color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(194, 159, 99, 0.35);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(194, 159, 99, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
}

.step-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: linear-gradient(rgba(11, 20, 17, 0.92), rgba(11, 20, 17, 0.99)), url('../images/background3.png') center/cover no-repeat;
    border-top: 1px solid rgba(194, 159, 99, 0.1);
    padding: 80px 24px 30px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--secondary), transparent);
    border-radius: 2px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(194, 159, 99, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.contact-item:hover {
    color: var(--secondary);
}

/* ============================================================
   ADMIN STYLES
   ============================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-medium);
    border-right: 1px solid var(--card-border);
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--card-border);
}

.sidebar-nav {
    padding: 16px 0;
}

.sidebar-label {
    padding: 8px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: rgba(26, 122, 74, 0.1);
    color: var(--text-primary);
    border-left-color: var(--primary);
}

.sidebar-nav a .nav-icon {
    font-size: 1.1rem;
}

.sidebar-nav .logout-link {
    color: var(--danger);
}

.sidebar-nav .logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--danger);
}

.admin-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    background: var(--bg-dark);
}

.admin-topbar {
    background: var(--bg-medium);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-main {
    padding: 32px;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

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

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.green {
    background: rgba(26, 122, 74, 0.2);
}

.stat-icon.yellow {
    background: rgba(245, 158, 11, 0.2);
}

.stat-icon.blue {
    background: rgba(59, 130, 246, 0.2);
}

.stat-icon.red {
    background: rgba(239, 68, 68, 0.2);
}

.stat-info .stat-value {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Data Table */
.data-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.data-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.data-card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
    white-space: nowrap;
}

tbody td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

tbody tr:last-child td {
    border: none;
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.action-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Login */
.login-page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(11, 20, 17, 0.92) 0%, rgba(11, 20, 17, 0.7) 50%, rgba(11, 20, 17, 0.95) 100%),
        url('../images/background.png') center/cover no-repeat;
    background-color: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.login-page .blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}

.login-page .circle-1 {
    width: 320px;
    height: 320px;
    background: var(--secondary);
    top: 10%;
    left: 10%;
    animation: float-slow 15s infinite alternate ease-in-out;
}

.login-page .circle-2 {
    width: 280px;
    height: 280px;
    background: var(--success);
    bottom: 10%;
    right: 10%;
    animation: float-slow 12s infinite alternate-reverse ease-in-out;
}

@keyframes float-slow {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(35px) scale(1.1);
    }
}

.login-card {
    background: rgba(17, 30, 25, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(194, 159, 99, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(194, 159, 99, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary), var(--primary));
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo .logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 16px;
    box-shadow: 0 12px 30px rgba(194, 159, 99, 0.35);
    animation: pulseGlow 3s ease-in-out infinite;
}

.login-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.modal-close:hover {
    color: var(--text-primary);
}

/* ============================================================
   SEARCH BOX
   ============================================================ */
.search-box {
    position: relative;
    max-width: 400px;
}

.search-box input {
    padding-left: 40px !important;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 12px 30px rgba(194, 159, 99, 0.35);
    }

    50% {
        box-shadow: 0 12px 40px rgba(194, 159, 99, 0.55), 0 0 20px rgba(194, 159, 99, 0.15);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease;
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease;
}

.animate-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Scroll Reveal classes */
.reveal-element {
    opacity: 0;
    transform: translateY(35px) scale(0.98);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ============================================================
   RESPONSIVE & PWA MOBILE APP UI
   ============================================================ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    /* Hide top nav links and hamburger on mobile, we use bottom nav instead! */
    .nav-links,
    .hamburger {
        display: none !important;
    }

    /* Body padding for bottom nav */
    body {
        padding-bottom: 80px;
    }

    /* Bottom Navigation Bar */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(11, 20, 17, 0.9);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--card-border);
        padding: 8px 16px env(safe-area-inset-bottom, 16px);
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 600;
        text-decoration: none;
        flex: 1;
        transition: var(--transition);
    }

    .nav-item i {
        font-size: 1.4rem;
    }

    .nav-item.active {
        color: var(--secondary);
    }

    .nav-item.active i {
        color: var(--secondary);
    }

    /* Special Floating Action Button style for Rent */
    .rent-btn {
        position: relative;
        top: -15px;
    }

    .rent-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--bg-dark);
        font-size: 1.5rem;
        box-shadow: 0 8px 20px rgba(194, 159, 99, 0.4);
        margin-bottom: 4px;
        border: 4px solid var(--bg-dark);
    }

    /* Vertically Stacked Grids for Premium Mobile Experience */
    .features-grid,
    .equipment-grid,
    .steps-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
        margin: 0;
    }

    .feature-card,
    .equipment-card,
    .step-item {
        width: 100%;
        min-width: unset;
        flex: unset;
        scroll-snap-align: unset;
    }

    .hero {
        padding: 120px 20px 60px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 40px;
        padding: 0;
    }

    .stat-item {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 12px;
        min-width: unset;
    }

    /* Bottom Sheet Modal for Mobile */
    .modal-box {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        padding: 32px 24px calc(24px + env(safe-area-inset-bottom, 0px));
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-overlay.show .modal-box {
        transform: translateY(0);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-bottom: 60px;
    }

    /* Admin UI fixes */
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
    }

    .admin-main {
        padding: 20px;
    }

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

    .form-card {
        padding: 24px;
    }

    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   UTILS
   ============================================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--secondary);
}

.text-muted {
    color: var(--text-muted);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.gap-2 {
    gap: 16px;
}

.fw-bold {
    font-weight: 700;
}

.separator {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 24px 0;
}

.w-100 {
    width: 100%;
}