/* ==========================================================================
   DEVELOPER PORTFOLIO CSS: 5 CUSTOM THEMES ENGINE
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME STYLING VARIABLES DEFINITIONS
   -------------------------------------------------------------------------- */

/* 1. Cyberpunk Neon Theme (Default) */
html[data-theme="cyberpunk"] {
    --bg-primary: #0a0813;
    --bg-card: rgba(18, 14, 36, 0.85);
    --bg-navbar: rgba(10, 8, 19, 0.9);
    --border-color: #39ff14;
    --primary-color: #00f0ff; /* Cyan */
    --accent-color: #ff007f;  /* Pink/Magenta */
    --text-primary: #f0f6fc;
    --text-secondary: #00f0ff;
    --text-muted: #8b949e;
    --font-family: 'Fira Code', 'Orbitron', monospace;
    --border-radius: 0px;
    --shadow-glow: 0 0 10px rgba(0, 240, 255, 0.5), 0 0 20px rgba(255, 0, 127, 0.3);
    --box-shadow: 4px 4px 0px var(--accent-color);
    --gradient-bg: linear-gradient(135deg, #0a0813 0%, #1e1335 100%);
    --card-hover-border: var(--accent-color);
}

/* 2. AI Developer (Terminal Mode) */
html[data-theme="terminal"] {
    --bg-primary: #121212;
    --bg-card: #1e1e1e;
    --bg-navbar: rgba(18, 18, 18, 0.95);
    --border-color: #333333;
    --primary-color: #4fc1ff; /* Terminal light blue */
    --accent-color: #35c075;  /* Success green */
    --text-primary: #d4d4d4;
    --text-secondary: #9cdcfe;
    --text-muted: #6a737d;
    --font-family: 'Fira Code', monospace;
    --border-radius: 4px;
    --shadow-glow: none;
    --box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
    --gradient-bg: none;
    --card-hover-border: #4fc1ff;
}

/* 3. Minimalist Executive */
html[data-theme="executive"] {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-navbar: rgba(255, 255, 255, 0.9);
    --border-color: #e2e8f0;
    --primary-color: #1e293b; /* Corporate Slate */
    --accent-color: #4f46e5;  /* Indigo */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --font-family: 'Inter', 'Outfit', sans-serif;
    --border-radius: 8px;
    --shadow-glow: none;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --gradient-bg: radial-gradient(circle at top right, #f1f5f9, #f8fafc);
    --card-hover-border: #4f46e5;
}

/* 4. Glassmorphism */
html[data-theme="glassmorphism"] {
    --bg-primary: #0b071e;
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-navbar: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.12);
    --primary-color: #e0aaff;
    --accent-color: #ff9e00;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --font-family: 'Outfit', sans-serif;
    --border-radius: 24px;
    --shadow-glow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --gradient-bg: linear-gradient(135deg, #0b071e 0%, #1c0e3a 50%, #030008 100%);
    --card-hover-border: rgba(255, 255, 255, 0.3);
}

/* 5. Retro 8-Bit / Arcade */
html[data-theme="retro"] {
    --bg-primary: #000000;
    --bg-card: #000000;
    --bg-navbar: #000000;
    --border-color: #ffffff;
    --primary-color: #00ff00; /* Retro green */
    --accent-color: #ffff00;  /* Pacman yellow */
    --text-primary: #ffffff;
    --text-secondary: #00ff00;
    --text-muted: #888888;
    --font-family: 'Press Start 2P', monospace;
    --border-radius: 0px;
    --shadow-glow: none;
    --box-shadow: 4px 4px 0px #ffffff;
    --gradient-bg: none;
    --card-hover-border: #ffff00;
}

/* --------------------------------------------------------------------------
   BASE STYLING & RESET
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   THEME BACKGROUND EFFECT CONTAINERS
   -------------------------------------------------------------------------- */
/* Cyberpunk grid overlay */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.5s ease;
    background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}
html[data-theme="cyberpunk"] .background-grid {
    opacity: 1;
}

/* Glassmorphism rotating colorful background gradients */
.glass-bg-blur {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: -3;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(circle, rgba(131,58,180,0.2) 0%, rgba(253,29,29,0.15) 50%, rgba(252,176,69,0.1) 100%);
    animation: rotateGrad 30s linear infinite;
}
html[data-theme="glassmorphism"] .glass-bg-blur {
    opacity: 1;
}

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

/* Retro Scanlines */
.retro-scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
}
html[data-theme="retro"] .retro-scanlines {
    opacity: 0.15;
}

