/* Reset and base styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Creative Colors */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #f59e0b;
    --accent-pink: #ec4899;
    --accent-teal: #14b8a6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --background: #ffffff;
    --surface: #f8fafc;
    --surface-alt: #f1f5f9;
    --border: #e2e8f0;
    --shadow-soft: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-colored: 0 20px 25px -5px rgba(99, 102, 241, 0.2);
    
    /* Creative Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    --font-size-xs: clamp(0.7rem, 0.9vw, 0.75rem);
    --font-size-sm: clamp(0.8rem, 1vw, 0.875rem);
    --font-size-base: clamp(0.9rem, 1.1vw, 1rem);
    --font-size-lg: clamp(1rem, 1.3vw, 1.125rem);
    --font-size-xl: clamp(1.1rem, 1.5vw, 1.25rem);
    --font-size-2xl: clamp(1.3rem, 2vw, 1.5rem);
    --font-size-3xl: clamp(1.6rem, 2.5vw, 1.875rem);
    --font-size-4xl: clamp(2rem, 3vw, 2.25rem);
    --font-size-5xl: clamp(2.5rem, 4.5vw, 3.5rem);
    
    /* Fluid Spacing */
    --spacing-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --spacing-sm: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-md: clamp(0.75rem, 1.5vw, 1rem);
    --spacing-lg: clamp(1rem, 2vw, 1.5rem);
    --spacing-xl: clamp(1.5rem, 3vw, 2rem);
    --spacing-2xl: clamp(2rem, 4vw, 3rem);
    --spacing-3xl: clamp(3rem, 6vw, 5rem);
    
    /* Creative Layout */
    --container-max-width: 1400px;
    --border-radius: 1.5rem;
    --border-radius-lg: 2.5rem;
    --border-radius-xl: 3rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    width: 100%;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-soft);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    padding: 0 var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
}

.nav-logo a {
    font-size: var(--font-size-2xl);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: var(--spacing-xs);
    background: rgba(248, 250, 252, 0.8);
    padding: var(--spacing-xs);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: calc(var(--border-radius) - 2px);
    transition: all 0.3s ease;
    font-family: var(--font-family);
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.lang-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 12px;
    min-width: 48px;
    min-height: 48px;
    background: none;
    border: none;
    z-index: 1002;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
}

.hamburger .bar {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active .bar {
    background: var(--primary-color);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 70%, rgba(20, 184, 166, 0.06) 0%, transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: 
        conic-gradient(from 45deg at 50% 50%, rgba(99, 102, 241, 0.03) 0deg, transparent 120deg, rgba(236, 72, 153, 0.02) 240deg, transparent 360deg);
    animation: rotate 20s linear infinite;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.8) 100%);
    z-index: 1;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-greeting {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.2s;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-xl);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 50%, var(--accent-pink) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.4s;
}

.highlight {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5%;
    width: 110%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-pink), var(--accent-teal));
    border-radius: 4px;
    opacity: 0.3;
    transform: skewX(-12deg);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.6s;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.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.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid rgba(99, 102, 241, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-soft);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

.animated-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-svg {
    width: 100%;
    height: 100%;
    animation: float 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-svg:hover {
    transform: scale(1.05);
}

/* Sections */
section {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

/* About Section */
.about {
    background: 
        linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-text p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.skills {
    margin-top: var(--spacing-xl);
}

.skills h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.skill-item {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    justify-items: center;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

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

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

.service-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-medium);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(-1deg);
}

.service-icon {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-lg);
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.service-card ul {
    list-style: none;
}

.service-card li {
    position: relative;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Portfolio Section */
.portfolio {
    background: var(--surface);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.portfolio-item {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: var(--font-size-5xl);
    color: white;
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-content h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.portfolio-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.portfolio-tech {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.portfolio-tech span {
    background: var(--surface);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: 
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        linear-gradient(135deg, var(--surface) 0%, var(--background) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-intro {
    margin-bottom: var(--spacing-2xl);
}

.contact-intro h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.contact-intro p {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-soft);
}

.contact-icon {
    font-size: var(--font-size-xl);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

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

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

/* Contact Photo */
.contact-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xl);
}

.photo-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-frame {
    position: relative;
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    border: 6px solid white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-frame:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: var(--shadow-colored);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.photo-frame:hover .profile-photo {
    transform: scale(1.1);
}

.photo-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.decoration-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-pink));
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-teal));
    bottom: 15%;
    left: -5%;
    animation-delay: 1s;
}

.decoration-3 {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-pink));
    top: 60%;
    right: -8%;
    animation-delay: 2s;
}

.photo-caption {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 400px;
}

