/* ============================================
   RISE BANKING PLATFORM - MASTER STYLESHEET
   ============================================ */

/* ============================================
   1. ROOT & GLOBAL STYLES
   ============================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
    --color-primary: #0f172a;
    --color-secondary: #064e3b;
    --color-accent: #f59e0b;
    --color-text: #1f2937;
    --color-background: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
}

main {
    padding-top: 4.5rem;
}

/* ============================================
   2. CONTAINER & LAYOUT
   ============================================ */

.container {
    width: 80%;
    max-width: 80rem;
    margin: 0 auto;
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================
   3. ANIMATIONS - ENTRANCE & SCROLL
   ============================================ */

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Fade In with Delay (0.1s) */
.fade-in[style*="transition-delay: 0.1s"] {
    animation-delay: 0.1s;
}

/* Fade In with Delay (0.2s) */
.fade-in[style*="transition-delay: 0.2s"],
.transition-delay-200 {
    transition-delay: 0.2s;
}

/* Fade In with Delay (0.3s) */
.transition-delay-300 {
    transition-delay: 0.3s;
}

/* Fade In with Delay (0.4s) */
.fade-in[style*="transition-delay: 0.4s"],
.transition-delay-400 {
    transition-delay: 0.4s;
}

/* Fade In with Delay (0.5s) */
.transition-delay-500 {
    transition-delay: 0.5s;
}

/* Fade In with Delay (0.6s) */
.fade-in[style*="transition-delay: 0.6s"],
.transition-delay-600 {
    transition-delay: 0.6s;
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: slideUp 0.6s ease-out forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.4s;
}

/* Slide In from Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In from Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade Slide Right Animation */
@keyframes fadeSlideRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card ul li {
    animation: fadeSlideRight 0.5s ease-out forwards;
}

.service-card ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card ul li:nth-child(2) {
    animation-delay: 0.2s;
}

/* Bounce Animation */
@keyframes bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

.bounce-card {
    animation: bounce-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Float Animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.float {
    animation: float 6s ease-in-out infinite;
}

/* Shimmer Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 1000px 100%;
}

/* Color Shift Animation */
@keyframes colorShift {
    0% {
        border-left-color: #0d9488;
    }
    50% {
        border-left-color: #06b6d4;
    }
    100% {
        border-left-color: #0d9488;
    }
}

/* Border Glow Animation */
@keyframes borderGlow {
    0% {
        box-shadow: inset 0 0 0px rgba(14, 165, 233, 0);
    }
    100% {
        box-shadow: inset 0 0 10px rgba(14, 165, 233, 0.3);
    }
}

/* Rise Animation (Particles) */
@keyframes rise {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.3);
    animation: rise 15s infinite ease-in;
}

/* Pulse Ring Animation */
@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-ring {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Network Line Animation */
@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.network-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: dash 3s ease-in-out forwards;
}

/* Blockchain Node Animation */
@keyframes node-pulse {
    0%,
    100% {
        r: 8;
        opacity: 1;
    }
    50% {
        r: 12;
        opacity: 0.6;
    }
}

.blockchain-node {
    animation: node-pulse 2s ease-in-out infinite;
}

/* Glitch Effect */
@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
            -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
            -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
            0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
            -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
            0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: none;
    }
}

/* ============================================
   4. BUTTONS & CTA
   ============================================ */

.cta-button {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

.cta-button:hover:ring-4 {
    outline: 4px solid rgba(251, 191, 36, 0.5);
    outline-offset: 2px;
}

/* ============================================
   5. CARDS & HOVER EFFECTS
   ============================================ */

/* Service Card Base */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(249, 250, 251, 0.9) 100%
    );
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2);
}

/* 3D Card Effect */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
    animation: colorShift 0.6s ease-in-out;
}

/* Glass Morphism Cards */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.2);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.6);
}

/* FAQ Item Hover */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    background-color: #f3f4f6;
}

/* Service Hover Effect */
.service-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   6. PATTERNS & BACKGROUNDS
   ============================================ */

/* Grid Pattern */
.grid-pattern {
    background-image: linear-gradient(
            rgba(14, 165, 233, 0.05) 1px,
            transparent 1px
        ),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Hexagon Pattern */
.hex-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 0L93.3 25v50L50 100 6.7 75V25z' fill='none' stroke='%230ea5e9' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100px 100px;
}

/* Hero Section Background */
#hero-section {
    background: linear-gradient(135deg, #f9fafb 0%, #e0f2f1 100%);
}

/* ============================================
   7. RESPONSIVE & UTILITY CLASSES
   ============================================ */

/* Transition delays for cascade effects */
.transition-delay-100 {
    transition-delay: 0.1s;
}

.transition-delay-200 {
    transition-delay: 0.2s;
}

.transition-delay-300 {
    transition-delay: 0.3s;
}

.transition-delay-400 {
    transition-delay: 0.4s;
}

.transition-delay-500 {
    transition-delay: 0.5s;
}

.transition-delay-600 {
    transition-delay: 0.6s;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    main {
        padding-top: 3.5rem;
    }

    .container {
        width: 80%;
    }

    .fade-in {
        transform: translateY(20px);
    }
}

