/* =========================================
   Landing Page Custom Styles
   ========================================= */

:root {
    --electric-blue: #0066FF;
    --deep-violet: #7C3AED;
    --dark: #0F172A;
    --white: #FFFFFF;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-800: #1E293B;
    --success: #10B981;
    --warning: #F59E0B;
}

/* =========================================
   Hero Section Base
   ========================================= */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 40px;
}

/* =========================================
   Educational Article Section
   ========================================= */
.article-section {
    background: var(--white);
    padding: 2rem 5% 1rem 5%;
    /* Further reduced bottom padding */
    position: relative;
}

.article-container {
    max-width: 800px;
    /* Reduced from 900px */
    margin: 0 auto;
}

.article-content {
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.article-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.article-title {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
    /* Reduced from 1.5rem */
    line-height: 1.2;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.article-content.visible .article-title {
    transform: translateX(5px);
}

.article-text {
    font-size: 1rem;
    /* Reduced from 1.15rem */
    line-height: 1.7;
    /* Reduced from 1.8 */
    color: var(--gray-700);
    margin-bottom: 2px;
    font-weight: 400;
}

.article-highlight {
    font-size: 1.15rem;
    /* Reduced from 1.3rem */
    font-weight: 700;
    color: var(--dark);
    margin-top: 1.5rem;
    /* Reduced from 2rem */
    padding: 1.2rem 1.8rem;
    /* Reduced from 1.5rem 2rem */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(124, 58, 237, 0.1));
    border-left: 4px solid var(--electric-blue);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.article-content.visible .article-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(124, 58, 237, 0.15));
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.1);
}

/* Article Responsive */
@media (max-width: 768px) {
    .article-section {
        padding: 1.5rem 5% 1rem 5%;
        /* Reduced mobile padding */
    }

    .article-title {
        font-size: 1.5rem;
        /* Reduced from 1.8rem */
        margin-bottom: 0.8rem;
    }

    .article-text {
        font-size: 0.95rem;
        /* Reduced from 1rem */
        line-height: 1.6;
        margin-bottom: 2px;
    }

    .article-highlight {
        font-size: 1rem;
        /* Reduced from 1.1rem */
        padding: 1rem 1.3rem;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.3rem;
        /* Reduced from 1.5rem */
    }

    .article-text {
        font-size: 0.9rem;
        /* Reduced from 0.95rem */
    }

    .article-highlight {
        font-size: 0.95rem;
        /* Reduced from 1rem */
        padding: 0.8rem 1rem;
    }
}

/* Background Pattern */
.hero-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(124, 58, 237, 0.03) 2px, rgba(124, 58, 237, 0.03) 10px);
    z-index: 1;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    opacity: 0.1;
    filter: blur(40px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 100px;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 30%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(20px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* =========================================
   Hero Content Layout & Typography
   ========================================= */
.hero-content {
    position: relative;
    z-index: 10;
    padding: 1rem 5% 4rem 5%;
    /* Reduced top padding */
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    color: var(--dark);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    border-radius: 2px;
    animation: underlineWidth 1.5s ease-out forwards;
}

@keyframes underlineWidth {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 90%;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    min-width: 220px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    color: var(--white);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.3);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.3s;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.8);
    color: var(--dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: white;
    color: var(--electric-blue);
    border-color: var(--electric-blue);
}

/* Stats Section */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 450px;
    z-index: 3;
}

.stat-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray-800);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Hero Graphics & Animations */
.hero-graphics {
    position: relative;
    height: 700px;
    /* Increased to accommodate stats below */
    margin-top: -14rem;
    /* Move graphics up to reduce space from header */
}

.node-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
}

.node-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    animation: nodePulse 4s ease-in-out infinite;
    border: 4px solid var(--white);
}

@keyframes nodePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
    }
}

/* Node Positions */
.node-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 60%;
    right: 10%;
    animation-delay: 0.5s;
}

.node-3 {
    top: 40%;
    right: 70%;
    animation-delay: 1s;
}

.node-4 {
    top: 80%;
    right: 40%;
    animation-delay: 1.5s;
}

.node-5 {
    top: 30%;
    right: 50%;
    animation-delay: 2s;
}

.node-6 {
    top: 10%;
    right: 45%;
    animation-delay: 2.5s;
}

.node-7 {
    top: 70%;
    right: 65%;
    animation-delay: 3s;
}

.node-8 {
    top: 50%;
    right: 15%;
    animation-delay: 3.5s;
}

.node-9 {
    top: 85%;
    right: 60%;
    animation-delay: 4s;
}

.node-10 {
    top: 15%;
    right: 75%;
    animation-delay: 4.5s;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    height: 2px;
    transform-origin: right center;
    opacity: 0.3;
    animation: lineFlow 3s linear infinite;
}

