/* 
=========================================
   VARIABLES & THEME SETUP
=========================================
*/
:root {
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-primary: var(--font-body);

    /* Theme - Dark (Standard) */
    --bg-main: #09090b;
    --bg-secondary: #121217;
    --bg-alt: var(--bg-secondary);
    --bg-glass: rgba(18, 18, 23, 0.7);
    --text-high: #ffffff;
    --text-med: #a1a1aa;
    --text-low: #71717a;
    --text-primary: var(--text-high);
    --text-secondary: var(--text-med);
    --text-muted: var(--text-low);
    --accent: #38bdf8;
    --accent-rgb: 56, 189, 248;
    --accent-glow: rgba(56, 189, 248, 0.3);
    --accent-dark: #0284c7;
    --border: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.7);

    /* Global Settings */
    --section-gap: 120px;
    --section-padding: 120px 0;
    --container-width: 1200px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --transition-speed: 0.3s;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-mode {
    --bg-main: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --text-high: #0f172a;
    --text-med: #475569;
    --text-low: #94a3b8;
    --text-primary: var(--text-high);
    --text-secondary: var(--text-med);
    --text-muted: var(--text-low);
    --accent: #0284c7;
    --accent-rgb: 2, 132, 199;
    --accent-glow: rgba(2, 132, 199, 0.2);
    --border: rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px -12px rgba(0, 0, 0, 0.1);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-med);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

/* Premium Animated Background Layer */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-main);
}

.bg-mesh::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 10% 20%, var(--accent-glow) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    animation: rotateMesh 30s linear infinite;
}

@keyframes rotateMesh {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*
=========================================
   RESET & BASE STYLES
=========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-med);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-high);
    line-height: 1.2;
}

/* Premium Animated Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.alt-bg {
    background-color: var(--bg-alt);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* 
=========================================
   NAVIGATION
=========================================
*/
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 24px;
    transition: var(--transition);
}

.navbar.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-high);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-med);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.nav-controls {
    display: flex;
    gap: 12px;
}

.hamburger {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
}

.bar {
    background: var(--text-high);
    border-radius: 999px;
    display: block;
    height: 2px;
    transition: var(--transition);
    width: 24px;
}

.control-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-high);
    width: 44px;
    height: 44px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.control-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* 
=========================================
   HERO SECTION
=========================================
*/
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 80px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 32px;
    border: 1px solid var(--accent);
}

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

#hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 32px;
    color: var(--text-high);
}

#hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-med);
    max-width: 650px;
    margin-bottom: 48px;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 80px;
}

.btn {
    padding: 16px 36px;
    border-radius: 16px;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--accent);
    color: #000;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px var(--accent-glow);
}

.btn-glass {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-high);
    backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: var(--bg-secondary);
    transform: translateY(-4px);
    border-color: var(--text-med);
}

.hero-stats {
    display: flex;
    gap: 56px;
}

.stat-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-high);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-low);
    font-weight: 500;
}

.hero-img-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 32px;
    position: absolute;
    box-shadow: var(--shadow-lg);
}

.main-visual {
    width: 360px;
    height: 460px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-visual img {
    width: 100%;
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.decor-1 {
    width: 240px;
    height: 240px;
    top: -20px;
    left: -40px;
    z-index: 1;
    transform: rotate(-12deg);
    opacity: 0.4;
}

.decor-2 {
    width: 180px;
    height: 180px;
    bottom: -20px;
    right: -40px;
    z-index: 1;
    transform: rotate(18deg);
    opacity: 0.4;
}

/* 
=========================================
   REUSABLE SECTION STYLES
=========================================
*/
.section {
    padding: var(--section-gap) 0;
}

.section-head {
    text-align: center;
    margin-bottom: 80px;
}

.section-head h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-high);
    margin-bottom: 16px;
}

.section-head p {
    color: var(--text-low);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 
=========================================
   SKILLS SECTION
=========================================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.skill-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: var(--bg-main);
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-high);
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-med);
}

body.light-mode .skill-tag {
    background: rgba(0, 0, 0, 0.05);
}

/* 
=========================================
   ABOUT SECTION
=========================================
*/
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

/* 
=========================================
   SKILLS SECTION
=========================================
*/
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 30px;
}

.skill-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    padding: 20px 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, border-color 0.3s;
}

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

