/* ==========================================
   PORTFOLIO DESIGN SYSTEM & CYBER-NEON STYLES
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    --primary: #00f0ff;
    --primary-glow: rgba(0, 240, 255, 0.45);
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.4);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --bg-dark: #070b12;
    --bg-body-grad: radial-gradient(circle at 50% 0%, #0d1b2a 0%, #070b12 70%);
    --bg-card: rgba(11, 17, 30, 0.82);
    --bg-card-hover: rgba(16, 26, 46, 0.95);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 240, 255, 0.35);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    --chip-bg: rgba(0, 0, 0, 0.55);
    --chip-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --heading-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    --nav-bg: rgba(8, 12, 19, 0.88);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

html[data-theme-mode="light"] {
    --bg-dark: #f1f5f9;
    --bg-body-grad: radial-gradient(circle at 50% 0%, #e2e8f0 0%, #f1f5f9 65%, #f8fafc 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-highlight: rgba(2, 132, 199, 0.35);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    --chip-bg: #f1f5f9;
    --chip-border: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    --heading-shadow: none;
    --nav-bg: rgba(255, 255, 255, 0.94);
}


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

html {
    scroll-behavior: smooth;
}

::selection {
    background-color: var(--primary);
    color: #070b12;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    background: var(--bg-body-grad);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Ambient Glowing Orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.38;
}

body::before {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.6) 0%, rgba(139, 92, 246, 0.2) 50%, rgba(0, 0, 0, 0) 70%);
    top: -12%;
    left: -12%;
    animation: floatOrb1 22s infinite alternate ease-in-out;
}

body::after {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, rgba(16, 185, 129, 0.2) 50%, rgba(0, 0, 0, 0) 70%);
    bottom: -12%;
    right: -12%;
    animation: floatOrb2 26s infinite alternate-reverse ease-in-out;
}

/* Keyframe Animations */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(35vw, 25vh) scale(1.25); }
    100% { transform: translate(10vw, 55vh) scale(0.9); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-35vw, -25vh) scale(1.2); }
    100% { transform: translate(-10vw, -60vh) scale(1.35); }
}

@keyframes slowShake {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(1.2deg); }
    40% { transform: rotate(-1.2deg); }
    60% { transform: rotate(1.2deg); }
    80% { transform: rotate(-1.2deg); }
    100% { transform: rotate(0deg); }
}

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

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* ==========================================
   NAVIGATION BAR
   ========================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(25px) saturate(130%);
    -webkit-backdrop-filter: blur(25px) saturate(130%);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Custom Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #070b12;
    box-shadow: 0 0 15px var(--primary-glow);
    font-weight: 800;
}

.brand-text {
    font-size: 1.2em;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-highlight {
    color: var(--primary);
}

.brand-pill {
    font-size: 0.65em;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.brand-logo:hover .brand-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 0 20px var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: nowrap;
}

nav ul li {
    flex-shrink: 0;
}

nav ul li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88em;
    transition: all 0.25s ease;
    padding: 6px 13px;
    border-radius: 20px;
    white-space: nowrap;
    display: inline-block;
}

nav ul li a:hover, nav ul li a.active {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #070b12;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5em;
    cursor: pointer;
}

/* ==========================================
   HERO SECTION
   ========================================== */
#home {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 105px 8% 40px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 40px;
}

.hero-content {
    flex: 1.25;
    max-width: 700px;
}

