/* 
   SmartPayZone Premium Theme v2.0
   Design: Modern Fintech (Stripe-inspired), Deep Depth, Fluid Typography
   Author: Bijoy Haldar (void0.space)
   Website: https://void0.space
*/

:root {
    /* SmartPayZone Logo Palette */
    --primary: #523e8e;
    /* Brand Purple */
    --primary-light: #5bc8df;
    /* Brand Cyan/Light Blue */
    --accent: #c178b0;
    /* Brand Pink/Magenta */
    --secondary: #2d1b5a;
    /* Deeper Purple for contrast */

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #5bc8df 0%, #523e8e 50%, #c178b0 100%);
    --bg-dark: #2d1b5a;
    --bg-white: #FFFFFF;
    --bg-light: #f8f9ff;

    /* Typography */
    --font-main: 'Kanit', sans-serif;

    /* Layout */
    --header-height: 90px;
    --container-width: 1600px;
    --radius-lg: 20px;
    --radius-none: 0px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -----------------------
   Reset & Base
----------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: white;
    color: var(--secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s var(--ease-smooth);
}

ul {
    list-style: none;
}

/* -----------------------
   Typography
----------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    /* Massive, responsive title */
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* -----------------------
   Components
----------------------- */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-elastic);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--text-display);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-surface);
    color: var(--primary-dark);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: #e0e7ff;
    /* Indigo 100 */
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 0 0 4px rgba(224, 231, 255, 0.4);
}

/* -----------------------
   Global Section Header
----------------------- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* -----------------------
   Navbar (Duepe Style)
----------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--secondary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-login-duepe {
    background: var(--brand-gradient);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(91, 200, 223, 0.2);
}

.btn-login-duepe:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 120, 176, 0.3);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 991px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* -----------------------
   Hero Section (Duepe Style)
----------------------- */
.hero-duepe {
    background: var(--bg-white);
    padding: var(--header-height) 1rem 3rem;
}

.hero-wrapper {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-duepe-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-duepe-text {
    color: var(--text-on-dark);
}

.duepe-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.duepe-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 850;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.text-orange {
    color: var(--primary);
}

.duepe-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
    max-width: 550px;
}

.hero-duepe-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-duepe-primary {
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-duepe-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.3);
    filter: brightness(1.1);
}

.btn-duepe-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--secondary);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-duepe-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.hero-duepe-visual {
    position: relative;
}

.duepe-hero-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.visual-blob {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255, 87, 34, 0.1) 0%, transparent 70%);
    z-index: 1;
}

@media (max-width: 991px) {
    .hero-duepe-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-duepe-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-duepe-btns {
        justify-content: center;
    }
}

/* -----------------------
   Hero Section (Duepe Precision)
----------------------- */
.hero-precision {
    background: white;
    padding: 0 1.5rem;
}

.hero-clipped-box {
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(91, 200, 223, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(193, 120, 176, 0.15) 0%, transparent 40%);
    margin-top: 10px;
    border-radius: 20px;
    min-height: 85vh;
    padding: 8rem 0;
    position: relative;
    /* Specific Duepe Clipped Corner */
    clip-path: polygon(0 0, 68% 0, 72% 5%, 100% 5%, 100% 100%, 0 100%);
    display: flex;
    align-items: center;
    border: 1px solid rgba(91, 200, 223, 0.1);
}

