/* =========================================================================================
   DESIGN TOKENS — REFINED PROFESSIONAL ENGINEERING PALETTE
   Display face: Space Grotesk (geometric, technical — fits a CSE / mobile-eng identity)
   Body face:    Plus Jakarta Sans (clean, humanist, easy to read at length)
   ========================================================================================= */
:root {
    --bg-dark: #05070c;
    --bg-dark-alt: #090c14;
    --panel-glass: rgba(16, 21, 34, 0.6);
    --panel-glass-solid: #0d121e;
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f6fb;
    --text-muted: #8d97ab;
    --accent-blue: #4f8dff;
    --accent-purple: #9d7bff;
    --accent-emerald: #10b981;
    --accent-red: #ef4444;
    --glow-grad: linear-gradient(135deg, #4f8dff 0%, #9d7bff 100%);
    --font-stack: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --modal-overlay: rgba(2, 4, 8, 0.94);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.light-theme {
    --bg-dark: #f7f9fc;
    --bg-dark-alt: #eef1f7;
    --panel-glass: rgba(255, 255, 255, 0.78);
    --panel-glass-solid: #ffffff;
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-muted: #5b6576;
    --accent-blue: #2f6fed;
    --accent-purple: #7c4fe0;
    --glow-grad: linear-gradient(135deg, #2f6fed 0%, #7c4fe0 100%);
    --shadow-soft: 0 14px 34px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 15% 0%, rgba(79, 141, 255, 0.05), transparent 45%),
                       radial-gradient(circle at 85% 100%, rgba(157, 123, 255, 0.05), transparent 45%);
    color: var(--text-primary);
    font-family: var(--font-stack);
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(79, 141, 255, 0.28); color: var(--text-primary); }
a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Visible keyboard focus for accessibility/professionalism */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* LAYOUT SYSTEM METRICS & BREATHING SPACING CORE */
.standard-section-gap { margin-top: 5.5rem !important; margin-bottom: 5.5rem !important; }
.component-grid-gap { gap: 2.25rem !important; }
.element-margin-top-adjust { margin-top: 2.5rem !important; }
.text-spacing-adjust { margin-top: 1.5rem !important; margin-bottom: 2rem !important; font-size: 1.05rem; }

.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.75rem !important; }
.mt-4 { margin-top: 2.5rem !important; }
.mt-5 { margin-top: 4rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2.5rem !important; }
.mb-5 { margin-bottom: 4rem !important; }
.text-center { text-align: center; }
.w-100 { width: 100%; }

/* HEADING TYPOGRAPHY — GIVES THE PAGE A DISTINCT, TECHNICAL PERSONALITY */
h1, h2, h3, h4, .section-title, .nav-logo, .app-card h4, .project-card h3,
.timeline-content h3, .modal-body-content h3, .edu-details h4, .legal-doc-title {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* GRAPHICAL GLOW & LOADER CORE SYSTEM STYLES */
.bg-glow { position: fixed; width: 620px; height: 620px; border-radius: 50%; background: var(--glow-grad); filter: blur(160px); opacity: 0.07; z-index: -1; pointer-events: none; }
.blob-1 { top: -15%; left: -15%; } .blob-2 { bottom: -15%; right: -15%; }
#preloader { position: fixed; inset: 0; background: var(--bg-dark); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease; }
.loader-spinner { width: 42px; height: 42px; border: 3px solid var(--border-glass); border-top-color: var(--accent-blue); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* NAVBAR NAVIGATION LAYER TRACK MATRIX */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(5, 7, 12, 0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-glass); }
body.light-theme .navbar { background: rgba(247, 249, 252, 0.82); }
.nav-container { max-width: 1320px; margin: 0 auto; padding: 1.25rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 1.4rem; font-weight: 700; text-decoration: none; color: var(--text-primary); letter-spacing: -0.02em; }
.nav-logo #nav-logo-accent { color: var(--accent-blue); }
.nav-right-wrapper { display: flex; align-items: center; gap: 1.75rem; }
.nav-links { display: flex; list-style: none; gap: 1.6rem; }
.nav-link { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.92rem; transition: var(--transition-smooth); cursor: pointer; position: relative; padding-bottom: 2px; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--glow-grad); transition: var(--transition-smooth); border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link.active::after { width: 100%; }
.theme-toggle-btn { background: var(--panel-glass); border: 1px solid var(--border-glass); color: var(--text-primary); width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); flex-shrink: 0; }
.theme-toggle-btn:hover { border-color: var(--accent-blue); }
body.dark-theme .sun-icon { display: none; } body.light-theme .moon-icon { display: none; }
.burger-menu { display: none; color: var(--text-primary); cursor: pointer; flex-shrink: 0; }

/* HOVER DYNAMIC GLASS PANELS SURFACE SPECS */
.glass-panel { background: var(--panel-glass); border: 1px solid var(--border-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); padding: 2.25rem; position: relative; transition: var(--transition-smooth); }
.glass-panel:hover { border-color: rgba(157, 123, 255, 0.32); transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* SYSTEM CONTROLS & SELECTION METRIC INFRASTRUCTURE BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 0.9rem 1.7rem; font-size: 0.92rem; font-weight: 600; border-radius: var(--radius-md); cursor: pointer; transition: var(--transition-smooth); font-family: var(--font-stack); white-space: nowrap; text-decoration: none; }
.btn-lock-icon { width: 13px !important; height: 13px !important; margin-left: 0.15rem; opacity: 0.85; flex-shrink: 0; }
.btn-primary { background: var(--glow-grad); color: #ffffff; border: none; box-shadow: 0 8px 22px rgba(79, 141, 255, 0.28); }
.btn-primary:hover { opacity: 0.94; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(79, 141, 255, 0.35); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-glass); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--text-muted); }
body.light-theme .btn-secondary:hover { background: rgba(0, 0, 0, 0.03); }
.btn-link { background: none; border: none; color: var(--accent-blue); font-size: 1.02rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; transition: var(--transition-smooth); text-decoration: none; padding: 0; }
.btn-link:hover { color: var(--accent-purple); transform: translateX(6px); }

