:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-bg: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Improved tap highlighting for mobile */
    -webkit-tap-highlight-color: rgba(37, 99, 235, 0.3);
    tap-highlight-color: rgba(37, 99, 235, 0.3);
}

html {
    scroll-behavior: smooth;
    /* iOS momentum scrolling */
    -webkit-overflow-scrolling: touch;
    /* Better text rendering on mobile */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent pull-to-refresh on mobile browsers */
    overscroll-behavior-y: contain;
    /* Better touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent text size adjustment on mobile */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Touch-friendly interactive elements */
a, button, input, textarea, select {
    /* Smooth touch interactions */
    touch-action: manipulation;
    /* Better touch response */
    -webkit-touch-callout: default;
}

button, .btn, .filter-btn, .lang-btn, .hobby-card, .project-card {
    /* Prevent accidental text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Disable callout on long press */
    -webkit-touch-callout: none;
}

/* Input fields optimization */
input, textarea, select {
    /* Better mobile keyboard experience */
    font-size: 16px; /* Prevents zoom on iOS */
    /* Smooth appearance on mobile */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 60%, #60a5fa 100%);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #e2e8f0 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0.55rem 0.9rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.nav-menu a::after { display: none; }

.nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}

.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.lang-btn .flag {
    font-size: 1.2rem;
    display: inline-block;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.lang-btn.active .flag {
    animation: wave 0.5s ease-in-out;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 30px;
    height: 26px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
    position: relative;
}

.hamburger span:nth-child(1) {
    transform: translateY(0) rotate(0deg);
}

.hamburger span:nth-child(2) {
    opacity: 1;
    transform: scaleX(1);
}

.hamburger span:nth-child(3) {
    transform: translateY(0) rotate(0deg);
}

/* Hamburger Active State - Perfect X */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 20px 50px;
    position: relative;
    overflow: hidden;
}

/* Animated Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: var(--primary-color);
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 220px;
    height: 220px;
    background: var(--accent-color);
    bottom: 40%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(20px, 30px) scale(1.05);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    /* Touch-friendly sizing */
    min-height: 44px;
    min-width: 44px;
    /* Prevent text selection on touch */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Smooth touch interactions */
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-secondary i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-secondary:hover i {
    transform: scale(1.2) rotate(5deg);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
}

.profile-photo {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.5), 
                0 0 0 10px rgba(37, 99, 235, 0.1),
                0 0 0 20px rgba(37, 99, 235, 0.05);
    transition: all 0.5s ease;
    animation: photoGlow 3s ease-in-out infinite;
    position: relative;
}

@keyframes photoGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.5), 
                    0 0 0 10px rgba(37, 99, 235, 0.1),
                    0 0 0 20px rgba(37, 99, 235, 0.05);
    }
    50% {
        box-shadow: 0 20px 70px rgba(37, 99, 235, 0.7), 
                    0 0 0 15px rgba(37, 99, 235, 0.15),
                    0 0 0 30px rgba(37, 99, 235, 0.08);
    }
}

.profile-photo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.6),
                0 0 0 15px rgba(37, 99, 235, 0.2),
                0 0 0 30px rgba(37, 99, 235, 0.1);
}

/* Section Styling */
section {
    padding: 80px 20px;
    position: relative;
}

.section-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-line {
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: slideLine 15s linear infinite;
}

@keyframes slideLine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.section-title {
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* About Section */
.about {
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-info {
    margin: 2rem 0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 30px;
}

.languages h3,
.about-hobbies h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-left: 1rem;
}

.languages h3::before,
.about-hobbies h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
}

.hobby-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.language-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hobby-grid {
    display: grid;
    gap: 1rem;
}

.hobby-card {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hobby-card::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;
}

.hobby-card:hover::before {
    left: 100%;
}

.hobby-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.hobby-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.hobby-card:hover .hobby-icon-wrapper {
    transform: rotateY(360deg);
}

.hobby-card i {
    font-size: 2rem;
    color: white;
}

.hobby-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hobby-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0.8) 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(96, 165, 250, 0.8) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.skill-category:hover::before {
    transform: scaleX(1);
}

.skill-category:hover::after {
    opacity: 1;
}