.hero-split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-tiny-label {
    display: block;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-huge-title {
    font-size: clamp(3rem, 6vw, 72px);
    line-height: 1.1;
    color: white;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-bottom: 3.5rem;
}

.hero-button-group {
    display: flex;
    gap: 1.5rem;
}

.btn-ghost-duepe {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-ghost-duepe:hover {
    background: var(--brand-gradient);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-img-precise {
    width: 100%;
    transform: scale(1.1);
}

@media (max-width: 991px) {
    .hero-clipped-box {
        clip-path: none;
        padding: 5rem 1rem;
        min-height: auto;
    }

    .hero-split-layout {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-button-group {
        flex-direction: column;
    }
}

/* -----------------------
   Stats Section
----------------------- */
.stats-section {
    position: relative;
    margin-top: -4rem;
    /* Overlap hero */
    z-index: 10;
    padding-bottom: 2rem;
}

.stats-grid {
    background: white;
    border-radius: var(--radius-none);
    /* Square look */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Very subtle */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 3rem;
    gap: 2rem;
    border: 1px solid #eee;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-item h3 {
    font-size: 2.5rem;
    margin: 0;
    color: var(--secondary);
    font-weight: 700;
}

.stat-item p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Square box look */
}

.service-card {
    padding: 60px 40px;
    background: white;
    transition: var(--transition);
    border: none;
    border-radius: 0;
}

/* Checkered Background Pattern */
.service-card:nth-child(even) {
    background: #fdf6ee;
    /* Creamy/Yellowish touch */
}

.service-card:nth-child(4n+1),
.service-card:nth-child(4n+4) {
    background: rgba(5, 10, 73, 0.03);
    /* Faint blue tint */
}

.service-card i {
    font-size: 2.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 2rem;
    transition: transform 0.4s var(--duepe-ease);
}

.service-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-learn-more {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.service-learn-more:hover {
    color: var(--primary);
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--bg-light);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 0;
}

.feature-card {
    background: white;
    padding: 4rem;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.feature-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* -----------------------
   CTA & Footer (Duepe)
----------------------- */
.cta-duepe {
    padding: 100px 1rem;
    background: var(--bg-white);
}

.cta-duepe-wrapper {
    background: var(--primary);
    border-radius: var(--radius-lg);
    padding: 5rem 2rem;
    text-align: center;
    color: white;
}

.cta-duepe-wrapper h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-duepe-wrapper p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Footer Glass Effect with Glowing Orbs */
/* Footer Glass Effect with Glowing Orbs */
.footer-duepe {
    /* Boxed Layout */
    margin: 0 2rem 2rem 2rem;
    border-radius: 30px;
    width: auto;

    /* Neon Landscape Background (CSS Generated) */
    background-color: #0f172a;
    background-image:
        /* Horizon Glow */
        radial-gradient(ellipse at center bottom, rgba(236, 72, 153, 0.4) 0%, transparent 60%),
        /* Grid Lines Vertical */
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        /* Grid Lines Horizontal */
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 60px 100%, 100% 60px;
    background-position: center bottom;

    color: #e2e8f0;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;

    /* Strong Glass Effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);

    /* Reveal Animation */
    opacity: 0;
    animation: footerReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.5s;
    /* Wait for content to load slightly */
}

/* Footer Reveal Keyframes */
@keyframes footerReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glowing Orbs for Extra Atmosphere */
.footer-duepe::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    opacity: 0.6;
    animation: glowFloat 15s infinite alternate;
}

.footer-duepe::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    /* Cyan tint */
    border-radius: 50%;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.5;
    animation: glowFloat 12s infinite alternate-reverse;
}

/* Keyframe for floating glows */
@keyframes glowFloat {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 20px);
    }
}