/* TELEMETRY BLINKING PULSE INJECTORS SETUP */
.badge { background: rgba(79, 141, 255, 0.08); border: 1px solid rgba(79, 141, 255, 0.22); color: var(--accent-blue); padding: 0.5rem 1.15rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.6rem; }
.live-status-pulse-green { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background-color: var(--accent-emerald); position: relative; flex-shrink: 0; }
.live-status-pulse-green::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background-color: var(--accent-emerald); animation: opportunityPulseEffect 2s infinite ease-in-out; }
@keyframes opportunityPulseEffect { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }
.live-telemetry-dot { position: absolute; top: -0.4rem; right: 1.4rem; width: 10px; height: 10px; border-radius: 50%; background-color: var(--accent-emerald); box-shadow: 0 0 12px var(--accent-emerald); z-index: 6; animation: runningPipelinePulseFast 0.6s alternate infinite ease-in-out; border: 2px solid var(--bg-dark); }
.fast-pulse { margin-right: 0.5rem; animation: runningPipelinePulseFast 0.6s alternate infinite ease-in-out !important; }
@keyframes runningPipelinePulseFast { 0% { background-color: rgba(16, 185, 129, 0.2); box-shadow: 0 0 4px rgba(16, 185, 129, 0.2); } 100% { background-color: #10b981; box-shadow: 0 0 16px #10b981, 0 0 24px rgba(16, 185, 129, 0.6); } }
.status-indicator-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background-color: var(--accent-red); box-shadow: 0 0 8px var(--accent-red); z-index: 5; }
.completed-status-tag { position: absolute; top: -0.85rem; right: 1.25rem; background: var(--panel-glass-solid); border: 1px solid rgba(16, 185, 129, 0.35); color: var(--accent-emerald); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; z-index: 6; box-shadow: 0 4px 12px rgba(0,0,0,0.25); }

/* CENTRAL TEMPLATE RUNTIME ENVIRONMENT CONFIGS */
.view { display: none; opacity: 0; transform: translateY(16px); transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.view.active-view { display: block; opacity: 1; transform: translateY(0); }
main { max-width: 1320px; margin: 0 auto; padding-top: 92px; min-height: calc(100vh - 140px); }
.container-padding { padding: 2.5rem 2rem 4.5rem; }

/* HERO — SUBTLE TECHNICAL BLUEPRINT GRID AS THE PAGE'S SIGNATURE MOTIF */
.hero-section { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; padding: 6.5rem 2rem 3rem; align-items: center; position: relative; overflow: hidden; max-width: 100%; }
.hero-section::before {
    content: '';
    position: absolute;
    inset: -2rem -2rem auto -2rem;
    height: 480px;
    background-image:
        linear-gradient(var(--border-glass) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-glass) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 30%, transparent 75%);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
}
.gradient-text { background: var(--glow-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 1.4rem 0; min-height: 2.5em; }
.typewriter-cursor { color: var(--accent-blue); animation: blink 0.8s step-end infinite; }
@keyframes blink { from, to { opacity: 0 } 50% { opacity: 1 } }
.hero-actions { display: flex; gap: 1.25rem; margin-top: 1.75rem; flex-wrap: wrap; }
.hero-image-container { display: flex; justify-content: center; }
.image-card-glow { position: relative; border-radius: var(--radius-lg); padding: 6px; background: var(--glow-grad); opacity: 0.9; max-width: 100%; }
.hero-profile-img { width: min(320px, 78vw); aspect-ratio: 320 / 395; height: auto; object-fit: cover; border-radius: 14px; display: block; animation: smoothFloat 6s ease-in-out infinite; }
@keyframes smoothFloat { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-10px); } }