/* Terminal neofetch style header */
.terminal-banner {
    display: none;
    max-width: 1200px;
    margin: 100px auto 0 auto;
    padding: 20px;
    border-bottom: 2px dashed var(--border-color);
}
html[data-theme="terminal"] .terminal-banner {
    display: block;
}
.terminal-ascii {
    color: var(--accent-color);
    font-size: clamp(8px, 1.2vw, 14px);
    line-height: 1.2;
    overflow-x: auto;
    margin-bottom: 10px;
}
.terminal-info {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-primary);
}
.term-prompt {
    color: var(--primary-color);
}

/* --------------------------------------------------------------------------
   NAVBAR & CONTROLS
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-navbar);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}
html[data-theme="glassmorphism"] .navbar {
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-family: var(--font-family);
    font-weight: bold;
    font-size: 20px;
    color: var(--text-primary);
}
.logo-accent {
    color: var(--primary-color);
}
.logo-text {
    color: var(--text-primary);
}
.nav-menu {
    display: flex;
    gap: 20px;
}
.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
}
.nav-link.active, .nav-link:hover {
    color: var(--primary-color);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}
.nav-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons and dropdown triggers */
.control-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.control-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.theme-selector-wrapper {
    position: relative;
}
.theme-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 200px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 100;
}
.theme-dropdown.show {
    display: flex;
}
.theme-option {
    background: none;
    border: none;
    color: var(--text-primary);
    text-align: left;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    border-radius: var(--border-radius);
}
.theme-option:hover, .theme-option.active {
    background-color: rgba(255,255,255,0.05);
    color: var(--primary-color);
}
.theme-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.theme-dot.cyberpunk { background-color: #00f0ff; }
.theme-dot.terminal { background-color: #4fc1ff; }
.theme-dot.executive { background-color: #4f46e5; }
.theme-dot.glassmorphism { background: linear-gradient(135deg, #e0aaff, #c77dff); }
.theme-dot.retro { background-color: #00ff00; }

/* Mobile Menu Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
}
.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   LAYOUT SECTION & GRID STRUCTURE
   -------------------------------------------------------------------------- */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
html[data-theme="executive"] .section-title {
    text-transform: none;
    letter-spacing: 0px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: clamp(14px, 1.5vw, 18px);
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   HERO / ABOUT SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    padding-top: 150px;
}
html[data-theme="terminal"] .hero-section {
    padding-top: 40px;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}
.tagline-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 900;
}
.name-gradient {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
html[data-theme="terminal"] .name-gradient, 
html[data-theme="retro"] .name-gradient {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: var(--accent-color);
}
.hero-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    color: var(--text-secondary);
    margin: 15px 0 25px 0;
}
.hero-desc {
    font-size: 16px;
    color: var(--text-primary);
    opacity: 0.85;
    max-width: 600px;
    margin-bottom: 30px;
}
.contact-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    margin-bottom: 35px;
    font-size: 14px;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}
.link-icon {
    font-size: 16px;
}

/* Button general stylings */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}
.btn-block {
    display: flex;
    width: 100%;
}
.hero-cta-buttons {
    display: flex;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   AVATAR STYLING
   -------------------------------------------------------------------------- */
.avatar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}
html[data-theme="glassmorphism"] .avatar-card {
    backdrop-filter: blur(16px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}
.avatar-svg-container {
    width: 160px;
    height: 160px;
    margin-bottom: 20px;
}
.avatar-svg {
    width: 100%;
    height: 100%;
}
.grad-stop-1 { stop-color: var(--primary-color); }
.grad-stop-2 { stop-color: var(--accent-color); }

.avatar-info-panel {
    width: 100%;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    font-family: monospace;
    font-size: 12px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.info-label {
    color: var(--text-muted);
}
.info-value {
    color: var(--text-primary);
    font-weight: bold;
}
.text-success { color: #22c55e !important; }
.text-warning { color: var(--accent-color) !important; }

/* --------------------------------------------------------------------------
   SKILLS GRID
   -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.skill-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
}
html[data-theme="glassmorphism"] .skill-card {
    backdrop-filter: blur(16px);
}
.skill-card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}
.skill-card-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
}
html[data-theme="executive"] .skill-card-title {
    text-transform: none;
}
.skill-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-primary);
}
.skill-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}
html[data-theme="terminal"] .skill-list li::before {
    content: '$';
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
}

/* --------------------------------------------------------------------------
   PROJECTS SECTION
   -------------------------------------------------------------------------- */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.filter-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--box-shadow);
}
html[data-theme="glassmorphism"] .project-card {
    backdrop-filter: blur(16px);
}
.project-banner-svg {
    width: 100%;
    height: 160px;
    background-color: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-color);
    display: block;
}
.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}
.tag {
    font-size: 11px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 50px;
    font-weight: 600;
}
.project-card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-primary);
}
.project-card-desc {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 20px;
    flex-grow: 1;
}
.project-links {
    display: flex;
    gap: 12px;
}