.footer-duepe .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.brand-col .footer-logo {
    display: inline-block;
    /* Ensure padding/bg works */
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.brand-col .footer-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.brand-col .footer-logo img {
    display: block;
    /* Remove bottom space */
}

/* Old styles to remove or override effectively */
/* .brand-col .footer-logo { font-size... etc } */

.brand-col .footer-logo span {
    color: var(--primary);
}

.brand-col p {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

/* Newsletter */
.newsletter-col p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn-icon {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    width: 40px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form .btn-icon:hover {
    background: var(--primary-dark);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.designer-credit i {
    color: #ef4444;
    /* Heart Red */
    animation: beat 1s infinite alternate;
}

@keyframes beat {
    to {
        transform: scale(1.2);
    }
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .brand-col p {
        margin: 0 auto 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}



.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-col p {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-col i {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card i {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

/* -----------------------
   CTA Section
----------------------- */
.cta-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, #4f46e5, #4338ca),
        linear-gradient(to bottom, #4f46e5, #3730a3);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    top: 0;
    left: 0;
    opacity: 0.3;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* -----------------------
   Footer
----------------------- */
footer {
    background: #020617;
    /* Slate 950 */
    color: white;
    padding: 6rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* -----------------------
   Login Page Specifics
----------------------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.login-bg-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.shape-1 {
    top: -100px;
    left: -100px;
}

.shape-2 {
    bottom: -100px;
    right: -100px;
}

.login-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 440px;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid white;
    z-index: 1;
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-display);
    font-size: 0.95rem;
}

.input-wrapper input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8fafc;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.btn-block {
    width: 100%;
}

/* -----------------------
   Responsive
----------------------- */
@media (max-width: 1024px) {

    .hero-content,
    .features-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 400px;
    }

    .hero-btns {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: white;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    h1 {
        font-size: 3rem;
    }

    .stats-card-overlay {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: -2rem;
        margin-left: auto;
        margin-right: auto;
        max-width: 80%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }
}

/* -----------------------
   Login Page Redesign
----------------------- */

.login-page-body {
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: var(--header-height);
}

.login-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    width: 100%;
    max-width: 1200px;
    background: white;
    min-height: 700px;
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.login-visual {
    background: var(--bg-dark);
    background-image: radial-gradient(circle at 10% 20%, rgba(91, 200, 223, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(193, 120, 176, 0.15) 0%, transparent 40%);
    padding: 4rem;
    color: white;
    display: flex;
    align-items: center;
    position: relative;
    clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 100%, 0 100%);
}

.visual-content {
    max-width: 400px;
}

.visual-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.visual-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 3rem;
}

.visual-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.v-stat h3 {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 0.25rem;
}

.v-stat p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

.login-form-area {
    padding: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-v2 {
    width: 100%;
    max-width: 400px;
}

.login-header-v2 {
    margin-bottom: 3rem;
}

.login-header-v2 h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.login-header-v2 p {
    color: #64748b;
    font-size: 1rem;
}

.form-group-v2 {
    margin-bottom: 1.5rem;
}

.form-group-v2 label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.input-container-v2 {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container-v2 i {
    position: absolute;
    left: 1.25rem;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: var(--transition);
}

.input-container-v2 input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border-radius: 12px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: var(--transition);
    color: var(--secondary);
}

.input-container-v2 input:focus {
    background: white;
    border-color: var(--primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(91, 200, 223, 0.1);
}

.input-container-v2 input:focus+i {
    color: var(--primary-light);
}

.password-toggle {
    position: absolute;
    right: 1.25rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
}

.password-toggle:hover {
    color: var(--secondary);
}

.form-utility {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 2.5rem;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #64748b;
    user-select: none;
    gap: 0.75rem;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: inline-block;
    position: relative;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #e2e8f0;
}

.custom-checkbox input:checked~.checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.forgot-link {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.login-extra {
    margin-top: 2rem;
    text-align: center;
}

.login-extra p {
    font-size: 0.95rem;
    color: #64748b;
}

.login-extra a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 991px) {
    .login-split {
        grid-template-columns: 1fr;
        max-width: 500px;
        min-height: auto;
    }

    .login-visual {
        display: none;
    }

    .login-form-area {
        padding: 3rem 2rem;
    }

    .login-header-v2 h2 {
        font-size: 1.8rem;
    }
}

/*
 Author: Bijoy Haldar (void0.space)
   Website: https://void0.space
   Description: Main style for handling interactive UI components, parallax effects, and scroll animations.
*/



/* -----------------------
   Refined Premium Animations
----------------------- */

:root {
    --duepe-ease: cubic-bezier(0.19, 1, 0.22, 1);
    /* Increased duration slightly and ensured delays are respected */
    --duepe-duration: 1.4s;
}


/* Initial hidden state for ALL reveal elements */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.reveal-img-wrapper {
    opacity: 0;
    will-change: opacity, transform;
}

/* Animation triggers - using animation directly to handle visibility */
.reveal.active,
.reveal-up.active {
    animation: duepeFadeUp var(--duepe-duration) var(--duepe-ease) forwards;
}

.reveal-left.active {
    animation: duepeFadeLeft var(--duepe-duration) var(--duepe-ease) forwards;
}

.reveal-right.active {
    animation: duepeFadeRight var(--duepe-duration) var(--duepe-ease) forwards;
}

.reveal-scale.active {
    animation: duepeScaleIn var(--duepe-duration) var(--duepe-ease) forwards;
}

/* Keyframes */
@keyframes duepeFadeUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes duepeFadeLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes duepeFadeRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes duepeScaleIn {
    0% {
        opacity: 0;
        transform: scale(0.94);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes imgSlideReveal {
    0% {
        transform: translateX(-101%);
    }

    50% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(101%);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1.1);
    }

    50% {
        transform: translateY(-15px) scale(1.1);
    }

    100% {
        transform: translateY(0px) scale(1.1);
    }
}

/* Image Slide Reveal Enhancement */
.reveal-img-wrapper {
    position: relative;
    overflow: hidden;
    opacity: 1 !important;
    /* Wrapper needs to be visible for mask */
}

.reveal-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--brand-gradient);
    transform: translateX(-101%);
    z-index: 2;
    will-change: transform;
}

.reveal-img-wrapper.active::after {
    animation: imgSlideReveal 1.4s var(--duepe-ease) forwards;
}

.reveal-img-wrapper img {
    opacity: 0;
    transition: opacity 0.1s 0.7s;
    /* Delayed appearance */
    will-change: opacity;
}

.reveal-img-wrapper.active img {
    opacity: 1;
}

/* Simple Fade */
.reveal-fade {
    opacity: 0;
    transition: opacity 0.8s var(--duepe-ease);
}

.reveal-fade.active {
    opacity: 1;
    animation: duepeFadeIn 0.8s var(--duepe-ease) forwards;
}

@keyframes duepeFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Delays */
.delay-1 {
    animation-delay: 0.15s !important;
}

.delay-2 {
    animation-delay: 0.3s !important;
}

.delay-3 {
    animation-delay: 0.45s !important;
}

.delay-4 {
    animation-delay: 0.6s !important;
}

.delay-5 {
    animation-delay: 0.75s !important;
}

.delay-6 {
    animation-delay: 0.9s !important;
}

.delay-7 {
    animation-delay: 1.05s !important;
}

.delay-8 {
    animation-delay: 1.2s !important;
}

/* Interactive Hover Enhancements */
.hero-img-precise {
    animation: float 7s ease-in-out infinite;
    /* Slower float */
}

.service-card,
.feature-card {
    transition: transform 0.5s var(--duepe-ease), box-shadow 0.5s var(--duepe-ease);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
}

.feature-card:hover {
    transform: scale(1.015);
    border-color: var(--primary-light);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* -----------------------
   Hero Orbit Animation
----------------------- */

.hero-orbit-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* Allow orbits to peek out if needed */
    margin: 0 auto;
}

/* Central Hub */
.orbit-center {
    width: 140px;
    height: 140px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.1);
    z-index: 10;
    position: relative;
    animation: duepeScaleIn 1.4s var(--duepe-ease) forwards;
}

.orbit-center img {
    width: 80% !important;
    height: auto !important;
    max-width: 100px;
}

/* Rings */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Use independent translate property to avoid conflict with rotate animation */
    translate: -50% -50%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    /* box-shadow: 0 0 20px rgba(255,255,255,0.05); */
    pointer-events: none;
}

.orbit-ring-1 {
    width: 280px;
    height: 280px;
    animation: rotateRight 25s linear infinite;
}

.orbit-ring-2 {
    width: 440px;
    height: 440px;
    animation: rotateLeft 35s linear infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.orbit-ring-3 {
    width: 600px;
    height: 600px;
    animation: rotateRight 45s linear infinite;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

/* Orbit Items (Planets) */
.orbit-item {
    position: absolute;
    top: 50%;
    /* Start at vertical center */
    left: 50%;
    /* Start at horizontal center */
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    /* efficient transition for hopver effect */
    transition: scale 0.3s ease, box-shadow 0.3s ease;
    pointer-events: auto;
    overflow: hidden;
    /* Ensure we start with no transform to avoid conflicts */
    transform: none;
}

.orbit-item img {
    width: 70% !important;
    height: 70% !important;
    object-fit: contain;
    max-width: 42px;
}

.orbit-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.orbit-item:hover {
    scale: 1.2;
    /* Use scale property directly */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 20;
}

/* Counter Rotation for Items to keep them upright */
.orbit-ring-1 .orbit-item {
    animation: counterRotateRight 25s linear infinite;
}

.orbit-ring-2 .orbit-item {
    animation: counterRotateLeft 35s linear infinite;
}

.orbit-ring-3 .orbit-item {
    animation: counterRotateRight 45s linear infinite;
}

/* Positioning on Rings using independent 'translate' property */
/* Ring 1 (Inner) - small radius 140px */
.item-1 {
    translate: 140px 0;
}

.item-2 {
    translate: -70px 121px;
}

.item-3 {
    translate: -70px -121px;
}

/* Ring 2 (Middle) - radius 220px */
.item-4 {
    translate: 0 -220px;
}

.item-5 {
    translate: 190px 110px;
}

.item-6 {
    translate: -190px 110px;
}

/* Ring 3 (Outer) - radius 300px */
.item-7 {
    translate: 300px 0;
}

.item-8 {
    translate: -212px -212px;
}

.item-9 {
    translate: -212px 212px;
}


/* Keyframes for Orbit */
@keyframes rotateRight {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes rotateLeft {
    from {
        rotate: 360deg;
    }

    to {
        rotate: 0deg;
    }
}

@keyframes counterRotateRight {
    from {
        rotate: 0deg;
    }

    to {
        rotate: -360deg;
    }
}

@keyframes counterRotateLeft {
    from {
        rotate: -360deg;
    }

    to {
        rotate: 0deg;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-orbit-wrapper {
        width: 100%;
        height: 500px;
        transform: scale(0.8);
    }
}

@media (max-width: 576px) {
    .hero-orbit-wrapper {
        transform: scale(0.6);
        margin: -50px 0;
    }
}

/* -----------------------
   3D Sphere Gallery
----------------------- */
.sphere-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #f8faff, #fff);
    overflow: hidden;
    perspective: 1000px;
    /* Essential for 3D effect */
}

.sphere-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
}

.sphere-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
}

.sphere-container:active {
    cursor: grabbing;
}

.sphere-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    /* Base size, scaled by JS */
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
    will-change: transform, opacity, z-index;
    transform: translate(-50%, -50%);
    /* Center the item on its coordinate and scale 0 by default */
}

.sphere-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Let clicks pass to parent div */
}

.sphere-item:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    border-color: var(--primary);
}

.sphere-controls {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    pointer-events: none;
}

/* Spotlight Modal */
.spotlight-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    /* Flex to center */
    justify-content: center;
    align-items: center;
    visibility: hidden;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.spotlight-modal.active {
    visibility: visible;
    opacity: 1;
}

.spotlight-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.spotlight-content {
    position: relative;
    z-index: 2;
    background: white;
    padding: 1rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spotlight-modal.active .spotlight-content {
    transform: scale(1);
}

.spotlight-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    /* Or whatever fits */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f0f0f0;
}

.spotlight-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-info h3 {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-header);
    color: var(--text-dark);
}

.spotlight-info p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.close-spotlight {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, background 0.2s ease;
}

.close-spotlight:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

/* Response for Sphere */
@media (max-width: 768px) {
    .sphere-wrapper {
        width: 100%;
        height: 400px;
        /* Smaller on mobile */
    }
}

/* ==========================================================
   Simplified Single Ring Orbit Animation
========================================================== */
/* Reset/Override previous multi-ring styles */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(99, 102, 241, 0.3);
    /* Consistent color */
    pointer-events: none;
    /* Single Ring Dimensions */
    width: 560px;
    /* Radius 280px * 2 */
    height: 560px;
    /* Initial Centering */
    translate: -50% -50%;
    /* Animation */
    animation: rotateRight 60s linear infinite;
}

/* Ensure items are positioned absolutely relative to ring center */
.orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Default size */
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Counter Rotation for Items to keep them upright */
.orbit-ring .orbit-item {
    animation: counterRotateRight 60s linear infinite;
    /* Matches ring duration */
}

/* Positioning on Single Ring (Radius 280px) */
/* 8 Items, 45 degree increments */
/* Item 1: Top (0deg) -> 0, -280px */
.item-1 {
    translate: 0 -280px;
}

/* Item 2: Top-Right (45deg) -> 198px, -198px */
.item-2 {
    translate: 198px -198px;
}

/* Item 3: Right (90deg) -> 280px, 0 */
.item-3 {
    translate: 280px 0;
}

/* Item 4: Bottom-Right (135deg) -> 198px, 198px */
.item-4 {
    translate: 198px 198px;
}

/* Item 5: Bottom (180deg) -> 0, 280px */
.item-5 {
    translate: 0 280px;
}

/* Item 6: Bottom-Left (225deg) -> -198px, 198px */
.item-6 {
    translate: -198px 198px;
}

/* Item 7: Left (270deg) -> -280px, 0 */
.item-7 {
    translate: -280px 0;
}

/* Item 8: Top-Left (315deg) -> -198px, -198px */
.item-8 {
    translate: -198px -198px;
}

/* Keyframes for Orbit */
@keyframes rotateRight {
    from {
        rotate: 0deg;
    }

    to {
        rotate: 360deg;
    }
}

@keyframes counterRotateRight {
    from {
        rotate: 0deg;
    }

    to {
        rotate: -360deg;
    }
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-orbit-wrapper {
        width: 100%;
        height: 500px;
        transform: scale(0.7);
        /* Reduced scale for single large ring */
        margin-top: -50px;
    }
}

@media (max-width: 576px) {
    .hero-orbit-wrapper {
        transform: scale(0.5);
        margin: -80px 0;
    }
}

/* -----------------------
   How It Works Section
----------------------- */
.how-it-works {
    padding: 6rem 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.hiw-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: transform 0.4s var(--duepe-ease), box-shadow 0.4s var(--duepe-ease), border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hiw-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
}

.hiw-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0e7ff 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    color: var(--primary);
    font-size: 2rem;
    transition: transform 0.4s ease;
}

