/* AI Powered Styles - Deepak Chauhan x AI Bhai Collaboration */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --human-color: #3b82f6;
    --ai-color: #10b981;
    --collab-color: #8b5cf6;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ================= NEW SECTIONS ADDED ================= */

/* Main Intro Section */
.main-intro {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

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

.main-intro h2 {
    color: var(--text-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.main-intro h2[data-lang] {
    display: none;
}

.main-intro h2[data-lang].active {
    display: block;
}

.intro-text {
    max-width: 800px;
    margin: 30px auto;
    font-size: 18px;
    line-height: 1.8;
    color: #334155;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.intro-text p[data-lang] {
    display: none;
}

.intro-text p[data-lang].active {
    display: block;
}

/* User Intent Section */
.user-intent {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

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

.user-intent h3 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.user-intent h3[data-lang] {
    display: none;
}

.user-intent h3[data-lang].active {
    display: block;
}

.intent-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.intent-btn {
    padding: 20px 30px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    font-weight: 500;
}

.intent-btn:hover {
    border-color: var(--human-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    background: #f0f9ff;
}

.intent-btn span:first-child {
    font-size: 2rem;
    margin-bottom: 5px;
}

.intent-btn span[data-lang] {
    display: none;
}

.intent-btn span[data-lang].active {
    display: block;
}

/* Categories Section */
.categories-section {
    padding: 40px 20px 0;
    background: #f8fafc;
}

.categories-title {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-dark);
}

.categories-title h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.categories-title h3[data-lang] {
    display: none;
}

.categories-title h3[data-lang].active {
    display: block;
}

/* Footer Purpose Section */
.footer-purpose {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    background: #f1f5f9;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid var(--human-color);
}

.footer-purpose p {
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    margin: 0;
}

.footer-purpose p[data-lang] {
    display: none;
}

.footer-purpose p[data-lang].active {
    display: block;
}

.footer-purpose strong {
    color: var(--text-dark);
}

/* ================= END NEW SECTIONS ================= */

/* AI Loader */
.ai-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #065f46 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ai-loader-content {
    text-align: center;
    color: white;
}

.collab-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.human-side, .ai-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    position: relative;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.human-avatar {
    border-color: var(--human-color);
    animation: humanPulse 2s ease-in-out infinite;
}

.ai-avatar {
    border-color: var(--ai-color);
    animation: aiGlow 2s ease-in-out infinite;
}

.name {
    font-size: 1.2rem;
    font-weight: bold;
}

.human-side .name {
    color: var(--human-color);
}

.ai-side .name {
    color: var(--ai-color);
}

.connection {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.spark {
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--human-color), var(--ai-color));
    border-radius: 2px;
    animation: sparkMove 1.5s ease-in-out infinite;
}

.spark:nth-child(1) { animation-delay: 0s; }
.spark:nth-child(2) { animation-delay: 0.5s; }
.spark:nth-child(3) { animation-delay: 1s; }

.loading-text span {
    display: none;
    font-size: 1.1rem;
}

.loading-text span[data-lang].active {
    display: block;
}

@keyframes humanPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--human-color); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px var(--human-color); }
}

@keyframes aiGlow {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--ai-color); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px var(--ai-color); }
}

@keyframes sparkMove {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Main Header */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--human-color), var(--collab-color), var(--ai-color)) 1;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Human Side */
.brand-human {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-start;
    min-width: 200px;
}

.avatar-human {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--human-color);
    flex-shrink: 0;
}

.avatar-human img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.human-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--human-color);
    opacity: 0.3;
    animation: humanGlow 3s ease-in-out infinite;
}

.human-info {
    text-align: left;
}

.human-info h1 {
    color: var(--human-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.human-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.human-info p[data-lang] {
    display: none;
}

.human-info p[data-lang].active {
    display: block;
}

/* AI Side */
.brand-ai {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
    min-width: 200px;
}

.ai-info {
    text-align: right;
}

.ai-info h1 {
    color: var(--ai-color);
    font-size: 1.3rem;
    margin-bottom: 5px;
    line-height: 1.2;
}

.ai-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.ai-info p[data-lang] {
    display: none;
}

.ai-info p[data-lang].active {
    display: block;
}

.avatar-ai {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ai-color);
    flex-shrink: 0;
}

.avatar-ai img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ai-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: var(--ai-color);
    opacity: 0.3;
    animation: aiGlowPulse 2s ease-in-out infinite;
}

/* Collaboration Center */
.collab-center {
    text-align: center;
    flex: 2;
    margin: 0 20px;
    min-width: 300px;
    order: 0;
}

.brand-logo {
    margin-bottom: 8px;
}

.dk {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--human-color), var(--ai-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.community {
    font-size: 1.6rem;
    color: var(--text-dark);
    font-weight: 300;
    display: inline-block;
    margin-left: 5px;
}

.collab-bridge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0;
}

.bridge-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--human-color), var(--ai-color));
    max-width: 100px;
}

.collab-icon {
    font-size: 1.4rem;
    animation: iconSpin 3s linear infinite;
    flex-shrink: 0;
}