.hero-content .greeting {
    font-size: 1.15em;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-content h1 {
    font-size: 3.8em;
    font-weight: 800;
    margin-bottom: 4px;
    line-height: 1.1;
    text-shadow: var(--heading-shadow);
    color: var(--text-main);
}

.hero-content h2 {
    font-size: 1.9em;
    font-weight: 600;
    margin-bottom: 22px;
    color: #e2e8f0;
    text-shadow: var(--heading-shadow);
}

.hero-content h2 span {
    color: var(--primary);
    position: relative;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 2px;
}

.hero-bio {
    font-size: 1.15em;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Hero Metrics Strip */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.metric-card {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--primary);
    border-radius: 12px;
    padding: 10px 18px;
    display: flex;
    flex-direction: column;
    min-width: 130px;
}

.metric-value {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.78em;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

.hero-text-box {
    background: rgba(10, 15, 25, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 24px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.hero-tagline {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.12em;
    margin-bottom: 14px;
}

.hero-text-box h4 {
    color: var(--text-main);
    font-size: 1.02em;
    margin-top: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-text-box h4 svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero-text-box p {
    color: var(--text-muted);
    font-size: 0.98em;
    line-height: 1.65;
}

/* Action Buttons */
.header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94em;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    cursor: pointer;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn:hover svg {
    transform: scale(1.15);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #070b12;
    box-shadow: 0 0 20px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    box-shadow: 0 0 35px var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid var(--primary);
    color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-linkedin {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);
    border: 2px solid #0077b5;
    color: #00a4f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.5);
    color: #ffffff;
}

/* ==========================================
   FUTURISTIC TECH AVATAR FRAME
   ========================================== */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.tech-avatar-wrapper {
    position: relative;
    width: 320px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tech-avatar-glow {
    position: absolute;
    width: 300px;
    height: 360px;
    border-radius: 36px;
    background: radial-gradient(circle, var(--primary-glow) 0%, var(--accent-glow) 50%, transparent 75%);
    filter: blur(35px);
    z-index: 1;
}

.tech-avatar-card {
    position: relative;
    width: 300px;
    height: 370px;
    border-radius: 28px;
    overflow: hidden;
    z-index: 3;
    background: linear-gradient(135deg, rgba(16, 26, 46, 0.9) 0%, rgba(7, 11, 18, 0.95) 100%);
    border: 2px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--primary-glow);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tech-avatar-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(0, 240, 255, 0.45);
}

.tech-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
}

/* ==========================================
   COMMON SECTION STYLING
   ========================================== */
section:not(#home) {
    padding: 60px 8% 40px;
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: var(--heading-shadow);
    position: relative;
}

.section-title span {
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.98em;
    max-width: 750px;
    margin: 0 auto 26px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 10px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary);
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    padding: 40px;
}

/* ==========================================
   EXPERIENCE TIMELINE
   ========================================== */
.timeline-container {
    margin-top: 20px;
}

.timeline-item {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: 0.3s;
}

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

.company-logo {
    width: 70px;
    height: 70px;
    background: rgba(10, 15, 25, 0.85);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15em;
    font-weight: 800;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(0, 246, 255, 0.35);
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.exp-details h3 {
    font-size: 1.5em;
    margin: 0 0 5px;
    color: var(--primary);
}

.exp-details h4 {
    font-size: 1.05em;
    color: var(--text-main);
    margin: 0 0 6px;
}

.exp-details .meta {
    font-size: 0.85em;
    color: var(--text-dim);
    margin-bottom: 18px;
    display: inline-block;
    background: var(--chip-bg);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--chip-border);
}

.inner-role {
    margin-left: 15px;
    border-left: 2px solid rgba(0, 246, 255, 0.5);
    padding-left: 20px;
    margin-bottom: 18px;
    position: relative;
}

.inner-role::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.inner-role h5 {
    font-size: 1.1em;
    color: var(--text-main);
}

.inner-role span {
    font-size: 0.85em;
    color: var(--text-dim);
    font-style: italic;
}

.inner-role p {
    font-size: 0.95em;
    color: var(--text-muted);
    margin-top: 6px;
}

.inner-role ul,
.inner-role ul li {
    color: var(--text-muted) !important;
}

/* ==========================================
   TECHNICAL SKILLS MATRIX (ORGANIZED CATEGORIES)
   ========================================== */
.skills-matrix-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.skill-category-card {
    background: rgba(10, 15, 25, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px var(--primary-glow);
}

.skill-category-card h3 {
    font-size: 1.15em;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    padding: 7px 15px;
    border-radius: 20px;
    font-size: 0.88em;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.skill-tag:hover {
    border-color: var(--primary);
    background: rgba(0, 246, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--primary-glow);
    color: var(--primary);
}

/* ==========================================
   CURRENTLY LIVE APPS (ROTATING CONIC GLOW)
   ========================================== */
.live-section-title span {
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.live-projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 22px;
}

.live-card {
    position: relative;
    width: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Rotating glowing border effect */
.live-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, var(--primary), var(--secondary));
    animation: rotateGradient 4s linear infinite;
    z-index: -2;
}

.live-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-card);
    border-radius: 17px;
    z-index: -1;
}

.live-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 45px var(--secondary-glow);
}

.live-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.45);
    color: var(--secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.74em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
    letter-spacing: 1px;
    z-index: 5;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--secondary);
    animation: pulse 1.5s infinite;
}

