/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #8b5cf6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Dark mode variables */
body.dark-mode {
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-color: #1f2937;
    --bg-light: #111827;
    --border-color: #374151;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 16px;
}

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

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

body.dark-mode .navbar {
    background-color: rgba(31, 41, 55, 0.95);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand a {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

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

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.1"/></svg>');
    opacity: 0.5;
}

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

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

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

/* About Section */
.about {
    background-color: var(--bg-color);
}

.about-content {
    max-width: 800px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body.dark-mode .skills {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

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

.skill-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

body.dark-mode .skill-card,
body.dark-mode .project-card,
body.dark-mode .research-area,
body.dark-mode .cv-item,
body.dark-mode .contact-item,
body.dark-mode .blog-post,
body.dark-mode .social-link {
    background-color: #374151;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.skill-card i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.skill-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    background-color: var(--bg-color);
}

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

.project-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.project-card:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.project-card:nth-child(3) {
    border-left-color: var(--accent-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #f093fb15 0%, #f5576c15 100%);
}

body.dark-mode .contact {
    background: linear-gradient(135deg, #1f293715 0%, #11182715 100%);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.social-link:nth-child(1):hover {
    color: white;
    background: linear-gradient(135deg, #333 0%, #000 100%);
}

.social-link:nth-child(2):hover {
    color: white;
    background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
}

.social-link:nth-child(3):hover {
    color: white;
    background: var(--gradient-2);
}

.social-link i {
    font-size: 1.2rem;
}

/* Page Header for Subpages */
.page-header {
    padding: 100px 0 50px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="white" opacity="0.1"/></svg>');
    opacity: 0.5;
}

/* CMB Background for Research Page */
.page-header.research-header {
    background: radial-gradient(ellipse at 20% 30%, #ff6b35 0%, #ff8c42 5%, #ffa952 10%, transparent 40%),
                radial-gradient(ellipse at 80% 60%, #4a90e2 0%, #5da3e8 5%, #7ab8ee 10%, transparent 40%),
                radial-gradient(ellipse at 40% 70%, #e74c3c 0%, #ec7063 5%, #f1948a 10%, transparent 40%),
                radial-gradient(ellipse at 60% 20%, #3498db 0%, #5dade2 5%, #85c1e9 10%, transparent 40%),
                radial-gradient(ellipse at 10% 80%, #ff9966 0%, #ffaa80 5%, #ffbb99 10%, transparent 40%),
                radial-gradient(ellipse at 90% 40%, #6495ed 0%, #7ba3ef 5%, #92b1f1 10%, transparent 40%),
                linear-gradient(135deg, #0a0a1a 0%, #1a0a2a 50%, #0a1a2a 100%);
    background-size: 100% 100%;
}

.page-header.research-header::before {
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 107, 53, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 85% 55%, rgba(74, 144, 226, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 45% 75%, rgba(231, 76, 60, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 65% 15%, rgba(52, 152, 219, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 25% 85%, rgba(255, 153, 102, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 75% 45%, rgba(100, 149, 237, 0.4) 0%, transparent 3%),
        radial-gradient(circle at 35% 35%, rgba(255, 128, 66, 0.3) 0%, transparent 4%),
        radial-gradient(circle at 55% 65%, rgba(93, 163, 232, 0.3) 0%, transparent 4%);
    background-size: 100% 100%;
    opacity: 0.6;
}

body.dark-mode .page-header.research-header {
    background: radial-gradient(ellipse at 20% 30%, #cc5228 0%, #d96b34 5%, #e68742 10%, transparent 40%),
                radial-gradient(ellipse at 80% 60%, #3b73b5 0%, #4a82ba 5%, #5996c5 10%, transparent 40%),
                radial-gradient(ellipse at 40% 70%, #b93d30 0%, #bd5950 5%, #c17570 10%, transparent 40%),
                radial-gradient(ellipse at 60% 20%, #2973ae 0%, #4a8ab5 5%, #6aa1c1 10%, transparent 40%),
                radial-gradient(ellipse at 10% 80%, #cc7a52 0%, #d98866 5%, #e69679 10%, transparent 40%),
                radial-gradient(ellipse at 90% 40%, #5077be 0%, #6282c0 5%, #748dc2 10%, transparent 40%),
                linear-gradient(135deg, #050510 0%, #0d0515 50%, #050d15 100%);
}

body.dark-mode .page-header.research-header::before {
    opacity: 0.8;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: white;
}

.page-header .subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Content Section for Subpages */
.content-section {
    padding: 80px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.note-entry {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.note-entry:last-of-type {
    border-bottom: none;
}

.note-date {
    font-size: 0.85rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.note-entry h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.note-entry p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
}

.placeholder-content {
    margin-top: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.placeholder-content i {
    font-size: 2.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

.placeholder-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.placeholder-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.placeholder-content ul {
    list-style-position: inside;
    color: var(--text-color);
    line-height: 2;
}

.placeholder-content li {
    margin-bottom: 0.5rem;
}

.placeholder-content li::marker {
    color: var(--primary-color);
}

/* Research Section Styles */
.research-area {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.research-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-area p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.research-area ul {
    list-style-position: inside;
    color: var(--text-color);
    line-height: 1.9;
    margin-left: 1rem;
}

.research-area li::marker {
    color: var(--primary-color);
}

/* Blog Post Styles */
.blog-post {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.blog-post:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    transform: translateY(-3px);
}

.blog-post:nth-child(2) {
    border-left-color: rgba(236, 72, 153, 0.3);
}

.blog-post:nth-child(2):hover {
    border-left-color: var(--secondary-color);
}

.blog-post:nth-child(3) {
    border-left-color: rgba(139, 92, 246, 0.3);
}

.blog-post:nth-child(3):hover {
    border-left-color: var(--accent-color);
}

.blog-header {
    margin-bottom: 1.5rem;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-date i {
    color: var(--primary-color);
}

.blog-category {
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.blog-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.3;
}

.blog-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.blog-content p {
    margin-bottom: 1rem;
}

.blog-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content li::marker {
    color: var(--primary-color);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.blog-tags {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.blog-tags i {
    color: var(--text-light);
}

.blog-tags .tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: var(--primary-color);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.75rem;
}

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

.read-more:hover i {
    transform: translateX(5px);
}

/* CV Section Styles */
.cv-section {
    margin-bottom: 3rem;
}

.cv-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    padding-bottom: 0.75rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-bottom: 3px solid transparent;
    border-image: var(--gradient-1);
    border-image-slice: 1;
}

.cv-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.cv-item-title {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.15rem;
}

.cv-item-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.cv-item-subtitle {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.cv-item-description {
    color: var(--text-color);
    line-height: 1.8;
}

.cv-item-description ul {
    margin-top: 0.5rem;
    margin-left: 1.5rem;
}

.cv-item-description li {
    margin-bottom: 0.5rem;
}

.cv-download {
    text-align: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f093fb15 0%, #f5576c15 100%);
    border-radius: 12px;
    margin-top: 3rem;
}

.cv-download p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.05rem;
}

/* Contact Form Styles */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    width: 30px;
}

.contact-item-content h3 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item-content p {
    font-size: 1.05rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
}

.contact-item-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-item-content a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        width: 100%;
        justify-content: center;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background-color: var(--primary-color);
    color: white;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

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

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInFromLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInFromRight 0.6s ease forwards;
}

.scale-in {
    animation: scaleIn 0.6s ease forwards;
}

/* Hero title animation */
.hero-content h1 {
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-buttons {
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

/* Section title animation */
.section-title.title-animate::after {
    animation: scaleIn 0.6s ease 0.3s backwards;
}

/* Skill card icon floating animation */
.skill-card i {
    animation: float 3s ease-in-out infinite;
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple-effect 0.6s;
    opacity: 0;
}

@keyframes ripple-effect {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(2);
    }
}

/* Navbar scroll effect */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

/* Enhanced hover effects */
.nav-menu a {
    position: relative;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-menu a:hover::before {
    width: 100%;
}

/* Project card animation on hover */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::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;
}

.project-card:hover::before {
    left: 100%;
}

/* Contact item slide effect */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.contact-item:hover::after {
    width: 100%;
}

/* Social link pulse on hover */
.social-link {
    position: relative;
}

.social-link:hover {
    animation: pulse 0.5s ease;
}

/* Page header gradient animation */
.page-header {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

.hero {
    background-size: 200% 200%;
    animation: gradientShift 10s ease infinite;
}

/* Smooth transitions for all interactive elements */
a, button, .btn, .skill-card, .project-card, .contact-item, .social-link {
    transition: all 0.3s ease;
}

/* Tag hover effect */
.tag {
    transition: all 0.3s ease;
    cursor: default;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* CV item entrance animation */
.cv-item {
    transition: all 0.3s ease;
}

.cv-item:hover {
    transform: translateX(10px);
}

/* Research area hover effect */
.research-area {
    transition: all 0.3s ease;
    position: relative;
}

.research-area:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.research-area::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.research-area:hover::before {
    opacity: 1;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Smooth color transitions for interactive elements only */
a, button, .btn, .skill-card, .project-card, .contact-item, .social-link, .nav-menu a, .research-area, .cv-item, .tag {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle i {
    font-size: 1.25rem;
    color: white;
}

body.dark-mode .dark-mode-toggle {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        top: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .dark-mode-toggle i {
        font-size: 1.1rem;
    }
}

