/* ========================================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   ======================================== */

/* ===== DARK THEME (default) ===== */
:root,
[data-theme="dark"] {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --primary-glow: rgba(108, 99, 255, 0.3);
    --accent: #FF6584;
    --accent-dark: #E5526E;

    --bg-dark: #0a0a1a;
    --bg-section: #0f0f2a;
    --bg-card: #16163a;
    --bg-card-hover: #1e1e4a;

    --text-primary: #ffffff;
    --text-secondary: #b0b0d0;
    --text-muted: #6e6e9a;

    --border: rgba(108, 99, 255, 0.15);
    --border-hover: rgba(108, 99, 255, 0.4);

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);

    --navbar-bg: rgba(10, 10, 26, 0.95);
    --mobile-nav-bg: rgba(10, 10, 26, 0.98);
    --form-label-bg: var(--bg-card);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50%;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', serif;

    --container-width: 1200px;
    --navbar-height: 70px;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-dark: #f5f5ff;
    --bg-section: #eeeef8;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0ff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #7a7a9a;

    --border: rgba(108, 99, 255, 0.15);
    --border-hover: rgba(108, 99, 255, 0.35);

    --shadow-sm: 0 2px 10px rgba(108, 99, 255, 0.08);
    --shadow-md: 0 8px 30px rgba(108, 99, 255, 0.1);
    --shadow-lg: 0 20px 60px rgba(108, 99, 255, 0.12);
    --shadow-glow: 0 0 30px rgba(108, 99, 255, 0.1);

    --navbar-bg: rgba(245, 245, 255, 0.95);
    --mobile-nav-bg: rgba(245, 245, 255, 0.98);
    --form-label-bg: var(--bg-card);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.4s ease, color 0.4s ease;
}

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--text-primary);
}

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

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

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(108, 99, 255, 0.1);
    transform: rotate(15deg);
}

.theme-toggle i {
    transition: transform 0.4s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    background: var(--bg-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(255, 101, 132, 0.05) 0%, transparent 50%);
    animation: heroGradient 15s ease-in-out infinite alternate;
}

@keyframes heroGradient {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 5%) rotate(3deg); }
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius-full);
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

[data-theme="light"] .particle {
    opacity: 0;
    animation: particleFloatLight linear infinite;
}

@keyframes particleFloatLight {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.35; }
    90% { opacity: 0.35; }
    100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

/* Hero Profile Photo */
.hero-avatar {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 30px rgba(108, 99, 255, 0.25), 0 0 60px rgba(108, 99, 255, 0.1);
    position: relative;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transform: scale(1.3);
    transition: transform 0.5s ease;
}

.hero-avatar:hover img {
    transform: scale(1.4);
}

.hero-avatar::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
    z-index: -1;
    animation: avatarGlow 4s ease-in-out infinite alternate;
}

@keyframes avatarGlow {
    0% { opacity: 0.5; filter: blur(8px); }
    100% { opacity: 0.8; filter: blur(12px); }
}

.hero-greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Hero Headline */
.hero-headline {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.headline-divider {
    color: var(--primary);
    font-weight: 300;
    margin: 0 6px;
}

.hero-title {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2em;
}

.typewriter {
    color: var(--primary-light);
    font-weight: 600;
}

[data-theme="light"] .typewriter {
    color: var(--primary);
}

.cursor {
    color: var(--primary);
    animation: blink 1s infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.8;
}


.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   SECTION COMMON STYLES
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
    transition: background 0.4s ease;
}

.section:nth-child(even) {
    background: var(--bg-section);
}

.section-title {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 12px;
}

.section-title span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 60px;
}

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

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-card), var(--primary-dark));
    border: 2px solid var(--border);
    transition: var(--transition);
}

.about-image:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transform: scale(1.2);
    transition: transform 0.5s ease;
}

.about-image:hover .about-photo {
    transform: scale(1.28);
}

.about-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.about-content h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 30px 0;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlight i {
    color: var(--primary);
    font-size: 0.85rem;
}

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

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: var(--transition);
}

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

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.skill-card h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.skill-bar {
    height: 6px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   CERTIFICATIONS SECTION
   ======================================== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
}

.cert-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.cert-card:hover::before {
    opacity: 1;
}

