/* ===== SUBDOMAINS PAGE STYLES ===== */

:root {
    /* Indian Color Palette */
    --saffron-primary: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E67300;
    --saffron-pale: #FFE5CC;
    --white-primary: #FFFFFF;
    --white-warm: #FAFAF9;
    --green-primary: #138808;
    --green-light: #22C55E;
    --green-dark: #0F6606;
    --green-pale: #D1FAE5;
    --navy-chakra: #000080;
    --navy-dark: #00005C;
    --navy-pale: #EBF4FF;

    /* Theme colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --border-light: #E2E8F0;

    /* Shadows & Radii */
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: all 0.3s ease;
}

/* Base page container styling */
.subdomains-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #fff4e8 0%, #fffaf3 34%, #f7fbff 100%);
    position: relative;
    overflow-x: hidden; /* Changed from overflow:hidden to allow 3D card transforms */
    top: calc(60px + 1rem * 2);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Hero Section */
.subdomains-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 24px 60px; /* top pad accounts for fixed header */
    overflow: hidden;
    background: var(--gradient-hero);
    color: var(--text-primary);
    text-align: center;
}



@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.03);
        opacity: 0.9;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}


.subdomains-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--saffron-pale);
    backdrop-filter: blur(10px);
    border: 1px solid var(--saffron-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse 2s infinite;
    color: var(--saffron-dark);
}

.hero-badge i {
    color: var(--saffron-dark);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: var(--text-primary);
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

/* Cards Section Layout */
/* ===== PORTAL NEXUS WHEEL STYLES ===== */

.nexus-section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 80px;
    position: relative;
    z-index: 3;
}

.nexus-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2rem;
    padding: 50px 50px 85px 50px;
    box-shadow: var(--shadow-xl);
}

/* Left side: Wheel Outer Container */
.nexus-wheel-outer-container {
    position: relative;
    width: 480px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cosmic / Chakra Orbit Background Rings */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(0, 0, 128, 0.08);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.orbit-ring-1 {
    width: 360px;
    height: 360px;
    border: 2px dashed rgba(255, 153, 51, 0.15);
    animation: rotateClockwise 60s linear infinite;
}

.orbit-ring-2 {
    width: 280px;
    height: 280px;
    border: 1.5px solid rgba(0, 0, 128, 0.05);
}

.orbit-ring-3 {
    width: 200px;
    height: 200px;
    border: 1px dashed rgba(19, 136, 8, 0.15);
    animation: rotateCounterClockwise 40s linear infinite;
}

@keyframes rotateClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.orbit-path-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 153, 51, 0.04) 0%, rgba(0, 0, 128, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

/* Rotation Target Core Wheel */
.nexus-wheel-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.nexus-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    will-change: transform;
}

/* Central Chakra Hub */
.chakra-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 80, 0.12), inset 0 0 20px rgba(0, 0, 128, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 3px solid #ffffff;
}

.chakra-core-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 0, 128, 0.15) 0%, transparent 70%);
    animation: corePulse 3s infinite ease-in-out;
    pointer-events: none;
    z-index: -1;
}

@keyframes corePulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.chakra-center img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Floating Orbit Nodes */
.orbit-nodes-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.orbit-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    cursor: pointer;
    z-index: 5;
    text-align: center;
}

.node-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    will-change: transform;
}

.node-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.85);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.3s ease;
}

/* Theme color variations for nodes */
.theme-saffron .node-inner {
    color: var(--saffron-primary);
}
.theme-saffron:hover .node-inner {
    box-shadow: 0 0 25px rgba(255, 153, 51, 0.35);
    border-color: var(--saffron-light);
}

.theme-navy .node-inner {
    color: var(--navy-chakra);
}
.theme-navy:hover .node-inner {
    box-shadow: 0 0 25px rgba(0, 0, 128, 0.25);
    border-color: #93c5fd;
}

.theme-green .node-inner {
    color: var(--green-primary);
}
.theme-green:hover .node-inner {
    box-shadow: 0 0 25px rgba(19, 136, 8, 0.25);
    border-color: var(--green-light);
}

/* Active Highlight States */
.orbit-node.active .node-inner {
    transform: scale(1.22);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-width: 2px;
}

.orbit-node.active.theme-saffron .node-inner {
    background: var(--saffron-primary);
    color: #ffffff;
    border-color: var(--saffron-primary);
    box-shadow: 0 0 35px rgba(255, 153, 51, 0.5);
}

.orbit-node.active.theme-navy .node-inner {
    background: var(--navy-chakra);
    color: #ffffff;
    border-color: var(--navy-chakra);
    box-shadow: 0 0 35px rgba(0, 0, 128, 0.4);
}

