/* CSS VARIABLES */

:root {
    --primary: #6C5CE7;
    --primary-dark: #5A4BD1;
    --secondary: #00B894;
    --secondary-dark: #00A381;
    --accent: #FDCB6E;
    --dark: #2D3436;
    --light: #DFE6E9;
    --bg: #FFFFFF;
    --bg-alt: #F8F9FA;
    --text: #2D3436;
    --text-light: #636E72;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 35px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    transition: background var(--transition), color var(--transition);
    overflow-x: hidden;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

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

ul {
    list-style: none;
}

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

/* LOADING SCREEN */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 56px;
    animation: pulse 1s ease-in-out infinite;
}

.loader-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    margin: 12px 0;
}

.loader-bar {
    width: 220px;
    height: 4px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* HEADER */
#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: background var(--transition), box-shadow var(--transition);
    padding: 14px 0;
}

#header.scrolled {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    letter-spacing: -0.5px;
}

#navbar {
    display: flex;
    gap: 24px;
}

#navbar a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
    position: relative;
    padding: 4px 0;
}

#navbar a:hover,
#navbar a.active {
    color: var(--primary);
}

#navbar a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.header-controls {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header-controls button {
    font-size: 20px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
    color: var(--text);
}

.header-controls button:hover {
    background: var(--bg-alt);
}

#menu-toggle {
    display: none;
    font-size: 26px;
    padding: 4px 8px;
}

/* SEARCH OVERLAY */
#search-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 24px;
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

#search-overlay.active {
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-container input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 16px;
    background: var(--bg-alt);
    color: var(--text);
    transition: border-color var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary);
}

#search-close {
    font-size: 26px;
    padding: 8px 12px;
    color: var(--text-light);
}

#search-results {
    max-width: 600px;
    margin: 16px auto 0;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--light);
    cursor: pointer;
    transition: background var(--transition);
}

.search-result-item:hover {
    background: var(--bg-alt);
}

.search-result-item .result-name {
    font-weight: 600;
}

.search-result-item .result-country {
    font-size: 13px;
    color: var(--text-light);
}

/* HOME/HERO */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 520px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 10s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #fff;
    padding: 20px;
}

.slide-content h1 {
    font-size: clamp(38px, 6.5vw, 72px);
    font-weight: 900;
    margin-bottom: 12px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
    letter-spacing: -1px;
}

.slide-content p {
    font-size: clamp(18px, 2vw, 26px);
    margin-bottom: 28px;
    opacity: 0.92;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(108, 92, 231, 0.45);
}

.btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* Slider Controls */
.slider-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: -55px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.92);
    color: var(--dark);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    transition: all var(--transition);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.slider-controls button:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.25);
}

   /* STATS */
.stats-section {
    padding: 50px 0 40px;
    background: var(--bg-alt);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 8px;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: var(--primary);
}

.stat-label {
    font-size: 15px;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================
   FEATURED SECTION
   ============================================================ */
.featured-section {
    padding: 50px 0 60px;
    background: var(--bg);
}

.featured-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 24px;
}

   /* SECTION HEADER */
.section-header {
    text-align: center;
    padding: 50px 0 32px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
}

.section-header p {
    color: var(--text-light);
    font-size: 18px;
    margin-top: 6px;
}

   /* DESTINATIONS */
#destinations-page,
#favorites-page,
#visited-page {
    padding: 80px 0 60px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
}

.filter-btn {
    padding: 10px 26px;
    border-radius: 50px;
    background: var(--bg-alt);
    color: var(--text);
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    font-size: 14px;
}

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

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.destination-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    cursor: pointer;
}

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

.destination-card .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.destination-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.destination-card:hover .card-image img {
    transform: scale(1.06);
}

.destination-card .card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.destination-card .category-badge {
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.destination-card .visited-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    background: var(--secondary);
    color: #fff;
}

.destination-card .card-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.destination-card .card-actions button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    transition: all var(--transition);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.destination-card .card-actions button:hover {
    transform: scale(1.1);
}

.destination-card .card-actions .fav-btn.active {
    color: #E74C3C;
}

.destination-card .card-body {
    padding: 18px 20px 22px;
}

.destination-card .card-body h3 {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 2px;
}

.destination-card .card-body .country {
    color: var(--text-light);
    font-size: 14px;
}

.destination-card .card-body .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 0 8px;
    color: #FDCB6E;
    font-weight: 700;
}

.destination-card .card-body .rating span {
    color: var(--text);
    font-weight: 400;
    font-size: 14px;
}

.destination-card .card-body .description {
    font-size: 14px;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.destination-card .card-body .view-btn {
    margin-top: 14px;
    padding: 8px 24px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
    display: inline-block;
}

.destination-card .card-body .view-btn:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

#destination-detail {
    padding: 100px 0 60px;
}