.skill-card i {
    font-size: 2rem;
    color: var(--accent);
}

/* 
=========================================
   PROJECTS SECTION
=========================================
*/

/* Filter Buttons */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 5px 20px rgba(var(--accent-rgb), 0.4);
}

/* Project Categories */
.project-category {
    margin-bottom: 80px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-category.hidden {
    display: none;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
}

.category-header h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.category-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Gaming Category Styles */
.gaming-category .category-header h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.3));
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
    .bg-mesh::after,
    body::before {
        animation: none !important;
    }

    .glass-card,
    .navbar,
    .settings-modal,
    .voice-panel,
    .vault-item,
    .model-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
}

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

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent);
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.5);
}

.project-visual {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-main));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-visual i {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.8;
    transition: var(--transition);
}

.project-card:hover .project-visual i { transform: scale(1.1) rotate(5deg); opacity: 1; }

.project-info {
    padding: 32px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--text-high);
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.95rem;
    color: var(--text-low);
    margin-bottom: 24px;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-med);
}

/*
=========================================
   EXPERIENCE SECTION
=========================================
*/
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    padding-bottom: 50px;
}

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

.timeline-dot {
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-color);
    /* fake border effect */
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 15px;
}

.timeline-content ul li {
    list-style: disc;
    margin-left: 15px;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

/*
=========================================
   SERVICES SECTION
=========================================
*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.service-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
}

/*
=========================================
   CAREER OBJECTIVE
=========================================
*/
.objective-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--card-bg);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    padding: 40px;
    border-radius: 10px;
    border-left: 5px solid var(--accent);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.objective-box p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-style: italic;
}

/*
=========================================
   CONTACT SECTION
=========================================
*/
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 40px;
    border: 1px solid var(--border);
}

.contact-info h3 {
    font-size: 2.5rem;
    color: var(--text-high);
    margin-bottom: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.method-icon {
    width: 60px; height: 60px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-high);
}

.form-input {
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 14px;
    color: var(--text-high);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/*
=========================================
   FOOTER
=========================================
*/
.main-footer {
    padding: 100px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .logo { margin-bottom: 20px; display: block; }
.footer-brand p { color: var(--text-low); max-width: 300px; margin-bottom: 30px; }

.social-links { display: flex; gap: 16px; }
.social-links a {
    width: 44px; height: 44px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-med);
    transition: var(--transition);
}

.social-links a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-nav h4 { color: var(--text-high); margin-bottom: 24px; }
.footer-nav a { display: block; color: var(--text-low); margin-bottom: 12px; }

.footer-legal { text-align: right; }
.footer-legal p { color: var(--text-low); margin-bottom: 10px; }
.admin-link { font-size: 0.8rem; color: var(--text-low); opacity: 0.5; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; border: 3px solid var(--bg-main); }
::-webkit-scrollbar-thumb:hover { background: var(--text-low); }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-content, .about-grid, .contact-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 3.5rem; }
    .hero-visual { display: none; }
    #hero p { margin: 0 auto 40px; }
    .cta-buttons, .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
    .navbar { width: 95%; top: 10px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .social-links { justify-content: center; }
}
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    /* Ensure theme toggle remains visible */
    .navbar .nav-controls #theme-toggle {
        display: block;
    }

    /* Smaller fonts for tablets */
    #hero h1 {
        font-size: 2.5rem;
    }

    #hero h2 {
        font-size: 1.1rem;
    }

    #hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    /* Adjust grids for mobile */
    .skills-grid,
    .projects-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        padding-left: 25px;
    }
}

@media (max-width: 480px) {

    /* drastic font reduction for phones */
    html {
        font-size: 14px;
    }

    /* scaling down base font size */

    #hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-img-container {
        width: 250px;
        height: 250px;
    }

    #hero h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    #hero h2 {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .greeting {
        font-size: 0.9rem;
    }

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

    .btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }

    .about-image {
        height: 200px;
    }

    .container {
        padding: 0 20px;
    }

    /* Adjust cards padding */
    .project-card,
    .skill-card,
    .service-card {
        padding: 20px;
    }
}

/* 
=========================================
   ANIMATIONS
=========================================
*/
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 
=========================================
   AVATAR / ROBOT STYLES
=========================================
*/
#avatar-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 200px;
    z-index: 9999;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s;
}

#avatar-container:hover {
    transform: scale(1.05);
}

