/* style.css - Premium Modern Design for ndibiafra.org */

:root {
    --primary-color: #ff9800;
    --secondary-color: #4caf50;
    --dark-bg: #121212;
    --text-color: #f1f1f1;
    --glass-bg: rgba(18, 18, 18, 0.75);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --hover-glow: 0 0 15px rgba(255, 152, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Roboto', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--dark-bg);
    background-image: url('WebGraphics/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Multilingual Handwritten Welcome */
.welcome-script {
    position: absolute;
    left: 10%; /* positioned on the left-to-middle area */
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
    font-weight: 600;
    font-style: italic; /* Simulates elegant handwriting/calligraphy */
    letter-spacing: 2px;
    color: var(--primary-color);
    z-index: 10;
    white-space: nowrap;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8); /* Readability against banner */
    
    /* Reveal animation via clip-path for handwriting wipe effect */
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
    animation: writeText 4s infinite;
}

@keyframes writeText {
    0%   { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); opacity: 1; }
    40%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; } /* Write out stroke by stroke */
    80%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; } /* Hold for 1.5s approx */
    100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 0; } /* Fade out */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(255, 152, 0, 0.6);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Banner area */
.banner-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.desktop-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.mobile-banner {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: none;
}

/* Main Content Area */
main {
    flex-grow: 1;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

h1.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Grid Layouts for Content */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* Item Cards */
.item-card {
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.item-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-glow);
    border-color: rgba(255, 152, 0, 0.3);
}

.icon-container {
    font-size: 3rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

/* Ticker Tape */
.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
    padding: 0.8rem 1rem;
    margin-bottom: 2rem;
    background: rgba(40, 40, 40, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-block;
    padding-left: 100%;
    /* animation applied programmatically in script.js */
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
    font-size: 0.95rem;
    color: #e0e0e0;
    position: relative;
    letter-spacing: 0.5px;
}

.ticker-item:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: 0;
    color: var(--primary-color);
    transform: translateX(50%);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.ticker-wrapper:hover .ticker-content {
    animation-play-state: paused;
}

/* Specific Media Hub Styling */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hub-card {
    text-decoration: none;
    color: inherit;
    padding: 3rem 2rem;
}

.hub-card p {
    color: #aaa;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.9);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .desktop-banner {
        display: none;
    }
    .mobile-banner {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 15, 0.95);
        backdrop-filter: blur(15px);
        padding: 1rem 0;
        text-align: center;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .ticker-wrapper {
        padding: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ticker-item {
        font-size: 0.85rem;
        padding: 0 1.2rem;
    }
    
    .welcome-script {
        font-size: 2rem;
        left: 5%;
        letter-spacing: 1px;
    }
}

/* JCA Airlift Popup Specific Styling */
body.popup-body {
    background-image: url('WebGraphics/Biafran Air Lift1.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.popup-container {
    max-width: 800px;
    width: 100%;
    padding: 3rem;
    text-align: center;
}

.popup-container h1 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.popup-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background: #e68a00;
    transform: translateY(-2px);
}

/* Logo Audio Toast */
.logo-toast {
    position: fixed;
    top: 80px;
    left: 20px;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: auto;
    cursor: pointer;
}
.logo-toast.show {
    opacity: 1;
    transform: translateY(0);
}

