/* ================================================================
   home.css  —  SPA Landing Page Styles
   Uses CSS variables defined in spyderops.css:
     --primary-color:    #00e6c8
     --background-color: #0a1a0a
     --text-color:       #e0e0e0
     --card-bg-color:    rgba(20,30,20,0.8)
     --card-border-color:#00e6c8
   ================================================================ */

/* ----------------------------------------------------------------
   BODY OVERRIDE for home page (no background image noise)
   ---------------------------------------------------------------- */
.home-body {
    background-image: none;
    background-color: var(--background-color);
    overflow-x: hidden;
}

.home-page-wrapper {
    width: 100%;
}

/* ----------------------------------------------------------------
   HERO
   ---------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--background-color);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 820px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 230, 200, 0.08);
    border: 1px solid rgba(0, 230, 200, 0.35);
    color: var(--primary-color);
    padding: 6px 22px;
    border-radius: 20px;
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    animation: fadeInDown 0.8s ease both;
}

.hero-title {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    color: var(--text-color);
    margin: 0 0 1rem;
    line-height: 1.05;
    animation: fadeInUp 0.8s ease 0.2s both;
    font-family: 'Figtree', Arial, sans-serif;
}

.hero-name {
    color: var(--primary-color);
    text-shadow: 0 0 40px rgba(0, 230, 200, 0.45);
}

.hero-cursor {
    display: inline-block;
    width: 3px;
    height: 0.82em;
    background: var(--primary-color);
    margin-left: 3px;
    vertical-align: text-top;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(224, 224, 224, 0.65);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-hero-primary {
    background: var(--primary-color);
    color: #0a1a0a;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    box-shadow: 0 0 22px rgba(0, 230, 200, 0.35);
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: #00ffdd;
    box-shadow: 0 0 40px rgba(0, 230, 200, 0.65);
    transform: translateY(-3px);
    color: #0a1a0a;
    text-decoration: none;
}

.btn-hero-secondary {
    background: transparent;
    color: var(--primary-color);
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid var(--primary-color);
    transition: background 0.25s, box-shadow 0.25s, transform 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-hero-secondary:hover {
    background: rgba(0, 230, 200, 0.1);
    box-shadow: 0 0 22px rgba(0, 230, 200, 0.25);
    transform: translateY(-3px);
    color: var(--primary-color);
    text-decoration: none;
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(224, 224, 224, 0.35);
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease 1.2s both;
    z-index: 1;
}

.scroll-chevron {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(0, 230, 200, 0.45);
    border-bottom: 2px solid rgba(0, 230, 200, 0.45);
    transform: rotate(45deg);
    animation: chevronBounce 2s ease-in-out infinite;
}

@keyframes chevronBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0);   }
    50%       { transform: rotate(45deg) translate(4px, 4px); }
}

/* ----------------------------------------------------------------
   SPA DOT NAVIGATION
   ---------------------------------------------------------------- */
.spa-nav {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.spa-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 230, 200, 0.2);
    border: 1.5px solid rgba(0, 230, 200, 0.45);
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
    display: block;
    position: relative;
    text-decoration: none;
}

.spa-dot::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 26, 10, 0.92);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.72rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    border: 1px solid rgba(0, 230, 200, 0.25);
}

.spa-dot:hover::after { opacity: 1; }

.spa-dot.active,
.spa-dot:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 230, 200, 0.65);
    transform: scale(1.35);
}

@media (max-width: 768px) { .spa-nav { display: none; } }

/* ----------------------------------------------------------------
   REVEAL ANIMATION CLASSES
   ---------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-card {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s, box-shadow 0.3s;
}
.reveal-card.visible { opacity: 1; transform: translateY(0); }

.reveal-stat {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stat.visible { opacity: 1; transform: scale(1); }

/* ----------------------------------------------------------------
   SHARED SECTION STYLES
   ---------------------------------------------------------------- */
.home-section {
    padding: 90px 0;
    position: relative;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    color: var(--text-color);
    margin-bottom: 0.4rem;
    text-align: center;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
}

.section-title span { color: var(--primary-color); }