.avatar-chat-window {
    position: absolute;
    bottom: 120%;
    right: 0;
    width: 300px;
    height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
    direction: rtl;
    /* For Arabic */
}

.chat-header {
    background-color: var(--accent);
    color: white;
    padding: 10px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-close {
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot {
    background-color: var(--bg-alt);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-right-radius: 2px;
}

.message.user {
    background-color: var(--accent);
    color: white;
    align-self: flex-end;
    border-bottom-left-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    background-color: var(--bg-alt);
}

.chat-input-area input {
    flex: 1;
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    outline: none;
    font-family: inherit;
}

.chat-input-area button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* Simple bubble for initial greeting only */
.avatar-bubble {
    position: absolute;
    bottom: 110%;
    right: 0;
    left: -100px;
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--accent);
    padding: 15px;
    border-radius: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    direction: rtl;
    line-height: 1.5;
    pointer-events: none;
    text-align: right;
}

/* Arrow for the bubble */
.avatar-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 60px;
    /* Align with robot head roughly */
    border-width: 10px 10px 0;
    border-style: solid;
    border-color: var(--accent) transparent;
}

.pop-in {
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    from {
        transform: scale(0) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.pulse-anim {
    animation: pulse 1.5s infinite;
    background-color: rgba(239, 68, 68, 0.1) !important;
    /* Slight red tint bg */
    border: 2px solid #ef4444 !important;
}

/* 
=========================================
   SETTINGS MODAL & BUTTON
=========================================
*/
#settings-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
}

#settings-btn:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 400px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.settings-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.settings-overlay.active {
    opacity: 1;
    visibility: visible;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.close-settings {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.close-settings:hover {
    color: var(--accent);
}

.setting-item {
    margin-bottom: 25px;
}

.setting-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Custom Google Translate Styling inside settings */
#google_translate_element {
    position: absolute;
    top: -9999px;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.language-picker-container {
    height: 220px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding: 30px 0;
    mask-image: linear-gradient(transparent, black 30%, black 70%, transparent);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    perspective: 1000px;
}

.language-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 60px 0;
    /* Add padding for wheel feel */
}

.lang-option {
    font-size: 1.1rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    padding: 12px 30px;
    border-radius: 40px;
    width: 80%;
    text-align: center;
    border: 1px solid transparent;
    transform-style: preserve-3d;
}

.lang-option:hover {
    color: var(--accent);
    transform: scale(1.1);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
}

.lang-option.active {
    color: var(--accent);
    font-weight: 700;
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--accent);
}

/* Force Google Translate UI off */
.goog-te-banner-frame.skiptranslate,
.goog-te-menu-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.settings-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

