/* General */
body {
    background-color: #b1dff5;
    font-family: 'Arial', sans-serif;
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e, #343a40);
}

.hero-section video.lead {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(137, 207, 240, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-section h1.hero-title {
    font-family: 'Aclonica', sans-serif;
    font-size: 5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid #89CFF0;
    width: 0; /* Start with zero width */
    animation: type 2s steps(6) forwards, blink 0.7s step-end infinite;
    position: relative;
    margin: 0 auto;
    opacity: 1 !important;
}

@keyframes type {
    0% {
        width: 0;
    }
    100% {
        width: 6ch; /* Match "Newsie" length */
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
    .hero-section h1.hero-title {
        font-size: 3rem;
        border-right: 3px solid #89CFF0;
        animation: type 2s steps(6) forwards, blink 0.7s step-end infinite;
    }
    .hero-section video.lead {
        width: 100vw;
        height: 100vh;
        object-fit: cover;
    }
}

/* Override conflicting styles */
.hero-section {
    opacity: 1 !important; /* Disable fadeIn */
}

/* Navbar */
.navbar {
    background-color: #fff !important;
}

.navbar-brand {
    font-family: 'Aclonica', sans-serif;
    font-weight: bold;
    color: white !important;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Aclonica', sans-serif;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #89CFF0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    color: #1e1e1e;
    font-weight: 600;
}

.card-text {
    color: #555;
}

/* Sections */
section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.bg-dark {
    background-color: #000 !important;
}

/* Social Links */
.social-links .btn {
    color: #89CFF0;
    border-color: #89CFF0;
}

.social-links .btn:hover {
    background-color: #89CFF0;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .lead {
        font-size: 1.2rem;
    }
}

.card:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
}

.btn:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.ticker-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrapper span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 15s linear infinite;
}

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

.social-feed {
    overflow-x: auto;
    gap: 10px;
}

.feed-item {
    flex: 0 0 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
}

.feed-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}