#destination-content .detail-hero {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

#destination-content .detail-title {
    font-size: 36px;
    font-weight: 800;
}

#destination-content .detail-country {
    font-size: 18px;
    color: var(--text-light);
}

#destination-content .detail-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #FDCB6E;
    font-size: 24px;
    margin: 8px 0 16px;
}

#destination-content .detail-rating span {
    color: var(--text);
    font-size: 16px;
}

#destination-content .detail-description {
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}

#destination-content .detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

#destination-content .detail-section {
    margin-bottom: 20px;
}

#destination-content .detail-section h4 {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--primary);
}

#destination-content .detail-section p {
    color: var(--text-light);
    font-size: 15px;
}

#destination-content .detail-section ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

#destination-content .detail-section ul li {
    padding: 4px 16px;
    background: var(--bg-alt);
    border-radius: 50px;
    font-size: 14px;
    color: var(--text);
}

/* Gallery */
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.detail-gallery img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition);
}

.detail-gallery img:hover {
    transform: scale(1.03);
}

/* Detail Actions */
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px solid var(--light);
}

.detail-actions button,
.detail-actions a {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-actions .btn-visit {
    background: var(--secondary);
    color: #fff;
}

.detail-actions .btn-visit:hover {
    background: var(--secondary-dark);
}

.detail-actions .btn-visit.visited {
    background: #636E72;
}

.detail-actions .btn-map {
    background: var(--primary);
    color: #fff;
}

.detail-actions .btn-map:hover {
    background: var(--primary-dark);
}

.detail-actions .btn-fav {
    background: var(--bg-alt);
    color: var(--text);
}

.detail-actions .btn-fav:hover {
    background: var(--light);
}

.detail-actions .btn-fav.active {
    background: #E74C3C;
    color: #fff;
}

   /* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 72px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 6px;
}

   /* ABOUT */
/* ===== ABOUT PAGE - FULL WIDTH ===== */
.container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about-page {
    padding: 20px 0 0;
}

/* About Hero */
/* ===== ABOUT PAGE - FULL WIDTH ===== */
.container-full {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about-page {
    padding: 20px 0 0;
}

/* About Hero */
.about-hero {
    text-align: center;
    padding: 50px 0 10px;
}

.about-hero h1 {
    font-size: 38px;
    font-weight: 900;
    margin-bottom: 6px;
}

.about-hero p {
    font-size: 18px;
    color: var(--text-light);
}

/* About Content - Full Width (No Image Section) */
.about-content-full {
    padding: 20px 0 10px;
    max-width: 900px;
    margin: 0 auto;
}

.about-content-full h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-content-full p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
}

/* About Features - Full Width */
.about-features-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0 24px;
}

.about-feature {
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: 8px;
}

.about-feature h4 {
    font-weight: 700;
    font-size: 15px;
    margin: 0;
}

.about-feature p {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

/* About Stats - Full Width */
.about-stats-full {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 40px;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-top: 8px;
    justify-content: center;
}

.about-stats-full div {
    text-align: center;
}

.about-stats-full span {
    display: block;
    font-size: 30px;
    font-weight: 900;
    color: var(--primary);
}

/* Team Section */
.team-section {
    padding: 40px 0 30px;
    text-align: center;
}

.team-section h2 {
    font-size: 28px;
    font-weight: 800;
}

.team-section > p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

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

.team-avatar {
    font-size: 48px;
    margin-bottom: 8px;
}

.team-card h4 {
    font-weight: 700;
    font-size: 16px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-light);
}

.team-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.team-link:hover {
    text-decoration: underline;
}

/* Tech Section */
.tech-section {
    text-align: center;
    padding: 30px 0 50px;
}

.tech-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.tech-badge {
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

.tech-note {
    margin-top: 16px;
    color: var(--text-light);
    font-size: 14px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .about-features-full {
        grid-template-columns: 1fr;
    }

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

    .about-stats-full {
        gap: 12px 24px;
    }

    .about-hero h1 {
        font-size: 30px;
    }

    .about-content-full {
        padding: 10px 0;
    }
}

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

    .about-hero h1 {
        font-size: 24px;
    }

    .about-hero p {
        font-size: 15px;
    }

    .about-stats-full span {
        font-size: 24px;
    }

    .container-full {
        padding: 0 14px;
    }

    .about-features-full {
        gap: 10px;
    }

    .about-feature {
        padding: 10px 12px;
    }
}

   /* CONTACT */
#contact-page {
    padding: 80px 0 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item span {
    font-size: 28px;
}

.contact-item h4 {
    font-weight: 700;
    font-size: 16px;
}

