/* ============================================
   INDIAN DATA CENTERS — Premium UI v3.0
   Dark Glassmorphism Design System
   ============================================ */

:root {
    /* ── 40% Light Purple Theme ── */
    --primary-purple: #401c87;
    --light-purple: #e9d8fd;
    --bg-white: #ffffff;
    --bg-light: #f9f5ff;
    --navy-deep: #2d3748;

    /* ── Derived & UI Colors ── */
    --accent-purple: var(--primary-purple);
    --accent-glow: rgba(159, 122, 234, 0.2);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-hover: rgba(255, 255, 255, 0.98);
    --border-glass: rgba(159, 122, 234, 0.15);
    --border-light: rgba(159, 122, 234, 0.2);

    /* ── Text ── */
    --text-pure: #2d3748;
    --text-main: #4a5568;
    --text-dim: #718096;
    --text-muted: #a0aec0;

    /* ── Metrics ── */
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    /* ── Shadow ── */
    --shadow-soft: 0 10px 30px rgba(0, 119, 182, 0.08);
    --shadow-glow: 0 0 20px rgba(0, 119, 182, 0.1);
}

/* ── Typography & Font Imports ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Red+Hat+Display:wght@400;600;700;800&display=swap');

/* ── Reset & Base ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Disable selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Watermark Overlay */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='300' viewBox='0 0 400 300'%3E%3Ctext x='50%25' y='50%25' font-family='DM Sans, sans-serif' font-size='16' font-weight='700' fill='rgba(64, 28, 135, 0.04)' text-anchor='middle' transform='rotate(-25, 200, 150)'%3E© INJ PARTNERS — INDIA DC REPOSITORY%3C/text%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: 9999;
}

h1,
h2,
h3,
h4,
.brand-name {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
}

/* ── Layout & Sections ── */
.app-container {
    display: flex;
    flex-direction: column;
}

.section-container {
    padding: 100px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ── Header ── */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: transparent;
    transition: all 0.4s ease;
    z-index: 1000;
}

.top-header.scrolled {
    height: 70px;
    background: #401c87;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(64, 28, 135, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header.scrolled .brand-name,
.top-header.scrolled .brand-sub,
.top-header.scrolled .top-nav a {
    color: #ffffff;
}

.top-header.scrolled .nav-button {
    background: #ffffff;
    color: #401c87 !important;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 48px;
    filter: drop-shadow(0 0 10px var(--accent-blue-glow));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-purple);
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.top-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.top-nav a:hover {
    color: var(--primary-purple);
}

.nav-button {
    background: var(--primary-purple);
    color: white !important;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 0.8rem !important;
    letter-spacing: 0.5px;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-blue-glow);
}

/* ── Hero Section ── */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 10%, rgba(159, 122, 234, 0.15) 0%, transparent 50%),
        url('https://images.unsplash.com/photo-1558494949-ef010cbdcc51?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat;
    filter: brightness(0.95) saturate(0.8);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 20%, var(--bg-white) 100%);
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--light-purple);
    border: 1px solid rgba(159, 122, 234, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-content h1 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 25px;
    color: var(--text-pure);
    letter-spacing: -2px;
}

.highlight {
    color: var(--primary-purple);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-main);
    max-width: 850px;
    opacity: 0.9;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-primary,
.btn-secondary {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-purple);
    color: white;
    box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-secondary {
    background: var(--light-purple);
    color: var(--primary-purple);
    border: 1px solid rgba(159, 122, 234, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--accent-blue-glow);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-pure);
    font-family: 'Outfit', sans-serif;
}

.contact-info-panel {
    background: #401c87;
    color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 20px 40px rgba(64, 28, 135, 0.2);
}

.info-panel-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
}

.info-panel-sub {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ── Section Headers ── */
.section-header {
    margin-bottom: 50px;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.section-icon {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.section-icon.yellow {
    color: var(--accent-yellow);
}

.section-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-pure);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 800px;
}

/* ── Dashboard Window ── */
.dashboard-window {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.window-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
}

.window-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

.powerbi-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
}

.powerbi-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* ── Directory ── */
.directory-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.search-box {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(64, 28, 135, 0.05);
}

.search-box i {
    color: var(--text-muted);
    margin-right: 15px;
}

.search-box input {
    background: none;
    border: none;
    color: var(--text-pure);
    height: 54px;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 0 25px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab.active {
    background: var(--primary-purple);
    color: white;
    border-color: var(--primary-purple);
    box-shadow: 0 8px 20px var(--accent-glow);
}

.directory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 5px;
}

.directory-table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dc-table th {
    background: var(--light-purple);
    padding: 18px 25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 2px solid var(--primary-purple);
}

.dc-table td {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
}

.dc-table tr {
    transition: var(--transition);
    cursor: pointer;
}

.dc-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.status-badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-operational {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-construction {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-planned {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ── Research Section ── */
.research-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.research-list {
    list-style: none;
    margin: 30px 0;
}

.research-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-dim);
}

.research-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-size: 1.2rem;
    line-height: 1;
}

.research-powered {
    margin-top: 40px;
}

.research-powered span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.research-powered a {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.research-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.research-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-pure);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 16px 20px 16px 55px;
    color: var(--text-pure);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.05);
}

.btn-submit {
    width: 100%;
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-blue-glow);
}

.form-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 20px;
}

/* ── Footer ── */
.main-footer {
    padding: 60px 5% 40px;
    background: #401c87;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .footer-nav a,
.main-footer .footer-brand,
.main-footer .footer-copy,
.main-footer .brand-icon {
    color: rgba(255, 255, 255, 0.8) !important;
}

.main-footer .footer-nav a:hover {
    color: #ffffff !important;
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
}

.brand-icon {
    font-size: 1.2rem;
    color: var(--primary-purple);
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--text-dim);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .research-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        display: none;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Custom Chatbot Widget ── */
.custom-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-purple);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: var(--transition);
}

.chat-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px var(--accent-blue-glow);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background: #ffffff;
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(159, 122, 234, 0.2), 0 18px 36px -18px rgba(159, 122, 234, 0.1);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: bottom right;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.footer {
    padding: 30px 5%;
    background: #401c87;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.footer-sep {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.chat-header-info h4 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.1rem;
    color: var(--text-pure);
    font-weight: 700;
}

.chat-header-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-glass) transparent;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.message.bot {
    align-self: flex-start;
    background: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
}

.message.user {
    align-self: flex-end;
    background: var(--primary-purple);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 20px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-pure);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.chat-input:focus {
    border-color: var(--primary-purple);
    background: #ffffff;
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--primary-purple);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-blue-glow);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    width: fit-content;
    margin-bottom: 10px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    30% {
        transform: translateY(-4px);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 70px;
        right: -10px;
    }
}