/* Simplified styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --background-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
/* Base styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--light-gray);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hamburger:focus,
.hamburger:hover {
    background: var(--primary-color);
}

.hamburger-bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 3px 0;
    background: var(--primary-color);
    border-radius: 2px;
    transition: background 0.2s;
}

.hamburger:focus .hamburger-bar,
.hamburger:hover .hamburger-bar {
    background: #fff;
}

/* Sidebar default hidden */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 2rem;
    z-index: 1000;

    /* NEW: Add these for animation */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: none; /* Hide sidebar by default on desktop */
}

.sidebar.show {
    transform: translateX(0);
}


.sidebar a:hover {
    color: var(--primary-color);
}

/* Sidebar navigation button styles */
.sidebar a {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: var(--light-gray);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.sidebar a:hover,
.sidebar a:focus {
    background: var(--primary-color);
    color: #fff;
    transform: translateX(4px) scale(1.04);
}

.sidebar .close-btn {
    background: var(--light-gray);
    color: var(--primary-color);
    font-size: 2rem;
    border: none;
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    border-radius: 50%;
    align-self: flex-end;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.sidebar .close-btn:focus,
.sidebar .close-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 5% 5rem;
    background-color: var(--light-gray);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}


.image-container {
    width: 200px;
    height: 200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid blue; /* Optional border */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.role {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.cta-button {
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.primary {
    background-color: var(--primary-color);
    color: white;
}

.secondary {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 4rem 5%;
    background-color: white;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.about h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.skills, .learning {
    margin-top: 2rem;
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.skills h3, .learning h3 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-size: 1.3rem;
    font-weight: 700;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.category-title {
    color: var(--primary-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(to bottom, var(--primary-color), #357abd);
    border-radius: 2px;
}

.skills ul, .learning ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

@keyframes skillHoverFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes skillGlow {
    0% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
    50% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }
    100% {
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }
}

@keyframes skillPulse {
    0%, 100% {
        background: linear-gradient(135deg, #f0f4f8 0%, #e8f0ff 100%);
    }
    50% {
        background: linear-gradient(135deg, #dae5f0 0%, #d0dde5 100%);
    }
}

.skills li, .learning li {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8f0ff 100%);
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    color: var(--secondary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills li i, .learning li i {
    font-size: 0.85rem;
    color: #7a7a7a;
}

.skills li:hover, .learning li:hover {
    animation: skillHoverFloat 0.6s ease-in-out, skillGlow 0.6s ease-in-out, skillPulse 0.6s ease-in-out;
    background: linear-gradient(135deg, #dae5f0 0%, #d0dde5 100%);
    border-color: #999;
}

.skills li:hover i, .learning li:hover i {
    color: #555;
}

/* Experience Section */
.experience {
    padding: 5rem 5%;
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.experience h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: calc(50% - 30px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: calc(50% - 30px);
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border: 4px solid #f8f9fa;
    border-radius: 50%;
    z-index: 10;
}

.timeline-content {
    padding: 0 1rem;
}

.experience-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.experience-duration {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.experience-role {
    color: #666;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

/* Timeline Responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        transform: translateX(-50%);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        width: calc(100% - 60px);
        margin-left: 60px;
        text-align: left;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-item {
        margin-bottom: 2rem;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    background-color: #f8f9fa;
    position: relative;
    z-index: 3;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    padding: 1rem;
}

.project-card p {
    padding: 0 1rem 1rem;
}

.project-link {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

/* Contact Section */
.contact {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    text-align: center;
}

.contact-item {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #3498db;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: #2c3e50;
    color: #fff;
}

/* Project Navigation */
.project-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-filter {
    padding: 0.5rem 1.5rem;
    border: none;
    background-color: var(--light-gray);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-filter.active {
    background-color: var(--primary-color);
    color: white;
}

.project-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Blog Section */
.blog {
    padding: 5rem 5%;
    background-color: white;
    position: relative;
    z-index: 3;
}

.blog h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.blog-card p {
    margin-bottom: 1rem;
    color: #666;
}

.blog-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.blog-link:hover {
    text-decoration: underline;
}

/* Update Responsive Design */
@media (max-width: 760px) {
    nav {
        flex-direction: row;
        padding: 1rem 2%;
    }
    .nav-links {
        display: none !important;
    }
    .hamburger {
        display: flex;
    }
    .sidebar {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        padding-top: 4rem;
        width: 70vw;
        max-width: 300px;
        min-width: 200px;
    }
    .sidebar a {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
        padding-left: 0.5rem;
    }
    .sidebar .close-btn {
        position: absolute;
        top: 1.2rem;
        right: 1.2rem;
        font-size: 2rem;
        color: var(--primary-color);
        background: none;
        border: none;
        cursor: pointer;
        margin-bottom: 2rem;
    }
    /* Optional: dim background when sidebar is open */
    body.sidebar-open::before {
        content: '';
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 200px;
    }
    
    .about, .projects, .contact {
        padding: 3rem 5%;
    }
    
    .project-nav {
        flex-wrap: wrap;
    }
    
    .project-filter {
        width: calc(50% - 0.5rem);
    }
    
    .blog-card {
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (min-width: 761px) {
    .sidebar {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
    }
    .hamburger {
        display: none !important;
    }
}

/* Navbar Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Loader Styles */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Enhanced Transitions */
.hero-text {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-container {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-container img {
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.hero-buttons {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-text {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skills {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.learning {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.blog-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

.contact-info {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced Button Effects */
.cta-button, .project-link, .blog-link {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.cta-button::before, .project-link::before, .blog-link::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;
}

.cta-button:hover::before, .project-link:hover::before, .blog-link:hover::before {
    left: 100%;
}

/* Skill Items Animation */
.skills li, .learning li {
    transition: all 0.3s ease;
    padding: 0.2rem 0;
    cursor: pointer;
}

/* Social Links Enhanced Animation */
.social-links a {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: inline-block;
}

.social-links a:hover {
    animation: bounce 0.6s ease;
}

/* Hamburger Animation */
.hamburger {
    transition: all 0.3s ease;
}

.hamburger.active {
    transform: rotate(90deg);
}

.hamburger-bar {
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar Enhanced Animation */
.sidebar {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar.show {
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.sidebar a {
    transition: all 0.3s ease;
    transform: translateX(-20px);
    opacity: 0;
}

.sidebar.show a {
    transform: translateX(0);
    opacity: 1;
    animation: fadeInLeft 0.3s ease forwards;
}

.sidebar.show a:nth-child(2) { animation-delay: 0.1s; }
.sidebar.show a:nth-child(3) { animation-delay: 0.2s; }
.sidebar.show a:nth-child(4) { animation-delay: 0.3s; }
.sidebar.show a:nth-child(5) { animation-delay: 0.4s; }
.sidebar.show a:nth-child(6) { animation-delay: 0.5s; }
.sidebar.show a:nth-child(7) { animation-delay: 0.6s; }

/* Hero Section Parallax */
.hero {
    will-change: transform;
    overflow: hidden;
}

/* Ensure proper section stacking */
section {
    position: relative;
}

/* Project Filter Animation */
.project-filter {
    transition: all 0.3s ease;
    position: relative;
}

.project-filter::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.project-filter.active::after {
    width: 100%;
}

.project-filter:hover {
    transform: translateY(-2px);
}

/* Text Cursor Effect for Typing Animation */
.role::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Enhanced Card Hover Effects */
.project-card:hover, .blog-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.project-card:hover img, .blog-card:hover img {
    transform: scale(1.1);
    transition: transform 0.4s ease;
}

/* Stagger Animation for Multiple Elements */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

/* Section Reveal Animation */
section {
    transition: all 0.8s ease;
}

/* Highlight Animation */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.highlight:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Footer Animation */
footer {
    transition: all 0.3s ease;
}

footer:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Responsive Animation Adjustments */
@media (max-width: 768px) {
    .loader .spinner {
        width: 40px;
        height: 40px;
    }
    
    .project-card:hover, .blog-card:hover {
        transform: translateY(-5px) scale(1.01) !important;
    }
}

/* Performance Optimizations */
.hero, .project-card, .blog-card, .social-links a {
    will-change: transform;
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
