/*====================
  PERFORMANCE OPTIMIZATIONS
====================*/
/* CSS Containment for better performance */
.profile-card,
.skills-card,
.experience-card,
.education-card,
.projects-section,
.about-me-card {
    contain: layout style paint;
}

/* GPU acceleration for smooth animations */
.profile-pic,
.skill-icon,
.social-icon,
.download-cv,
.theme-toggle,
.language-toggle,
.nav-icon {
    will-change: transform;
    transform: translateZ(0);
}

/* Preload critical elements */
.container {
    contain: layout;
}

/* Reduce repaints on hover states */
.nav-icon,
.theme-toggle,
.language-toggle {
    backface-visibility: hidden;
    perspective: 1000px;
}

/*====================
  CSS VARIABLES
====================*/
:root {
    --bg-color: #111111;
    --bg-color-rgb: 17, 17, 17;
    --card-bg: rgba(30, 30, 32, 0.5);
    --text-color: #e0e0e0;
    --heading-color: #f5f5f5;
    --accent-color: #4D96FF;
    --accent-color-hover: #75ABFF;
    --secondary-color: #8B8B8B;
    --border-color: rgba(158, 158, 158, 0.1);
    --hover-color: #ffffff;
    --transition: all 0.3s ease;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --green-bg: rgba(40, 167, 69, 0.9);
    --green-border: rgba(30, 130, 50, 0.9);
    --card-gradient: linear-gradient(145deg, rgba(40, 40, 45, 0.4), rgba(25, 25, 30, 0.2));
    --card-border-radius: 16px;
}

[data-theme="light"] {
    --bg-color: #f8f9fa;
    --bg-color-rgb: 248, 249, 250;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-color: #333333;
    --heading-color: #1a1a1a;
    --accent-color: #2D7FF9;
    --accent-color-hover: #4D96FF;
    --secondary-color: #a7a7a7;
    --border-color: rgba(161, 161, 161, 0.15);
    --hover-color: #000000;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-gradient: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 245, 248, 0.7));
}