.orbit-node.active.theme-green .node-inner {
    background: var(--green-primary);
    color: #ffffff;
    border-color: var(--green-primary);
    box-shadow: 0 0 35px rgba(19, 136, 8, 0.4);
}

.orbit-node.active .node-label {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}

/* Control buttons below wheel */
.wheel-navigation-controls {
    position: absolute;
    bottom: -55px;
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.wheel-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.wheel-nav-btn:hover {
    background: #f1f5f9;
    color: var(--navy-chakra);
}

.wheel-counter {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Right Side: Glassmorphic Focus Detail Card */
.nexus-detail-container {
    flex-grow: 1;
    max-width: 540px;
    width: 100%;
}

.nexus-detail-card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-2xl);
    padding: 44px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 80, 0.12);
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    will-change: transform, opacity;
}

/* Card Glow Accent */
.card-glow-bg {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.18;
    pointer-events: none;
    z-index: 1;
}

.glow-saffron { background-color: var(--saffron-primary); }
.glow-navy { background-color: var(--navy-chakra); }
.glow-green { background-color: var(--green-primary); }

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    z-index: 2;
}

.status-live {
    background-color: var(--green-pale);
    color: var(--green-dark);
}

.status-upcoming {
    background-color: #f1f5f9;
    color: #64748b;
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
    z-index: 2;
}

.card-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shadow-md);
}

.icon-saffron {
    background: linear-gradient(135deg, var(--saffron-pale) 0%, rgba(255, 153, 51, 0.15) 100%);
    color: var(--saffron-dark);
}

.icon-navy {
    background: linear-gradient(135deg, var(--navy-pale) 0%, rgba(0, 0, 128, 0.15) 100%);
    color: var(--navy-chakra);
}

.icon-green {
    background: linear-gradient(135deg, var(--green-pale) 0%, rgba(19, 136, 8, 0.15) 100%);
    color: var(--green-dark);
}

.upcoming-portal .card-icon {
    background: linear-gradient(135deg, #f1f5f9 0%, rgba(100, 116, 139, 0.08) 100%);
    color: #64748b;
}

.card-title-area h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 3px 0;
}

.subdomain-link {
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Card Body */
.card-body {
    flex-grow: 1;
    z-index: 2;
}

.card-body p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 24px 0;
}

.feature-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
}

.feature-highlights li {
    font-size: 14.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    font-weight: 500;
}

.feature-highlights li i {
    font-size: 14px;
}

.theme-saffron .feature-highlights li i { color: var(--saffron-primary); }
.theme-navy .feature-highlights li i { color: var(--navy-chakra); }
.theme-green .feature-highlights li i { color: var(--green-primary); }

/* Card Footer & Action Buttons */
.card-footer {
    z-index: 2;
}

