/* ===== Base Styles ===== */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #14b8a6;
    --secondary-light: #2dd4bf;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --bg-dark: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dark-theme {
    --primary-color: #818cf8;
    --primary-dark: #6366f1;
    --primary-light: #a5b4fc;
    --secondary-color: #2dd4bf;
    --secondary-light: #5eead4;
    --accent-color: #f472b6;
    --accent-light: #f9a8d4;
    --text-color: #f9fafb;
    --text-light: #d1d5db;
    --text-muted: #9ca3af;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-dark: #020617;
    --card-bg: #1e293b;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    transition: var(--transition);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.primary-btn:hover {
    background-color: var(--primary-dark);
}

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

.outline-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.secondary-btn {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: none;
}

.dark-theme .secondary-btn {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.secondary-btn:hover {
    background-color: #e9ecef;
}

.dark-theme .secondary-btn:hover {
    background-color: #2d3135;
}

.linkedin-btn {
    background-color: #0A66C2;
    color: white;
    border: none;
}

.linkedin-btn:hover {
    background-color: #084e96;
}

.btn i {
    margin-left: 8px;
}

/* ===== Header ===== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.dark-theme .header {
    background-color: rgba(18, 18, 18, 0.9);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
}

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

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

.nav-menu a {
    font-weight: 500;
    position: relative;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.theme-toggle {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--bg-light);
}

.dark-theme .theme-toggle {
    background-color: var(--bg-dark);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    padding: 20px;
    z-index: 999;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-menu a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.mobile-menu a.active,
.mobile-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.dark-theme .mobile-menu a.active,
.dark-theme .mobile-menu a:hover {
    background-color: var(--bg-dark);
}

.theme-toggle-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    margin-top: 12px;
    border-top: 1px solid var(--bg-light);
}

.dark-theme .theme-toggle-mobile {
    border-top-color: var(--bg-dark);
}

/* ===== Hero Section ===== */
.hero-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 100px 0;
    overflow: hidden;
}

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

.hero-text {
    text-align: center;
    margin-bottom: 48px;
}

.hero-text h2 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.typing-container {
    height: 40px;
    margin-bottom: 24px;
}

.typing-text {
    font-size: 1.5rem;
    color: var(--text-light);
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 0.7s infinite;
}

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

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-image {
    position: relative;
    margin-top: 32px;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    background-color: #718096;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.profile-image img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    border-radius: 50%;
}


.dark-theme .profile-image {
    border-color: var(--bg-dark);
}

.profile-image .initials {
    font-size: 3rem;
    font-weight: 700;
}

.profile-image .subtitle {
    font-size: 1rem;
    margin-top: 8px;
}

.hero-image::before,
.hero-image::after {
    content: '';
    position: absolute;
    background-color: rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    z-index: 0;
}