.live-content {
    padding: 65px 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.live-content h3 {
    font-size: 1.5em;
    color: var(--text-main);
    margin-bottom: 8px;
}

.live-content .tech-sub {
    font-size: 0.82em;
    color: var(--primary);
    margin-bottom: 14px;
    font-weight: 500;
}

.live-content p {
    color: var(--text-muted);
    font-size: 0.92em;
    margin-bottom: 22px;
    line-height: 1.65;
    flex-grow: 1;
}

.live-content-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.live-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #080c13;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88em;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.live-btn:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.6);
    transform: scale(1.04);
}

.live-btn-outline {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-main);
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-btn-outline:hover {
    border-color: var(--primary);
    background: rgba(0, 246, 255, 0.15);
    color: var(--primary);
}

/* ==========================================
   EXTENSIVE 20+ PRODUCTION APPS GRID
   ========================================== */
.all-apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
    margin-top: 30px;
}

.app-catalog-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-catalog-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 246, 255, 0.2);
    background: rgba(15, 24, 40, 0.85);
}

.app-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.app-catalog-card h4 {
    font-size: 1.22em;
    color: var(--text-main);
}

.app-type-badge {
    font-size: 0.72em;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(0, 246, 255, 0.12);
    color: var(--primary);
    border: 1px solid rgba(0, 246, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
}

.app-catalog-card p {
    font-size: 0.9em;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex-grow: 1;
}

.app-catalog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82em;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 10px;
}

/* ==========================================
   FEATURED ARCHITECTURES GRID
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 28px;
}

.project-card {
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: rgba(0, 246, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 16px 40px var(--primary-glow);
    background: var(--bg-card-hover);
}

.project-card h3 {
    font-size: 1.35em;
    margin: 0 0 10px;
    color: var(--text-main);
}

.project-card p {
    font-size: 0.94em;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.tech-stack {
    font-size: 0.82em;
    color: var(--primary);
    background: var(--chip-bg);
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid var(--chip-border);
    box-shadow: none;
}

/* ==========================================
   RESUME & CONTACT DROPDOWN MODAL
   ========================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 14, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: rgba(10, 16, 28, 0.96);
    backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    border-radius: 20px;
    padding: 35px 30px;
    width: 90%;
    max-width: 440px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--primary-glow);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 1.4em;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-card h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.4em;
    text-align: center;
}

.modal-card p {
    color: var(--text-muted);
    font-size: 0.9em;
    text-align: center;
    margin-bottom: 22px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-main);
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px var(--primary-glow);
}

.modal-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 19, 0.9);
    padding: 40px 8%;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.92em;
}

footer .footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

footer .footer-socials a {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

footer .footer-socials a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 246, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1080px) {
    #home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content .greeting {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .header-buttons {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
    }

    .tech-avatar-wrapper {
        width: 300px;
        height: 340px;
    }

    .tech-avatar-card {
        width: 270px;
        height: 300px;
    }

    nav ul {
        display: none;
    }

    nav ul.show {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 12, 19, 0.96);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
        gap: 12px;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    section:not(#home) {
        padding: 45px 5% 30px;
    }
    #home {
        padding: 95px 5% 35px;
        gap: 30px;
    }
    .hero-content h1 {
        font-size: 2.3em;
        line-height: 1.15;
    }
    .hero-content h2 {
        font-size: 1.25em;
        margin-bottom: 16px;
    }
    .hero-bio {
        font-size: 0.95em;
        margin-bottom: 22px;
    }
    .skills-matrix-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .skill-category-card {
        padding: 20px 16px;
    }
    .live-projects-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .all-apps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .arch-modal-card {
        padding: 22px 16px;
        border-radius: 18px;
    }
    .arch-flow-diagram {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 18px 14px;
    }
    .flow-node {
        min-width: unset;
        width: 100%;
        padding: 12px 14px;
    }
    .flow-arrow {
        transform: rotate(90deg);
        text-align: center;
        margin: -2px 0;
    }
}

@media (max-width: 640px) {
    .section-title { font-size: 1.9em; }
    .section-subtitle { font-size: 0.9em; margin-bottom: 22px; }
    .tech-avatar-wrapper { width: 250px; height: 285px; }
    .tech-avatar-card { width: 220px; height: 250px; }
    .tech-rotating-ring { width: 250px; height: 250px; }
    .glass-card { padding: 22px 16px; border-radius: 16px; }
    .timeline-item { flex-direction: column; gap: 10px; }
    .company-logo { width: 56px; height: 56px; font-size: 1em; border-radius: 12px; }
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .btn { width: 100%; justify-content: center; }
    .header-buttons {
        flex-direction: column;
        width: 100%;
        gap: 9px;
    }
    .contact-container { padding: 24px 16px; }
    .contact-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ==========================================
   TESTIMONIALS & RECOMMENDATIONS
   ========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 35px;
}

.testimonial-card {
    background: rgba(13, 20, 36, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: 12px;
    right: 22px;
    font-size: 5.5em;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.1);
}

.testimonial-card .stars {
    color: #fbbf24;
    font-size: 1.15em;
    letter-spacing: 3px;
    margin-bottom: 14px;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.5);
}

.testimonial-quote {
    color: #cbd5e1;
    font-size: 0.95em;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 22px;
}

.client-info strong {
    display: block;
    color: var(--text-main);
    font-size: 1.05em;
    font-weight: 700;
}

.client-info span {
    display: block;
    color: var(--primary);
    font-size: 0.84em;
    margin-top: 3px;
}

/* ==========================================
   FLOATING QUICK CONNECT WIDGET
   ========================================== */
