/* ==================== THEME VARIABLES (DARK & LIGHT MODE) ==================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.7);
    --nav-bg: rgba(255, 255, 255, 0.85);
    --border: rgba(229, 231, 235, 0.5);
    --glow: rgba(99, 102, 241, 0.2);
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
}

[data-theme="dark"] {
    --primary: #818cf8;
    --primary-dark: #6366f1;
    --secondary: #34d399;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-main: #020617;
    --bg-card: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(2, 6, 23, 0.85);
    --border: rgba(51, 65, 85, 0.5);
    --glow: rgba(99, 102, 241, 0.4);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 { color: var(--text-main); }
p { color: var(--text-muted); }

/* ==================== SILENCIO STYLE HERO SECTION ==================== */
.hero-silencio {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 70px;
}

/* Glowing Orbs in Background */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 { width: 400px; height: 400px; background: rgba(99, 102, 241, 0.3); top: 10%; left: -10%; }
.orb-2 { width: 300px; height: 300px; background: rgba(16, 185, 129, 0.2); bottom: 10%; right: -5%; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: rgba(236, 72, 153, 0.2); top: 40%; left: 50%; animation-delay: -2s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.1); }
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 900px;
    z-index: 1;
    padding: 20px;
    margin: 0 auto;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--glow);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid var(--primary);
}

.hero-title-new {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(to right, #818cf8, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle-new {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.btn-primary-glow {
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    box-shadow: 0 0 20px var(--glow);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.btn-primary-glow:hover { transform: translateY(-3px); box-shadow: 0 0 30px var(--primary); }

.btn-outline {
    background: transparent;
    color: var(--text-main);
    padding: 15px 35px;
    border-radius: 12px;
    font-weight: 600;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}
.btn-outline:hover { border-color: var(--primary); }

.silencio-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}
.s-stat h4 { font-size: 2rem; color: var(--primary); font-weight: 700; margin-bottom: 5px; }
.s-stat p { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

/* ==================== NAVIGATION ==================== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}

.nav-container {
    max-width: 95%; 
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.nav-logo i { color: var(--primary); font-size: 1.8rem; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px; /* Menu items ke beech thoda gap badha diya */
    align-items: center;
}

/* Data Submission ko tootne se rokne ke liye */
.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s;
    white-space: nowrap; /* 🔥 Ye trick kisi bhi word ko niche line me girne nahi degi */
}
.nav-menu a:hover { color: var(--primary); background: var(--border); }

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon:hover { background: var(--border); }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid var(--border);
    z-index: 1000;
    padding: 8px 0;
}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-main);
    text-decoration: none;
}
.dropdown-content a:hover { background: var(--border); }
.coming-soon { font-size: 0.75rem; color: var(--text-muted); background: var(--border); padding: 2px 8px; border-radius: 12px; }

/* Wallet Button */
.wallet-container { display: flex; align-items: center; gap: 10px; }
.btn-connect { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn-connect:hover { background: var(--primary-dark); }
.wallet-info { display: flex; align-items: center; gap: 12px; background: var(--glow); padding: 8px 15px; border-radius: 8px; border: 1px solid var(--primary); }
.wallet-address { font-size: 0.85rem; font-weight: 500; color: var(--primary); font-family: monospace; }
.btn-disconnect-nav { background: var(--error); color: white; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; gap: 5px; }

/* Mobile Menu */
.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; padding: 8px; }
.mobile-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-card); backdrop-filter: blur(12px); border-top: 1px solid var(--border); z-index: 999; }
.mobile-menu.active { display: block; }
.mobile-menu a { display: flex; justify-content: space-between; padding: 15px 20px; color: var(--text-main); text-decoration: none; border-bottom: 1px solid var(--border); }

/* ==================== MAIN CONTENT & CARDS ==================== */
.main-content { margin-top: 70px; min-height: calc(100vh - 200px); }
.content-section { display: none; padding: 40px 0; animation: fadeIn 0.5s ease; }
.content-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; }

/* Dashboard Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; margin-bottom: 50px; }
.stat-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.stat-icon { width: 60px; height: 60px; background: var(--glow); border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--primary); }
.stat-icon i { font-size: 1.5rem; color: var(--primary); }
.stat-info h3 { font-size: 2rem; margin-bottom: 5px; }

/* Quick Actions & Recent Activity */
.action-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.action-btn { background: var(--bg-card); border: 2px solid var(--border); padding: 25px 20px; border-radius: 12px; cursor: pointer; transition: all 0.3s; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-main); backdrop-filter: blur(12px); }
.action-btn:hover { border-color: var(--primary); transform: translateY(-3px); }
.action-btn i { font-size: 2rem; color: var(--primary); }

.recent-activity { background: var(--bg-card); padding: 30px; border-radius: 15px; border: 1px solid var(--border); backdrop-filter: blur(12px); }
.activity-item { display: flex; align-items: center; gap: 15px; padding: 15px; background: var(--border); border-radius: 8px; margin-bottom: 10px; }
.activity-item i { color: var(--primary); }

/* ==================== FORMS & TABLES ==================== */
.form-container, .history-container, .coming-soon-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    max-width: 800px;
    margin: 0 auto;
}

.connection-status { background: var(--border); padding: 15px; border-radius: 10px; text-align: center; margin-bottom: 20px; color: var(--text-main); }
.connection-status.connected { background: rgba(16, 185, 129, 0.2); color: var(--secondary); border: 1px solid var(--secondary); }

.form-group { margin-bottom: 25px; }
.form-group label { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: var(--bg-main);
    color: var(--text-main);
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--primary); }