[data-theme="light"] body {
    background-image: 
        /* Simple light theme gradient */
        radial-gradient(at 40% 20%, hsla(210, 60%, 85%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(220, 70%, 80%, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(210, 80%, 90%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(200, 60%, 85%, 0.12) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(210, 60%, 85%, 0.15) 0px, transparent 50%);
}

/*====================
  BASE STYLES
====================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: 
        /* Simple and elegant gradient like the original but slightly improved */
        radial-gradient(at 40% 20%, hsla(210, 100%, 70%, 0.05) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(220, 100%, 60%, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(210, 100%, 50%, 0.03) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(200, 100%, 60%, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(210, 100%, 70%, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-color);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    transition: background-color 0.5s ease;
}

h1 {
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 1.8rem;
    color: var(--heading-color);
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
    font-weight: 600;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/*====================
  LAYOUT & CONTAINER
====================*/
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    margin: 7rem 0;
}

/*====================
  HEADER & NAVIGATION
====================*/
header {
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(var(--bg-color-rgb), 0.8);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    flex-wrap: nowrap;
    margin-left: 15px;
    margin-right: 15px;
}

.nav-section {
    display: flex;
    align-items: center;
}

.nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.nav-center {
    gap: 1.5rem;
}

.nav-right {
    gap: 1rem;
}

.nav-icon, 
.theme-toggle, 
.language-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 0.6rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.nav-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-left: 0.4rem;
    display: none;
}

.nav-icon:hover, 
.theme-toggle:hover, 
.language-toggle:hover {
    color: var(--accent-color);
    background-color: rgba(var(--bg-color-rgb), 0.4);
    transform: translateY(-2px);
}

/* Active navigation indicator */
.nav-icon.nav-active {
    background: var(--accent-color);
    color: var(--text-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3);
}

.nav-icon.nav-active .nav-text {
    color: var(--text-color);
    font-weight: 600;
}

/* Enhanced navigation hover for better UX */
.nav-icon:hover:not(.nav-active) {
    transform: scale(1.05);
    background: rgba(var(--accent-rgb), 0.1);
}

/* Theme toggle animation */
.theme-toggle i {
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.theme-toggle:hover i {
    transform: rotate(45deg);
}

.language-toggle {
    font-weight: 600;
    font-size: 0.9rem;
}

/*====================
  PROFILE SECTION
====================*/
.profile-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
    text-align: left;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card highlight effect */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--card-border-radius);
    padding: 1px;
    background: linear-gradient(
        to bottom right, 
        rgba(255, 255, 255, 0.15), 
        transparent 40%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.1)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.profile-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.profile-pic-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.profile-pic:hover {
    transform: scale(1.15) rotate(0.5deg);
}

.profile-info {
    flex: 1;
}

.project-status {
    margin-bottom: 1rem;
}

.status-paused span {
    background: rgba(255, 7, 7, 0.2);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.status-wip span {
    background: rgba(255, 193, 7, 0.2);
    color: #ff9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.project-status span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.experience-text {
    max-width: 600px;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.open-to-work {
    background: var(--green-bg);
    color: white;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
    width: max-content;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--green-border);
    box-shadow: 0 3px 10px rgba(30, 130, 50, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.social-links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.social-icon {
    color: var(--text-color);
    font-size: 1.5rem;
    opacity: 0.8;
    transition: var(--transition);
    background: rgba(158, 158, 158, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.social-icon:hover {
    color: var(--accent-color);
    opacity: 1;
    transform: translateY(-5px);
    background: rgba(158, 158, 158, 0.15);
}

.download-cv {
    background: var(--accent-color);
    border: none;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: center;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.3);
}

.download-cv:hover {
    background: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(77, 150, 255, 0.4);
}

/*====================
  SKILLS SECTION
====================*/
.skills-card {
    margin: 5rem 0;
    padding: 2.5rem;
    border-radius: var(--card-border-radius);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 2.5rem;
    justify-content: center;
}

.skill-icon {
    background: rgba(158, 158, 158, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.skill-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    background: rgba(77, 150, 255, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/*====================
  NEW SKILLS SECTION
====================*/
.skill-categories {
    width: 100%;
}

.skill-category-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.skill-category-btn {
    background: rgba(158, 158, 158, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.skill-category-btn:hover {
    background: rgba(77, 150, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.skill-category-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(77, 150, 255, 0.3);
}

.skill-badges-container {
    position: relative;
    min-height: 200px;
}

.skill-badges {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.skill-badges.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.skill-badge {
    transition: var(--transition);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Initially hidden - will be animated via JavaScript */
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 1;
}

/* Remove CSS animation delays - handled by JavaScript now */
.skill-badge:nth-child(1),
.skill-badge:nth-child(2),
.skill-badge:nth-child(3),
.skill-badge:nth-child(4),
.skill-badge:nth-child(5),
.skill-badge:nth-child(6),
.skill-badge:nth-child(7),
.skill-badge:nth-child(8),
.skill-badge:nth-child(9),
.skill-badge:nth-child(10),
.skill-badge:nth-child(11),
.skill-badge:nth-child(12) { 
    animation: none;
    animation-delay: 0s;
}

/* Smooth entrance animation for skill badges - simplified */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        /* Ensure final state is locked */
        animation-play-state: paused;
    }
}

/* Removed fadeInUp animation that was causing conflicts */

.skill-badge:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(77, 150, 255, 0.3) !important;
    /* Force hover state regardless of animation state */
    animation: none !important;
    opacity: 1 !important;
    transition: all 0.3s ease !important;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 8px 25px rgba(77, 150, 255, 0.3), 0 0 0 3px rgba(77, 150, 255, 0.1);
    }
    100% {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

.skill-badge img {
    display: block;
    height: 32px;
    width: auto;
    transition: transform 0.2s ease;
}

.skill-badge:hover img {
    transform: scale(1.05);
}

.currently-learning {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.currently-learning h3 {
    text-align: center;
    color: var(--heading-color);
    margin-bottom: 2rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.learning-item {
    background: rgba(158, 158, 158, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    /* Add entrance animation for learning items */
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.learning-item:nth-child(1) { animation-delay: 0.8s; }
.learning-item:nth-child(2) { animation-delay: 0.9s; }
.learning-item:nth-child(3) { animation-delay: 1.0s; }

/* Animation removed - now using slideInUp for consistency */

.learning-item:hover {
    transform: translateY(-3px);
    background: rgba(158, 158, 158, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.learning-badge {
    margin-bottom: 1rem;
}

.learning-badge img {
    height: 28px;
    width: auto;
}

.learning-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.learning-name {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 1rem;
}

.learning-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: rgba(158, 158, 158, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-hover));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 600;
    min-width: 35px;
}

.learning-focus {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-style: italic;
}

/*====================
  EXPERIENCE & EDUCATION
====================*/
.experience-card, .education-card {
    padding: 2.5rem;
    border-radius: var(--card-border-radius);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 4rem;
}

.timeline {
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(77, 150, 255, 0.2);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.7rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(77, 150, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(77, 150, 255, 0.2);
}

.timeline-title {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.timeline-company {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    font-weight: 500;
}

.timeline-description {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    padding-right: 1rem;
}

/*====================
  PROJECTS SECTION
====================*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-gradient);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(77, 150, 255, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.project-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.project-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    flex-grow: 1;
    line-height: 1.7;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.project-technologies span {
    background: rgba(77, 150, 255, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-color);
    border: 1px solid rgba(77, 150, 255, 0.2);
}

.project-links {
    margin-top: auto;
    display: flex;
    gap: 1.2rem;
}

.project-links a {
    color: var(--accent-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.project-links a:hover {
    color: var(--accent-color-hover);
    transform: translateX(5px);
}

/*====================
  ABOUT ME SECTION
====================*/
.about-me-card {
    margin: 5rem 0;
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: var(--card-border-radius);
    background: var(--card-gradient);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--card-shadow);
}

/* Card highlight effect */
.about-me-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--card-border-radius);
    padding: 1px;
    background: linear-gradient(
        to bottom right, 
        rgba(255, 255, 255, 0.15), 
        transparent 40%, 
        transparent 60%, 
        rgba(255, 255, 255, 0.1)
    );
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

.about-me-card h2 {
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.about-me-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.about-me-pic { 
    width: 40%;
    height: auto;
    max-width: 60%;
    border-radius: 16px;
    object-fit: cover;
    transition: all 0.5s ease;
    border: 3px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    align-self: center;
}

.about-me-pic:hover {
    transform: scale(1.03) rotate(1deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-me-text {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 0.5rem;
    background: rgba(var(--bg-color-rgb), 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.about-me-text p {
    margin-bottom: 1.5rem;
}

.about-me-text p:last-child {
    margin-bottom: 0;
}

/*====================
  FOOTER
====================*/
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 6rem;
    font-size: 0.95rem;
    opacity: 0.8;
    border-top: 1px solid var(--border-color);
    background: rgba(var(--bg-color-rgb), 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*====================
  UTILITIES
====================*/
.experience-text, .about-me-text p, .timeline-description, .project-card p {
    text-align: justify;
    hyphens: auto;
}

/*====================
  MEDIA QUERIES
====================*/
/* Desktop First Approach */
@media (min-width: 576px) {
    .nav-text {
        display: inline;
    }
    
    .nav-icon, .theme-toggle, .language-toggle {
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.2rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .open-to-work {
        margin-left: auto;
        margin-right: auto;
    }
    
    .download-cv {
        align-self: center;
        width: 100%;
        max-width: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    h2 {
        text-align: center;
        font-size: 1.6rem;
    }
    
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    section {
        margin: 4rem 0;
        text-align: center;
    }
    
    .about-me-card, .profile-card, .skills-card, .experience-card, .education-card {
        padding: 1.75rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    
    .nav-center, .nav-right {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
    
    .skills-grid {
        justify-content: center;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    /* New Skills Section Responsive */
    .skill-category-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .skill-category-btn {
        width: 100%;
        max-width: 200px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .learning-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .learning-item {
        padding: 1.25rem;
    }
    
    .skill-badge img {
        height: 28px;
    }
    
    .learning-badge img {
        height: 24px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        gap: 1rem;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        padding: 1rem;
    }
    
    .about-me-pic {
        max-width: 85%;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    .profile-pic {
        width: 100px;
        height: 100px;
    }
}

/* Section animations for navigation */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section animation classes */
.section-animate {
    opacity: 0;
    transition: none;
}

.section-animate.animate-left {
    animation: slideInFromLeft 0.6s ease-out forwards;
}

.section-animate.animate-right {
    animation: slideInFromRight 0.6s ease-out forwards;
}

.section-animate.animate-scale {
    animation: fadeInScale 0.6s ease-out forwards;
}

.section-animate.animate-bottom {
    animation: slideInFromBottom 0.6s ease-out forwards;
}

/* Ensure sections are visible by default for accessibility */
.profile-card,
.skills-card,
.experience-card,
.education-card,
.projects-section,
.about-me-card {
    opacity: 1;
    transform: none;
}

/* Enhanced keyboard navigation hint with smooth animations */
/* .keyboard-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-gradient);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    max-width: 320px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease-out;
    transform-origin: bottom right;
}

.keyboard-hint.hiding {
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.95) !important;
    pointer-events: none !important;
}

.hint-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.hint-content i {
    font-size: 28px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.hint-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.4;
    font-weight: 500;
}

.hint-content button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(77, 150, 255, 0.3);
}

.hint-content button:hover {
    background: var(--accent-color-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(77, 150, 255, 0.4);
}

.hint-content button:active {
    transform: translateY(0);
}

/* Responsive keyboard hint
@media (max-width: 768px) {
    .keyboard-hint {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 16px;
    }
    
    .hint-content p {
        font-size: 13px;
    }
    
    .hint-content button {
        padding: 6px 16px;
        font-size: 12px;
    }
} */