:root {
    --apple-blue: #8d169c;
    --apple-dark: #1d1d1f;
    --apple-gray: #86868b;
    --apple-light-gray: #f5f5f7;
    --apple-white: #fbfbfd;
    --white: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --shadow-subtle: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

body.dark-mode {
    --apple-dark: #f5f5f7;
    --apple-light-gray: #1d1d1f;
    --white: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-tertiary: #86868b;
    --shadow-subtle: rgba(255, 255, 255, 0.08);
    --shadow-medium: rgba(255, 255, 255, 0.12);
    --shadow-strong: rgba(255, 255, 255, 0.2);
    background: #000000;
}

body.dark-mode .navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
}

body.dark-mode .about-card,
body.dark-mode .skill-category,
body.dark-mode .portfolio-link-card {
    background: #1d1d1f;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero {
    background: #000000;
}

body.dark-mode .about {
    background: #000000;
}

body.dark-mode .portfolio {
    background: #000000;
}

body.dark-mode .contact {
    background: #1d1d1f;
}

body.dark-mode .contact-card {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

body.dark-mode .tag:hover {
    background: rgba(141, 22, 156, 0.2);
}

body.dark-mode #matrix-canvas {
    opacity: 0.15;
}

body.dark-mode .nav-menu {
    background: rgba(0, 0, 0, 0.98);
}

body.dark-mode .nav-overlay {
    background: rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.02;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(251, 251, 253, 0.9);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--apple-blue) 0%, rgba(141, 22, 156, 0.8) 100%);
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-text {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.5rem;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.01em;
}

.logo-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.875rem;
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.nav-link span {
    display: none;
}

.nav-link:hover {
    color: var(--apple-blue);
    opacity: 0.8;
}

.nav-link::after {
    display: none;
}

.nav-link::before {
    display: none;
}

.lang-toggle {
    background: none;
    border: 1px solid rgba(141, 22, 156, 0.2);
    color: var(--text-primary);
    cursor: pointer;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.lang-toggle:hover {
    border-color: rgba(141, 22, 156, 0.4);
    opacity: 0.8;
}

.lang-toggle span {
    transition: all 0.3s ease;
    opacity: 0.5;
}

.lang-toggle span.active {
    opacity: 1;
    color: var(--apple-blue);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    opacity: 0.8;
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

body.dark-mode .theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

body.dark-mode .theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(141, 22, 156, 0.04) 0%, transparent 70%);
    filter: blur(40px);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: 15%;
    right: 10%;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 15%;
}

.shape-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(141, 22, 156, 0.06);
    background: transparent;
    filter: blur(1px);
}