@keyframes wheelSpin {
    0% {
        transform: translateY(50px) rotateX(-90deg);
        opacity: 0;
    }

    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

.settings-modal.active .lang-option {
    animation: wheelSpin 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* Staggered animation for items */
.settings-modal.active .lang-option:nth-child(1) {
    animation-delay: 0.1s;
}

.settings-modal.active .lang-option:nth-child(2) {
    animation-delay: 0.15s;
}

.settings-modal.active .lang-option:nth-child(3) {
    animation-delay: 0.2s;
}

.settings-modal.active .lang-option:nth-child(4) {
    animation-delay: 0.25s;
}

.settings-modal.active .lang-option:nth-child(5) {
    animation-delay: 0.3s;
}

.settings-modal.active .lang-option:nth-child(6) {
    animation-delay: 0.35s;
}

.settings-modal.active .lang-option:nth-child(7) {
    animation-delay: 0.4s;
}

.settings-modal.active .lang-option:nth-child(8) {
    animation-delay: 0.45s;
}

.settings-modal.active .lang-option:nth-child(9) {
    animation-delay: 0.5s;
}

/* 
=========================================
   RASHID-AI VOICE ASSISTANT
=========================================
*/
/* Floating Toggle Button */
.voice-widget-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.voice-widget-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

.voice-widget-toggle i {
    font-size: 1.5rem;
    color: var(--accent);
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

/* Chat Panel */
.voice-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

/* Header */
.voice-header {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.voice-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.voice-status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
}

.voice-close {
    cursor: pointer;
    color: var(--text-secondary);
    transition: 0.3s;
}

.voice-close:hover {
    color: var(--accent);
}

/* Visualizer Area (Avatar Viewport) */
.visualizer-container {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#voice-visualizer {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    /* CSS-based fake waveform for simplicity, can be canvas if needed */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.wave-bar {
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
    animation: wave-anim 1s infinite ease-in-out;
}

.wave-bar:nth-child(1) {
    animation-delay: 0.0s;
}

.wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes wave-anim {

    0%,
    100% {
        height: 10px;
        opacity: 0.5;
    }

    50% {
        height: 40px;
        opacity: 1;
    }
}

/* Chat Body */
.voice-chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fade-in-up 0.3s ease;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 12px 12px 0 12px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent);
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer / Input */
.voice-footer {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.voice-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.voice-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
}

.voice-input:focus {
    background: rgba(255, 255, 255, 0.08);
}

.mic-btn {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.mic-btn.listening-active {
    color: #ef4444;
    animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.footer-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: 0.3s;
}

.footer-btn:hover {
    color: var(--accent);
}

/* Glow Ring used for voice activity indication */
.voice-glow-ring {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
}

.voice-glow-ring.active {
    opacity: 1;
    animation: expand-ring 2s infinite;
}

@keyframes expand-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    #hero h1 {
        font-size: 3rem;
    }

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

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

    .about-image {
        height: 300px;
    }

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

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-card {
        padding: 20px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    .voice-panel {
        width: 100%;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* =========================================
   PWA INSTALL BUTTON STYLES
   ========================================= */
.pwa-tag {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
}

.pwa-tag i {
    margin-left: 4px;
    font-size: 0.65rem;
}

.install-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.install-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4) !important;
}

.install-btn:disabled {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    cursor: default !important;
    opacity: 0.9;
}

.install-btn i {
    font-size: 0.9rem;
}

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* PWA Standalone Mode (when app is installed) */
body.pwa-standalone {
    /* Hide browser-specific UI elements */
}

body.pwa-standalone .navbar {
    padding-top: env(safe-area-inset-top, 0);
}

/* ============================================
   MY MODELS SECTION
   ============================================ */
.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.model-card {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.model-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.model-card .model-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.model-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-main);
}

.model-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.model-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.model-specs span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-section-toolbar,
.admin-delete-btn {
    display: none;
}

body.admin-section-editing .admin-section-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 18px;
}

.admin-section-btn,
.admin-delete-btn {
    align-items: center;
    border: 1px solid rgba(56, 189, 248, 0.45);
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    transition: var(--transition);
}

.admin-section-btn {
    background: var(--accent);
    border-radius: 10px;
    color: #020617;
    font-weight: 800;
    padding: 10px 16px;
}

body.admin-section-editing .admin-delete-btn {
    background: rgba(239, 68, 68, 0.95);
    border-color: rgba(248, 113, 113, 0.8);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    z-index: 5;
}

body.admin-section-editing .model-card,
body.admin-section-editing .vault-item {
    position: relative;
}

.admin-section-btn:hover,
.admin-delete-btn:hover {
    transform: translateY(-2px);
}

/* ============================================
   THE VAULT SECTION
   ============================================ */
.vault-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.vault-item {
    background: rgba(24, 24, 27, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vault-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-glow));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.vault-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.vault-item:hover::before {
    transform: scaleX(1);
}

.vault-item .vault-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.vault-item h3 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.vault-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.vault-count {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ============================================
   APPS SECTION
   ============================================ */
.projects-grid .project-card .project-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-glow));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 25px 0 12px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about-stats .stat-item {
    text-align: center;
}

.about-stats .stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.about-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Rashid COMMAND CENTER REDESIGN
   ============================================ */
:root {
    --command-bg: #06080d;
    --command-panel: rgba(11, 18, 32, 0.88);
    --command-panel-soft: rgba(15, 23, 42, 0.72);
    --command-line: rgba(148, 163, 184, 0.18);
    --command-green: #34d399;
}

body {
    background:
        radial-gradient(circle at 18% 14%, rgba(34, 211, 238, 0.12), transparent 34%),
        radial-gradient(circle at 84% 22%, rgba(52, 211, 153, 0.1), transparent 30%),
        linear-gradient(180deg, #06080d 0%, #0b1220 48%, #09090b 100%);
}

.bg-mesh {
    background:
        linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px),
        var(--command-bg);
    background-size: 64px 64px;
}