.skill-category:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.skill-category h3 i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 10px;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.skill-category:hover h3 i {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
    transform: rotate(5deg) scale(1.1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-tag {
    padding: 0.65rem 1.2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1.5px solid rgba(148, 163, 184, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Experience Section */
.experience {
    background: var(--darker-bg);
}

.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        rgba(37, 99, 235, 0.8) 0%, 
        rgba(59, 130, 246, 0.6) 50%, 
        rgba(37, 99, 235, 0.3) 100%);
    border-radius: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-dot {
    position: absolute;
    left: -48px;
    top: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    border: 4px solid var(--darker-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3),
                0 0 20px rgba(37, 99, 235, 0.5);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2),
                0 0 30px rgba(37, 99, 235, 0.7);
    background: linear-gradient(135deg, rgba(37, 99, 235, 1) 0%, rgba(59, 130, 246, 1) 100%);
}

.timeline-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-dot::after {
    opacity: 1;
}

.timeline-content {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(37, 99, 235, 0.8) 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(96, 165, 250, 0.8) 100%);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-content:hover::after {
    opacity: 1;
}

.timeline-content:hover {
    border-color: rgba(37, 99, 235, 0.4);
    transform: translateX(10px) translateY(-5px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.timeline-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.timeline-date {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
}

.timeline-content h4 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.timeline-content p,
.timeline-content ul {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 0.95rem;
}

.timeline-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.timeline-content li {
    margin-bottom: 0.7rem;
    position: relative;
    padding-left: 0.5rem;
}

.timeline-content li::marker {
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    border: 1.5px solid rgba(148, 163, 184, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

.tech-tag:hover {
    border-color: var(--primary-color);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Projects Section */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0.8) 0%, 
        rgba(59, 130, 246, 0.8) 50%, 
        rgba(96, 165, 250, 0.8) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.4);
    border-color: rgba(37, 99, 235, 0.4);
}

.project-image {
    height: 180px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(59, 130, 246, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.project-card:hover .project-image i {
    transform: scale(1.15) rotate(5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.project-tech span {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 41, 59, 0.6) 100%);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-color);
    border: 1.5px solid rgba(148, 163, 184, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    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(37, 99, 235, 0.2), transparent);
    transition: left 0.5s ease;
}

.project-tech span:hover::before {
    left: 100%;
}

.project-tech span:hover {
    border-color: var(--primary-color);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.25) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    background: var(--darker-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    width: 30px;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 2rem 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    background: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 50px;
    }

    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .social-links {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 40px;
    }

    .timeline::before {
        left: 14px;
        width: 2px;
    }

    .timeline-dot {
        left: -38px;
        width: 20px;
        height: 20px;
    }

    .timeline-content {
        padding: 1.8rem;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2.25rem;
        margin-bottom: 3rem;
    }

    .shape {
        opacity: 0.08;
    }
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 280px;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        text-align: left;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        padding: 6rem 0 2rem 0;
        border-left: 2px solid rgba(37, 99, 235, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        gap: 0;
        overflow-y: auto;
    }

    .nav-menu li {
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-menu.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }

    .nav-menu a {
        display: block;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-radius: 0;
        border-left: 3px solid transparent;
        transition: all 0.3s ease;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(37, 99, 235, 0.15);
        border-left-color: var(--primary-color);
        padding-left: 2.5rem;
        transform: translateX(0);
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .language-switcher {
        position: absolute;
        right: 60px;
        top: 15px;
        gap: 0.3rem;
        margin-left: 0;
    }

    .lang-btn {
        padding: 0.4rem 0.6rem;
    }

    .lang-btn .lang-text {
        display: none;
    }

    .lang-btn .flag {
        font-size: 1.3rem;
    }

    .hero {
        padding: 120px 15px 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
        padding-bottom: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .timeline-header h3 {
        font-size: 1.2rem;
    }

    .timeline-date {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .tech-stack {
        gap: 0.4rem;
    }

    .tech-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .profile-photo {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 60px 15px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .image-placeholder,
    .profile-photo {
        width: 200px;
        height: 200px;
        font-size: 5rem;
    }

    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .pr-grid {
        grid-template-columns: 1fr;
    }

    .recipe-meta {
        grid-template-columns: 1fr;
    }

    .manga-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .close-modal {
        right: 10px;
        top: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--light-bg);
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--dark-bg);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--dark-bg);
}

.close-modal:hover {
    color: var(--text-primary);
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-header {
    background: var(--gradient-2);
    padding: 2rem;
    text-align: center;
    color: white;
    border-radius: 20px 20px 0 0;
}

.modal-header i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.modal-header h2 {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.modal-intro {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.modal-footer-text {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
    font-style: italic;
}

.modal-footer-text i {
    color: var(--primary-color);
}

/* Fitness Modal - PR Cards */
.pr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pr-card {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.pr-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.pr-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-icon i {
    font-size: 1.8rem;
    color: white;
}

.pr-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pr-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.pr-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.pr-total {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--primary-color);
}

.pr-total h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.total-value {
    font-size: 2.5rem;
    font-weight: bold;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Manga Modal */
.manga-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.manga-item {
    display: flex;
    gap: 1.5rem;
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.manga-item:hover {
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.manga-rank {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.manga-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.manga-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Cooking Modal */
.recipe-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.recipe-header h3 {
    color: var(--text-primary);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.recipe-intro {
    color: var(--text-secondary);
    margin: 0;
}

.recipe-section {
    margin-bottom: 2rem;
}

.recipe-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.recipe-section h4 i {
    color: var(--primary-color);
}

.ingredients-list,
.recipe-steps {
    background: var(--dark-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.ingredients-list li,
.recipe-steps li {
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.recipe-steps li {
    padding-left: 0.5rem;
}

.recipe-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