.quick-connect-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.quick-connect-pill {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-highlight);
    border-radius: 30px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-size: 0.88em;
    cursor: pointer;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-connect-pill:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 14px 40px var(--card-shadow), 0 0 25px var(--primary-glow);
}

.quick-connect-card {
    background: var(--bg-card);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-highlight);
    border-radius: 20px;
    padding: 22px;
    width: 320px;
    box-shadow: 0 20px 50px var(--card-shadow);
}

.quick-connect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-quick {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1em;
    cursor: pointer;
    line-height: 1;
}

.btn-close-quick:hover {
    color: #ffffff;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.86em;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.quick-btn.whatsapp {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.3);
    color: #4ade80;
}

.quick-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateX(4px);
}

.quick-btn.email {
    background: rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.25);
    color: var(--primary);
}

.quick-btn.email:hover {
    background: rgba(0, 240, 255, 0.2);
    transform: translateX(4px);
}

.quick-btn.resume {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.25);
    color: #c084fc;
}

.quick-btn.resume:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: translateX(4px);
}

@media (max-width: 480px) {
    nav {
        padding: 10px 14px;
    }
    .brand-pill {
        display: none;
    }
    .brand-logo {
        font-size: 0.9em;
        gap: 6px;
    }
    .theme-accent-picker {
        padding: 4px 8px;
        gap: 5px;
    }
    .theme-dot {
        width: 12px;
        height: 12px;
    }
    .hero-content h1 {
        font-size: 2.1em;
    }
    .hero-content h2 {
        font-size: 1.15em;
    }
    .tech-avatar-wrapper {
        width: 220px;
        height: 250px;
    }
    .tech-avatar-card {
        width: 195px;
        height: 220px;
    }
    .tech-rotating-ring {
        width: 220px;
        height: 220px;
    }
    .section-title {
        font-size: 1.75em;
    }
    .live-card-body {
        padding: 18px 14px;
    }
    .live-card-footer {
        flex-direction: column;
        gap: 8px;
    }
    .live-card-footer .live-btn,
    .live-card-footer .live-btn-outline {
        width: 100%;
        justify-content: center;
    }
    .skill-tag {
        padding: 5px 11px;
        font-size: 0.82em;
    }
    .quick-connect-widget {
        bottom: 16px;
        right: 16px;
        left: 16px;
        align-items: stretch;
    }
    .quick-connect-card {
        width: 100%;
    }
}

