:root {
    --bg-main: #0a0a0b;
    --bg-card: #141417;
    --bg-header: rgba(10, 10, 11, 0.85);
    --primary: #e50914;
    --primary-hover: #ff0f1a;
    --text-main: #ffffff;
    --text-dim: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius-lg: 1.25rem;
    --radius-md: 0.75rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: -1px;
}

.nav { display: flex; gap: 2rem; }
.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
}
.nav-link:hover, .nav-link.active { color: var(--text-main); }

/* Hero */
.hero {
    position: relative;
    height: 85vh;
    border-radius: 2rem;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    background: #000;
}

.hero-bg-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Blur effect for 600x800 images to fill the 85vh height */
.hero-bg-blur {
    position: absolute;
    inset: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    object-fit: cover;
    filter: blur(50px) brightness(0.4);
    opacity: 0.8;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 5%;
    width: 45%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    filter: drop-shadow(0 0 50px rgba(0,0,0,0.8));
}

@media (max-width: 1200px) {
    .hero-img-main { width: 50%; right: 2%; }
}

@media (max-width: 768px) {
    .hero { height: auto; min-height: 65vh; border-radius: 1.5rem; }
    .hero-img-main { width: 100%; right: 0; object-fit: cover; opacity: 0.4; filter: none; }
    .hero-body { position: relative; bottom: 0; padding: 3rem 1.5rem 2rem; max-width: 100%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-main) 35%, transparent 100%),
                linear-gradient(to top, var(--bg-main) 10%, transparent 40%);
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-overlay { background: linear-gradient(to top, var(--bg-main) 40%, transparent 100%), rgba(0,0,0,0.4); }
}

.hero-body {
    position: absolute;
    bottom: 5%;
    left: 0;
    padding: 2rem 3.5rem;
    width: 100%;
    max-width: 800px;
    z-index: 3;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (max-width: 1024px) {
    .hero-body { padding: 2rem 2.5rem; max-width: 700px; }
}

@media (max-width: 768px) {
    .hero { height: auto; min-height: 65vh; border-radius: 1.5rem; }
    .hero-bg-container { position: absolute; }
    .hero-img-main { width: 100%; object-fit: cover; mask-image: none; -webkit-mask-image: none; opacity: 0.4; }
    .hero-body { position: relative; bottom: 0; padding: 3rem 1.5rem 2rem; max-width: 100%; }
    .hero-overlay { background: linear-gradient(to top, var(--bg-main) 40%, transparent 100%), rgba(0,0,0,0.4); }
}

/* Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.card-img-wrapper {
    aspect-ratio: 3 / 4.5;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img { transform: scale(1.1); }

.card-body { padding: 0.75rem; }
.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* Footer */
.footer {
    background: #050505;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
    border-top: 1px solid var(--border);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .hero { height: 50vh; }
    .hero-body { padding: 1.5rem; }
    .nav { display: none; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
