:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-color: #7c3aed;
    --accent-light: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-500);
    --text-light: var(--gray-400);

    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --bg-dark: var(--gray-900);
    --bg-surface: rgba(255, 255, 255, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.1);

    --border-color: var(--gray-200);
    --border-light: var(--gray-100);
    --border-radius-sm: 6px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.15);
    --shadow-glow-strong: 0 0 40px rgba(37, 99, 235, 0.25);
    --shadow-colored-primary: 0 20px 40px -15px rgba(37, 99, 235, 0.3);
    --shadow-colored-accent: 0 20px 40px -15px rgba(124, 58, 237, 0.3);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    will-change: scroll-position;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

body.dark-theme {
    --text-primary: var(--gray-100);
    --text-secondary: var(--gray-200);
    --text-muted: var(--gray-300);
    --text-light: var(--gray-400);
    --bg-primary: var(--gray-900);
    --bg-secondary: var(--gray-800);
    --bg-tertiary: var(--gray-700);
    --bg-dark: var(--gray-950);
    --bg-surface: rgba(31, 41, 55, 0.8);
    --bg-glass: rgba(31, 41, 55, 0.1);
    --border-color: var(--gray-600);
    --border-light: var(--gray-700);
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn i {
    font-size: 0.8rem;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.025em;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.dark-theme .header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.05em;
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.dark-theme .nav-links a {
    color: var(--text-secondary);
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 20px;
    transition: var(--transition);
}

.language-selector {
    margin-left: 20px;
}

.language-selector select {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.dark-theme .language-selector select {
    background-color: var(--bg-dark);
    border-color: #444;
    color: var(--text-light);
}

.language-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.loading-modal.show {
    display: flex;
}

.loading-content {
    background-color: var(--bg-light);
    padding: 2rem 3rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

.loading-text {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.dark-theme .loading-text {
    color: var(--text-light);
}

body.modal-open {
    overflow: hidden;
    pointer-events: none;
}

body.modal-open * {
    pointer-events: none;
}

body.modal-open .loading-modal,
body.modal-open .loading-modal * {
    pointer-events: auto;
}

.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 9999;
    right: 20px;
    bottom: 30px;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.warning {
    background-color: #ffc107;
    color: #212529;
}

.toast.info {
    background-color: #17a2b8;
}

.dark-theme .theme-toggle {
    color: #f8f9fa;
}

.theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(30deg);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: var(--transition);
}

.dark-theme .menu-toggle span {
    background-color: #f8f9fa;
}

.hero {
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            var(--bg-primary) 50%,
            var(--bg-secondary) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle,
            rgba(37, 99, 235, 0.08) 0%,
            rgba(124, 58, 237, 0.04) 50%,
            transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle,
            rgba(124, 58, 237, 0.06) 0%,
            rgba(37, 99, 235, 0.02) 50%,
            transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

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

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

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

.dark-theme .hero {
    background: linear-gradient(135deg,
            var(--bg-secondary) 0%,
            var(--bg-primary) 50%,
            var(--bg-secondary) 100%);
}

.dark-theme .hero::before {
    background: radial-gradient(circle,
            rgba(37, 99, 235, 0.12) 0%,
            rgba(124, 58, 237, 0.06) 50%,
            transparent 70%);
}

.dark-theme .hero::after {
    background: radial-gradient(circle,
            rgba(124, 58, 237, 0.08) 0%,
            rgba(37, 99, 235, 0.04) 50%,
            transparent 70%);
}

.hero-content {
    flex: 1;
    padding-right: 60px;
    position: relative;
    z-index: 2;
    animation: slideInFromLeft 1s ease-out;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 16px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

#typing-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 2px;
    animation: blink 0.7s infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.5));
    }
    to {
        filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.8));
    }
}

.hero h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 520px;
    color: var(--text-muted);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: slideInFromRight 1s ease-out;
}

.profile-image {
    width: 340px;
    height: 340px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-slow);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    animation: pulse 3s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.1) 0%,
            transparent 50%,
            rgba(124, 58, 237, 0.05) 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.profile-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow:
        0 30px 60px rgba(37, 99, 235, 0.15),
        0 0 0 1px rgba(37, 99, 235, 0.2);
}

.profile-image:hover::before {
    opacity: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.profile-image:hover img {
    transform: scale(1.05);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 2px;
    padding: 12px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.detail-item:hover i {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.detail-item h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 600;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.skills-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

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

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.skill-link[data-category]:not(.visible) {
    display: none;
}

.skill-link[data-category].visible {
    display: block;
    animation: fadeInUp 0.4s ease-out;
}

.skill-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.05),
            rgba(124, 58, 237, 0.02));
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 
        0 20px 40px rgba(37, 99, 235, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.02),
            rgba(124, 58, 237, 0.01));
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card i {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--primary-color);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.skill-card:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.skill-card h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.skill-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.skill-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-6px);
}

