/* ============================================
   HERO SECTION - Landonorris.com Inspired
   ============================================ */

/* Hero Container */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    padding: 2rem;
    margin-top: -90px;
    padding-top: 90px;
}

/* Animated Background Pattern */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(204, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(204, 255, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Subtle Topographic Lines */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cpath d='M0 300 Q 200 250, 400 300 T 800 300' stroke='rgba(204,255,0,0.03)' fill='none' stroke-width='1'/%3E%3Cpath d='M0 350 Q 200 300, 400 350 T 800 350' stroke='rgba(204,255,0,0.025)' fill='none' stroke-width='1'/%3E%3Cpath d='M0 400 Q 200 350, 400 400 T 800 400' stroke='rgba(204,255,0,0.02)' fill='none' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Main Title */
.hero-title {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    line-height: 0.9;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out, titlePulse 3s ease-in-out infinite;
    text-shadow:
        0 0 40px rgba(255, 255, 255, 0.1),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Neon Glow Effect on Title - Accent part */
.hero-title span.accent {
    color: #CCFF00;
    background: linear-gradient(135deg, #CCFF00 0%, #a8e600 50%, #CCFF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(204, 255, 0, 0.6)) drop-shadow(0 0 30px rgba(204, 255, 0, 0.4));
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 15px rgba(204, 255, 0, 0.6)) drop-shadow(0 0 30px rgba(204, 255, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(204, 255, 0, 0.9)) drop-shadow(0 0 50px rgba(204, 255, 0, 0.6));
    }
}

@keyframes titlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.01);
    }
}

/* Subtitle with Typing Effect */
.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 0 0 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle .typed-text {
    color: #CCFF00;
    font-weight: 600;
}

/* CTA Button */
.hero-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a2e;
    background: #CCFF00;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 30px rgba(204, 255, 0, 0.3),
        0 0 60px rgba(204, 255, 0, 0.2);
    color: #1a1a2e;
    text-decoration: none;
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(204, 255, 0, 0.5), transparent);
}

/* Social Links in Hero */
.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-social a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.hero-social a:hover {
    color: #CCFF00;
    transform: translateY(-3px);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.5);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes glow {

    0%,
    100% {
        text-shadow:
            0 0 10px rgba(204, 255, 0, 0.5),
            0 0 20px rgba(204, 255, 0, 0.3);
    }

    50% {
        text-shadow:
            0 0 20px rgba(204, 255, 0, 0.8),
            0 0 40px rgba(204, 255, 0, 0.5),
            0 0 60px rgba(204, 255, 0, 0.3);
    }
}

/* ============================================
   SCROLL REVEAL CLASSES
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animations for cards */
.card.reveal:nth-child(1) {
    transition-delay: 0.1s;
}

.card.reveal:nth-child(2) {
    transition-delay: 0.2s;
}

.card.reveal:nth-child(3) {
    transition-delay: 0.3s;
}

.card.reveal:nth-child(4) {
    transition-delay: 0.4s;
}

.card.reveal:nth-child(5) {
    transition-delay: 0.5s;
}

