@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

/* Color Variables and Theme Setup */
:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-glass: rgba(19, 27, 46, 0.7);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-color: #6366f1;
    --accent-secondary: #a855f7;
    --accent-glow: rgba(99, 102, 241, 0.2);
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --border-glass: rgba(99, 102, 241, 0.1);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --accent-color: #4f46e5;
    --accent-secondary: #7c3aed;
    --accent-glow: rgba(79, 70, 229, 0.1);
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --accent-gradient-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-glass);
    border-radius: 10px;
    border: 2px solid var(--bg-primary);
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* Background Gradients/Glow Effects */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(99, 102, 241, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.8;
}

.bg-glow-1 {
    top: -200px;
    right: -200px;
}

.bg-glow-2 {
    bottom: -200px;
    left: -200px;
}

/* Glassmorphism utility */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    transition: var(--hover-transition);
}

header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: var(--card-shadow);
}

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

.logo {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 26px;
    color: var(--accent-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 550;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--hover-transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--hover-transition);
    box-shadow: var(--card-shadow);
}

.theme-btn:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-btn .bx-sun {
    display: none;
}

[data-theme="light"] .theme-btn .bx-moon {
    display: none;
}

[data-theme="light"] .theme-btn .bx-sun {
    display: block;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 24px 60px 24px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    background: var(--accent-glow);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    width: fit-content;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-badge i {
    font-size: 16px;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-desc {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 580px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 10px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
}

.meta-item i {
    color: var(--accent-color);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hover-transition);
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Avatar / Card Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.avatar-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    background: var(--accent-gradient);
    filter: blur(20px);
    opacity: 0.4;
    animation: morph 8s ease-in-out infinite alternate;
}

.avatar-card {
    width: 280px;
    height: 280px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 4px solid var(--bg-secondary);
    box-shadow: var(--card-shadow);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    animation: morph 8s ease-in-out infinite alternate;
}

.avatar-img {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 12px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: var(--hover-transition);
}

.avatar-img:hover {
    transform: scale(1.05) rotate(3deg);
    border-color: var(--accent-secondary);
}


.avatar-card i {
    font-size: 80px;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.avatar-card h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.avatar-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Sections Structure */
section {
    padding: 90px 24px 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
}

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

.section-header::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    margin-top: 16px;
    border-radius: 2px;
}

/* About / Objective Section */
.about-box {
    border-radius: var(--border-radius-lg);
    padding: 40px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text p {
    font-size: 17px;
    color: var(--text-secondary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.highlight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 20px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--hover-transition);
}

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

.highlight-num {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.highlight-lbl {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
}

.about-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    border-left: 1px solid var(--border-glass);
    padding-left: 40px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-details label {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    font-weight: 600;
}

.info-details span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Skills Section */
.skills-container {
    max-width: 900px;
    margin: 0 auto;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--hover-transition);
}

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

.tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.skills-content {
    min-height: 220px;
}

.skills-pane {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

.skills-pane.active {
    display: grid;
}

.skill-card {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 24px 16px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--hover-transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.skill-icon {
    font-size: 38px;
    color: var(--accent-color);
}

.skill-name {
    font-size: 15px;
    font-weight: 700;
}

.skill-level {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
}

[data-theme="light"] .skill-level {
    background: rgba(0, 0, 0, 0.03);
}

/* Experience Section (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-glass);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    margin-bottom: 24px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 4px solid var(--accent-color);
    position: absolute;
    top: 26px;
    z-index: 2;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-card {
    padding: 24px;
    border-radius: var(--border-radius-lg);
    position: relative;
    transition: var(--hover-transition);
}

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

.timeline-date {
    font-size: 13px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 6px;
}

.timeline-role {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.timeline-desc li {
    position: relative;
    padding-left: 16px;
}

.timeline-desc li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.timeline-item:nth-child(odd) .timeline-desc {
    text-align: right;
}
.timeline-item:nth-child(odd) .timeline-desc li {
    padding-left: 0;
    padding-right: 16px;
}
.timeline-item:nth-child(odd) .timeline-desc li::before {
    left: auto;
    right: 0;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--hover-transition);
}

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

[data-theme="light"] .project-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.project-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 16px;
}

.project-badge {
    background: var(--accent-glow);
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    text-transform: uppercase;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
}

.project-desc {
    font-size: 14px;
    color: var(--text-secondary);
    flex-grow: 1;
}

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

.tech-tag {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--text-secondary);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 16px;
    margin-top: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.project-link:hover {
    color: var(--accent-color);
}

.project-link i {
    font-size: 18px;
}

/* Certifications Section */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-card {
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: var(--hover-transition);
}

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

.cert-icon {
    font-size: 32px;
    color: var(--accent-color);
    background: var(--accent-glow);
    width: 54px;
    height: 54px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cert-issuer {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.cert-date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Interactive PDF Viewer Section */
.pdf-section {
    max-width: 900px;
    margin: 0 auto;
}

.pdf-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.pdf-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-info h3 {
    font-size: 24px;
}

.pdf-info p {
    color: var(--text-secondary);
}

.pdf-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdf-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
}

.pdf-features li i {
    font-size: 20px;
    color: var(--accent-color);
}

.pdf-card-preview {
    border-radius: var(--border-radius-lg);
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.pdf-canvas-container {
    width: 100%;
    max-width: 320px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1 / 1.414; /* A4 Ratio */
    background: #1e293b;
    display: flex;
    justify-content: center;
    align-items: center;
}

[data-theme="light"] .pdf-canvas-container {
    background: #f1f5f9;
}

#pdf-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--hover-transition);
}

.pdf-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pdf-loader i {
    font-size: 32px;
    color: var(--accent-color);
    animation: spin 1s linear infinite;
}

.pdf-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.pdf-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* Contact Footer Section */
.contact-section {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.contact-box {
    border-radius: var(--border-radius-lg);
    padding: 50px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-box h2 {
    font-size: 32px;
}

.contact-box p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 16px;
}

.contact-channels {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--hover-transition);
}

.channel-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.channel-btn i {
    font-size: 20px;
}

/* Footer Copyright */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 30px 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.1);
}

/* Animations Keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.6; transform: scale(1); }
}

@keyframes morph {
    0% {
        border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    }
    100% {
        border-radius: 64% 36% 40% 60% / 55% 58% 42% 45%;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints & Device Optimizations */

/* TABLET (PAD) VIEWPORT (Max-width: 1024px) */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-badge {
        align-self: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-desc {
        margin: 0 auto;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-info-list {
        border-left: none;
        border-top: 1px solid var(--border-glass);
        padding-left: 0;
        padding-top: 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 23px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 23px;
    }
    
    .timeline-item:nth-child(odd) .timeline-desc {
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-desc li {
        padding-left: 16px;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-desc li::before {
        left: 0;
        right: auto;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .pdf-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .pdf-features {
        align-items: center;
    }
}

/* MOBILE VIEWPORT (Max-width: 768px) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 40px 24px;
        gap: 24px;
        transition: var(--hover-transition);
        z-index: 999;
        border-top: 1px solid var(--border-glass);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .avatar-wrapper {
        width: 260px;
        height: 260px;
    }
    
    .avatar-card {
        width: 220px;
        height: 220px;
    }
    
    .avatar-card i {
        font-size: 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-box {
        padding: 24px;
    }
    
    .about-info-list {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-box {
        padding: 30px 20px;
    }
}

/* EXTRA SMALL MOBILE VIEWPORT (Max-width: 480px) */
@media screen and (max-width: 480px) {
    .hero-badge {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-meta {
        flex-direction: column;
        width: 100%;
    }
    
    .meta-item {
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-btn {
        width: 100%;
        text-align: center;
    }
    
    .pdf-actions {
        flex-direction: column;
    }
    
    .contact-channels {
        flex-direction: column;
        width: 100%;
    }
    
    .channel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Language Switcher Styling */
.lang-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 0 14px;
    height: 40px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: var(--hover-transition);
    box-shadow: var(--card-shadow);
    letter-spacing: 0.5px;
    gap: 6px;
}

.lang-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.03);
}

.lang-btn i {
    font-size: 16px;
}

/* Native Language Visibility Rules */
body.vi-mode .lang-en {
    display: none !important;
}

body.en-mode .lang-vi {
    display: none !important;
}