.cert-badge-ribbon {
    position: absolute;
    top: 16px;
    right: -32px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(255, 101, 132, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
}

.cert-icon::after {
    content: '✓';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--bg-card);
}

.cert-card h4 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.cert-issuer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}

.cert-issuer i {
    font-size: 0.8rem;
}

.cert-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
    flex: 1;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.cert-tags span {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(108, 99, 255, 0.08);
    color: var(--primary-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cert-tags span:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="light"] .cert-tags span {
    color: var(--primary-dark);
}

.cert-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.cert-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 12px;
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
}

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

/* Project Metrics Banner */
.projects-metrics {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    padding: 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.projects-metrics:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.metric {
    text-align: center;
    min-width: 100px;
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

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

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.project-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card), rgba(108, 99, 255, 0.05));
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.project-tag {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
}

.project-tag.highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.project-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-details {
    margin-bottom: 24px;
}

.project-details li {
    display: flex;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.project-details li i {
    color: var(--primary);
    margin-top: 5px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(108, 99, 255, 0.08);
    color: var(--primary-light);
    border: 1px solid var(--border);
}

[data-theme="light"] .project-tech span {
    color: var(--primary);
}

/* Problem / Solution / Impact Blocks */
.project-psi {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.psi-block {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--border);
}

.psi-block h5 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psi-block h5 i {
    font-size: 0.85rem;
}

.psi-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psi-block ul li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.psi-block ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 700;
}

/* Problem */
.psi-block.problem {
    background: rgba(239, 68, 68, 0.06);
    border-left-color: #EF4444;
}

.psi-block.problem h5 {
    color: #EF4444;
}

[data-theme="light"] .psi-block.problem {
    background: rgba(239, 68, 68, 0.05);
}

/* Solution */
.psi-block.solution {
    background: rgba(59, 130, 246, 0.06);
    border-left-color: #3B82F6;
}

.psi-block.solution h5 {
    color: #3B82F6;
}

[data-theme="light"] .psi-block.solution {
    background: rgba(59, 130, 246, 0.05);
}

/* Impact */
.psi-block.impact {
    background: rgba(34, 197, 94, 0.06);
    border-left-color: #22c55e;
}

.psi-block.impact h5 {
    color: #22c55e;
}

[data-theme="light"] .psi-block.impact {
    background: rgba(34, 197, 94, 0.05);
}

.psi-block ul li strong {
    color: var(--text-primary);
}

.project-impact {
    margin-top: 20px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.08);
    border-left: 3px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

[data-theme="light"] .project-impact {
    color: var(--primary);
}

.project-period {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.project-period i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* ========================================
   EXPERIENCE / TIMELINE
   ======================================== */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

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

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    background: var(--primary);
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 3px var(--primary-glow);
    z-index: 1;
    transition: var(--transition);
}

.timeline-dot.active-dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 101, 132, 0.3), 0 0 12px rgba(255, 101, 132, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(255, 101, 132, 0.3), 0 0 12px rgba(255, 101, 132, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(255, 101, 132, 0.15), 0 0 20px rgba(255, 101, 132, 0.4); }
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
    transform: translateX(4px);
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary);
    margin-bottom: 12px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.timeline-content h4 {
    font-size: 0.95rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 12px;
}

[data-theme="light"] .timeline-content h4 {
    color: var(--primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-content ul {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
    padding-left: 18px;
    margin: 8px 0 0;
}

.timeline-content ul li { margin-bottom: 4px; }

.company-header .timeline-content {
    border-left: 3px solid var(--primary);
}

.company-header .timeline-content h3 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ========================================
   EDUCATION SECTION
   ======================================== */
.edu-status-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 101, 132, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 101, 132, 0.25);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: var(--transition);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    left: 14px;
    font-size: 0.78rem;
    color: var(--primary);
    background: var(--form-label-bg);
    padding: 0 6px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 40px 0;
    transition: background 0.4s ease;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
}

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

.footer-content > p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* ========================================
   ANIMATIONS
   ======================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: var(--mobile-nav-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

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

    .about-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

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

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

    .section {
        padding: 70px 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .contact-form {
        padding: 24px;
    }
}

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

/* GitHub Filter Tabs */
.github-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.github-filter-btn {
    padding: 8px 22px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-main);
}

.github-filter-btn:hover,
.github-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Profile Banner */
.github-profile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    margin-bottom: 40px;
}

