:root {
    --primary: #FF2D55;
    --secondary: #1A1A1A;
    --bg: #0A0A0A;
    --text: #FFFFFF;
    --text-muted: #A0A0A0;
    --card-bg: #151515;
    --container: 1400px;
    --nav-height: 70px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Glassmorphism Navbar */
.main-header {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: -1px;
    flex-shrink: 0;
}

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

/* Mega Menu */
.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 20px;
}

.nav-item {
    position: relative;
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 15px;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.3s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-item:hover .nav-link, .nav-link.active {
    color: var(--primary);
}

.mega-menu {
    position: absolute;
    top: var(--nav-height);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 5px 0;
    display: block;
    transition: color 0.2s, transform 0.2s;
}

.mega-menu a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Search Bar */
.search-wrapper {
    position: relative;
    width: 250px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px 10px 38px;
    border-radius: 50px;
    width: 100%;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    width: 300px;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 300px;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: block;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s, color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.search-result-item strong {
    display: block;
    color: white;
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-item span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1.5px;
}

.hero p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    aspect-ratio: 4/5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.gallery-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.model-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

/* Links in model name should look like normal text but be clickable */
.model-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.model-name a:hover {
    color: var(--primary);
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
}

.tag-badge:hover {
    background: var(--primary);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.3s;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

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

.lightbox-model {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
}

.lightbox-model a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.lightbox-model a:hover {
    color: var(--primary);
}

/* Load More */
.load-more-container {
    text-align: center;
    padding: 40px 0 80px;
}

.btn-load {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load:hover {
    background: #ff4d6e;
    transform: translateY(-3px);
}

.btn-load:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Footer */
.main-footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d0d0d;
}

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

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    display: inline-block;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 400px;
}

.footer-desc a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-desc a:hover {
    text-decoration: underline;
}

.footer-col h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* Tag Cloud in Footer */
.footer-tags {
    margin: 40px 0;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-tags h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.cloud-tag {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.cloud-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* Page Layout (Privacy, Terms) */
.page-content {
    padding: 100px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 42px;
    margin-bottom: 40px;
    color: var(--primary);
}

.page-content h2 {
    margin: 30px 0 15px;
    color: var(--text);
}

.page-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .nav-links { display: none; }
    .search-input:focus { width: 250px; }
}

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

@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .lightbox { padding: 20px; }
    .lightbox-close { top: 10px; right: 10px; }
    .search-wrapper { width: 150px; }
    .search-input:focus { width: 180px; }
}