@keyframes lineFlow {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

.line-1 {
    top: 35%;
    right: 28%;
    width: 150px;
    transform: rotate(30deg);
}

.line-2 {
    top: 45%;
    right: 40%;
    width: 120px;
    transform: rotate(120deg);
    animation-delay: 0.5s;
}

.line-3 {
    top: 65%;
    right: 30%;
    width: 180px;
    transform: rotate(200deg);
    animation-delay: 1s;
}

.line-4 {
    top: 50%;
    right: 60%;
    width: 100px;
    transform: rotate(300deg);
    animation-delay: 1.5s;
}

.line-5 {
    top: 25%;
    right: 50%;
    width: 140px;
    transform: rotate(45deg);
    animation-delay: 2s;
}

.line-6 {
    top: 75%;
    right: 55%;
    width: 110px;
    transform: rotate(150deg);
    animation-delay: 2.5s;
}

.line-7 {
    top: 55%;
    right: 25%;
    width: 130px;
    transform: rotate(250deg);
    animation-delay: 3s;
}

/* Network Status Card */
.network-info-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    width: 280px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: cardFloat 6s ease-in-out infinite;
    z-index: 2;
}

@keyframes cardFloat {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    33% {
        transform: translate(-50%, -52%) rotate(2deg);
    }

    66% {
        transform: translate(-50%, -48%) rotate(-2deg);
    }
}

.network-info-card::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    border-radius: 26px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(15px);
}

.card-title-custom {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--electric-blue), var(--deep-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-value-custom {
    font-weight: 700;
    color: var(--electric-blue);
}

.stat-value-custom.success {
    color: var(--success);
}

/* =========================================
   Fade-in Animations
   ========================================= */
.hero-text>* {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-tag {
    animation-delay: 0.2s;
}

.hero-title {
    animation-delay: 0.4s;
}

.hero-subtitle {
    animation-delay: 0.6s;
}

.hero-actions {
    animation-delay: 0.8s;
}

.hero-stats {
    animation-delay: 1s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive Design
   ========================================= */

/* Tablet - 1200px and below */
@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-graphics {
        height: 500px;
        order: -1;
        margin-top: -4rem;
        /* Adjusted for tablet */
    }

    .node-network {
        width: 400px;
        height: 400px;
    }

    .hero-subtitle {
        max-width: 100%;
        margin: 0 auto 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        margin: 0 auto;
        position: relative;
        bottom: auto;
        margin-top: 2rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 20px;
    }

    .hero-content {
        padding: 1rem 5% 3rem 5%;
        display: flex;
        flex-direction: column;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
    }

    .hero-tag {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        order: 1;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        order: 2;
    }

    /* Graphics appear after title */
    .hero-graphics {
        order: 3;
        height: 450px;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        order: 4;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
        order: 5;
    }


    .btn-lg {
        width: 100%;
        max-width: 280px;
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .node-network {
        width: 320px;
        height: 320px;
    }

    .node-circle {
        width: 55px;
        height: 55px;
        font-size: 0.9rem;
    }

    .network-info-card {
        width: 220px;
        padding: 1.2rem;
    }

    .card-title-custom {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .stat-row {
        padding: 0.4rem 0;
        font-size: 0.85rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        max-width: 220px;
        gap: 0.6rem;
        margin-top: 5rem;
        /* Increased from 2rem */
        position: relative;
        bottom: auto;
        z-index: 5;
    }

    .stat-card {
        padding: 0.6rem;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .connection-line {
        height: 1.5px;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-lg {
        max-width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }

    .hero-graphics {
        height: 360px;
        /* Tight height to minimize bottom gap */
        margin-top: 1rem;
        /* Push down to clear buttons */
        position: relative;
    }

    .node-network {
        width: 280px;
        height: 280px;
    }

    .node-circle {
        width: 45px;
        height: 45px;
        font-size: 0.8rem;
        border: 3px solid var(--white);
    }

    .network-info-card {
        width: 200px;
        padding: 1rem;
        top: 0;
        /* Start at top of container */
    }

    .card-title-custom {
        font-size: 1rem;
    }

    .stat-row {
        font-size: 0.8rem;
    }

    .hero-stats {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        max-width: 100%;
        margin-top: 210px !important;
        /* Clear the network card */
        position: relative;
        z-index: 20;
        padding: 0 10px;
    }

    .stat-card {
        padding: 0.5rem;
        flex: 1;
        /* Distribute space equally */
        min-width: 0;
        /* Prevent overflow */
    }

    .stat-number {
        font-size: 1rem;
        /* Smaller font for mobile row */
    }

    .stat-label {
        font-size: 0.6rem;
    }

    /* Hide some connection lines on very small screens */
    .line-5,
    .line-6,
    .line-7 {
        display: none;
    }
}