.collab-text span {
    font-size: 0.85rem;
    color: var(--text-light);
    display: none;
    line-height: 1.3;
}

.collab-text span[data-lang].active {
    display: block;
}

/* Language Section */
.language-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 150px;
    order: 3;
    margin-top: 10px;
}

.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    z-index: 1;
}

.language-switcher select {
    padding: 10px 35px 10px 40px;
    border: 2px solid var(--collab-color);
    border-radius: 25px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    width: 100%;
    min-width: 140px;
}

.language-switcher select:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.lang-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.nav-btn {
    padding: 8px 16px;
    background: var(--bg-white);
    border: 2px solid var(--collab-color);
    border-radius: 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-btn:hover {
    background: var(--collab-color);
    color: white;
    transform: translateY(-2px);
}

.nav-btn span[data-lang] {
    display: none;
}

.nav-btn span[data-lang].active {
    display: inline;
}

/* Updates Button */
.updates-section {
    margin-bottom: 10px;
}

.updates-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.updates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
    background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

.update-icon {
    font-size: 16px;
}

.updates-btn span[data-lang] {
    display: none;
}

.updates-btn span[data-lang].active {
    display: inline;
}

/* Categories Navigation */
.categories-nav {
    background: var(--bg-white);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

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

.category-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--text-light);
    background: var(--bg-white);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    white-space: nowrap;
}

.category-btn.active,
.category-btn:hover {
    border-color: var(--collab-color);
    background: linear-gradient(135deg, var(--human-color), var(--ai-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 1.1rem;
}

.category-btn span {
    display: none;
}

.category-btn span[data-lang].active {
    display: block;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

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

/* Image Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.image-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.image-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.image-card:hover img {
    transform: scale(1.05);
}

.image-info {
    padding: 15px;
}

.image-info h3 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.image-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Image Hover Actions */
.image-hover {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.image-card:hover .image-hover {
    opacity: 1;
    transform: translateY(0);
}

.quick-download, .quick-share {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.quick-download:hover, .quick-share:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* AI Loading */
.ai-loading {
    display: none;
    text-align: center;
    padding: 3rem 0;
}

.ai-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.ai-spinner {
    position: relative;
    width: 60px;
    height: 60px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spinnerRotate 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--human-color);
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: var(--ai-color);
    animation-delay: 0.5s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: var(--collab-color);
    animation-delay: 1s;
}

.loading-message span {
    display: none;
    color: var(--text-light);
    font-size: 1.1rem;
}

.loading-message span[data-lang].active {
    display: block;
}

/* Ad Container */
.ad-container {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    margin: 2rem 0;
    text-align: center;
    border: 2px dashed var(--collab-color);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
}

.modal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--human-color), var(--ai-color));
    color: white;
}

.modal-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.human-name { color: white; }
.collab-symbol { color: gold; }
.ai-name { color: white; }

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-content {
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    position: relative;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    background: var(--bg-light);
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.overlay-btn {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.overlay-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

.overlay-btn span {
    display: none;
}

.overlay-btn span[data-lang].active {
    display: block;
}

.modal-info {
    padding: 20px;
}

.modal-title {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.5rem;
    line-height: 1.3;
}

.modal-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorite-btn {
    background: var(--bg-light);
    color: var(--text-dark);
}

.ai-insight-btn {
    background: linear-gradient(135deg, var(--human-color), var(--ai-color));
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.action-btn span {
    display: none;
}

.action-btn span[data-lang].active {
    display: block;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-collab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2rem;
}

.footer-human, .footer-ai {
    text-align: center;
}

.footer-human strong {
    color: var(--human-color);
    display: block;
    margin-bottom: 5px;
}

.footer-ai strong {
    color: var(--ai-color);
    display: block;
    margin-bottom: 5px;
}

.footer-human span, .footer-ai span {
    display: block;
    font-size: 0.9rem;
    color: #9ca3af;
    display: none;
}

.footer-human span[data-lang].active,
.footer-ai span[data-lang].active {
    display: block;
}

.footer-connect {
    font-size: 2rem;
    color: gold;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Language System */
[data-lang] {
    display: none;
}

[data-lang].active {
    display: block;
}

/* Urdu RTL Support */
[lang="ur"] {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Animations */
@keyframes humanGlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.1); }
}

@keyframes aiGlowPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.5; }
}

@keyframes iconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinnerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Intent Result Section */
.intent-result {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 15px;
    margin: 30px auto;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    border: 2px solid #bae6fd;
}

.result-container {
    max-width: 600px;
    margin: 0 auto;
}

.intent-result h2 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.intent-result p {
    color: #334155;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.intent-links {
    margin: 30px 0;
}

.result-link-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.result-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
}

.back-btn {
    background: none;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .intent-result {
        padding: 40px 15px;
        margin: 20px auto;
    }
    
    .intent-result h2 {
        font-size: 1.5rem;
    }
    
    .intent-result p {
        font-size: 1rem;
    }
    
    .result-link-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}