/* APP CARD & APPLICATIONS DESIGN MARKUP STRUCTS */
.section-title { font-size: clamp(1.5rem, 3.2vw, 2.15rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.section-subtitle { color: var(--text-muted); font-size: 0.98rem; margin-top: 0.55rem; max-width: 60ch; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-header-meta { margin-bottom: 3rem; }
.home-featured > .section-title { margin-bottom: 2.75rem; }
.section-badge { display: inline-block; background: rgba(157, 123, 255, 0.08); border: 1px solid rgba(157, 123, 255, 0.22); color: var(--accent-purple); padding: 0.4rem 0.95rem; border-radius: 6px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 0.8rem; }
.sub-section-header { font-size: 1.3rem; font-weight: 600; display: flex; align-items: center; margin-top: 1rem; color: var(--text-primary); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.25rem; }
.app-card { display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 320px; padding: 2.15rem; }
.app-card h4 { font-size: 1.18rem; font-weight: 600; }
.app-card p { margin-top: 1.1rem; margin-bottom: 1.4rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.app-card-header { display: flex; gap: 1.25rem; align-items: center; }
.app-logo { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border-glass); flex-shrink: 0; background: var(--bg-dark-alt); }
.version-lbl { font-size: 0.75rem; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 3px 9px; border-radius: 4px; font-weight: 600; display: inline-block; margin-top: 0.25rem; }
.app-card-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: auto; padding-top: 1.4rem; border-top: 1px solid var(--border-glass); }
.app-card-actions .btn { flex: 1 1 auto; padding-left: 1rem; padding-right: 1rem; }

/* TECH STACK ELEMENT MAPPING PILLS CONFIGS */
.card-tech-stack-wrapper { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.6rem; margin-top: auto; }
.app-card-tech-tag { background: rgba(79, 141, 255, 0.06); border: 1px solid rgba(79, 141, 255, 0.14); color: var(--accent-blue); padding: 0.32rem 0.8rem; border-radius: 6px; font-size: 0.78rem; font-weight: 600; transition: var(--transition-smooth); }
.app-card:hover .app-card-tech-tag, .project-card:hover .app-card-tech-tag { background: rgba(157, 123, 255, 0.08); border-color: rgba(157, 123, 255, 0.2); color: var(--accent-purple); }
.tech-pill-container { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tech-pill { background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-glass); padding: 0.48rem 0.95rem; border-radius: 8px; font-size: 0.86rem; font-weight: 500; color: var(--text-primary); transition: var(--transition-smooth); }
.tech-pill:hover { border-color: var(--accent-blue); background: rgba(79, 141, 255, 0.05); }

/* SCREENSHOT INSPECTOR CAROUSEL GRID PANELS */
.playstore-gallery-wrapper { background: rgba(0, 0, 0, 0.14); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 1.5rem; margin: 2.25rem 0; overflow-x: auto; display: flex; gap: 1.5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.playstore-screenshot-node { flex: 0 0 190px; height: 340px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--border-glass); cursor: zoom-in; transition: var(--transition-smooth); }
.playstore-screenshot-node:hover { border-color: var(--accent-blue); transform: scale(1.02); }

/* APP DETAILS INSPECTOR PAGE — FULLY RESPONSIVE */
.app-details-card { padding: 2.75rem; }
.app-details-header { margin-bottom: 2.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.app-details-identity { display: flex; gap: 1.25rem; align-items: center; min-width: 0; }
.app-details-logo { width: 68px; height: 68px; border-radius: 16px; flex-shrink: 0; }
.app-details-title { font-size: clamp(1.4rem, 4.5vw, 2.15rem); word-break: break-word; }
.app-details-version { padding: 4px 10px; margin-top: 0.4rem; }
.app-details-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.app-details-action-btn { position: relative; }
.app-details-block { margin-bottom: 2.25rem; }
.app-details-heading { font-size: 1.05rem; margin-bottom: 0.9rem; color: var(--text-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.app-details-heading-lg { font-size: 1.22rem; text-transform: none; letter-spacing: normal; margin-bottom: 1.1rem; }
.app-details-tech-wrapper { margin: 0; gap: 0.75rem; }
.app-details-tech-tag { font-size: 0.85rem; padding: 0.42rem 0.95rem; }
.app-details-description { color: var(--text-muted); font-size: 1rem; line-height: 1.85; text-align: left; margin-bottom: 0; }

@media (max-width: 768px) {
    .app-details-card { padding: 2rem; }
    .app-details-header { gap: 1.25rem; }
}
@media (max-width: 640px) {
    .app-details-card { padding: 1.6rem 1.15rem; }
    .app-details-identity { width: 100%; }
    .app-details-logo { width: 56px; height: 56px; border-radius: 12px; }
    .app-details-actions { width: 100%; flex-direction: column; align-items: stretch; }
    .app-details-actions .btn { width: 100%; }
    .app-details-description { font-size: 0.95rem; line-height: 1.75; }
}

/* BIOGRAPHY EDUCATION VISUAL BLOCKS SUBPAGES DESIGN */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; }
@media (max-width: 992px) { .about-grid { grid-template-columns: 1fr; } }
.edu-card { display: flex; gap: 1.4rem; margin-top: 1.75rem; }
.edu-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); background: rgba(79,141,255,0.1); color: var(--accent-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.institution { font-weight: 600; color: var(--text-primary); margin-top: 0.25rem; }
.timeline-tag { font-size: 0.72rem; font-weight: 700; color: var(--accent-emerald); background: rgba(16,185,129,0.1); padding: 3px 10px; border-radius: 4px; display: inline-block; margin: 0.5rem 0; text-transform: uppercase; letter-spacing: 0.5px; }
.edu-desc { color: var(--text-muted); font-size: 0.93rem; line-height: 1.65; }

/* RE-ENGINEERED SKILLS SECTIONS MAP METRICS GRID ASSETS */
.skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 992px) { .skills-layout { grid-template-columns: 1fr; } }
.skill-metric-row { margin-bottom: 1.75rem; }
.skill-lbl-meta { display: flex; justify-content: space-between; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.5rem; gap: 0.75rem; }
.skill-bar-track { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; }
body.light-theme .skill-bar-track { background: rgba(0,0,0,0.05); }
.skill-bar-fill { height: 100%; background: var(--glow-grad); width: 0%; transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1); border-radius: 5px; }

.learning-card { display: flex; flex-direction: column; height: 100%; justify-content: flex-start; }
.learning-header { display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid var(--border-glass); padding-bottom: 1.15rem; margin-bottom: 1.15rem; }
.pulse-indicator-green { width: 9px; height: 9px; border-radius: 50%; background-color: var(--accent-emerald); box-shadow: 0 0 10px var(--accent-emerald); animation: runningPipelinePulseFast 0.8s alternate infinite ease-in-out; flex-shrink: 0; }

/* ARCHITECTURAL TIMELINE GRID SECTIONS */
.timeline-wrapper { position: relative; border-left: 2px solid var(--border-glass); padding-left: 2.75rem; margin-left: 0.75rem; }
.timeline-item { position: relative; margin-bottom: 3.25rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: calc(-2.75rem - 7px); top: 2.5rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent-blue); box-shadow: 0 0 12px var(--accent-blue); border: 2px solid var(--bg-dark); animation: timelineDotPulse 1.8s ease-in-out infinite; }
@keyframes timelineDotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 14px var(--accent-blue), 0 0 0 0 rgba(79, 141, 255, 0.35); }
    50% { opacity: 0.45; box-shadow: 0 0 4px var(--accent-blue), 0 0 0 5px rgba(79, 141, 255, 0); }
}
.timeline-content { padding: 2.15rem; }
.timeline-date { font-size: 0.82rem; font-weight: 700; color: var(--accent-purple); text-transform: uppercase; letter-spacing: 0.7px; display: inline-block; margin-bottom: 0.65rem; }
.company-name { font-weight: 600; font-size: 0.98rem; color: var(--text-muted); margin-bottom: 1.15rem; }
.timeline-desc { color: var(--text-muted); font-size: 0.95rem; }

