/* Talarity Portal Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #040810;
    --bg-secondary: #0a1628;
    --bg-card: rgba(15, 35, 70, 0.4);
    --bg-card-hover: rgba(20, 50, 100, 0.5);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    --blue-dark: #0a2540;
    --blue-mid: #1e4976;
    --blue-primary: #2563eb;
    --blue-bright: #3b82f6;
    --blue-light: #60a5fa;
    --blue-pale: #93c5fd;
    --cyan-accent: #22d3ee;
    --gradient-hero: linear-gradient(135deg, #1e4976 0%, #2563eb 50%, #3b82f6 100%);
    --gradient-card-1: linear-gradient(135deg, rgba(30, 73, 118, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
    --gradient-card-2: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.2) 100%);
    --gradient-card-3: linear-gradient(135deg, rgba(59, 130, 246, 0.3) 0%, rgba(96, 165, 250, 0.2) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: var(--blue-dark);
    top: -250px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--blue-primary);
    top: 40%;
    right: -200px;
    animation-delay: -8s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: var(--blue-mid);
    bottom: -150px;
    left: 20%;
    animation-delay: -16s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.05); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(25px, 15px) scale(1.02); }
}

/* Data Grid Background */
.data-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 30%, transparent 80%);
}

/* Floating Data Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    opacity: 0;
    animation: rise 10s ease-in infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; background: var(--blue-bright); }
.particle:nth-child(2) { left: 20%; animation-delay: 1.2s; background: var(--blue-light); }
.particle:nth-child(3) { left: 30%; animation-delay: 2.4s; background: var(--blue-pale); }
.particle:nth-child(4) { left: 40%; animation-delay: 0.6s; background: var(--cyan-accent); }
.particle:nth-child(5) { left: 50%; animation-delay: 1.8s; background: var(--blue-bright); }
.particle:nth-child(6) { left: 60%; animation-delay: 3s; background: var(--blue-light); }
.particle:nth-child(7) { left: 70%; animation-delay: 0.9s; background: var(--blue-pale); }
.particle:nth-child(8) { left: 80%; animation-delay: 2.1s; background: var(--cyan-accent); }
.particle:nth-child(9) { left: 90%; animation-delay: 3.3s; background: var(--blue-bright); }
.particle:nth-child(10) { left: 15%; animation-delay: 4s; background: var(--blue-light); }
.particle:nth-child(11) { left: 35%; animation-delay: 4.5s; background: var(--blue-pale); }
.particle:nth-child(12) { left: 55%; animation-delay: 5s; background: var(--cyan-accent); }
.particle:nth-child(13) { left: 75%; animation-delay: 5.5s; background: var(--blue-bright); }
.particle:nth-child(14) { left: 85%; animation-delay: 6s; background: var(--blue-light); }
.particle:nth-child(15) { left: 25%; animation-delay: 6.5s; background: var(--blue-pale); }

@keyframes rise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0) scale(1);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(30px) scale(0.3);
    }
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    padding: 60px 40px 40px;
    text-align: center;
    position: relative;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Overlapping decorative circles */
.hero-shapes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    pointer-events: none;
    z-index: -1;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.hero-circle-1 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: circleFloat 20s ease-in-out infinite;
}

.hero-circle-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    border-color: rgba(96, 165, 250, 0.12);
    animation: circleFloat 25s ease-in-out infinite reverse;
}

.hero-circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-color: rgba(147, 197, 253, 0.1);
    animation: circleFloat 18s ease-in-out infinite;
}

@keyframes circleFloat {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--blue-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--blue-bright);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--blue-bright);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
    font-size: clamp(56px, 10vw, 100px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    color: var(--blue-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero-subtitle {
    font-size: clamp(17px, 2vw, 21px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-indicator-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--blue-bright), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.6); opacity: 0.4; }
}

/* Cards Section */
.cards-section {
    padding: 20px 40px 120px;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}

/* Overlapping card effect */
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: 20px;
    padding: 36px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out both;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card:nth-child(1) {
    animation-delay: 0.3s;
    transform: translateY(0);
    z-index: 3;
}

.card:nth-child(2) {
    animation-delay: 0.4s;
    transform: translateY(20px);
    z-index: 2;
}

.card:nth-child(3) {
    animation-delay: 0.5s;
    transform: translateY(40px);
    z-index: 1;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(96, 165, 250, 0.25);
    background: var(--bg-card-hover);
    z-index: 10;
}

.card:hover::before,
.card:hover::after {
    opacity: 1;
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    transition: all 0.4s ease;
}

.card:nth-child(1) .card-icon-wrapper {
    background: var(--gradient-card-1);
    border: 1px solid rgba(30, 73, 118, 0.3);
}

.card:nth-child(2) .card-icon-wrapper {
    background: var(--gradient-card-2);
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.card:nth-child(3) .card-icon-wrapper {
    background: var(--gradient-card-3);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.card-icon {
    font-size: 26px;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.card:nth-child(1) .card-label { color: var(--blue-pale); }
.card:nth-child(2) .card-label { color: var(--blue-light); }
.card:nth-child(3) .card-label { color: var(--cyan-accent); }

.card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 24px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    padding: 10px 16px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.card:hover .card-cta {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.3);
}

.card-cta-arrow {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
}

.card:hover .card-cta-arrow {
    transform: translateX(4px);
    background: var(--blue-bright);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.card-tag {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 10px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 100px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Decorative Elements */
.card-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.card:nth-child(1) .card-glow {
    background: var(--blue-mid);
    top: -80px;
    right: -80px;
}

.card:nth-child(2) .card-glow {
    background: var(--blue-primary);
    top: -80px;
    right: -80px;
}

.card:nth-child(3) .card-glow {
    background: var(--blue-bright);
    top: -80px;
    right: -80px;
}

.card:hover .card-glow {
    opacity: 0.12;
}

/* Footer */
.footer {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(59, 130, 246, 0.08);
    margin-top: auto;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.3), transparent);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.footer-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover {
    color: var(--blue-light);
}

.footer-link svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }

    .card:nth-child(1),
    .card:nth-child(2),
    .card:nth-child(3) {
        transform: translateY(0);
    }

    .hero {
        padding: 50px 24px 30px;
        min-height: auto;
    }

    .cards-section {
        padding: 24px 24px 80px;
    }

    .hero-shapes {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 44px;
    }

    .hero-tagline {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .card {
        padding: 28px 22px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Expanding rings - now in blue */
.rings-container {
    position: fixed;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    pointer-events: none;
}

.highlight-ring {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(59, 130, 246, 0.08);
    pointer-events: none;
    animation: expandRing 5s ease-out infinite;
}

.highlight-ring:nth-child(2) { animation-delay: 1.66s; }
.highlight-ring:nth-child(3) { animation-delay: 3.33s; }

@keyframes expandRing {
    0% {
        transform: scale(0);
        opacity: 0.4;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}