.card.reveal:nth-child(6) {
    transition-delay: 0.6s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 0.8rem;
    }

    .scroll-indicator {
        bottom: 1.5rem;
    }

    .hero-social {
        gap: 1rem;
    }

    .hero-social a {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 85vh;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* ============================================
   DARK PAGE HEADER (For Non-Home Pages)
   ============================================ */

.page-header-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 120px 0 60px;
    margin-top: -80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(204, 255, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(204, 255, 0, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.page-header-dark h1 {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

.page-header-dark .subheading {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    margin: 0 0 1rem;
    display: block;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.page-header-dark .post-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #CCFF00;
    font-style: normal;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* ============================================
   DARK NAVBAR OVERRIDE
   Uses .has-dark-header class added by JS
   ============================================ */

body.has-dark-header .navbar-custom {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    position: absolute !important;
    width: 100% !important;
    z-index: 100 !important;
    top: 0 !important;
    left: 0 !important;
}

body.has-dark-header .navbar-custom .navbar-brand,
body.has-dark-header .navbar-custom .nav li a {
    color: rgba(255, 255, 255, 0.9) !important;
}

body.has-dark-header .navbar-custom .navbar-brand:hover,
body.has-dark-header .navbar-custom .nav li a:hover {
    color: #CCFF00 !important;
}

/* Dropdown menu styling for dark navbar */
body.has-dark-header .navbar-custom .navlinks-children a {
    background-color: rgba(26, 26, 46, 0.95);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(204, 255, 0, 0.2);
}

body.has-dark-header .navbar-custom .navlinks-children a:hover {
    color: #CCFF00;
    background-color: rgba(22, 33, 62, 0.95);
}

/* Mobile hamburger menu */
body.has-dark-header .navbar-custom .navbar-toggle .icon-bar {
    background-color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .page-header-dark {
        padding: 100px 0 40px;
    }

    .page-header-dark h1 {
        font-size: 2rem;
    }
}

/* ============================================
   DARK FOOTER
   ============================================ */

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f23 100%) !important;
    border-top: 1px solid rgba(204, 255, 0, 0.1);
}

footer p.text-muted,
footer .copyright,
footer .theme-by {
    color: rgba(255, 255, 255, 0.6) !important;
}

footer a {
    color: #CCFF00 !important;
    transition: all 0.3s ease;
}

footer a:hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

footer .footer-links a {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer .footer-links a:hover {
    color: #CCFF00 !important;
}

/* ============================================
   RESPONSIVE POSTS GRID
   Dynamic columns based on screen width
   ============================================ */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(204, 255, 0, 0.2);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.post-card:hover .post-card-content {
    background: transparent;
}

.post-card:hover .post-card-excerpt {
    color: rgba(255, 255, 255, 0.8);
}

.post-card:hover .post-card-meta {
    color: #CCFF00;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card-title {
    font-family: 'Open Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1rem;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title {
    color: #CCFF00;
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
}

.post-card-excerpt {
    font-size: 1.35rem;
    color: #16213e;
    margin: 0 0 1.25rem;
    line-height: 1.6;
    flex: 1;
    opacity: 0.85;
}

.post-card-meta {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
}

.post-card-meta time {
    display: block;
}

.post-card-tags {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.post-card-tags .tag {
    font-size: 1rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #CCFF00;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.2);
}

.post-card-tags .tag:hover {
    background: #CCFF00;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 255, 0, 0.4);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
    }
}

@media (min-width: 1600px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    }
}

/* ============================================
   BLOG POST CONTENT STYLING
   Theme-consistent styles for individual posts
   ============================================ */

.blog-post {
    padding: 2rem 0;
}

.blog-post .post-content {
    font-size: 1.5rem !important;
    line-height: 2;
    color: #1a1a2e;
}

.blog-post .post-content h1,
.blog-post .post-content h2,
.blog-post .post-content h3,
.blog-post .post-content h4,
.blog-post .post-content h5,
.blog-post .post-content h6 {
    color: #1a1a2e;
    font-weight: 800;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.blog-post .post-content h2 {
    font-size: 2.5rem !important;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #CCFF00;
}

.blog-post .post-content h3 {
    font-size: 2rem !important;
}

.blog-post .post-content h4 {
    font-size: 1.75rem !important;
}

.blog-post .post-content p {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
}

.blog-post .post-content li {
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem;
}

.blog-post .post-content a {
    color: #16213e;
    text-decoration: underline;
    text-decoration-color: #CCFF00;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.blog-post .post-content a:hover {
    color: #CCFF00;
    background: #1a1a2e;
    padding: 0 4px;
    border-radius: 4px;
}

/* Code blocks */
.blog-post .post-content code {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #CCFF00;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.95em;
}

.blog-post .post-content pre {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

.blog-post .post-content pre code {
    background: transparent;
    padding: 0;
    color: #e0e0e0;
}

/* Blockquotes */
.blog-post .post-content blockquote {
    border-left: 4px solid #CCFF00;
    background: rgba(26, 26, 46, 0.05);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.blog-post .post-content blockquote p {
    color: #16213e;
    font-style: italic;
}

/* Blog Tags */
.blog-tags {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-tags a {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #CCFF00 !important;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-tags a:hover {
    background: #CCFF00;
    color: #1a1a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3);
}

/* Post Navigation (Previous/Next) */
.blog-pager {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-pager li {
    list-style: none;
}

.blog-pager a {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff !important;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-pager a:hover {
    background: #CCFF00;
    border-color: #CCFF00;
    color: #1a1a2e !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.4);
}

/* Donate section */
#donate-button-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    margin: 2rem 0;
    color: #ffffff;
    font-size: 1.2rem;
}

/* Back to Home Button - Floating */
.back-to-home {
    position: fixed;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(26, 26, 46, 0.95);
    color: #CCFF00 !important;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(204, 255, 0, 0.3);
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.back-to-home:hover {
    background: #CCFF00;
    color: #1a1a2e !important;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(204, 255, 0, 0.3);
}

.back-to-home i {
    transition: transform 0.3s ease;
}

.back-to-home:hover i {
    transform: translateX(-5px);
}