/* SYSTEM CONTROLS FOR DYNAMIC SECTIONS FILTERING FIELDS */
.section-header-actions { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1.75rem; margin-bottom: 3rem; }
.search-box-wrapper { position: relative; display: flex; align-items: center; }
.search-box-wrapper i { position: absolute; left: 1.3rem; color: var(--text-muted); width: 16px; pointer-events: none; }
.search-box-wrapper input { background: var(--panel-glass); border: 1px solid var(--border-glass); padding: 0.9rem 2.75rem 0.9rem 3.15rem; border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-stack); width: 340px; max-width: 100%; font-size: 0.93rem; transition: var(--transition-smooth); }
.search-box-wrapper input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.15); }
.search-clear-btn { position: absolute; right: 0.65rem; background: none; border: none; color: var(--text-muted); width: 26px; height: 26px; border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition-smooth); }
.search-clear-btn.visible { display: flex; }
.search-clear-btn:hover { background: rgba(255, 255, 255, 0.06); color: var(--text-primary); }
.search-clear-btn i { width: 15px; height: 15px; }
.search-result-count { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.65rem; text-align: right; min-height: 1.1em; transition: var(--transition-smooth); }
.search-result-count.has-query { color: var(--accent-blue); font-weight: 600; }
.filter-controls { width: 100%; max-width: 340px; }
.no-results-state { grid-column: 1 / -1; text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.search-highlight { background: rgba(79, 141, 255, 0.22); color: var(--text-primary); border-radius: 3px; padding: 0 2px; font-weight: 700; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.25rem; }
.project-card { padding: 2.15rem; display: flex; flex-direction: column; justify-content: space-between; height: 100%; min-height: 270px; }
.project-card h3 { margin: 1.4rem 0 0.7rem 0; font-size: 1.22rem; font-weight: 600; color: var(--text-primary); }
.project-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; }
.project-header { display: flex; justify-content: space-between; align-items: center; }
.folder-icon { color: var(--accent-blue); width: 30px; height: 30px; }