.caption-text {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.caption-author {
    font-size: var(--font-size-base);
    color: var(--text-secondary);
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-primary) 0%, #1e1b4b 100%);
    color: white;
    padding: var(--spacing-2xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-text p {
    margin: 0;
    opacity: 0.9;
}

.footer-text p:first-child {
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.footer-text p:last-child {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Language Transition */
[data-i18n] {
    transition: opacity 0.3s ease;
}

/* Creative Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        filter: blur(4px);
    }
    to { 
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    33% { 
        transform: translateY(-15px) rotate(1deg); 
    }
    66% { 
        transform: translateY(-10px) rotate(-1deg); 
    }
}

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

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

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

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

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

@keyframes morphBackground {
    0%, 100% {
        border-radius: var(--border-radius-xl) 60% var(--border-radius-xl) 60%;
    }
    50% {
        border-radius: 60% var(--border-radius-xl) 60% var(--border-radius-xl);
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .navbar {
        width: calc(100% - 1rem);
        top: var(--spacing-sm);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        transform: none;
        border-radius: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
        z-index: 1000;
        border: none;
    }
    
    .nav-container {
        padding: 0 var(--spacing-lg);
        height: 60px;
        max-width: none;
        margin: 0;
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-logo {
        order: 1;
        flex-shrink: 0;
    }
    
    .nav-logo a {
        font-size: var(--font-size-xl);
        color: var(--text-primary);
    }
    
    .language-switcher {
        position: static;
        order: 3;
        margin-right: var(--spacing-sm);
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--border);
        box-shadow: var(--shadow-soft);
        z-index: 999;
    }

    .nav-menu {
        position: fixed;
        order: 2;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100vw;
        height: calc(100vh - 60px);
        text-align: center;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        box-shadow: var(--shadow-medium);
        padding: var(--spacing-3xl) var(--spacing-lg);
        border-top: 1px solid var(--border);
        gap: var(--spacing-2xl);
        justify-content: flex-start;
        align-items: center;
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-menu li {
        margin: 0;
        width: 100%;
        max-width: 280px;
        opacity: 0;
        transform: translateY(30px);
    }

    .nav-menu.active li {
        animation: slideInNavItem 0.5s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }

    .nav-link {
        font-size: var(--font-size-xl);
        font-weight: 600;
        padding: var(--spacing-lg) var(--spacing-xl);
        border-radius: var(--border-radius-lg);
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        color: var(--text-primary);
        background: rgba(248, 250, 252, 0.8);
        border: 2px solid transparent;
        backdrop-filter: blur(10px);
    }

    .nav-link:hover,
    .nav-link:focus {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .hamburger {
        display: flex;
        position: relative;
        order: 4;
        flex-shrink: 0;
        z-index: 1002;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        cursor: pointer;
        min-width: 48px;
        min-height: 48px;
        padding: 12px;
    }

    .hero {
        padding-top: 80px;
        min-height: 100vh;
        padding-bottom: var(--spacing-2xl);
        width: 100%;
        overflow-x: hidden;
    }

    .hero-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0 var(--spacing-md);
    }

    .hero-content {
        text-align: center;
        gap: var(--spacing-2xl);
        padding: var(--spacing-xl) 0;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .hero-greeting {
        font-size: var(--font-size-xl);
        font-weight: 600;
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: var(--spacing-xl);
    }
    
    .hero-description {
        font-size: var(--font-size-lg);
        line-height: 1.6;
        margin-bottom: var(--spacing-2xl);
        color: var(--text-secondary);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .animated-container {
        width: clamp(250px, 70vw, 320px);
        height: clamp(250px, 70vw, 320px);
        margin: 0 auto;
    }

    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        font-weight: 800;
        margin-bottom: var(--spacing-xl);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
        line-height: 1.5;
        margin-bottom: var(--spacing-2xl);
        color: var(--text-secondary);
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        text-align: center;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .portfolio-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-lg);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: var(--spacing-lg) var(--spacing-xl);
        font-size: var(--font-size-base);
        font-weight: 600;
    }
    
    .service-card,
    .portfolio-item {
        margin: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    * {
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 var(--spacing-md);
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        overflow-x: hidden;
    }

    .nav-container {
        padding: 0 var(--spacing-md);
        height: 60px;
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu {
        top: 60px;
        height: calc(100vh - 60px);
        padding: var(--spacing-2xl) var(--spacing-md);
        width: 100vw;
        max-width: 100%;
        left: 0;
        right: auto;
        transform: none;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .hero {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: var(--font-size-base);
        max-width: 95%;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: var(--spacing-lg);
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xl);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .skill-item {
        padding: var(--spacing-sm) var(--spacing-xs);
        font-size: var(--font-size-xs);
        font-weight: 600;
    }
    
    .service-card {
        padding: var(--spacing-lg);
        width: 100%;
        box-sizing: border-box;
    }
    
    .service-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .contact-methods {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-base);
    }
    
    .contact-item h4 {
        font-size: var(--font-size-sm);
    }
    
    .photo-container {
        max-width: 280px;
    }
    
    .decoration-circle {
        opacity: 0.4;
    }
    
    .decoration-1 {
        width: 50px;
        height: 50px;
    }
    
    .decoration-2 {
        width: 40px;
        height: 40px;
    }
    
    .decoration-3 {
        width: 35px;
        height: 35px;
    }
    
    .photo-caption {
        padding: var(--spacing-md);
    }
    
    .caption-text {
        font-size: var(--font-size-base);
    }
    
    .footer-content {
        text-align: center;
        flex-direction: column;
        padding: var(--spacing-lg) 0;
    }
    
    .footer-text p:first-child {
        font-size: var(--font-size-base);
    }
    
    .btn {
        padding: 14px 20px;
        font-size: var(--font-size-sm);
        font-weight: 600;
    }
}