/* ===== MODERN DESIGN SYSTEM (HSL BASED) ===== */
:root {
    /* Primary Color Palette - HSL for Perfect Harmony */
    --h: 235;
    /* Primary Hue */
    --s: 85%;

    --primary: hsl(var(--h), var(--s), 55%);
    --primary-dark: hsl(var(--h), 45%, 15%);
    --primary-light: hsl(var(--h), var(--s), 75%);
    --primary-soft: hsl(var(--h), 100%, 96%);

    /* Secondary/Accent Palette */
    --secondary-h: 0;
    --secondary: hsl(var(--secondary-h), 85%, 65%);
    --accent-purple: hsl(265, 85%, 65%);
    --accent-teal: hsl(170, 85%, 45%);

    /* Neutral Palette */
    --bg-white: #ffffff;
    --text-main: hsl(var(--h), 45%, 20%);
    --text-muted: hsl(var(--h), 20%, 45%);

    /* Design Tokens */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(var(--h), 50%, 20%, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.1);

    --radius-lg: 32px;
    --radius-md: 20px;
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 0% 0%, #f8faff 0%, #ffffff 100%);
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMATED BACKGROUND ===== */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(120px);
    border-radius: 50%;
    opacity: 0.15;
    animation: floating 25s infinite alternate ease-in-out;
}

.shape1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -100px;
}

.shape2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.shape3 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    top: 30%;
    left: 50%;
    opacity: 0.1;
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(100px, 50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 80px) scale(0.9);
    }

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

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    margin-bottom: 100px;
    opacity: 0;
    animation: fadeInDown 1s forwards cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-soft);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
}

h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 24px;
    letter-spacing: -0.04em;
}

.highlight {
    background: linear-gradient(90deg, var(--primary), var(--accent-purple), var(--secondary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s linear infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
}

/* ===== INFO SECTIONS ===== */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
    padding: 60px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.info-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.info-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.info-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary-soft), #fff);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.visual-box i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* ===== PREDICTIONS GRID ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 18px;
    margin-bottom: 24px;
    transition: 0.3s;
}

.card:hover .card-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(5deg);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
}

.card:hover .arrow i {
    transform: translateX(5px);
}

/* ===== DASHBOARD CTA ===== */
.dashboard-card {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(90deg, var(--primary-dark) 0%, hsl(var(--h), 50%, 25%) 100%);
    color: #fff;
    border: none;
}

.dashboard-card .card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0;
    margin-right: 40px;
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.dashboard-card .content-wrapper {
    flex-grow: 1;
}

.dashboard-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-size: 1.15rem;
    max-width: 600px;
}

.dashboard-card .arrow {
    color: var(--secondary);
}

/* ===== ABOUT BUTTON (HOMEPAGE) ===== */
.about-section {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

.about-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--bg-white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 2px solid var(--primary-light);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.about-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.about-btn i {
    font-size: 1.25rem;
}

/* ===== ABOUT PAGE SPECIFIC ===== */
.about-page .back-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    padding: 10px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    z-index: 10;
}

.about-page .back-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

.content-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 60px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}

.content-card h2 {
    font-size: 2.25rem;
    margin-bottom: 30px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-page .content-card h2 i {
    color: var(--accent-teal);
    /* Changed to Green */
}

.about-page .content-card h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px;
    color: var(--accent-teal);
    /* Changed to Green */
}

.content-card p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--primary-soft);
}

.about-page .feature-item h4 {
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-page .feature-item i {
    color: var(--accent-teal);
    /* Changed to Green */
}

.about-page .tech-tag {
    display: inline-block;
    padding: 4px 12px;
    background: hsl(170, 85%, 95%);
    /* Soft Green */
    color: var(--accent-teal);
    /* Green */
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 4px;
}

.about-page .about-section .about-btn {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
}

.about-page .about-section .about-btn:hover {
    background: var(--accent-teal);
    color: #fff;
    border-color: var(--accent-teal);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .content-card {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .back-btn {
        top: 20px;
        left: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 2.75rem;
    }
}