/* ==========================================
   THEME ACCENT SWITCHER
   ========================================== */
.theme-accent-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 15, 28, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.theme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    outline: none;
    position: relative;
}

.theme-dot.cyan { background: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.theme-dot.emerald { background: #00ff88; box-shadow: 0 0 10px rgba(0, 255, 136, 0.5); }
.theme-dot.violet { background: #c084fc; box-shadow: 0 0 10px rgba(192, 132, 252, 0.5); }
.theme-dot.amber { background: #fbbf24; box-shadow: 0 0 10px rgba(251, 191, 36, 0.5); }

.theme-dot.active {
    transform: scale(1.3);
    border-color: #ffffff;
    box-shadow: 0 0 14px currentColor, 0 0 4px #ffffff;
}

.theme-dot:hover:not(.active) {
    transform: scale(1.2);
}

/* Theme Dynamic CSS Variables */
[data-theme="emerald"] {
    --primary: #00ff88 !important;
    --primary-glow: rgba(0, 255, 136, 0.35) !important;
    --primary-dim: rgba(0, 255, 136, 0.1) !important;
}

[data-theme="violet"] {
    --primary: #c084fc !important;
    --primary-glow: rgba(192, 132, 252, 0.35) !important;
    --primary-dim: rgba(192, 132, 252, 0.1) !important;
}

[data-theme="amber"] {
    --primary: #fbbf24 !important;
    --primary-glow: rgba(251, 191, 36, 0.35) !important;
    --primary-dim: rgba(251, 191, 36, 0.1) !important;
}

/* ==========================================
   THEME MODE TOGGLE & LIGHT OVERRIDES
   ========================================== */
html[data-theme-mode="light"] body {
    background-color: var(--bg-dark);
    background: var(--bg-body-grad) !important;
    color: var(--text-main) !important;
}

html[data-theme-mode="light"] body::before,
html[data-theme-mode="light"] body::after {
    opacity: 0.25;
}

html[data-theme-mode="light"] .live-card::before {
    opacity: 0.35;
}

html[data-theme-mode="light"] .btn-outline:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
}

html[data-theme-mode="light"] .btn-linkedin:hover {
    background: #0a66c2 !important;
    color: #ffffff !important;
    border-color: #0a66c2 !important;
}

html[data-theme-mode="light"] .btn-github:hover {
    background: #0f172a !important;
    color: #ffffff !important;
}

html[data-theme-mode="light"] nav ul.show {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.theme-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-main);
    font-size: 0.82em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    user-select: none;
}

.theme-mode-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

@media (max-width: 640px) {
    .theme-mode-toggle {
        padding: 5px 9px;
        gap: 0;
    }
    .theme-mode-toggle .theme-mode-text {
        display: none;
    }
}

.theme-mode-icon {
    font-size: 1.1em;
    line-height: 1;
}

/* ==========================================
   SYSTEM DESIGN & ARCHITECTURE MODAL
   ========================================== */
.btn-arch-view {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.84em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-arch-view:hover {
    background: rgba(0, 240, 255, 0.18);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.arch-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 6, 12, 0.92);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.arch-modal-card {
    background: radial-gradient(ellipse at top, rgba(0, 240, 255, 0.08) 0%, rgba(10, 16, 29, 0.98) 75%);
    border: 1px solid var(--primary);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px var(--primary-glow);
    border-radius: 24px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 34px;
    animation: authPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.arch-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.btn-close-arch {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-arch:hover {
    background: var(--danger);
    border-color: var(--danger);
    transform: rotate(90deg);
}

.arch-flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(5, 8, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 26px 20px;
    overflow-x: auto;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.flow-node {
    background: rgba(18, 28, 48, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
    flex-shrink: 0;
    min-width: 150px;
    transition: all 0.3s ease;
}

.flow-node:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.flow-node h5 {
    color: var(--primary);
    font-size: 0.92em;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.flow-node p {
    color: #94a3b8;
    font-size: 0.78em;
    margin: 0;
    line-height: 1.45;
}

.flow-arrow {
    color: var(--primary);
    font-size: 1.4em;
    flex-shrink: 0;
    opacity: 0.85;
    text-shadow: 0 0 10px var(--primary-glow);
}

.arch-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 16px;
}

.spec-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px;
    transition: all 0.25s ease;
}

.spec-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 240, 255, 0.3);
}

.spec-box span {
    display: block;
    font-size: 0.74em;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.spec-box strong {
    display: block;
    font-size: 1.05em;
    color: #ffffff;
    margin-top: 5px;
}



html[data-theme-mode="light"] .arch-modal-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme-mode="light"] .arch-modal-header h3 {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .arch-modal-header p {
    color: #64748b !important;
}

html[data-theme-mode="light"] .arch-flow-diagram {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
}

html[data-theme-mode="light"] .flow-node {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme-mode="light"] .flow-node p {
    color: #475569 !important;
}

html[data-theme-mode="light"] .spec-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme-mode="light"] .spec-box strong {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .btn-close-arch {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .modal-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

html[data-theme-mode="light"] .modal-card h3 {
    color: #0f172a !important;
}

html[data-theme-mode="light"] .contact-form input,
html[data-theme-mode="light"] .contact-form textarea {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme-mode="light"] .app-catalog-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

html[data-theme-mode="light"] .app-catalog-card:hover {
    background: #ffffff !important;
    border-color: var(--primary) !important;
}

html[data-theme-mode="light"] .live-badge {
    background: rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #059669 !important;
    box-shadow: none !important;
}

html[data-theme-mode="light"] .live-btn-outline {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* ==========================================
   THEME & SETTINGS MODAL STYLES
   ========================================== */
.settings-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.settings-trigger-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--primary-glow);
}

.theme-settings-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.theme-settings-overlay.show {
    display: flex;
    animation: authPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.theme-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    width: 100%;
    max-width: 440px;
    padding: 26px;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
}

.theme-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-glass);
}

.theme-settings-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-settings-icon {
    font-size: 1.4em;
    line-height: 1;
}

.theme-settings-header h3 {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.theme-settings-header p {
    font-size: 0.82em;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.btn-close-settings {
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-close-settings:hover {
    color: var(--text-main);
    border-color: var(--primary);
}

.theme-settings-section {
    margin-bottom: 20px;
}

.theme-section-label {
    display: block;
    font-size: 0.82em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.theme-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.theme-mode-card {
    background: var(--chip-bg);
    border: 1.5px solid var(--chip-border);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.theme-mode-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-mode-card.active {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 15px var(--primary-glow);
}

html[data-theme-mode="light"] .theme-mode-card.active {
    background: rgba(2, 132, 199, 0.08);
}

.theme-mode-card .mode-icon {
    font-size: 1.4em;
}

.theme-mode-card .mode-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.theme-mode-card .mode-info strong {
    font-size: 0.92em;
    color: var(--text-main);
}

.theme-mode-card .mode-info span {
    font-size: 0.72em;
    color: var(--text-muted);
}

.theme-mode-card .mode-check {
    font-size: 0.88em;
    color: var(--primary);
    display: none;
    font-weight: 800;
}

.theme-mode-card.active .mode-check {
    display: block;
}

.theme-accent-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.theme-accent-card {
    background: var(--chip-bg);
    border: 1.5px solid var(--chip-border);
    border-radius: 12px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.theme-accent-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.theme-accent-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.accent-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.accent-swatch.cyan { background: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.6); }
.accent-swatch.emerald { background: #10b981; box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
.accent-swatch.violet { background: #8b5cf6; box-shadow: 0 0 10px rgba(139, 92, 246, 0.6); }
.accent-swatch.amber { background: #f59e0b; box-shadow: 0 0 10px rgba(245, 158, 11, 0.6); }

.accent-name {
    font-size: 0.78em;
    font-weight: 600;
}

.theme-settings-footer {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    justify-content: flex-end;
}

.btn-settings-done {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #070b14;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    padding: 9px 24px;
    font-size: 0.88em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-settings-done:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px var(--secondary-glow);
}