/* RE-ENGINEERED UPDATED ENHANCED CONTACT PAGE DUAL GRID PANELS */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.75rem; align-items: start; }
@media (max-width: 992px) { .contact-grid { grid-template-columns: 1fr; gap: 2.25rem; } }
.form-group { margin-bottom: 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.form-group input, .form-group textarea { background: var(--panel-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-md); padding: 0.9rem 1.25rem; color: var(--text-primary); font-family: var(--font-stack); font-size: 0.96rem; transition: var(--transition-smooth); width: 100%; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(79, 141, 255, 0.12); }

.contact-details-panel { display: flex; flex-direction: column; height: 100%; gap: 0; }
.info-box, .social-box { padding: 2rem; }
.social-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.1rem; margin-top: 0.5rem; }
.social-anchor-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; padding: 1.35rem 0.9rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-glass); color: var(--text-primary); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: var(--transition-smooth); text-align: center; }
.social-anchor-card:hover { transform: scale(1.04) translateY(-2px); color: #ffffff; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); border-color: var(--hover-accent, var(--accent-blue)); }
.social-anchor-card i { width: 22px; height: 22px; transition: var(--transition-smooth); }

/* POPUP MODAL ARCHITECTURES WITH REAL RE-INFORCED CLOSE OVERRIDES */
.premium-modal-overlay { position: fixed; inset: 0; background-color: var(--modal-overlay); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1.5rem; transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.premium-modal-overlay.hide-modal { opacity: 0; pointer-events: none; }
.premium-modal-card { max-width: 500px; width: 100%; background: var(--panel-glass-solid); border: 1px solid var(--border-glass); border-radius: var(--radius-lg); padding: 2.15rem; transform: scale(0.95); transition: var(--transition-smooth); }
.premium-modal-overlay:not(.hide-modal) .premium-modal-card { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.modal-alert-icon-wrapper { width: 50px; height: 50px; border-radius: var(--radius-sm); background: rgba(239, 68, 68, 0.1); color: var(--accent-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal-alert-icon-wrapper.password-gate-icon { background: rgba(79, 141, 255, 0.1); color: var(--accent-blue); }
.password-gate-error { color: var(--accent-red); font-size: 0.85rem; min-height: 1.2em; opacity: 0; transition: var(--transition-smooth); margin-top: -0.25rem; }
.password-gate-error.visible { opacity: 1; }
.input-shake { animation: inputShakeKeys 0.4s ease; border-color: var(--accent-red) !important; }
@keyframes inputShakeKeys { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
.modal-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: var(--transition-smooth); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.modal-close-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.modal-body-content h3 { font-size: 1.32rem; font-weight: 700; margin-bottom: 0.7rem; }
.modal-body-content p { color: var(--text-muted); line-height: 1.65; font-size: 0.96rem; margin-bottom: 1.4rem; }
.modal-footer { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; border-top: 1px solid var(--border-glass); padding-top: 1.2rem; flex-wrap: wrap; }

/* LIGHTBOX WITH STYLISH FLOATING CROSS BUTTON */
.lightbox-container { position: relative; max-width: 92%; max-height: 85vh; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
#lightbox-main-img { max-width: 100%; max-height: 72vh; object-fit: contain; border-radius: var(--radius-md); border: 1px solid var(--border-glass); }
.modal-close-btn.lightbox-close { position: absolute; top: -2.5rem; right: 0; background: rgba(13, 18, 30, 0.85); color: #ffffff; width: 34px; height: 34px; z-index: 100000; border: 1px solid var(--border-glass); box-shadow: 0 4px 12px rgba(0,0,0,0.5); }
.modal-close-btn.lightbox-close:hover { color: var(--accent-red); background: rgba(13, 18, 30, 1); transform: rotate(90deg); }

/* GALLERY PREVIOUS / NEXT NAVIGATION CONTROLS — SITS IN A ROW JUST BELOW THE IMAGE */
.lightbox-nav-row { display: flex; align-items: center; gap: 1.25rem; }
.lightbox-nav-btn { position: static; width: 44px; height: 44px; border-radius: 50%; background: rgba(13, 18, 30, 0.85); border: 1px solid var(--border-glass); color: #ffffff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100000; transition: var(--transition-smooth); box-shadow: 0 4px 14px rgba(0,0,0,0.45); }
.lightbox-nav-btn:hover { background: var(--glow-grad); border-color: transparent; transform: scale(1.08); }
@media (max-width: 640px) {
    .lightbox-container { max-width: 100%; gap: 0.85rem; }
    #lightbox-main-img { max-height: 62vh; }
    .lightbox-nav-btn { width: 38px; height: 38px; }
    .lightbox-nav-row { gap: 1rem; }
    .modal-close-btn.lightbox-close { top: 0.5rem; right: 0.5rem; }
}

/* FOOTER REGISTRY AND MARKDOWNS */
.footer { border-top: 1px solid var(--border-glass); padding: 3rem 2rem; margin-top: 8rem; background: rgba(5,7,12,0.4); }
.footer-container { max-width: 1320px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.75rem; font-size: 0.92rem; color: var(--text-muted); }
.footer-legal-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: var(--transition-smooth); }
.footer-legal-links a:hover { color: var(--accent-blue); text-decoration: underline; }

.legal-doc-header { border-bottom: 1px solid var(--border-glass); padding-bottom: 1.5rem; margin-bottom: 2.25rem; }
.legal-doc-title { font-size: clamp(1.45rem, 4.5vw, 2.15rem); word-break: break-word; }
#legal-details-view.container-padding { padding-top: 1.25rem; }
.legal-markdown-html-wrapper { color: var(--text-primary); line-height: 1.9; text-align: left; font-size: clamp(0.94rem, 1.8vw, 1.03rem); overflow-wrap: break-word; word-wrap: break-word; }
.legal-markdown-html-wrapper h3 { font-size: clamp(1.08rem, 2.6vw, 1.28rem); margin-top: 1.75rem; margin-bottom: 0.8rem; color: var(--text-primary); }
.legal-markdown-html-wrapper p { margin-bottom: 1.2rem; color: var(--text-muted); }
.legal-markdown-html-wrapper img, .legal-markdown-html-wrapper table, .legal-markdown-html-wrapper pre { max-width: 100%; height: auto; display: block; overflow-x: auto; }
.legal-markdown-html-wrapper ul, .legal-markdown-html-wrapper ol { padding-left: 1.35rem; margin-bottom: 1.2rem; color: var(--text-muted); }

/* SKELETON LOADING PLACEHOLDERS — GIVES INSTANT PERCEIVED LOAD WHILE DATA/IMAGES FETCH */
.skeleton-card { pointer-events: none; }
.skeleton-line { height: 14px; border-radius: 6px; margin-bottom: 1rem; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.09) 37%, rgba(255,255,255,0.04) 63%); background-size: 400% 100%; animation: skeletonShimmer 1.4s ease infinite; }
body.light-theme .skeleton-line { background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.09) 37%, rgba(0,0,0,0.04) 63%); background-size: 400% 100%; }
.skeleton-w-60 { width: 60%; height: 20px; }
.skeleton-w-90 { width: 90%; }
.skeleton-w-75 { width: 75%; }
@keyframes skeletonShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* GLOBAL STRUCTURAL FADE TRANSITIONS MARKERS */
.fade-in-element { opacity: 0; transform: translateY(15px); transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-element.visible { opacity: 1; transform: translateY(0); }

/* =========================================================================================
   PERFORMANCE: DEFER OFFSCREEN RENDERING WORK SO CONTENT BELOW THE FOLD "LOADS INSTANTLY"
   AS THE USER SCROLLS, INSTEAD OF THE BROWSER PAYING THE LAYOUT/PAINT COST UPFRONT.
   ========================================================================================= */
.section-container { content-visibility: auto; contain-intrinsic-size: 1px 620px; }
.playstore-gallery-wrapper { content-visibility: auto; contain-intrinsic-size: 1px 400px; }
/* NOTE: .timeline-wrapper intentionally excluded from content-visibility — its "paint"
   containment was clipping the timeline dots, which sit just outside the wrapper's edge. */
/* =========================================================================================
   FULLY RESPONSIVE — TUNED FOR EVERY SECTION AT EVERY BREAKPOINT
   ========================================================================================= */
@media (max-width: 1100px) {
    main { padding-top: 84px; }
    .apps-grid, .projects-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}

@media (max-width: 992px) {
    .hero-section { grid-template-columns: 1fr; text-align: center; gap: 2.75rem; padding: 3.5rem 1rem 1rem; }
    .hero-section::before { height: 380px; }
    .hero-content h1 { min-height: auto; }
    .hero-actions { justify-content: center; }
    .hero-image-container { order: -1; }
    .footer-container { flex-direction: column; text-align: center; }
    .section-header-actions { justify-content: center; text-align: center; }
    .section-header-actions .filter-controls { justify-content: center; margin: 0 auto; }
    .filter-controls { max-width: 100%; }
    .search-result-count { text-align: center; }
}

@media (max-width: 768px) {
    .nav-container { padding: 1.1rem 1.5rem; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--bg-dark); border-bottom: 1px solid var(--border-glass); flex-direction: column; padding: 1.75rem; gap: 1.4rem; box-shadow: var(--shadow-soft); }
    .nav-links.mobile-active { display: flex; }
    .burger-menu { display: block; }
    .container-padding { padding: 2rem 1.5rem 3.5rem; }
    .standard-section-gap { margin-top: 4rem !important; margin-bottom: 4rem !important; }
    .section-header-actions { margin-bottom: 2.25rem; }
    .apps-grid, .projects-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.75rem; }
    .component-grid-gap { gap: 1.75rem !important; }
    .timeline-wrapper { padding-left: 2.1rem; margin-left: 0.35rem; }
    .timeline-dot { left: calc(-2.1rem - 6px); }
    .timeline-content { padding: 1.6rem; }
}

@media (max-width: 640px) {
    .container-padding { padding: 1.5rem 1.1rem 3rem; }
    #legal-details-view.container-padding { padding-top: 1rem; }
    .glass-panel { padding: 1.5rem; }
    #legal-details-view .glass-panel { padding: 1.5rem 1.25rem; }
    #app-details-view .glass-panel { padding: 1.6rem 1.15rem !important; }
    .filter-controls, .search-box-wrapper { width: 100%; max-width: 100%; }
    .search-box-wrapper input { width: 100%; }
    .apps-grid, .projects-grid { grid-template-columns: 1fr; }
    .nav-container { padding: 1rem 1.15rem; }
    .nav-logo { font-size: 1.25rem; }
    .app-card-actions { gap: 0.6rem; }
    .app-card-actions .btn { font-size: 0.85rem; padding: 0.8rem 0.9rem; gap: 0.4rem; }
    .app-card-header { gap: 1rem; }
    .app-logo { width: 48px; height: 48px; }
    .completed-status-tag { top: -0.75rem; right: 1rem; font-size: 0.66rem; padding: 3px 10px; }
    .live-telemetry-dot { top: -0.35rem; right: 1.1rem; }
    .playstore-screenshot-node { flex-basis: 160px; height: 290px; }
    .about-grid, .skills-layout, .contact-grid { gap: 1.75rem; }
    .social-links-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.9rem; }
    .footer { padding: 2.5rem 1.5rem; margin-top: 6rem; }
}

@media (max-width: 420px) {
    .container-padding { padding: 1.25rem 0.9rem 2.5rem; }
    .glass-panel { padding: 1.25rem; }
    .hero-content h1 { font-size: 1.9rem; }
    .hero-profile-img { width: min(240px, 72vw); }
    .btn { padding: 0.85rem 1.4rem; font-size: 0.88rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .timeline-content { padding: 1.35rem; }
    .modal-header { gap: 0.75rem; }
    .modal-footer { flex-direction: column-reverse; }
    .modal-footer .btn { width: 100%; }
    .badge { font-size: 0.78rem; padding: 0.45rem 0.9rem; }
}