.contact-item p {
    color: var(--text-light);
    font-size: 15px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    padding: 14px 18px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition);
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

#contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

#contact-form button {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition);
}

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

.form-error {
    color: #E74C3C;
    font-size: 14px;
    display: none;
}

.form-success {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 600;
    display: none;
    text-align: center;
    padding: 14px;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}

   /* FOOTER */
footer {
    background: var(--dark);
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo-text {
    font-size: 24px;
    font-weight: 800;
}

.footer-brand p {
    opacity: 0.65;
    margin-top: 4px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-links a {
    display: block;
    opacity: 0.65;
    margin-bottom: 6px;
    transition: opacity var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: background var(--transition);
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    opacity: 0.5;
    font-size: 14px;
}

   /* BACK TO TOP */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 25px rgba(108, 92, 231, 0.4);
    z-index: 999;
    display: none;
    transition: all var(--transition);
}

#back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 35px rgba(108, 92, 231, 0.5);
}

#back-to-top.visible {
    display: block;
}

/* QUICK CATEGORIES */
.quick-categories {
    padding: 40px 0 0;
    background: var(--bg);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--text);
}

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

.category-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    display: block;
}

.category-count {
    font-size: 14px;
    color: var(--text-light);
}

/* WHY SECTION */
.why-section {
    padding: 50px 0 60px;
    background: var(--bg-alt);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

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

.why-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.why-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* RESPONSIVE FOR QUICK CATEGORIES */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

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

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        font-size: 32px;
    }

    .category-name {
        font-size: 14px;
    }
}

/* DOCUMENTATION STYLES */
.doc-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

.doc-hero {
    text-align: center;
    padding: 50px 0 20px;
    border-bottom: 3px solid var(--primary);
    margin-bottom: 30px;
}

.doc-hero h1 {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary);
}

.doc-hero p {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 6px;
}

.doc-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.doc-section h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-section h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 14px;
    margin-bottom: 4px;
}

.doc-section p,
.doc-section li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

.doc-section ul {
    padding-left: 20px;
    list-style: disc;
}

.doc-section ul li {
    margin-bottom: 4px;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.doc-card {
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: 8px;
}

.doc-card h4 {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
}

.doc-card p {
    font-size: 14px;
    color: var(--text-light);
}

.doc-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 50px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 3px 4px 3px 0;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.doc-table th,
.doc-table td {
    padding: 10px 14px;
    border: 1px solid var(--light);
    text-align: left;
    font-size: 14px;
}

.doc-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.doc-table td {
    color: var(--text-light);
}

.doc-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.doc-links a {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    text-decoration: none;
}

.doc-links .btn-github {
    background: #24292e;
    color: #fff;
}

.doc-links .btn-github:hover {
    background: #1a1e22;
    transform: translateY(-2px);
}

.doc-links .btn-vercel {
    background: #000;
    color: #fff;
}

.doc-links .btn-vercel:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.doc-screenshot {
    width: 65%;
    border-radius: 8px;
    border: 1px solid var(--light);
    margin: 4px 0;
}

.feedback-box {
    background: var(--bg-alt);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    font-style: italic;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .doc-grid {
        grid-template-columns: 1fr;
    }

    .doc-section {
        padding: 18px 16px;
    }

    .doc-hero h1 {
        font-size: 28px;
    }

    .doc-table th,
    .doc-table td {
        padding: 6px 10px;
        font-size: 13px;
    }

    .doc-links {
        flex-direction: column;
    }

    .doc-links a {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .doc-section h2 {
        font-size: 18px;
    }

    .doc-hero h1 {
        font-size: 22px;
    }

    .doc-hero p {
        font-size: 14px;
    }
}

/* LOADING SCREEN */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0 12px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    animation: loadProgress 2s ease forwards;
}

@keyframes loadProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ===== MOBILE GALLERY ===== */
.mobile-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
    justify-content: flex-start;
    align-items: flex-start;
}

.mobile-screenshot {
    width: 180px;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    object-fit: contain;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: block;
    flex-shrink: 0;
}

.mobile-screenshot:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* RESPONSIVE - Mobile View */

/* Tablets */
@media (max-width: 1024px) {
    .mobile-gallery {
        gap: 14px;
    }

    .mobile-screenshot {
        width: 160px;
        border-radius: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-gallery {
        gap: 12px;
    }

    .mobile-screenshot {
        width: 140px;
        border-radius: 8px;
        border-width: 1.5px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .mobile-gallery {
        gap: 10px;
    }

    .mobile-screenshot {
        width: 100px;
        border-radius: 6px;
        border-width: 1.5px;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .mobile-gallery {
        gap: 8px;
    }

    .mobile-screenshot {
        width: 75px;
        border-radius: 4px;
        border-width: 1px;
    }
}