.btn-primary { background: var(--primary); color: white; border: none; padding: 15px 30px; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 15px var(--glow); }
.full-width { width: 100%; }

.transactions-table table { width: 100%; border-collapse: collapse; margin-top: 20px; color: var(--text-main); }
.transactions-table th { background: var(--border); padding: 15px; text-align: left; }
.transactions-table td { padding: 15px; border-bottom: 1px solid var(--border); }
.no-data { text-align: center; color: var(--text-muted); padding: 40px !important; }

/* ==================== RESULTS & NOTIFICATIONS ==================== */
.result { margin-top: 25px; padding: 25px; border-radius: 12px; display: none; border-left: 4px solid; background: var(--bg-main); }
.notification { position: fixed; top: 20px; right: 20px; padding: 15px 20px; border-radius: 8px; color: white; z-index: 10000; display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s; }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ==================== TEAM SECTION (Kept Exactly Same) ==================== */
.team-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.team-section h2 { text-align: center; font-size: 3rem; margin-bottom: 15px; font-weight: 700; color: white;}
.section-subtitle { text-align: center; font-size: 1.2rem; margin-bottom: 50px; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; color: white;}

.team-scroll-container { width: 100%; overflow: hidden; position: relative; padding: 20px 0; }
.team-scroll-track { display: flex; gap: 30px; animation: scroll 40s linear infinite; width: max-content; }
.team-scroll-container:hover .team-scroll-track { animation-play-state: paused; }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 8 - 30px * 8)); } }

.team-member { flex: 0 0 250px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 30px 20px; border-radius: 20px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
.team-member:hover { transform: translateY(-10px) scale(1.05); background: rgba(255, 255, 255, 0.15); }
.member-photo { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 4px solid rgba(255, 255, 255, 0.3); position: relative; background: rgba(255, 255, 255, 0.1); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.team-member:hover .member-photo img { transform: scale(1.1); }

.placeholder-photo { width: 100%; height: 100%; background: linear-gradient(135deg, #fbbf24, #f59e0b); display: flex; align-items: center; justify-content: center; display: none; }
.placeholder-photo i { font-size: 2.5rem; color: white; }
.member-photo img[style*="display: none"] + .placeholder-photo { display: flex; }

.team-member h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 600; color: white; }
.team-member p { color: rgba(255, 255, 255, 0.8); font-size: 0.95rem; font-weight: 500; margin: 0; }

.team-scroll-container::before, .team-scroll-container::after { content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none; }
.team-scroll-container::before { left: 0; background: linear-gradient(to right, #667eea, transparent); }
.team-scroll-container::after { right: 0; background: linear-gradient(to left, #764ba2, transparent); }

/* ==================== FOOTER ==================== */
.footer { background: var(--bg-main); border-top: 1px solid var(--border); padding: 60px 0 20px; color: var(--text-main); transition: background 0.3s; }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 700; }
.footer-brand i { color: var(--primary); }
.footer-brand p { font-size: 0.9rem; font-weight: normal; color: var(--text-muted); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-muted); }

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title-new { font-size: 2.8rem; }
    .hero-subtitle-new { font-size: 1rem; }
    .hero-action-buttons { flex-direction: column; }
    .silencio-stats { flex-direction: column; gap: 20px; }
    .s-stat h4 { font-size: 1.5rem; }
}

/* ==================== ABOUT & HOW IT WORKS SECTIONS ==================== */
.info-section, .works-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.i-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: transform 0.3s;
}

.i-card:hover {
    transform: translateX(-10px);
    border-color: var(--primary);
}

.i-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.i-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    backdrop-filter: blur(12px);
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px var(--glow);
    border-color: var(--primary);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--glow);
    opacity: 0.5;
}

.step-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-main);
}
/* ==================== FINAL BOSS FIX (NEVER FAILS) ==================== */

/* 1. Har section ko default hide karo (Forcefully) */
.content-section {
    display: none !important; 
}

/* 2. Sirf jispe 'active' class ho, wahi dikhega */
.content-section.active {
    display: block !important;
}

/* 3. Home page ki zidd khatam karne ke liye extra power */
#home.content-section {
    display: none !important;
}
#home.content-section.active {
    display: block !important;
}

/* 4. Home ke andar ke chaaro sections ko ek-ke-niche-ek seedha karna */
#home > section {
    width: 100% !important;
    display: block !important;
    position: relative;
    clear: both;
}
/* ==================== WORKSPACE CARDS STYLING ==================== */
.workspace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.workspace-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover Effects */
.workspace-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.workspace-card i {
    transition: transform 0.3s ease;
}
.workspace-card:hover i {
    transform: scale(1.15);
}

/* Dark Mode Support for Cards */
[data-theme="dark"] .workspace-card {
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
[data-theme="dark"] .workspace-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.6);
}
/* ==================== 1. MOBILE VIEW FIX FOR WORKSPACE CARDS ==================== */
@media (max-width: 768px) {
    .workspace-card {
        padding: 20px 15px; /* Mobile par box thoda chota aur smart dikhega */
    }
    .workspace-card h3 {
        font-size: 1.2rem; /* Heading thodi adjust ki */
    }
    .workspace-card i {
        font-size: 2.2rem !important; /* Icon ka size mobile ke hisaab se set kiya */
    }
}

/* ==================== 2. NAVBAR ACTIVE STATE DESIGN ==================== */
.nav-menu a.active-nav, .mobile-menu a.active-nav {
    color: var(--primary) !important;
    font-weight: 700;
}