.ring-1 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-greeting {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.05;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-text::before {
    color: #00ffff;
    z-index: -1;
    animation: glitch-effect-1 4s infinite;
    text-shadow: 2px 0 #00ffff;
}

.glitch-text::after {
    color: #e8a0bf;
    z-index: -2;
    animation: glitch-effect-2 4s infinite;
    text-shadow: -2px 0 #e8a0bf;
}

@keyframes glitch-effect-1 {
    0% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    2% {
        opacity: 1;
        transform: translate(-4px, 0);
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    }
    4% {
        opacity: 1;
        transform: translate(4px, 0);
        clip-path: polygon(0 15%, 100% 15%, 100% 25%, 0 25%);
    }
    6% {
        opacity: 1;
        transform: translate(-2px, 0);
        clip-path: polygon(0 35%, 100% 35%, 100% 40%, 0 40%);
    }
    8% {
        opacity: 1;
        transform: translate(3px, 0);
        clip-path: polygon(0 60%, 100% 60%, 100% 65%, 0 65%);
    }
    10% {
        opacity: 1;
        transform: translate(-3px, 0);
        clip-path: polygon(0 80%, 100% 80%, 100% 85%, 0 85%);
    }
    12% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

@keyframes glitch-effect-2 {
    0% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    2% {
        opacity: 1;
        transform: translate(4px, 0);
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }
    4% {
        opacity: 1;
        transform: translate(-4px, 0);
        clip-path: polygon(0 30%, 100% 30%, 100% 35%, 0 35%);
    }
    6% {
        opacity: 1;
        transform: translate(2px, 0);
        clip-path: polygon(0 45%, 100% 45%, 100% 55%, 0 55%);
    }
    8% {
        opacity: 1;
        transform: translate(-3px, 0);
        clip-path: polygon(0 70%, 100% 70%, 100% 75%, 0 75%);
    }
    10% {
        opacity: 1;
        transform: translate(3px, 0);
        clip-path: polygon(0 90%, 100% 90%, 100% 95%, 0 95%);
    }
    12% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    100% {
        opacity: 0;
        transform: translate(0);
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.hero-subtitle {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.highlight {
    color: var(--apple-blue);
    font-weight: 600;
    position: relative;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--apple-blue);
    color: var(--white);
    box-shadow: none;
    font-size: 1.0625rem;
    border-radius: 980px;
    padding: 0.75rem 1.75rem;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: #9d1aae;
    box-shadow: 0 4px 15px rgba(141, 22, 156, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 1.5px solid var(--apple-blue);
    font-size: 1.0625rem;
    border-radius: 980px;
    padding: 0.75rem 1.75rem;
}

.btn-secondary:hover {
    background: rgba(141, 22, 156, 0.04);
    transform: scale(1.02);
    box-shadow: none;
    border-color: var(--apple-blue);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-left: 1.5px solid var(--text-secondary);
    border-bottom: 1.5px solid var(--text-secondary);
    transform: rotate(-45deg);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(-45deg);
    }
    40% {
        transform: translateY(10px) rotate(-45deg);
    }
    60% {
        transform: translateY(5px) rotate(-45deg);
    }
}

section {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 3rem;
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.3125rem;
    color: var(--text-secondary);
    margin-bottom: 5rem;
    font-weight: 400;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.47059;
}

.about {
    position: relative;
    background: var(--apple-light-gray);
    overflow: hidden;
    padding: 8rem 0;
}

.about-main {
    position: relative;
    z-index: 1;
}

.about-card {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 18px;
    border: none;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.featured-card {
    box-shadow: 0 2px 8px var(--shadow-subtle);
}

.lead {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    position: relative;
    z-index: 1;
    text-align: left;
}

.about-card p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.47059;
    position: relative;
    z-index: 1;
    text-align: left;
}

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

.skill-category {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 18px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    display: none;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.skill-category:hover .skill-icon {
    transform: scale(1.05);
    background: rgba(141, 22, 156, 0.12);
}

.skill-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--apple-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(141, 22, 156, 0.08);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.3s ease;
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.skill-category h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    padding: 0.5rem 0.875rem;
    background: var(--apple-light-gray);
    border: none;
    border-radius: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: default;
    font-weight: 400;
}

.tag:hover {
    background: #e8e8ed;
}

.portfolio {
    background: var(--white);
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-link-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-subtle);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.portfolio-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(141, 22, 156, 0.03) 0%, rgba(141, 22, 156, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px var(--shadow-medium);
    border-color: rgba(141, 22, 156, 0.1);
}

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

.portfolio-link-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(141, 22, 156, 0.08);
    border-radius: 16px;
    color: var(--apple-blue);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.portfolio-link-card:hover .portfolio-link-icon {
    background: rgba(141, 22, 156, 0.12);
    transform: scale(1.05);
}

.portfolio-link-icon svg {
    width: 40px;
    height: 40px;
}

.portfolio-link-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.portfolio-link-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.portfolio-link-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

.contact {
    background: var(--apple-light-gray);
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

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

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 18px;
    text-align: center;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-subtle);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    display: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--apple-blue);
    transition: all 0.3s ease;
    padding: 1rem;
    background: transparent;
    border-radius: 50%;
}

.contact-card:hover .contact-icon {
    transform: scale(1.05);
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

.contact-card p a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card p a:hover {
    color: var(--apple-blue);
}

.footer {
    background: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Interactive Background Effects */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(141, 22, 156, 0.08) 0%, transparent 70%);
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

body.dark-mode .mouse-glow {
    background: radial-gradient(circle, rgba(141, 22, 156, 0.15) 0%, transparent 70%);
}

/* Hide mouse effects on touch devices */
@media (hover: none) and (pointer: coarse) {
    .mouse-glow {
        display: none !important;
    }
}

.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(141, 22, 156, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 20s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(141, 22, 156, 0.2);
}

body.dark-mode .floating-particle {
    background: rgba(141, 22, 156, 0.5);
    box-shadow: 0 0 15px rgba(141, 22, 156, 0.4);
}

.shape-circle,
.shape-ring {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.8;
    }
    90% {
        opacity: 1;
    }
}

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

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

[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-right"] {
    transform: translateX(-30px);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

@media (max-width: 968px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 998;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: flex-start;
        border-radius: 12px;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(141, 22, 156, 0.1);
    }
    
    .nav-menu .theme-toggle,
    .nav-menu .lang-toggle {
        width: 100%;
        padding: 1rem 1.5rem;
        justify-content: center;
        border-radius: 12px;
    }
    
    .nav-menu li:has(.theme-toggle),
    .nav-menu li:has(.lang-toggle) {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(141, 22, 156, 0.15);
    }
    
    .nav-menu .theme-toggle {
        background: rgba(141, 22, 156, 0.1);
    }
    
    .nav-menu .theme-toggle:hover {
        background: rgba(141, 22, 156, 0.15);
    }
    
    .nav-menu .lang-toggle {
        background: transparent;
        border: 2px solid rgba(141, 22, 156, 0.3);
    }
    
    .nav-menu .lang-toggle:hover {
        background: rgba(141, 22, 156, 0.05);
        border-color: rgba(141, 22, 156, 0.5);
    }
    
    .nav-container {
        padding: 0 2rem;
    }
    
    .logo-name {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        width: 280px;
        padding: 5rem 1.5rem 2rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-link {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .nav-menu .theme-toggle,
    .nav-menu .lang-toggle {
        padding: 0.875rem 1.25rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .circle-1 {
        width: 250px;
        height: 250px;
    }
    
    .circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .ring-1 {
        width: 400px;
        height: 400px;
    }
    
    .section-header {
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-line {
        display: none;
    }
    
    .lang-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .theme-toggle {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    
    .portfolio-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-link-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .skill-category {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 2rem 1.5rem;
    }
}

