/* ==========================================================================
   Chandan Karna - Premium Dark & Light Glassmorphic Design System
   ========================================================================== */

/* Dark Mode Theme (Default) */
:root, :root[data-theme="dark"] {
    --bg-main: #060913;
    --bg-nav: rgba(10, 15, 29, 0.88);
    --bg-card: rgba(18, 26, 47, 0.65);
    --bg-card-hover: rgba(25, 36, 64, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan: #06b6d4;
    --accent-cyan-glow: rgba(6, 182, 212, 0.35);
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.5);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-brand: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Theme */
:root[data-theme="light"] {
    --bg-main: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.94);
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-glass: rgba(0, 0, 0, 0.03);

    --accent-indigo: #4338ca;
    --accent-indigo-glow: rgba(67, 56, 202, 0.25);
    --accent-cyan: #0284c7;
    --accent-cyan-glow: rgba(2, 132, 199, 0.25);
    --accent-emerald: #059669;
    --accent-amber: #d97706;

    --text-main: #0f172a;
    --text-muted: #334155;
    --text-dim: #64748b;

    --border-subtle: rgba(0, 0, 0, 0.12);
    --border-active: rgba(67, 56, 202, 0.6);
}

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

html, body {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ambient Glow FX */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.28;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-indigo);
    top: -120px;
    left: -120px;
}

.blob-2 {
    width: 450px;
    height: 450px;
    background: var(--accent-cyan);
    bottom: -120px;
    right: -120px;
    animation-delay: -9s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 50%, var(--accent-emerald) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3rem auto;
}

/* Badges & Buttons */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--accent-indigo);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.badge-green {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--accent-emerald);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-indigo-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-2px);
}

/* Theme Switcher Toggle Button */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
    transform: scale(1.05);
}

/* Floating WhatsApp Chat Button - Strictly Locked Dimensions & Appearance */
a.floating-whatsapp {
    position: fixed !important;
    bottom: 85px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    background: #25d366 !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5) !important;
    z-index: 10005 !important;
    text-decoration: none !important;
    animation: pulseWhatsApp 2.5s infinite !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

a.floating-whatsapp:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65) !important;
    color: #ffffff !important;
}

@keyframes pulseWhatsApp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Scroll To Top Button - Strictly Locked Dimensions & Appearance */
button.scroll-to-top {
    position: fixed !important;
    bottom: 148px !important;
    right: 20px !important;
    left: auto !important;
    top: auto !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-active) !important;
    color: var(--text-main) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease !important;
    z-index: 10005 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

button.scroll-to-top.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

button.scroll-to-top:hover {
    background: var(--accent-indigo) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
}

/* ==========================================================================
   Header & Clean Typography Monogram Logo (CK)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-badge {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

/* Dark Mode Logo Badge Styling */
.logo-badge {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
    border: 2px solid rgba(99, 102, 241, 0.6);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Light Mode Logo Badge Styling */
:root[data-theme="light"] .logo-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    border: 2px solid #4338ca;
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.2);
}

.brand-logo:hover .logo-badge {
    transform: scale(1.06);
}

.logo-monogram {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

:root[data-theme="light"] .logo-monogram {
    background: linear-gradient(135deg, #312e81 0%, #0284c7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.logo-name {
    font-family: var(--font-brand);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.logo-sub {
    font-size: 0.72rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    border-bottom: 2px solid var(--accent-indigo);
    color: var(--accent-indigo);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
}

/* ==========================================================================
   Hero & About Page Grids
   ========================================================================== */
.hero-section {
    padding: 5rem 0 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.35rem;
    margin: 1rem 0;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 560px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    text-align: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: var(--transition-normal);
}

.profile-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
}

@keyframes rotateSlowGlow {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.profile-avatar-frame {
    position: relative;
    width: 280px;
    height: 370px;
    margin: 0 auto 1.5rem auto;
    border-radius: 24px;
    padding: 7px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(99, 102, 241, 0.35) 100%);
    box-shadow: 0 20px 45px rgba(56, 189, 248, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    z-index: 1;
}

/* Slowly Rotating Animated Graphic Ring Behind Frame */
.profile-avatar-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 118%;
    height: 118%;
    border-radius: 36px;
    background: conic-gradient(from 0deg, #38bdf8, #818cf8, #34d399, #f43f5e, #38bdf8);
    transform: translate(-50%, -50%);
    animation: rotateSlowGlow 14s linear infinite;
    z-index: -1;
    filter: blur(16px);
    opacity: 0.75;
}

.profile-avatar-frame:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.5), 0 0 0 2px var(--accent-cyan);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    object-position: 50% 20%;
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 50%, #dbeafe 100%);
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

:root[data-theme="dark"] .profile-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.status-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-emerald);
    border: 3px solid #0f172a;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.profile-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.profile-role {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.tech-pill {
    padding: 0.28rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quick Stats Bar */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
}