.bg-mesh::after {
    opacity: 0.42;
}

.navbar {
    max-width: min(1240px, calc(100% - 40px));
    background: rgba(6, 8, 13, 0.84);
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.logo {
    font-size: 1.18rem;
    letter-spacing: 0.08em;
}

.nav-links a {
    color: #cbd5e1;
}

#hero {
    min-height: 94vh;
    padding: 150px 0 70px;
}

.hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
    gap: 58px;
}

.badge {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.34);
    color: #67e8f9;
    letter-spacing: 0;
}

#hero h1 {
    font-size: clamp(3.25rem, 7vw, 6.7rem);
    letter-spacing: 0;
    max-width: 820px;
}

.hero-text > p.fade-in.delay-2:not(.command-copy) {
    display: none;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.62;
    pointer-events: none;
}

.social-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.legacy-projects-grid[hidden] {
    display: none !important;
}

#hero .command-copy {
    color: #cbd5e1;
    max-width: 720px;
}

.text-gradient {
    background: linear-gradient(135deg, #67e8f9 0%, #34d399 54%, #e0f2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.btn {
    border-radius: 12px;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #67e8f9, #34d399);
    color: #061018;
}

.btn-glass {
    background: rgba(15, 23, 42, 0.74);
    border-color: rgba(148, 163, 184, 0.2);
}

.hero-stats {
    background: rgba(11, 18, 32, 0.56);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    display: grid;
    gap: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 24px;
    max-width: 640px;
    overflow: hidden;
}

.hero-stats .stat {
    padding: 20px 22px;
}

.hero-stats .stat + .stat {
    border-left: 1px solid rgba(148, 163, 184, 0.14);
}

.stat-num {
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
}

.hero-visual {
    align-self: stretch;
}

.hero-visual .hero-img-wrapper {
    display: none;
}

.command-panel {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(6, 8, 13, 0.92)),
        linear-gradient(90deg, rgba(34, 211, 238, 0.16), rgba(52, 211, 153, 0.08));
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
    min-height: 520px;
    overflow: hidden;
    padding: 28px;
    position: relative;
}

.command-panel::before {
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    background:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
}

.command-panel-header,
.command-grid,
.command-feed {
    position: relative;
    z-index: 1;
}

.command-panel-header {
    align-items: center;
    color: #94a3b8;
    display: flex;
    font-size: 0.84rem;
    justify-content: space-between;
    text-transform: uppercase;
}

.command-panel-header div {
    align-items: center;
    display: flex;
    gap: 9px;
}

.system-dot {
    background: var(--command-green);
    border-radius: 999px;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
    display: inline-block;
    height: 9px;
    width: 9px;
}

.command-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 92px;
}

.command-metric {
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px;
    padding: 22px;
}

.command-metric span,
.command-feed span {
    color: #94a3b8;
    display: block;
    font-size: 0.86rem;
}

.command-metric strong {
    color: #f8fafc;
    display: block;
    font-size: 2rem;
    margin-top: 8px;
}

.command-feed {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    display: grid;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
}

.command-feed span::before {
    color: #34d399;
    content: ">";
    margin-right: 10px;
}

.section {
    padding: 96px 0;
}

.section-head {
    margin-bottom: 44px;
    text-align: left;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.section-head p {
    margin: 0;
    max-width: 720px;
}

.models-grid,
.vault-grid,
.projects-grid {
    gap: 18px;
}

.model-card,
.vault-item,
.project-card {
    background: var(--command-panel-soft);
    border-color: rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    box-shadow: none;
}

.model-card:hover,
.vault-item:hover,
.project-card:hover {
    border-color: rgba(103, 232, 249, 0.44);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

.model-card .model-icon,
.vault-item .vault-icon,
.projects-grid .project-card .project-icon {
    background: rgba(34, 211, 238, 0.12);
    color: #67e8f9;
}

.filter-group {
    justify-content: flex-start;
}

.filter-btn {
    border-color: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    color: #cbd5e1;
}

.filter-btn.active {
    background: #67e8f9;
    color: #061018;
}

@media (max-width: 920px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .command-panel {
        min-height: auto;
    }
}

@media (max-width: 640px) {
    #hero {
        padding-top: 120px;
    }

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

    .hero-stats .stat + .stat {
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.14);
    }

    .section-head {
        text-align: center;
    }
}