.section-subtitle {
    text-align: center;
    color: rgba(224, 224, 224, 0.55);
    margin-bottom: 3.2rem;
    font-size: 1.05rem;
    transition-delay: 0.1s !important;
}

/* ----------------------------------------------------------------
   HUB SECTION
   ---------------------------------------------------------------- */
.hub-section {
    background: linear-gradient(180deg, #0a1a0a 0%, #0d2010 50%, #0a1a0a 100%);
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.4rem;
}

.hub-card {
    background: var(--card-bg-color);
    border: 1px solid rgba(0, 230, 200, 0.18);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: block;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.hub-card:hover {
    border-color: rgba(0, 230, 200, 0.55);
    box-shadow: 0 4px 30px rgba(0, 230, 200, 0.09), inset 0 0 30px rgba(0, 230, 200, 0.02);
    transform: translateY(-5px);
    text-decoration: none;
}

.hub-card:hover::before { transform: scaleX(1); }

.hub-card-icon {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
    transition: transform 0.3s ease, text-shadow 0.3s;
}

.hub-card:hover .hub-card-icon {
    transform: scale(1.12);
    text-shadow: 0 0 16px rgba(0, 230, 200, 0.6);
}

.hub-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.45rem;
    font-family: 'Figtree', Arial, sans-serif;
}

.hub-card-desc {
    color: rgba(224, 224, 224, 0.58);
    font-size: 0.88rem;
    line-height: 1.65;
}

.hub-card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary-color);
    font-size: 0.82rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}

.hub-card:hover .hub-card-arrow { opacity: 1; transform: translateX(0); }

/* ----------------------------------------------------------------
   LATEST POSTS SECTION
   ---------------------------------------------------------------- */
.latest-posts-section {
    background: var(--background-color);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.post-preview-card {
    background: var(--card-bg-color);
    border: 1px solid rgba(0, 230, 200, 0.13);
    border-radius: 12px;
    overflow: hidden;
}

.post-preview-card:hover {
    border-color: rgba(0, 230, 200, 0.48);
    transform: translateY(-5px);
    box-shadow: 0 8px 32px rgba(0, 230, 200, 0.09);
}

.post-preview-img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    display: block;
}

.post-preview-img-placeholder {
    width: 100%;
    height: 185px;
    background: linear-gradient(135deg, #1a3a1a, #0d220d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 230, 200, 0.25);
    font-size: 2.8rem;
}

.post-preview-body { padding: 1.4rem; }

.post-preview-category {
    display: inline-block;
    background: rgba(0, 230, 200, 0.1);
    color: var(--primary-color);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.7rem;
}

.post-preview-title {
    color: var(--text-color);
    font-size: 1.07rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.45rem;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
    font-family: 'Figtree', Arial, sans-serif;
}

.post-preview-title:hover { color: var(--primary-color); text-decoration: none; }

.post-preview-meta {
    color: rgba(224, 224, 224, 0.38);
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
}

.post-preview-excerpt {
    color: rgba(224, 224, 224, 0.58);
    font-size: 0.86rem;
    line-height: 1.65;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: gap 0.2s, color 0.2s;
}

.view-all-link:hover {
    gap: 14px;
    color: #00ffdd;
    text-decoration: none;
}

/* ----------------------------------------------------------------
   STATS SECTION
   ---------------------------------------------------------------- */
.stats-section {
    background: linear-gradient(180deg, #0d2010 0%, #0a1a0a 100%);
    padding: 65px 0;
    border-top:    1px solid rgba(0, 230, 200, 0.08);
    border-bottom: 1px solid rgba(0, 230, 200, 0.08);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 24px rgba(0, 230, 200, 0.38);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
    font-family: 'Figtree', Arial, sans-serif;
}

.stat-label {
    color: rgba(224, 224, 224, 0.5);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
   ANIMATIONS
   ---------------------------------------------------------------- */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ----------------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero-title   { font-size: 2.8rem; }
    .home-section { padding: 60px 0; }
    .hub-grid,
    .posts-grid   { grid-template-columns: 1fr; }
}