.stat-icon-box {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.75rem auto;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo);
    font-size: 1.2rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-indigo);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Section Containers
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(11, 16, 30, 0.08);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Skills Component
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.skill-card:hover {
    border-color: var(--border-active);
    transform: translateY(-3px);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.skill-title {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-title i {
    color: var(--accent-cyan);
}

.skill-level-num {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.skill-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    border-radius: var(--radius-full);
    transition: width 1s ease-in-out;
}

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

/* ==========================================================================
   Timeline Tree Component (2011 - 2026)
   ========================================================================== */
.timeline-container {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-indigo) 0%, var(--accent-cyan) 50%, var(--accent-emerald) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 9px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 3px solid var(--accent-indigo);
    box-shadow: 0 0 12px var(--accent-indigo-glow);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--accent-cyan);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.timeline-card:hover {
    border-color: var(--border-active);
    background: var(--bg-card-hover);
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-cyan);
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--accent-indigo);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Projects Showcase Component
   ========================================================================== */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-indigo-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-active);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.project-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-cyan);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.project-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.project-footer {
    display: flex;
    gap: 0.75rem;
}

.project-link {
    font-size: 0.85rem;
    color: var(--accent-indigo);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.project-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Blogs Component
   ========================================================================== */
.search-box {
    max-width: 500px;
    margin: 0 auto 3rem auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.85rem 1.25rem 0.85rem 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.search-box-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-input:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 15px var(--accent-indigo-glow);
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.blog-card:hover {
    border-color: var(--border-active);
    transform: translateY(-4px);
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.blog-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more-btn {
    align-self: flex-start;
    color: var(--accent-indigo);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.read-more-btn:hover {
    color: var(--accent-cyan);
}

/* Modal Popup for Blog Details */
.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.blog-modal.open {
    display: flex;
}

.blog-modal-content {
    background: var(--bg-main);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==========================================================================
   Contact Component
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-text-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.contact-text-val a {
    color: var(--text-main);
    text-decoration: none;
}

.contact-text-val a:hover {
    color: var(--accent-indigo);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 12px var(--accent-indigo-glow);
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

.alert-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: var(--bg-main);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-indigo);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Responsive Media Queries & Mobile Header Navigation */
@media (max-width: 992px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide Mobile Bottom Nav by Default on Desktop Browsers */
.mobile-bottom-nav {
    display: none !important;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 75px;
    }

    .site-header {
        padding: 0;
    }

    .navbar {
        height: 64px;
        padding: 0 0.5rem;
    }

    .brand-logo {
        gap: 0.45rem;
        flex-shrink: 1;
        min-width: 0;
    }

    .logo-badge {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .logo-monogram {
        font-size: 1rem;
    }

    .logo-text {
        min-width: 0;
    }

    .logo-name {
        font-size: 0.95rem;
        white-space: nowrap;
        line-height: 1.1;
    }

    .logo-sub {
        font-size: 0.6rem;
        white-space: nowrap;
        letter-spacing: 0.02em;
    }

    .nav-links {
        display: none;
    }

    .btn-nav-cta {
        padding: 0.4rem 0.65rem !important;
        font-size: 0.78rem !important;
        white-space: nowrap !important;
        flex-shrink: 0;
    }

    .theme-toggle-btn {
        width: 34px !important;
        height: 34px !important;
        font-size: 0.95rem !important;
        flex-shrink: 0;
    }

    .profile-avatar-frame {
        width: 240px;
        height: 310px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .blogs-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile Fixed Bottom Navigation Bar (ONLY on Mobile Screens) */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-subtle);
        justify-content: space-around;
        align-items: center;
        z-index: 99990;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.2rem;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.72rem;
        font-family: var(--font-heading);
        font-weight: 500;
        width: 16%;
        height: 100%;
        transition: var(--transition-fast);
    }

    .bottom-nav-item i {
        font-size: 1.15rem;
    }

    .bottom-nav-item.active,
    .bottom-nav-item:hover {
        color: var(--accent-cyan);
    }

    .bottom-nav-item.active i {
        color: var(--accent-indigo);
    }

    /* Mobile Floating Widgets Strict Dimensions & High Z-Index */
    a.floating-whatsapp {
        bottom: 80px !important;
        right: 16px !important;
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        font-size: 1.55rem !important;
        z-index: 10005 !important;
    }

    button.scroll-to-top {
        bottom: 138px !important;
        right: 16px !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        font-size: 1rem !important;
        z-index: 10005 !important;
    }

    /* Mobile Timeline Alignment */
    .timeline-container::before {
        left: 12px;
    }

    .timeline-dot {
        left: 2px;
        width: 22px;
        height: 22px;
    }

    .timeline-item {
        padding-left: 36px;
        margin-bottom: 1.75rem;
    }

    .timeline-card {
        padding: 1.15rem;
    }

    .about-grid h2 {
        font-size: 1.55rem;
    }
}

@media (max-width: 420px) {
    .logo-name {
        font-size: 0.88rem;
    }
    .logo-sub {
        font-size: 0.55rem;
    }
    .btn-nav-cta {
        padding: 0.35rem 0.5rem !important;
        font-size: 0.72rem !important;
    }
}

/* ==========================================================================
   SEO Social Channels Hub & Rich FAQ Accordion Design System
   ========================================================================== */
.social-channels-hub {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
    margin: 1.25rem 0 1.75rem 0;
}

.social-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-pill-link:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-pill-youtube {
    background: rgba(255, 0, 0, 0.1);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}
.social-pill-youtube:hover {
    background: #ff0000;
    color: #ffffff;
    border-color: #ff0000;
}

.social-pill-linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border: 1px solid rgba(102, 168, 240, 0.3);
}
.social-pill-linkedin:hover {
    background: #0a66c2;
    color: #ffffff;
    border-color: #0a66c2;
}

.social-pill-telegram {
    background: rgba(34, 158, 217, 0.1);
    color: #0284c7;
    border: 1px solid rgba(34, 158, 217, 0.3);
}
.social-pill-telegram:hover {
    background: #229ed9;
    color: #ffffff;
    border-color: #229ed9;
}

.social-pill-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #10b981;
    border: 1px solid rgba(37, 211, 102, 0.3);
}
.social-pill-whatsapp:hover {
    background: #25d366;
    color: #ffffff;
    border-color: #25d366;
}

.social-pill-tiktok {
    background: rgba(255, 0, 80, 0.1);
    color: #f43f5e;
    border: 1px solid rgba(255, 0, 80, 0.3);
}
.social-pill-tiktok:hover {
    background: #ff0050;
    color: #ffffff;
    border-color: #ff0050;
}

.social-pill-github {
    background: rgba(110, 84, 148, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(110, 84, 148, 0.3);
}
.social-pill-github:hover {
    background: #6e5494;
    color: #ffffff;
    border-color: #6e5494;
}

/* SEO Rich FAQ Accordion Component */
.faq-grid {
    max-width: 900px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px var(--card-glow);
}

.faq-header {
    width: 100%;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    gap: 1rem;
}

.faq-header i.fa-chevron-down {
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.faq-card.active .faq-header i.fa-chevron-down {
    transform: rotate(180deg);
}

.faq-body {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    border-top: 1px dashed var(--border-subtle);
    padding-top: 1rem;
}