/* --------------------------------------------------------------------------
   GITHUB LIVE FEED SECTION
   -------------------------------------------------------------------------- */
.github-dashboard {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 20px;
}
@media (max-width: 992px) {
    .github-dashboard {
        grid-template-columns: 1fr;
    }
}
.github-profile-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
}
html[data-theme="glassmorphism"] .github-profile-card {
    backdrop-filter: blur(16px);
}
.gh-avatar-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    overflow: hidden;
}
.gh-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gh-username {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}
.gh-bio {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.gh-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.github-repos-list, .github-activity-timeline {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}
html[data-theme="glassmorphism"] .github-repos-list,
html[data-theme="glassmorphism"] .github-activity-timeline {
    backdrop-filter: blur(16px);
}
.feed-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.repos-wrapper, .activity-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styles for the feed list */
.repos-wrapper::-webkit-scrollbar, .activity-wrapper::-webkit-scrollbar, .chat-messages::-webkit-scrollbar {
    width: 6px;
}
.repos-wrapper::-webkit-scrollbar-thumb, .activity-wrapper::-webkit-scrollbar-thumb, .chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
}

.repo-item {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: rgba(255,255,255,0.01);
}
.repo-name {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 4px;
}
.repo-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.repo-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--primary-color);
}

.activity-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}
.act-icon {
    font-size: 14px;
}
.act-body {
    flex-grow: 1;
}
.act-msg {
    font-size: 12px;
    margin-bottom: 2px;
}
.act-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* Skeleton Loading Screen */
.skeleton-loader {
    height: 50px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--border-radius);
    margin-bottom: 10px;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --------------------------------------------------------------------------
   CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--box-shadow);
    height: 100%;
}
html[data-theme="glassmorphism"] .info-card {
    backdrop-filter: blur(16px);
}
.info-card-heading {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}
.info-card-text {
    font-size: 14px;
    color: var(--text-primary);
    opacity: 0.8;
    margin-bottom: 30px;
}
.detailed-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.d-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dc-icon {
    font-size: 24px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}
.dc-content {
    display: flex;
    flex-direction: column;
}
.dc-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}
.dc-val {
    font-size: 14px;
    font-weight: 600;
}

.contact-form-column {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--box-shadow);
}
html[data-theme="glassmorphism"] .contact-form-column {
    backdrop-filter: blur(16px);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}