@media (max-width: 640px) {
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   8. PRINT STYLES
   ============================================ */

@media print {
    main {
        padding-top: 0;
    }

    .cta-button,
    .fade-in {
        animation: none;
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   9. HERO SECTION & GLOBE STYLES
   ============================================ */

/* Hero Container */
.hero-container {
    background: linear-gradient(135deg, #ffffffff 0%, #ffffffff 50%, #cfd8ffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0 11%;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 0 0 45%;
    max-width: auto;
    z-index: 10;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    color: var(--main-palette--text-primary);
    letter-spacing: -.03em;
    margin-top: 0;
    margin-bottom: 0;
    font-family: Circular, Arial, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-weight: 400;
    font-family: Circular, Inter, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
    margin-top: 0;
    color: var(--body-text);
    margin-bottom: 0;
    letter-spacing: -.2px;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-top: 10px;
    margin-bottom: 10px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.stat-item {
    flex: 1;
}

/* Globe Container - Reduced Height */
.globe-container {
    flex: 0 0 50%;
    height: 60vh;
    position: relative;
}

/* Globe Styles */
.globe {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.globe .globe-list {
    z-index: 10;
    position: absolute;
    left: 0;
    top: 0;
    list-style: none;
    display: block;
    opacity: 0;
    transition: opacity 3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.globe .globe-list.active {
    opacity: 1;
}

.globe .globe-list>li {
    opacity: 0.4;
    position: absolute;
    margin-left: -8px;
    margin-top: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00d4ff;
    transition: opacity 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}

.globe .globe-list>li.active {
    opacity: 1;
    margin-left: -12px;
    margin-top: -12px;
    width: 24px;
    height: 24px;
}

.globe .globe-canvas {
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.globe svg {
    height: 100%;
    width: 100%;
    opacity: 0.1;
    animation: rotation 20s linear infinite;
}

/* SVG Wrapper - Reduced Size */
.svg-wrapper {
    opacity: 0;
    position: absolute;
    width: min(50vmin, 480px);
    height: min(50vmin, 480px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 1s ease-out 1.6s, transform 1s ease-out 1.6s;
    z-index: 0;
    pointer-events: none;
}

.svg-wrapper.active {
    opacity: 1;
}

@keyframes rotation {
    0% {
        transform: scaleX(-1) rotate(360deg);
    }
    100% {
        transform: scaleX(-1) rotate(0deg);
    }
}

/* Text Chips */
.text-chips-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 15;
}

.text-chip {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #0a0e27;
    padding: 8px 16px;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    cursor: pointer;
    z-index: 20;
    min-width: auto;
    left: 0;
    top: 0;
}

.text-chip:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.35);
    border-color: rgba(0, 212, 255, 0.8);
}

.text-chip.visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

.text-chip.active {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.flag-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    font-weight: bold;
}

.crypto-chip {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    border: 2px solid rgba(0, 212, 255, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.crypto-chip .flag-icon {
    background: linear-gradient(135deg, #00d4ff 0%, #6366f1 100%);
}

/* SVG Ring Styles */
.text-chip-ring {
    position: absolute;
    width: 150%;
    height: 150%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.text-chip-ring svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ring-circle {
    fill: none;
    stroke: url(#ringGradient);
    stroke-width: 2;
    stroke-linecap: round;
}

.ring-animated {
    animation: ringRotate 3s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes ringRotate {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

.st0 {
    fill: #00d4ff;
}

/* Hero Responsive Styles */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
    }

    .hero-content {
        flex: none;
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .globe-container {
        flex: none;
        height: 40vh;
        width: 100%;
    }

    .globe {
        right: auto;
    }
}

@media (max-width: 640px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .globe-container {
        height: 30vh;
    }

    .svg-wrapper {
        width: min(40vmin, 350px);
        height: min(40vmin, 350px);
    }
}

/* ============================================
   10. PAGE-SPECIFIC STYLES (Corporate Accounts, etc)
   ============================================ */

/* Corporate Accounts - Page Illustration */
.illus-hero-svg {
    position: absolute;
    right: -8%;
    top: 8%;
    width: 56%;
    opacity: 0.14;
    transform: translateZ(0);
}

.illus-hero-svg .node {
    fill: #06b6d4;
}

.illus-hero-svg .line {
    stroke: rgba(6, 182, 212, 0.28);
    stroke-width: 2;
    stroke-linecap: round;
}

.feature-icon-illus {
    width: 72px;
    height: 72px;
    display: inline-block;
    margin-bottom: 12px;
}

.feature-icon-illus svg {
    width: 100%;
    height: 100%;
}

.core-illustration {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.core-illustration svg {
    width: 100%;
    height: auto;
}

/* Float Slowly Animation */
@keyframes floatSlowly {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.animate-float-slow {
    animation: floatSlowly 6s ease-in-out infinite;
}

/* Dash Draw Animation for Network Lines */
@keyframes dashDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.line.draw {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: dashDraw 2.2s ease-out forwards;
}

/* Subtle Pulsing Nodes */
@keyframes nodePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.25);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.node.pulse {
    animation: nodePulse 1.8s ease-in-out infinite;
}

/* Glass Card Styling */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Reveal Animation (fade + slide in) */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    animation: reveal 0.6s ease-out forwards;
}

/* Feature Card Styling */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Card Base Styling */
.card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
