/* --- Root Variables & Reset --- */
:root {
    --primary-red: #d32f2f;
    --hover-red: #ff6659;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-main: #eeeeee;
    --text-muted: #aaaaaa;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* --- Header & Navigation --- */
header {
    background: var(--primary-red);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

header a:hover {
    background: rgba(255,255,255,0.2);
}

/* --- Hero Section --- */
.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background-attachment: fixed; /* Parallax effect */
}

.scroll-btn {
    background: var(--primary-red);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.scroll-btn:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

/* --- Sticky Year Headers --- */
.year-header {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px 25px;
    border-radius: 10px;
    margin: 50px 0 25px 0;
    border-left: 6px solid var(--primary-red);
    position: sticky;
    top: 80px; /* Sits below the main header */
    z-index: 900;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.year-header h2 {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* --- Gallery Grid & Cards --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.3s;
}

.card img:hover {
    opacity: 0.9;
}

.card-body {
    padding: 20px;
}

/* --- Comments Section --- */
.comment-list {
    background: #161616;
    border-radius: 8px;
    padding: 12px;
    margin: 15px 0;
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #252525;
}

.comment-item {
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

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

/* Custom Scrollbar for comments */
.comment-list::-webkit-scrollbar {
    width: 6px;
}
.comment-list::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* --- Forms & Inputs --- */
.form-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 40px auto;
}

input[type="text"], 
input[type="password"], 
input[type="file"], 
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: #111;
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-red);
}

/* --- Lightbox --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox img {
    max-width: 95%;
    max-height: 90%;
    object-fit: contain;
    border: 3px solid white;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .gallery { grid-template-columns: 1fr; }
    .year-header { top: 60px; }
}