.github-profile-info {
    display: flex;
    align-items: center;
    gap: 18px;
}

.github-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #333, #555);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    flex-shrink: 0;
}

[data-theme="light"] .github-profile-avatar {
    background: linear-gradient(135deg, #24292e, #444d56);
}

.github-profile-info h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.github-profile-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* Section Labels */
.github-section-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.github-section-label i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* GitHub Grid */
.github-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* GitHub Cards */
.github-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.github-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

.github-card.forked {
    opacity: 0.85;
}

.github-card.forked:hover {
    opacity: 1;
}

.github-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.github-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--primary);
}

.github-card.forked .github-card-icon {
    background: rgba(108, 99, 255, 0.06);
    color: var(--text-muted);
}

/* Language badges */
.github-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.github-lang.python .lang-dot { background: #3572A5; }
.github-lang.css .lang-dot { background: #563d7c; }
.github-lang.html .lang-dot { background: #e34c26; }
.github-lang.shell .lang-dot { background: #89e051; }
.github-lang.javascript .lang-dot { background: #f1e05a; }

.github-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.github-card h4 a {
    color: var(--primary);
    transition: var(--transition);
}

.github-card h4 a:hover {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

[data-theme="light"] .github-card h4 a:hover {
    color: var(--primary-dark);
}

.github-card > p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.github-card-meta {
    margin-bottom: 14px;
}

.github-card-meta span {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.github-card-meta i {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Card Stats Row */
.github-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.github-card-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.github-card-stats i {
    font-size: 0.7rem;
    color: var(--primary);
}

/* Loading & Error States */
.github-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.github-loading i {
    margin-right: 8px;
    color: var(--primary);
}

.github-error {
    color: var(--accent);
}

.github-error a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Card Action Links */
.github-card-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(108, 99, 255, 0.08);
    color: var(--primary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.github-link:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.github-link.live {
    background: rgba(34, 197, 94, 0.08);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.github-link.live:hover {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* Responsive */
@media (max-width: 768px) {
    .github-grid {
        grid-template-columns: 1fr;
    }

    .github-profile-banner {
        flex-direction: column;
        text-align: center;
    }

    .github-profile-info {
        flex-direction: column;
    }

    .github-filter-tabs {
        justify-content: center;
    }

    .projects-metrics {
        gap: 24px;
        padding: 20px 24px;
    }

    .metric-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ========================================
   CHATBOT INTERACTIVE — Highlight & Effects
   ======================================== */

/* Section highlight pulse — triggered by chatbot navigation */
@keyframes chatbotHighlightPulse {
    0% {
        box-shadow: inset 0 0 0 0 rgba(108, 99, 255, 0);
        outline: 3px solid transparent;
        outline-offset: -3px;
    }
    25% {
        box-shadow: inset 0 0 60px rgba(108, 99, 255, 0.08);
        outline: 3px solid var(--primary);
        outline-offset: -3px;
    }
    75% {
        box-shadow: inset 0 0 60px rgba(108, 99, 255, 0.06);
        outline: 3px solid var(--primary);
        outline-offset: -3px;
    }
    100% {
        box-shadow: inset 0 0 0 0 rgba(108, 99, 255, 0);
        outline: 3px solid transparent;
        outline-offset: -3px;
    }
}

.chatbot-highlight {
    animation: chatbotHighlightPulse 2s ease-in-out forwards;
    position: relative;
}

.chatbot-highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.04), transparent, rgba(255, 101, 132, 0.03));
    pointer-events: none;
    animation: highlightOverlayFade 2s ease-in-out forwards;
    z-index: 0;
}

@keyframes highlightOverlayFade {
    0% { opacity: 0; }
    30% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

/* Color transition flash */
.chatbot-color-transition {
    animation: colorFlash 0.6s ease;
}

@keyframes colorFlash {
    0% { filter: brightness(1); }
    30% { filter: brightness(1.05); }
    60% { filter: brightness(1.02); }
    100% { filter: brightness(1); }
}

/* Bounce animation — for element emphasis */
@keyframes chatbotBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

.chatbot-bounce {
    animation: chatbotBounce 0.6s ease !important;
}

/* Action success indicator on chatbot header */
@keyframes actionPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ========================================
   SELECTION
   ======================================== */
::selection {
    background: var(--primary);
    color: white;
}