.form-input {
    background-color: rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    background-color: var(--bg-navbar);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.footer-links {
    display: flex;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   PROJECT DETAILS MODAL
   -------------------------------------------------------------------------- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.project-modal.show {
    display: flex;
}
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}
.modal-wrapper {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    z-index: 2010;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}
html[data-theme="glassmorphism"] .modal-wrapper {
    backdrop-filter: blur(20px);
}
.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}
.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-primary);
    cursor: pointer;
}
.modal-close:hover {
    color: var(--accent-color);
}
.modal-body {
    padding: 25px;
}
.modal-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.modal-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.meta-item {
    font-size: 12px;
}
.meta-label {
    color: var(--text-muted);
}
.meta-value {
    font-weight: bold;
    color: var(--primary-color);
}
.modal-section-title {
    font-size: 15px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin: 20px 0 10px 0;
}
.modal-text {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* Architecture flowchart representation */
.arch-diagram {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    font-family: monospace;
    font-size: 12px;
    overflow-x: auto;
    white-space: pre;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 15px 0;
}

/* --------------------------------------------------------------------------
   INTERACTIVE AI CHATBOT WIDGET
   -------------------------------------------------------------------------- */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1500;
    font-family: var(--font-family);
}
.chat-trigger-btn {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    font-weight: 800;
}
.chat-trigger-btn:hover {
    transform: scale(1.05);
}
.chat-trigger-icon {
    font-size: 20px;
}
.chat-trigger-text {
    font-size: 13px;
    text-transform: uppercase;
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 360px;
    height: 500px;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
html[data-theme="glassmorphism"] .chat-window {
    backdrop-filter: blur(20px);
}
.chat-window.show {
    display: flex;
}
.chat-window-header {
    background-color: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-bot-details {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-bot-avatar {
    font-size: 24px;
}
.chat-bot-name {
    font-size: 13px;
    font-weight: bold;
}
.chat-bot-status {
    font-size: 10px;
    color: var(--accent-color);
}
.chat-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

.chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.4;
}
.chat-msg-bubble.bot {
    background-color: rgba(255,255,255,0.04);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    color: var(--text-primary);
}
.chat-msg-bubble.user {
    background-color: var(--primary-color);
    color: var(--bg-primary);
    align-self: flex-end;
    font-weight: 500;
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.1);
}
.suggest-btn {
    font-size: 10px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
}
.suggest-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chat-input-area {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.3);
    gap: 8px;
}
.chat-input {
    flex-grow: 1;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    font-size: 12px;
}
.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.chat-send-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE MEDIA QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: left 0.3s ease;
        z-index: 999;
        border-right: 1px solid var(--border-color);
    }
    .nav-menu.show {
        left: 0;
    }
    .mobile-nav-toggle {
        display: flex;
    }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-desc {
        margin: 0 auto 30px auto;
    }
    .contact-quick-links {
        justify-content: center;
    }
    .hero-cta-buttons {
        justify-content: center;
    }
    .playground-layout {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 60px;
    }
}

/* --------------------------------------------------------------------------
   WELCOME THEMING POPUP
   -------------------------------------------------------------------------- */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.welcome-popup.show {
    display: flex;
}
.popup-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: fadeIn 0.4s ease forwards;
}
.popup-wrapper {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 3010;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9), var(--shadow-glow);
    padding: 35px;
    transform: scale(0.9);
    opacity: 0;
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    text-align: left;
}
html[data-theme="glassmorphism"] .popup-wrapper {
    backdrop-filter: blur(20px);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.popup-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}
.popup-icon {
    font-size: 32px;
}
.popup-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
html[data-theme="executive"] .popup-title {
    text-transform: none;
    letter-spacing: 0px;
}
.popup-body {
    margin-bottom: 25px;
}
.popup-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    opacity: 0.9;
    margin-bottom: 15px;
}
.popup-theme-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 10px;
}
.popup-theme-list li {
    font-size: 13px;
    font-family: var(--font-family);
    font-weight: bold;
    color: var(--text-secondary);
}
.popup-footer {
    display: flex;
    justify-content: flex-end;
}

