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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #eff6ff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0b1324 100%);
    color: white;
    padding: 20px 0 24px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(1000px 200px at 50% -200px, rgba(255,255,255,0.08), rgba(255,255,255,0) 60%),
                radial-gradient(600px 200px at 20% -120px, rgba(99,102,241,0.25), rgba(99,102,241,0) 70%),
                radial-gradient(600px 200px at 80% -120px, rgba(34,197,94,0.2), rgba(34,197,94,0) 70%);
    opacity: 1;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* identity panel removed */

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 20px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: var(--shadow-lg);
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.025em;
}

.title {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 6px;
}

.pronunciation {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.voice-btn {
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.voice-btn:hover {
    background: rgba(255,255,255,0.2);
}

.badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cert-badges {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-badges img {
    height: 24px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

/* Sidebar layout */
.content-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
}

.left-sidebar {
    position: sticky;
    top: 16px;
    height: fit-content;
}

.quick-nav {
    display: grid;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.btn-secondary {
    background: var(--bg-accent);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
}

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

.section-panel { display: none; }
.section-panel.active { display: block; }

.section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 10px;
}

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

.experience-summary {
    background: var(--bg-accent);
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 40px;
}

.experience-summary h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.experience-summary p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.education-list {
    display: grid;
    gap: 16px;
}

.education-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.edu-link {
    color: var(--text-primary);
    text-decoration: none;
}

.edu-logo {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 8px;
    border-radius: 2px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.skill-category {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    font-size: 1.2rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.skill-item:hover {
    background: var(--bg-accent);
    transform: scale(1.05);
}

.skill-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Demos Section */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.demo-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.demo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.demo-header {
    background: var(--bg-accent);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.demo-header:hover {
    background: var(--bg-secondary);
}

.demo-content {
    padding: 20px;
    display: none;
}

.demo-content.active {
    display: block;
}

.demo-links {
    list-style: none;
}

.demo-links li {
    margin-bottom: 10px;
}

.demo-links a {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.demo-links a:hover {
    background: var(--bg-accent);
    color: var(--secondary-color);
}

.demo-links a::before {
    content: '•';
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 18px;
    }
    
    .content-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 60px 0 40px;
    }

    .name {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.1rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

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

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

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

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

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.skill-category, .demo-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.skill-category.visible, .demo-card.visible {
    opacity: 1;
    transform: translateY(0);
}