.hiw-card:hover .hiw-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary);
}

.hiw-step {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* -----------------------
   Ecosystem Section (Orbit)
----------------------- */
.ecosystem-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, #fff, #f8faff);
    /* Subtle gradient */
    overflow: hidden;
}



.ecosystem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ecosystem-content {
    padding-right: 2rem;
}

/* Enforce Section Header Layout */
.ecosystem-section .section-header {
    width: 100%;
    text-align: center;
    margin-bottom: 3rem;
    display: block;
}


.ecosystem-content .section-text {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.eco-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.eco-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.eco-features li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.ecosystem-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 480px;
}

.eco-orbit-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.eco-center-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 1rem;
}

.eco-center-logo img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.eco-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed #cbd5e1;
    /* Slightly darker dash */
    translate: -50% -50%;
    animation: rotateRight 50s linear infinite;
}

.eco-orbit-item {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    /* Primary Indigo */
    font-size: 1.25rem;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    animation: counterRotateRight 50s linear infinite;
    transition: transform 0.3s ease, color 0.3s ease;
    /* Perfect Centering Fix */
    margin-top: -28px;
    margin-left: -28px;
}

.eco-orbit-item:hover {
    color: #ec4899;
    /* Pink on hover */
    transform: scale(1.2);
    /* No rotate here to avoid conflict with animation, unless wrapper is used */
    cursor: pointer;
    border-color: #ec4899;
}