.portal-btn {
    box-sizing: border-box;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.portal-btn i {
    transition: transform 0.2s ease;
}

.portal-btn:hover i {
    transform: translateX(4px);
}

.btn-saffron {
    background: var(--saffron-primary);
    color: var(--white-primary);
    box-shadow: 0 6px 20px rgba(255, 153, 51, 0.25);
}

.btn-saffron:hover {
    background: var(--saffron-dark);
    box-shadow: 0 8px 25px rgba(255, 153, 51, 0.35);
}

.btn-navy {
    background: var(--navy-chakra);
    color: var(--white-primary);
    box-shadow: 0 6px 20px rgba(0, 0, 128, 0.2);
}

.btn-navy:hover {
    background: var(--navy-dark);
    box-shadow: 0 8px 25px rgba(0, 0, 128, 0.3);
}

.btn-green {
    background: var(--green-primary);
    color: var(--white-primary);
    box-shadow: 0 6px 20px rgba(19, 136, 8, 0.25);
}

.btn-green:hover {
    background: var(--green-dark);
    box-shadow: 0 8px 25px rgba(19, 136, 8, 0.35);
}

.portal-btn.disabled {
    background: #cbd5e1 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

/* =======================================================
   NEXUS WHEEL — RESPONSIVE MEDIA QUERIES
   ======================================================= */

/* ── 1200px: Large tablets / small laptops ── */
@media (max-width: 1200px) {
    .nexus-section-container {
        padding: 0 20px 72px;
    }

    .nexus-wrapper {
        padding: 40px;
        gap: 40px;
    }

    .nexus-wheel-outer-container {
        width: 420px;
        height: 420px;
    }

    .orbit-ring-1 { width: 310px; height: 310px; }
    .orbit-ring-2 { width: 240px; height: 240px; }
    .orbit-ring-3 { width: 170px; height: 170px; }

    .chakra-center {
        width: 95px;
        height: 95px;
    }

    .node-inner {
        width: 60px;
        height: 60px;
        font-size: 19px;
    }

    .node-label {
        font-size: 10px;
        padding: 2px 7px;
    }
}

/* ── 992px: Tablets (Stacking layout vertically) ── */
@media (max-width: 992px) {
    .nexus-wrapper {
        flex-direction: column;
        padding: 44px 30px;
        gap: 50px;
    }

    .nexus-wheel-outer-container {
        width: 400px;
        height: 400px;
        margin-bottom: 40px;
    }

    .orbit-ring-1 { width: 290px; height: 290px; }
    .orbit-ring-2 { width: 220px; height: 220px; }
    .orbit-ring-3 { width: 150px; height: 150px; }

    .nexus-detail-container {
        max-width: 100%;
    }

    .nexus-detail-card {
        min-height: auto;
    }

    .wheel-navigation-controls {
        bottom: -65px;
    }
}

/* ── 768px: Mobile/Standard Tablets ── */
@media (max-width: 768px) {
    .nexus-section-container {
        padding: 0 16px 60px;
    }

    .nexus-wrapper {
        border-radius: 1.5rem;
        padding: 30px 20px;
        gap: 44px;
    }

    .nexus-wheel-outer-container {
        width: 320px;
        height: 320px;
        margin-bottom: 50px;
    }

    .orbit-ring-1 { width: 230px; height: 230px; }
    .orbit-ring-2 { width: 170px; height: 170px; }
    .orbit-ring-3 { width: 110px; height: 110px; }

    .chakra-center {
        width: 80px;
        height: 80px;
    }

    .chakra-core-glow {
        width: 95px;
        height: 95px;
    }

    .node-inner {
        width: 52px;
        height: 52px;
        font-size: 17px;
    }

    .node-label {
        font-size: 9.5px;
        padding: 2px 6px;
        margin-top: 6px;
    }

    .nexus-detail-card {
        padding: 28px;
    }

    .card-badge {
        position: relative;
        top: auto;
        right: auto;
        align-self: flex-start;
        margin-bottom: 16px;
        display: inline-block;
    }

    .card-header {
        margin-bottom: 20px;
    }

    .card-title-area h2 {
        font-size: 19px;
    }

    .card-body p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .feature-highlights {
        margin-bottom: 22px;
    }

    .feature-highlights li {
        font-size: 13px;
        margin-bottom: 7px;
    }

    .portal-btn {
        padding: 13px 18px;
        font-size: 14px;
    }
}

/* ── 480px: Standard phones ── */
@media (max-width: 480px) {
    .nexus-wrapper {
        border-radius: 1.25rem;
        padding: 24px 14px;
        gap: 36px;
    }

    .nexus-wheel-outer-container {
        width: 270px;
        height: 270px;
        margin-bottom: 40px;
    }

    .orbit-ring-1 { width: 190px; height: 190px; }
    .orbit-ring-2 { width: 140px; height: 140px; }
    .orbit-ring-3 { width: 90px; height: 90px; }

    .chakra-center {
        width: 68px;
        height: 68px;
    }

    .chakra-core-glow {
        width: 80px;
        height: 80px;
    }

    .node-inner {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }

    .node-label {
        font-size: 9px;
        padding: 1.5px 5px;
        margin-top: 4px;
    }

    .wheel-navigation-controls {
        bottom: -65px;
        padding: 5px 12px;
        gap: 12px;
    }

    .wheel-nav-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .nexus-detail-card {
        padding: 22px 18px;
    }

    .card-icon {
        width: 46px;
        height: 46px;
        font-size: 17px;
        border-radius: 12px;
    }

    .card-title-area h2 {
        font-size: 17px;
    }

    .subdomain-link {
        font-size: 12px;
    }

    .card-body p {
        font-size: 13px;
        line-height: 1.55;
    }

    .feature-highlights li {
        font-size: 12.5px;
    }
}

/* ── 375px: iPhone SE / compact phones ── */
@media (max-width: 375px) {
    .nexus-wheel-outer-container {
        width: 240px;
        height: 240px;
        margin-bottom: 35px;
    }

    .orbit-ring-1 { width: 170px; height: 170px; }
    .orbit-ring-2 { width: 120px; height: 120px; }
    .orbit-ring-3 { width: 75px; height: 75px; }

    .chakra-center {
        width: 58px;
        height: 58px;
    }

    .node-inner {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .node-label {
        display: none; /* Hide node labels on extremely small devices to avoid visual clutter */
    }
}

/* ── Touch device active state overrides ── */
@media (hover: none) and (pointer: coarse) {
    .orbit-node:active .node-inner {
        transform: scale(1.15);
    }
    
    .portal-btn:active {
        transform: scale(0.97);
    }
}

/* ── Reduced motion fallback ── */
@media (prefers-reduced-motion: reduce) {
    .orbit-ring-1,
    .orbit-ring-3,
    .chakra-center img,
    .chakra-core-glow {
        animation: none !important;
    }
}
