:root {
    /* Facebook Color Palette */
    --primary-color: #0866ff; /* Facebook Blue */
    --secondary-color: #e4e6eb; /* Gray Hover */
    --text-primary: #050505;
    --text-secondary: #65676b;
    --bg-color: #f0f2f5; /* Classic FB Background */
    --bg-surface: #ffffff;
    --border-color: #ced0d4;
    
    /* Typography */
    --font-body: 'Segoe UI', Helvetica, Arial, sans-serif;
    
    /* Spacing & Layout */
    --max-width: 1250px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    
    /* Transitions & Shadows */
    --transition: background-color 0.2s;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { 
    font-family: var(--font-body); 
    color: var(--text-primary); 
    background-color: var(--bg-color); 
    line-height: 1.34; 
    overflow-x: hidden; 
}
a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; height: auto; display: block; border-style: none; }

/* ---------------- Elegant Navbar ---------------- */
.elegant-navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 70px;
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px);
    box-shadow: 0 1px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex; align-items: center; transition: 0.3s;
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 1250px; margin: 0 auto; padding: 0 20px;
}
.logo { font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: 1px; }
.logo .highlight { color: #0866ff; }
.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #fff; font-weight: 500; transition: 0.2s; }
.nav-links a:hover { color: #0866ff; }
.btn-primary-small { background: #0866ff; padding: 8px 20px; border-radius: 50px; font-weight: 600; }
.btn-primary-small:hover { background: #0056e0; color: #fff !important; }

/* ---------------- Hero Section ---------------- */
.hero {
    position: relative; width: 100%; height: 75vh; min-height: 500px;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-video { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); z-index: -2; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.3)); z-index: -1; }
.hero-content { text-align: center; color: #fff; z-index: 10; padding: 0 20px; }
.hero-title { font-size: 4.5rem; font-weight: 800; margin-bottom: 5px; line-height: 1.1; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.2rem; font-weight: 400; opacity: 0.9; margin-bottom: 30px; }
.hero-btn { display: inline-flex; align-items: center; gap: 10px; background: #0866ff; color: #fff; padding: 12px 30px; border-radius: 50px; font-weight: 600; font-size: 1.1rem; transition: 0.2s; }
.hero-btn:hover { background: #0056e0; transform: translateY(-2px); }

/* ---------------- FB Main Layout ---------------- */
.fb-main-content {
    max-width: 1210px; margin: 20px auto;
    background: var(--bg-surface);
    border-radius: var(--border-radius);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    padding: 20px;
}

.filter-container { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-btn { 
    background: var(--secondary-color); border: none; padding: 8px 16px; border-radius: 20px; 
    font-family: var(--font-body); font-weight: 600; color: var(--text-primary); cursor: pointer; transition: 0.2s; font-size: 0.9rem;
}
.filter-btn:hover { background: #d8dadf; }
.filter-btn.active { background: rgba(8, 102, 255, 0.1); color: var(--primary-color); }

/* FB Grid Section */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 4px;
    padding-bottom: 2rem;
}
.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1; /* Make items square like Facebook Photos Tab */
}
.gallery-image { 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: 0.2s;
}
.gallery-item:hover .gallery-image { opacity: 0.85; }

.gallery-category { 
    position: absolute;
    bottom: 8px; left: 8px; right: 8px;
    color: #fff; font-size: 0.8rem; font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.5);
    padding: 4px 8px; border-radius: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Lightbox (FB Theater Mode) */
.lightbox { position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.lightbox.active { display: flex; opacity: 1; }

.lightbox-content-wrapper { 
    display: flex; align-items: center; justify-content: center; 
    width: 100%; height: 100%; padding: 40px;
}
.lightbox-content { 
    max-width: 100%; max-height: 100%; object-fit: contain;
}

.lightbox-close { position: absolute; top: 20px; left: 20px; color: #fff; font-size: 24px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); cursor: pointer; transition: 0.2s; z-index: 10001; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.2); border: none; border-radius: 50%; color: #fff; font-size: 20px; width: 48px; height: 48px; cursor: pointer; transition: 0.2s; z-index: 10001; display: flex; align-items: center; justify-content: center; }
.lightbox-nav:hover { background: rgba(255,255,255,0.4); }
.lightbox-nav:disabled { opacity: 0; cursor: default; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

#lightbox-caption { 
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 1rem; font-weight: 500; z-index: 10000;
}

/* Simple Footer */
.simple-footer { background-color: #0f172a; color: #f8fafc; padding: 60px 0 30px 0; text-align: center; }
.footer-content h3 { color: #fff; margin-bottom: 8px; font-size: 2rem; font-weight: 800; }
.footer-content .highlight { color: #0866ff; }
.contact-info { margin: 25px 0; color: #94a3b8; font-size: 1.05rem; }
.contact-info i { color: #0866ff; margin: 0 5px; }
.footer-socials { justify-content: center; margin-bottom: 30px; display: flex; gap: 16px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.1); color: #fff; transition: 0.2s; font-size: 1.2rem; }
.footer-socials a:hover { background-color: #0866ff; transform: translateY(-3px); }
.footer-bottom { padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #94a3b8; font-size: 0.9rem; }

/* Responsiveness */
@media (max-width: 900px) {
    .fb-profile-section { flex-direction: column; align-items: center; top: -50px; border-bottom: none; }
    .fb-profile-pic { margin-right: 0; margin-bottom: 12px; border-width: 3px; width: 132px; height: 132px; }
    .fb-profile-info { text-align: center; }
    .fb-profile-name { justify-content: center; }
    .fb-profile-friends { justify-content: center; }
    .fb-tabs { overflow-x: auto; white-space: nowrap; }
    .fb-cover { height: 250px; border-radius: 0; }
    .fb-search input { width: 120px; }
    .masonry-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