/* Positioning - Radius ~200px */
.eco-orbit-item.item-1 {
    translate: 0 -200px;
}

.eco-orbit-item.item-2 {
    translate: 141px -141px;
}

.eco-orbit-item.item-3 {
    translate: 200px 0;
}

.eco-orbit-item.item-4 {
    translate: 141px 141px;
}

.eco-orbit-item.item-5 {
    translate: 0 200px;
}

.eco-orbit-item.item-6 {
    translate: -141px 141px;
}

.eco-orbit-item.item-7 {
    translate: -200px 0;
}

.eco-orbit-item.item-8 {
    translate: -141px -141px;
}

@media (max-width: 991px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .ecosystem-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .ecosystem-content .section-title {
        text-align: center;
    }

    .eco-features {
        display: inline-block;
        text-align: left;
    }

    .ecosystem-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .ecosystem-visual {
        height: 360px;
    }

    .eco-orbit-wrapper {
        width: 300px;
        height: 300px;
    }

    .eco-center-logo {
        width: 110px;
        height: 110px;
    }

    /* Radius ~150px */
    .eco-orbit-item.item-1 {
        translate: 0 -150px;
    }

    .eco-orbit-item.item-2 {
        translate: 106px -106px;
    }

    .eco-orbit-item.item-3 {
        translate: 150px 0;
    }

    .eco-orbit-item.item-4 {
        translate: 106px 106px;
    }

    .eco-orbit-item.item-5 {
        translate: 0 150px;
    }

    .eco-orbit-item.item-6 {
        translate: -106px 106px;
    }

    .eco-orbit-item.item-7 {
        translate: -150px 0;
    }

    .eco-orbit-item.item-8 {
        translate: -106px -106px;
    }
}

.hiw-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.35rem;
    font-weight: 600;
}

.hiw-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 991px) {
    .hiw-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .how-it-works {
        padding: 4rem 0;
    }
}