.skill-link:hover .skill-card {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.skill-link:hover .skill-card::before {
    opacity: 1;
}

.skill-link:hover .skill-card i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.projects-grid {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.skeleton-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    height: 240px;
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 32px;
}

.skeleton-title {
    height: 24px;
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 16px;
    background: linear-gradient(90deg, 
        var(--bg-secondary) 25%, 
        var(--bg-tertiary) 50%, 
        var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text:last-child {
    width: 60%;
}

@keyframes skeleton-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes skeleton-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.02),
            rgba(124, 58, 237, 0.01));
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 
        0 25px 50px rgba(37, 99, 235, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

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

.project-image {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(45deg, var(--bg-secondary), var(--bg-primary));
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: var(--transition-slow);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    filter: brightness(1);
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1);
}

.project-content {
    padding: 32px;
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.3;
    transition: var(--transition);
}

.project-card:hover .project-content h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 80px;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.project-tech span {
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.1),
            rgba(124, 58, 237, 0.05));
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.project-card:hover .project-tech span {
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--accent-color));
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

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

.project-card .btn-outline {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

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

.education-container {
    max-width: 900px;
    margin: 0 auto 60px;
    position: relative;
}

.education-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
            var(--border-color) 0%,
            var(--primary-color) 50%,
            var(--border-color) 100%);
    transform: translateX(-50%);
}

.education-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: calc(50% - 40px);
}

.education-item:nth-child(odd) {
    margin-left: auto;
    margin-right: 0;
}

.education-item:nth-child(even) {
    margin-left: 0;
    margin-right: auto;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.education-item:nth-child(odd)::before {
    left: -41px;
}

.education-item:nth-child(even)::before {
    right: -41px;
}

.education-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.education-item:hover::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.1);
}

.education-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg,
            rgba(37, 99, 235, 0.1),
            rgba(124, 58, 237, 0.05));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.education-item:hover .education-icon {
    background: linear-gradient(135deg,
            var(--primary-color),
            var(--accent-color));
    color: white;
    transform: scale(1.05);
    border-color: transparent;
}

.education-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.institution {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-size: 1rem;
}

.period {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.courses-title {
    text-align: center;
    font-size: 2rem;
    margin: 80px 0 40px;
    color: var(--text-primary);
    font-weight: 600;
    position: relative;
}

.courses-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 32px 24px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

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

.course-card i {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 16px;
    transition: var(--transition);
}

.course-card:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.course-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background-color: var(--bg-dark);
    color: #f8f9fa;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo {
    color: #f8f9fa;
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-logo p {
    color: #adb5bd;
    line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
    color: #f8f9fa;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-social h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f8f9fa;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    font-size: 0.9rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.fadeInUp {
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
}

.fadeInUp.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards;
}

.toast.show {
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.warning {
    background-color: #ffc107;
    color: #212529;
}

.toast .close-btn {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    padding: 0;
    line-height: 1;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

.contact-form .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    max-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.contact-form .btn-primary.loading {
    color: transparent;
    pointer-events: none;
    padding: 12px;
    min-height: 48px;
    max-height: 48px;
}

.contact-form .btn-primary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .hero {
        padding: 150px 0 80px;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 500px;
        margin: 0 auto 32px;
    }

    .cta-buttons {
        justify-content: center;
        gap: 20px;
    }

    .profile-image {
        width: 300px;
        height: 300px;
        transform: perspective(1000px) rotateY(0deg);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 20px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }

    .education-container::before {
        left: 30px;
    }

    .education-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }

    .education-item::before {
        left: -41px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-surface);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .profile-image {
        width: 260px;
        height: 260px;
        border-radius: 20px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .education-container::before {
        left: 20px;
    }

    .education-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: 24px;
    }

    .education-item::before {
        left: -31px !important;
    }

    .courses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .profile-image {
        width: 220px;
        height: 220px;
        border-radius: 16px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .skill-card {
        padding: 24px 16px;
    }

    .education-container::before {
        left: 15px;
    }

    .education-item {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        padding: 20px;
        gap: 16px;
    }

    .education-item::before {
        left: -26px !important;
        width: 12px;
        height: 12px;
    }

    .education-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .education-content h3 {
        font-size: 1.1rem;
    }

    .institution {
        font-size: 0.9rem;
    }

    .period {
        font-size: 0.8rem;
    }

    .courses-title {
        font-size: 1.6rem;
        margin: 60px 0 32px;
    }

    .courses-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .course-card {
        padding: 24px 20px;
    }

    .contact-form {
        padding: 30px 24px;
    }

    .navbar {
        padding: 0 16px;
    }

    .container {
        padding: 0 16px;
    }

    .project-content {
        padding: 24px;
    }

    .project-image {
        height: 180px;
    }
}

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

.stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: var(--transition);
}

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

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

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    transition: var(--transition);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.counting {
    animation: countUp 0.6s ease-out;
}

.dark-theme .stat-card {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

.dark-theme .stat-number {
    color: var(--primary-light);
}

.dark-theme .stat-label {
    color: var(--gray-300);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}