.hero-image::before {
    width: 450px;
    height: 450px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-image::after {
    width: 350px;
    height: 350px;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 196, 182, 0.2);
}

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.title-line {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 24px;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section - Horizontal Layout ===== */
.about-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-left,
.about-right {
    height: 100%;
}

/* Profile Card */
.profile-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: 20px;
    border: 2px solid rgba(64, 123, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-theme .profile-card {
    background: var(--bg-dark);
    border-color: rgba(64, 123, 255, 0.2);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(64, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.profile-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-header h3 i {
    color: var(--accent-color);
}

.summary-text {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

/* Key Highlights */
.key-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(64, 123, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.dark-theme .highlight-item {
    background: rgba(64, 123, 255, 0.1);
}

.highlight-item:hover {
    transform: translateX(5px);
    background: rgba(64, 123, 255, 0.1);
}

.highlight-item i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 16px;
    flex-shrink: 0;
}

.highlight-item span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Expertise Tags */
.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.expertise-tag {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(64, 123, 255, 0.3);
}

/* Skills Card */
.skills-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: 20px;
    border: 2px solid rgba(64, 123, 255, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.dark-theme .skills-card {
    background: var(--bg-dark);
    border-color: rgba(64, 123, 255, 0.2);
}

.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(64, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.skills-header h3 {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.skills-header h3 i {
    color: var(--accent-color);
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
    flex: 1;
}

.skill-category h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(64, 123, 255, 0.2);
    padding-bottom: 8px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(64, 123, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.dark-theme .skill-item {
    background: rgba(64, 123, 255, 0.1);
}

.skill-item:hover {
    background: rgba(64, 123, 255, 0.1);
    transform: translateX(5px);
}

.skill-item span:first-child {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.skill-bar {
    flex: 1;
    height: 6px;
    background: rgba(64, 123, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s ease;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-percent {
    min-width: 40px;
    text-align: right;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 0.85rem;
}

/* Languages Section */
.languages-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid rgba(64, 123, 255, 0.1);
}

.languages-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.language-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(64, 123, 255, 0.05);
    padding: 8px 16px;
    border-radius: 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dark-theme .language-item {
    background: rgba(64, 123, 255, 0.1);
}

.language-item:hover {
    background: rgba(64, 123, 255, 0.15);
    transform: translateY(-2px);
}

.language-item i {
    color: var(--accent-color);
    font-size: 0.6rem;
}

/* Education Timeline */
.education-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-content {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.timeline-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    flex-shrink: 0;
    border: 4px solid var(--bg-color);
    box-shadow: 0 4px 15px rgba(64, 123, 255, 0.3);
}

.dark-theme .timeline-icon {
    border-color: var(--bg-dark);
}

.timeline-details {
    flex: 1;
    background: var(--bg-color);
    padding: 28px;
    border-radius: 16px;
    border: 2px solid rgba(64, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.dark-theme .timeline-details {
    background: var(--bg-dark);
    border-color: rgba(64, 123, 255, 0.2);
}

.timeline-details:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(64, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.timeline-details::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 30px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg-color) transparent transparent;
}

.dark-theme .timeline-details::before {
    border-right-color: var(--bg-dark);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.timeline-date {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-institution {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.achievement-tag {
    background: rgba(64, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(64, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.dark-theme .achievement-tag {
    background: rgba(64, 123, 255, 0.2);
    border-color: rgba(64, 123, 255, 0.3);
}

.achievement-tag:hover {
    background: rgba(64, 123, 255, 0.2);
    transform: translateY(-2px);
}

.academic-highlights {
    margin: 16px 0 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.05), rgba(46, 196, 182, 0.05));
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.dark-theme .academic-highlights {
    background: linear-gradient(135deg, rgba(64, 123, 255, 0.1), rgba(46, 196, 182, 0.1));
}

.academic-highlights h5 {
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.academic-highlights p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Education & Experience Horizontal Layout */
.education-horizontal,
.experience-horizontal {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-row,
.experience-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-color);
    border-radius: 16px;
    border: 1px solid rgba(64, 123, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.dark-theme .education-row,
.dark-theme .experience-row {
    background: var(--bg-dark);
    border-color: rgba(64, 123, 255, 0.2);
}

.education-row:hover,
.experience-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(64, 123, 255, 0.15);
    border-color: var(--primary-color);
}

.education-date-col,
.experience-date-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 120px;
}

.education-date-badge,
.experience-date-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(64, 123, 255, 0.3);
    min-width: 120px;
}

.education-content-col,
.experience-content-col {
    flex: 1;
}

.education-content-col h3,
.experience-content-col h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.education-content-col h4,
.experience-content-col h4 {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.education-content-col p,
.experience-content-col p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.education-achievements,
.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.experience-achievements {
    margin: 16px 0 20px 0;
}

.experience-achievements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-achievements li {
    color: var(--text-light);
    padding: 4px 0;
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.experience-achievements li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.experience-tag {
    background: rgba(64, 123, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(64, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.dark-theme .experience-tag {
    background: rgba(64, 123, 255, 0.2);
    border-color: rgba(64, 123, 255, 0.3);
}

.experience-tag:hover {
    background: rgba(64, 123, 255, 0.2);
    transform: translateY(-2px);
}

/* Responsive Design for Horizontal Layouts */
@media (max-width: 768px) {
    .education-row,
    .experience-row {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .education-date-col,
    .experience-date-col {
        position: static;
        align-items: center;
    }
    
    .education-date-badge,
    .experience-date-badge {
        display: inline-block;
        margin-bottom: 16px;
    }
    
    .education-content-col h4,
    .experience-content-col h4 {
        justify-content: center;
    }
}
@media (max-width: 768px) {
    .about-horizontal {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .key-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .timeline-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .timeline-details::before {
        display: none;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .profile-card,
    .skills-card {
        padding: 24px;
    }
    
    .timeline-details {
        padding: 20px;
    }
    
    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

.expertise-item h5 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.expertise-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.about-achievements {
    margin-bottom: 40px;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.achievement-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 8px 0;
}

.achievement-list i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1rem;
}

.achievement-list li:last-child {
    margin-bottom: 0;
}

.languages {
    margin-bottom: 32px;
}

.languages h4,
.quick-info h4,
.about-skills h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.language-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.dark-theme .language-item {
    background-color: var(--bg-dark);
}

.language-dot {
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
}

.dark-theme .info-icon {
    background-color: rgba(67, 97, 238, 0.2);
}

.info-text h5 {
    font-size: 0.875rem;
    color: var(--text-light);
}

.education {
    margin-bottom: 48px;
}

.education-item {
    background-color: var(--bg-color);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.dark-theme .education-item {
    background-color: var(--bg-dark);
}

.education-item h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.education-place {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.education-desc {
    color: var(--text-light);
}

.skill-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.skill-item {
    margin-bottom: 16px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
}

.dark-theme .skill-bar {
    background-color: var(--bg-dark);
}

.skill-progress {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.soft-skill-tag {
    padding: 8px 16px;
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
    border-radius: 100px;
}

.dark-theme .soft-skill-tag {
    background-color: rgba(67, 97, 238, 0.2);
}

/* ===== Projects Section ===== */
/* Project Statistics */
.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 48px 0;
    padding: 32px 0;
}

@media (max-width: 768px) {
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin: 32px 0;
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .project-stats {
        grid-template-columns: 1fr;
    }
}

.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: #6366f1;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
}

.dark-theme .stat-item {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dark-theme .stat-item:hover {
    border-color: #818cf8;
    box-shadow: 0 12px 24px rgba(129, 140, 248, 0.2);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.dark-theme .stat-icon {
    background: linear-gradient(135deg, #818cf8, #a78bfa);
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.4);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1;
}

.dark-theme .stat-number {
    color: #f1f5f9;
}

.stat-label {
    font-size: 0.95rem;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

.dark-theme .stat-label {
    color: #cbd5e1;
}

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

@media (max-width: 768px) {
    .project-filters {
        gap: 8px;
        margin-bottom: 32px;
    }
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.filter-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.filter-btn span {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .filter-btn {
        padding: 10px 16px;
        gap: 6px;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    .filter-btn span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .filter-btn span {
        display: none;
    }
    
    .filter-btn {
        padding: 10px 12px;
    }
}

.dark-theme .filter-btn {
    background-color: var(--bg-dark);
    border-color: transparent;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.3);
}

.filter-btn.active i,
.filter-btn:hover i {
    transform: scale(1.1);
}

/* Enhanced Load More Button */
.load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 90, 205, 0.4);
}

.load-more-btn:active {
    transform: translateY(-1px);
}

.load-more-btn i {
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateX(4px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(106, 90, 205, 0.1);
}

.dark-theme .project-card {
    background-color: var(--bg-dark);
    border-color: rgba(106, 90, 205, 0.2);
}

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

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

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(106, 90, 205, 0.15);
    border-color: rgba(106, 90, 205, 0.3);
}

.project-image {
    height: 200px;
    position: relative;
    background-color: #c5c5c5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.project-image.placeholder {
    background: linear-gradient(135deg, rgba(67,97,238,0.15), #c5c5c5);
}

.project-image svg {
    color: var(--bg-color);
    font-size: 2rem;
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-bottom-left-radius: var(--border-radius);
}

.featured-badge.new-project {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    animation: pulse-new 2s infinite;
}

@keyframes pulse-new {
    0%, 100% {
        box-shadow: 0 0 5px #f59e0b;
    }
    50% {
        box-shadow: 0 0 15px #f59e0b, 0 0 25px #ef4444;
    }
}

.project-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
}

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

.tech-tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background-color: var(--bg-light);
    border-radius: 100px;
    color: var(--text-light);
}

.dark-theme .tech-tag {
    background-color: var(--bg-dark);
}

.project-links {
    display: flex;
    gap: 16px;
}

.project-link {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

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

/* Project highlights list */
.project-highlights {
    margin: 12px 0 4px;
    padding-left: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
.project-highlights li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.project-highlights i {
    color: var(--primary-color);
}

/* Reveal on scroll */
.project-card.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s ease, transform .4s ease;
}
.project-card.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.load-more {
    text-align: center;
    margin: 48px 0;
}

.load-more-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(64, 123, 255, 0.3);
}

.load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 123, 255, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.load-more-btn:hover i {
    transform: translateX(4px);
}

.load-more-btn.loading {
    pointer-events: none;
}

.load-more-btn.loading i {
    animation: loadingRotate 1s linear infinite;
}

@keyframes loadingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Certifications Section ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.cert-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.dark-theme .cert-card {
    background-color: var(--bg-dark);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.cert-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.cert-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
}

.cert-title {
    font-size: 1.125rem;
    font-weight: 700;
}

.cert-issuer {
    color: var(--text-light);
}

.cert-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-date {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.cert-link {
    font-size: 0.875rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.cert-link:hover {
    color: var(--primary-dark);
}

/* ===== NEW Certificate Styles ===== */
.cert-card.new-cert {
    position: relative;
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.05), var(--bg-color));
    box-shadow: 0 4px 12px rgba(106, 90, 205, 0.15);
}

.dark-theme .cert-card.new-cert {
    background: linear-gradient(135deg, rgba(106, 90, 205, 0.1), var(--bg-dark));
    border-color: var(--primary-color);
}

.cert-card.new-cert:hover {
    transform: translateY(-7px);
    box-shadow: 0 8px 20px rgba(106, 90, 205, 0.25);
}

.new-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    animation: newBadgePulse 2s ease-in-out infinite;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes newBadgePulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(255, 71, 87, 0.6);
    }
}

.cert-card.new-cert .cert-title {
    color: var(--primary-color);
    font-weight: 800;
}

/* ===== Experience Section ===== */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 4px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

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

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 4px solid var(--bg-color);
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.2);
    transition: var(--transition);
}

.dark-theme .timeline-item::before {
    border-color: var(--bg-dark);
}

.timeline-item:hover::before {
    background-color: var(--primary-dark);
    transform: translateX(-50%) scale(1.2);
    box-shadow: 0 0 0 6px rgba(67, 97, 238, 0.3);
}

.timeline-content {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    width: 45%;
    position: relative;
    transition: var(--transition);
}

.dark-theme .timeline-content {
    background-color: var(--bg-dark);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.dark-theme .timeline-item:hover .timeline-content {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -15px;
    border-width: 15px 0 15px 15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--bg-color);
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -15px;
    border-width: 15px 15px 15px 0;
    border-style: solid;
    border-color: transparent var(--bg-color) transparent transparent;
}

.dark-theme .timeline-item:nth-child(odd) .timeline-content::after {
    border-color: transparent transparent transparent var(--bg-dark);
}

.dark-theme .timeline-item:nth-child(even) .timeline-content::after {
    border-color: transparent var(--bg-dark) transparent transparent;
}

.timeline-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(67, 97, 238, 0.3);
}

.timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-organization {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 500;
}

.timeline-description {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-tag {
    font-size: 0.8rem;
    padding: 5px 14px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 100px;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.timeline-tag:hover {
    background-color: rgba(67, 97, 238, 0.2);
    transform: translateY(-2px);
}

.dark-theme .timeline-tag {
    background-color: rgba(67, 97, 238, 0.2);
}

.dark-theme .timeline-tag:hover {
    background-color: rgba(67, 97, 238, 0.3);
}

@media (max-width: 767px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        justify-content: flex-start !important;
    }
    
    .timeline-item::before {
        left: 30px;
        transform: translateX(0);
    }
    
    .timeline-item:hover::before {
        transform: translateX(0) scale(1.2);
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
        text-align: left !important;
        padding: 25px !important;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -15px;
        right: auto;
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--bg-color) transparent transparent;
    }
    
    .dark-theme .timeline-item:nth-child(odd) .timeline-content::after,
    .dark-theme .timeline-item:nth-child(even) .timeline-content::after {
        border-color: transparent var(--bg-dark) transparent transparent;
    }
    
    /* Ensure proper spacing on mobile */
    .timeline-item {
        margin-bottom: 50px;
    }
    
    .timeline-item:last-child {
        margin-bottom: 30px;
    }
    
    /* Enhance timeline line visibility */
    .timeline::before {
        width: 3px;
        background-color: var(--primary-color);
        opacity: 0.3;
    }
}

/* ===== Contact Section ===== */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-card,
.info-card,
.social-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.dark-theme .form-card,
.dark-theme .info-card,
.dark-theme .social-card {
    background-color: var(--bg-dark);
}

.form-card h3,
.info-card h3,
.social-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.dark-theme .form-group input,
.dark-theme .form-group textarea {
    border-color: #444;
    background-color: var(--bg-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

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

.submit-btn i {
    margin-left: 8px;
}

.contact-info {
    margin-bottom: 24px;
}

.contact-info .info-item {
    margin-bottom: 16px;
}

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

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
}

.linkedin {
    background-color: #0A66C2;
}

.github {
    background-color: #333;
}

.twitter {
    background-color: #1DA1F2;
}

.facebook {
    background-color: #4267B2;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: #ffffff;
    padding: 40px 0;
}

.dark-theme .footer {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

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

.footer-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    color: #e2e8f0;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: #cbd5e1;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: #cbd5e1;
    transition: var(--transition);
}

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

/* ===== Toast Notification ===== */
.toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background-color: white;
    color: #333;
    padding: 16px;
    border-left: 4px solid #4BB543;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease;
    z-index: 1000;
}

.toast.show {
    bottom: 20px;
}

.toast.error {
    border-left-color: #e53e3e;
}

.toast.error .toast-icon {
    color: #e53e3e;
}

.dark-theme .toast {
    background-color: var(--bg-dark);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    color: #4BB543;
    font-size: 1.5rem;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    animation: progress 3s linear forwards;
}

@keyframes progress {
    to {
        width: 0%;
    }
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    border: none;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===== Responsive Styles ===== */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-text {
        text-align: left;
        flex: 1;
        margin-bottom: 0;
    }

    .hero-text p,
    .hero-btns {
        margin-left: 0;
        justify-content: flex-start;
    }

    .about-content {
        flex-direction: row;
    }

    .about-text, 
    .about-skills {
        flex: 1;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-item {
        padding-left: 0;
        padding-right: 0;
        display: flex;
        justify-content: center;
    }

    .timeline-item::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: 45%;
        padding-right: 60px;
        text-align: right;
    }

    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 55%;
        padding-right: 0;
        padding-left: 60px;
        text-align: left;
    }

    .contact-container {
        flex-direction: row;
    }

    .contact-form-container,
    .contact-info-container {
        flex: 1;
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-section {
        padding: 100px 0 50px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

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

    .about-text h3,
    .about-skills h3 {
        font-size: 1.5rem;
    }

    .skill-group {
        grid-template-columns: 1fr;
    }

    .contact-info-container {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

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

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

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

/* ===== Enhanced Hero Section ===== */
.hero-section {
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.profile-image {
    position: relative;
}

.profile-border {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Statistics Section ===== */
.statistics-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    position: relative;
    overflow: hidden;
}

.dark-theme .statistics-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.statistics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.statistics-section .stat-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.statistics-section .stat-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.statistics-section .stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.statistics-section .stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1;
}

.statistics-section .stat-label {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
    line-height: 1.4;
}

/* ===== Enhanced Project Cards ===== */
.project-card {
    transition: var(--transition);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.project-card:hover::before {
    opacity: 0.1;
}

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

/* ===== Professional Enhancements ===== */

/* Smooth gradient text for headings */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced button hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Glowing effect for featured items */
.featured-badge {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--secondary-color);
    }
}

/* Enhanced stat items with gradient border */
.stat-item {
    position: relative;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

/* Improved experience tags */
.experience-tag {
    transition: all 0.3s ease;
    cursor: default;
}

.experience-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

/* Animated skill bars */
.skill-progress {
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Enhanced section titles */
.section-title h2 {
    position: relative;
    display: inline-block;
}

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

/* Floating animation for profile image */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.profile-image {
    animation: float 4s ease-in-out infinite;
}

/* Improved card hover states */
.cert-card,
.education-row,
.experience-row {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover,
.education-row:hover,
.experience-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dark-theme .cert-card:hover,
.dark-theme .education-row:hover,
.dark-theme .experience-row:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Mobile Responsive Enhancements ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .profile-image {
        animation: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .statistics-section {
        padding: 60px 0;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ===== Comprehensive Responsive Design ===== */

/* Extra Large (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Large Tablets (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .projects-grid,
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 24px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-horizontal,
    .education-horizontal,
    .experience-horizontal {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }
    
    .projects-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .education-row,
    .experience-row {
        padding: 24px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-text {
        margin-bottom: 32px;
    }
    
    .hero-text h2 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
        margin-bottom: 16px;
        line-height: 1.2;
    }
    
    .typing-container {
        height: 32px;
        margin-bottom: 16px;
    }
    
    .typing-text {
        font-size: 1.1rem;
    }
    
    .hero-text p {
        font-size: 0.95rem;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-btns .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .hero-image {
        margin-top: 24px;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-image::before {
        width: 300px;
        height: 300px;
    }
    
    .hero-image::after {
        width: 230px;
        height: 230px;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 20px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .key-highlights {
        grid-template-columns: 1fr;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0;
        padding: 16px 0;
    }
    
    .stat-item {
        padding: 20px 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .project-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .cert-card {
        padding: 20px;
    }
    
    .footer {
        padding: 30px 0;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .footer-legal {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Extra Small (max-width: 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 8px;
    }
    
    .hero-section {
        padding: 50px 0 30px;
    }
    
    .hero-text h2 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .hero-text h1 {
        font-size: 1.4rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .typing-container {
        height: 28px;
        margin-bottom: 12px;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }
    
    .hero-btns .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .hero-image::before {
        width: 250px;
        height: 250px;
    }
    
    .hero-image::after {
        width: 180px;
        height: 180px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    section {
        padding: 40px 0;
    }
    
    .project-stats {
        gap: 10px;
        margin: 20px 0;
    }
    
    .stat-item {
        padding: 16px 10px;
    }
    
    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .section-title p {
        font-size: 0.85rem;
    }
    
    .filter-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

/* Very Small Screens (max-width: 340px) */
@media (max-width: 340px) {
    .container {
        padding: 0 6px;
    }
    
    .hero-text h1 {
        font-size: 1.3rem;
    }
    
    .hero-text h2 {
        font-size: 0.85rem;
    }
    
    .hero-text p {
        font-size: 0.8rem;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .section-title h2 {
        font-size: 1.2rem;
    }
    
    .stat-item {
        padding: 14px 8px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .footer-legal a {
        font-size: 0.8rem;
    }
    
    .footer-logo a {
        font-size: 1.2rem;
    }
    
    .form-card,
    .info-card,
    .social-card {
        padding: 20px 12px;
    }
    
    .form-card h3,
    .info-card h3,
    .social-card h3 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}

/* Ultra Small Screens (max-width: 200px) */
@media (max-width: 200px) {
    .container {
        padding: 0 4px;
    }
    
    .hero-text h1 {
        font-size: 1.1rem;
    }
    
    .hero-text h2 {
        font-size: 0.75rem;
    }
    
    .hero-text p {
        font-size: 0.7rem;
    }
    
    .hero-btns .btn {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .section-title h2 {
        font-size: 1rem;
    }
    
    .section-title p {
        font-size: 0.7rem;
    }
    
    section {
        padding: 30px 0;
    }
    
    .footer {
        padding: 20px 0;
    }
    
    .footer-content {
        gap: 16px;
    }
    
    .footer-logo a {
        font-size: 1rem;
    }
    
    .footer-links a,
    .footer-legal a {
        font-size: 0.75rem;
    }
    
    .form-card,
    .info-card,
    .social-card {
        padding: 16px 8px;
    }
    
    .form-card h3,
    .info-card h3,
    .social-card h3 {
        font-size: 1rem;
        margin-bottom: 16px;
    }
}

/* Touch Devices */
@media (hover: none) {
    .btn:hover,
    .project-card:hover,
    .cert-card:hover {
        transform: none;
    }
    
    .filter-btn,
    .social-links a,
    .btn {
        min-height: 44px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}