/* CSS Variables */
:root {
  --bg: #fdfdfd;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-secondary: #64748b;
  --border: rgba(99, 102, 241, 0.1);
  --shadow: 0 4px 6px rgba(99, 102, 241, 0.08);

  --gradient-1: #14b8a6;
  --gradient-2: #6366f1;
  --gradient-3: #f59e0b;
  --gradient-4: #10b981;

  --mesh-1: rgba(20, 184, 166, 0.15);
  --mesh-2: rgba(99, 102, 241, 0.15);
  --mesh-3: rgba(245, 158, 11, 0.15);
  --mesh-4: rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-card: #1e293b;
  --text: #e5e7eb;
  --text-secondary: #94a3b8;
  --border: rgba(20, 184, 166, 0.2);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.4);

  --gradient-1: #2dd4bf;
  --gradient-2: #818cf8;
  --gradient-3: #fbbf24;
  --gradient-4: #34d399;

  --mesh-1: rgba(45, 212, 191, 0.2);
  --mesh-2: rgba(129, 140, 248, 0.2);
  --mesh-3: rgba(251, 191, 36, 0.2);
  --mesh-4: rgba(52, 211, 153, 0.2);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes rotateCard {
    0% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-10px) rotateY(5deg); }
    100% { transform: translateY(0) rotateY(0deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: rgba(15, 15, 35, 0.8);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    padding: 2px;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.nav-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: white;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: transparent;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

[data-theme="dark"] .mobile-menu {
    background: rgba(15, 15, 35, 0.95);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-content {
    padding: 1rem;
}

.mobile-link {
    display: block;
    padding: 1rem;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.mobile-link:hover {
    background: linear-gradient(135deg, var(--mesh-1), var(--mesh-2));
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: 
        radial-gradient(circle at 20% 50%, var(--mesh-1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--mesh-2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, var(--mesh-3) 0%, transparent 50%),
        radial-gradient(circle at 70% 40%, var(--mesh-4) 0%, transparent 30%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

.hero-content {
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards, gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.hero-subtitle {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1.4s ease 0.8s forwards;
}

.btn {
    padding: 0.875rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

.btn::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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg), var(--bg)), 
                      linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--text);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

/* Sections */
.section {
    padding: 80px 0;
    background: var(--bg);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: center;
}

.profile-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--gradient-1), var(--gradient-2)) border-box;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.3);
}

.image-fallback {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.profile-image[src=""] + .image-fallback,
.profile-image:not([src]) + .image-fallback {
    display: flex;
}

.about-text h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--mesh-1), var(--mesh-2));
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.skill-card h3 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.portfolio-card:hover::before {
    transform: scaleX(1);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.15);
}

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portfolio-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.portfolio-header h3 {
    font-size: 1.25rem;
    color: var(--text);
}

.portfolio-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.portfolio-tech span {
    background: linear-gradient(135deg, var(--mesh-2), var(--mesh-3));
    color: var(--text);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.portfolio-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat-item i {
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Open Source Projects Slideshow */
.opensource-section {
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slideshow-container {
    overflow: hidden;
    position: relative;
}

.slideshow-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    perspective: 1000px;
}

.project-slide {
    min-width: 33.333%;
    max-width: 33.333%;
    flex: 0 0 33.333%;
    padding: 0 1rem;
}

.project-slide.clone {
    user-select: none;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card {
    animation: rotateCard 6s ease-in-out infinite;
}

.project-card:hover {
    transform: translateY(-5px) rotateY(5deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    animation-play-state: paused;
}

.project-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    min-height: 60px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: linear-gradient(135deg, var(--mesh-1), var(--mesh-2));
    color: var(--text);
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.project-link:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

/* Slideshow Navigation - Hide dots */
.slideshow-dots {
    display: none;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0.8;
}

.slideshow-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.slideshow-prev {
    left: -60px;
}

.slideshow-next {
    right: -60px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--gradient-1), var(--gradient-2));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50%;
    border: 3px solid var(--bg);
    box-shadow: 0 0 0 3px var(--mesh-1);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--gradient-1), var(--gradient-2));
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.timeline-header h3 {
    font-size: 1.25rem;
    color: var(--text);
}

.timeline-date {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.875rem;
}

.timeline-company {
    background: linear-gradient(135deg, var(--gradient-2), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
}

.timeline-details li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Contact Section */
.contact-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.contact-item h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item span {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

.social-link:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--mesh-1), var(--mesh-2));
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 250px;
    }
    
    /* Mobile Slideshow */
    .project-slide {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 0.5rem;
    }
    
    .slideshow-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.download-cv {
    margin-top: 2rem;
}

.download-cv .btn {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--text);
    transition: all 0.3s ease;
}

.download-cv .btn::before {
    display: none;
}

.download-cv .btn:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark mode specific styling */
[data-theme="dark"] .download-cv .btn {
    border-color: var(--text);
    color: var(--text);
}

[data-theme="dark"] .download-cv .btn:hover {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* Skeleton Loading Styles */
.skeleton-wrapper {
    position: relative;
    overflow: hidden;
}

.skeleton {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.05) 0%,
        rgba(99, 102, 241, 0.1) 50%,
        rgba(99, 102, 241, 0.05) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
    position: relative;
}

[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(99, 102, 241, 0.15) 50%,
        rgba(99, 102, 241, 0.08) 100%
    );
    background-size: 1000px 100%;
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.skeleton-circle {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.skeleton-line {
    height: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-line.medium {
    width: 80%;
}

.skeleton-line.long {
    width: 100%;
}

.skeleton-title {
    height: 2rem;
    width: 200px;
    margin: 0 auto 2rem;
    border-radius: 8px;
}

.skeleton-stat {
    height: 80px;
    border-radius: 12px;
}

.skeleton-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.skeleton-button {
    height: 45px;
    width: 150px;
    border-radius: 25px;
    margin-top: 1rem;
}

/* Hide skeleton when content is loaded */
.content-loaded .skeleton-wrapper {
    display: none;
}

.content-loading .actual-content {
    display: none;
}

/* Fade in animation when content loads */
.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll Progress Bar - Orange tribute to Claude */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #ff6b35;
    z-index: 9999;
    transition: width 0.15s ease-out;
}

[data-theme="dark"] .scroll-progress {
    background: #ff7b4a;
}