:root {
    --primary-color-light: #4f46e5;
    --primary-light-light: #818cf8;
    --primary-dark-light: #3730a3;
    --secondary-color-light: #f472b6;
    --secondary-light-light: #f9a8d4;
    --accent-color-light: #10b981;
    --dark-color-light: #111827;
    --text-dark-light: #1f2937;
    --text-light-light: #f9fafb;
    --bg-color-light: #ffffff;
    --bg-light-light: #f3f4f6;
    --card-bg-light: rgba(255, 255, 255, 0.8);
    --header-bg-light: rgba(255, 255, 255, 0.9);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-light: rgba(255, 255, 255, 0.18);
    
    --primary-color-dark: #6366f1;
    --primary-light-dark: #a5b4fc;
    --primary-dark-dark: #4338ca;
    --secondary-color-dark: #ec4899;
    --secondary-light-dark: #fbcfe8;
    --accent-color-dark: #34d399;
    --dark-color-dark: #030712;
    --text-dark-dark: #e5e7eb;
    --text-light-dark: #f9fafb;
    --bg-color-dark: #111827;
    --bg-light-dark: #1f2937;
    --card-bg-dark: rgba(31, 41, 55, 0.8);
    --header-bg-dark: rgba(17, 24, 39, 0.9);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    --border-dark: rgba(255, 255, 255, 0.08);
    
    --primary-color: var(--primary-color-light);
    --primary-light: var(--primary-light-light);
    --primary-dark: var(--primary-dark-light);
    --secondary-color: var(--secondary-color-light);
    --secondary-light: var(--secondary-light-light);
    --accent-color: var(--accent-color-light);
    --dark-color: var(--dark-color-light);
    --text-dark: var(--text-dark-light);
    --text-light: var(--text-light-light);
    --bg-color: var(--bg-color-light);
    --bg-light: var(--bg-light-light);
    --card-bg: var(--card-bg-light);
    --header-bg: var(--header-bg-light);
    --shadow: var(--shadow-light);
    --border: var(--border-light);
    
    --section-padding: 100px 0;
    --transition: all 0.3s ease;
    --border-radius: 16px;
    --card-radius: 24px;
    --btn-radius: 30px;
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
    
    --primary-color-rgb-light: 79, 70, 229;
    --secondary-color-rgb-light: 244, 114, 182;
    --dark-color-rgb-light: 17, 24, 39;
    
    --primary-color-rgb-dark: 99, 102, 241;
    --secondary-color-rgb-dark: 236, 72, 153;
    --dark-color-rgb-dark: 3, 7, 18;
    
    --primary-color-rgb: var(--primary-color-rgb-light);
    --secondary-color-rgb: var(--secondary-color-rgb-light);
    --dark-color-rgb: var(--dark-color-rgb-light);
}

[data-theme="dark"] {
    --primary-color: var(--primary-color-dark);
    --primary-light: var(--primary-light-dark);
    --primary-dark: var(--primary-dark-dark);
    --secondary-color: var(--secondary-color-dark);
    --secondary-light: var(--secondary-light-dark);
    --accent-color: var(--accent-color-dark);
    --dark-color: var(--dark-color-dark);
    --text-dark: var(--text-dark-dark);
    --text-light: var(--text-light-dark);
    --bg-color: var(--bg-color-dark);
    --bg-light: var(--bg-light-dark);
    --card-bg: var(--card-bg-dark);
    --header-bg: var(--header-bg-dark);
    --shadow: var(--shadow-dark);
    --border: var(--border-dark);
    
    --primary-color-rgb: var(--primary-color-rgb-dark);
    --secondary-color-rgb: var(--secondary-color-rgb-dark);
    --dark-color-rgb: var(--dark-color-rgb-dark);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    margin: 0 auto;
    border-radius: 10px;
    transition: background 0.3s ease;
}

section {
    padding: var(--section-padding);
    position: relative;
}

.btn {
    padding: 12px 30px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    outline: none;
    text-align: center;
    font-family: var(--font-primary);
}

.btn i {
    font-size: 18px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.4);
}

.primary-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.6);
}

.secondary-btn {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.secondary-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(79, 70, 229, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: 0.15s cubic-bezier(0.75, -0.27, 0.3, 1.33), background-color 0.3s ease;
    z-index: 9998;
}

.blob-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    transition: background 0.3s ease;
}

.blob1 {
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    animation: blob-move-1 20s infinite alternate;
}

.blob2 {
    bottom: -15%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    animation: blob-move-2 25s infinite alternate;
}

.blob3 {
    top: 40%;
    left: 30%;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-light));
    animation: blob-move-3 18s infinite alternate;
    opacity: 0.3;
}

.blob4 {
    top: 20%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-color), transparent);
    animation: blob-move-4 15s infinite alternate;
    opacity: 0.2;
}

@keyframes blob-move-1 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-100px) scale(1.1) rotate(30deg); }
}

@keyframes blob-move-2 {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(100px) scale(1.2) rotate(-30deg); }
}

@keyframes blob-move-3 {
    0% { transform: translateY(0) translateX(0) scale(1); }
    100% { transform: translateY(-80px) translateX(50px) scale(1.1) rotate(20deg); }
}

@keyframes blob-move-4 {
    0% { transform: scale(1); }
    100% { transform: scale(1.3) rotate(10deg); }
}

.shape-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background-color: var(--primary-light);
    opacity: 0.05;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.shape1 {
    top: 15%;
    left: 5%;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    transform: rotate(45deg);
    animation: shape-float 8s ease-in-out infinite;
}

.shape2 {
    bottom: 10%;
    right: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    animation: shape-float 12s ease-in-out infinite;
}

.shape3 {
    top: 60%;
    right: 30%;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--accent-color);
    animation: shape-float 10s ease-in-out infinite reverse;
}

@keyframes shape-float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease, transform 0.4s ease;
}

header.scrolled {
    top: 15px;
    padding: 12px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

header.hide {
    transform: translate(-50%, -100px);
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    font-family: var(--font-secondary);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: block;
    position: relative;
    z-index: 1001;
}

.logo:hover {
    transform: translateY(-3px);
}

.logo span {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 5px;
    background-color: var(--bg-light);
    border-radius: 30px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .nav-links {
    background-color: rgba(31, 41, 55, 0.5);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--text-light);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.nav-links a::after {
    display: none;
}

.hero h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin: 10px 0 20px;
    font-weight: 800;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 150px 8% 80px;
    position: relative;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0;
    opacity: 0.8;
    transition: color 0.3s ease;
}

.hero h1 {
    font-size: 6rem;
    line-height: 1.1;
    margin: 10px 0 20px;
    font-weight: 800;
    background: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    opacity: 0.9;
    transition: color 0.3s ease;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper {
    width: 80%;
    position: relative;
    z-index: 1;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--card-radius);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-color));
    top: 20px;
    left: 20px;
    z-index: -1;
    transition: background 0.3s ease;
}

.image-wrapper img {
    width: 100%;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.image-wrapper:hover img {
    transform: translateY(-10px) translateX(-10px);
}

/* Floating badge and icons */
.badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: var(--shadow);
    transition: background 0.3s ease;
    z-index: 2;
}

.floating-icon {
    position: absolute;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.icon1 {
    width: 50px;
    height: 50px;
    bottom: 30px;
    left: -25px;
    animation: float-icon 4s ease-in-out infinite;
}

.icon2 {
    width: 45px;
    height: 45px;
    top: 40px;
    left: -20px;
    animation: float-icon 6s ease-in-out infinite;
}

.icon3 {
    width: 55px;
    height: 55px;
    bottom: -20px;
    right: 40px;
    animation: float-icon 5s ease-in-out infinite;
}

.floating-icon i {
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.3s ease;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    position: relative;
    transition: border-color 0.3s ease;
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: var(--text-dark);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 1.5s infinite;
    transition: background-color 0.3s ease;
}

.scroll-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

@keyframes wheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(20px); opacity: 0; }
}

.about {
    background-color: rgba(243, 244, 246, 0.5);
    border-radius: 40px;
    margin: 20px 8%;
    padding: 80px 5%;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .about {
    background-color: rgba(31, 41, 55, 0.5);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-container {
    position: relative;
    z-index: 1;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(79, 70, 229, 0.2), rgba(244, 114, 182, 0.2));
    z-index: 2;
    transition: background 0.3s ease;
}

.image-container img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image:hover .image-container img {
    transform: scale(1.05);
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.about-text h3 span {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
    opacity: 0.9;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

.about-details {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    gap: 20px;
}

.detail {
    display: flex;
    align-items: center;
    margin-right: 30px;
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.detail i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.detail span {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.skills {
    padding: 100px 8%;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 60px;
}

.skill-category h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    padding-left: 18px;
    display: inline-block;
    transition: color 0.3s ease;
}

.skill-category h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: background 0.3s ease;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border);
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.skill-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    display: block;
    transition: background 0.3s ease;
}

.skill-card i.fab.fa-cuttlefish {
    margin-right: -5px;
}

.skill-card i.fas.fa-plus {
    font-size: 0.7em;
    position: relative;
    top: -5px;
}

.skill-card h4 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

[data-theme="dark"] .progress-bar {
    background-color: #374151;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.percentage {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.projects {
    background-color: rgba(243, 244, 246, 0.5);
    border-radius: 40px;
    margin: 20px 8%;
    padding: 80px 5%;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .projects {
    background-color: rgba(31, 41, 55, 0.5);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background-color: var(--card-bg);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    font-family: var(--font-primary);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    padding: 0 20px;
    transform: translateY(20px);
    transition: var(--transition);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-info p {
    color: #e0e0e0;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.project-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact {
    padding: 100px 8%;
}

.contact-container {
    display: flex;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    padding-right: 30px;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-dark);
    opacity: 0.9;
    transition: color 0.3s ease;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    transition: color 0.3s ease;
}

.info-item span {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.3rem;
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: var(--card-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: background 0.3s ease;
}

.form-group {
    position: relative;
    margin-bottom: 35px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    color: var(--text-dark);
    border: none;
    border-radius: 12px;
    background: rgba(243, 244, 246, 0.5);
    outline: none;
    transition: var(--transition);
    font-family: var(--font-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: rgba(31, 41, 55, 0.5);
    color: var(--text-light);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #6b7280;
    font-size: 16px;
    transition: var(--transition);
    pointer-events: none;
}

[data-theme="dark"] .form-group label {
    color: #9ca3af;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px var(--primary-light);
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -25px;
    left: 0;
    font-size: 14px;
    color: var(--primary-color);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, var(--dark-color), #1e293b);
    color: var(--text-light);
    text-align: center;
    position: relative;
    margin-top: 120px; 
    padding: 80px 0 40px; 
    transition: background 0.3s ease;
    border-radius: 0;
    overflow: hidden;
}

.footer-waves {
  width: 100%;
  height: 150px;
  position: relative;
  margin-bottom: -10px;
  overflow: hidden;
  z-index: 1;
}

.footer-waves svg {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
}

.wave1 {
  fill: rgba(var(--accent-rgb), 0.2);
  animation: wave-animation 20s linear infinite;
  transform-origin: center bottom;
}

.wave2 {
  fill: rgba(var(--accent-rgb), 0.3);
  animation: wave-animation 15s linear infinite reverse;
  transform-origin: center bottom;
}

.wave3 {
  fill: var(--footer-bg, #1a1a2e);
  animation: wave-animation 30s linear infinite;
  transform-origin: center bottom;
}

@keyframes wave-animation {
  0% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-2%) scaleY(1.1); }
  100% { transform: translateX(0) scaleY(1); }
}

footer {
  position: relative;
  background-color: var(--footer-bg, #1a1a2e);
  color: var(--footer-text, #f5f5f5);
  overflow: hidden;
  margin-top: 4rem;
  z-index: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  position: relative;
  z-index: 2;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer-info .logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent, #4e54c8), var(--secondary-accent, #8f94fb));
  border-radius: 12px;
  margin-right: 10px;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(var(--accent-rgb, 78, 84, 200), 0.3);
}

.footer-info p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--footer-text-secondary, #adadad);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent, #4e54c8), var(--secondary-accent, #8f94fb));
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(var(--accent-rgb, 78, 84, 200), 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(var(--accent-rgb, 78, 84, 200), 0.4);
}

.back-to-top .tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--card-bg);
  color: var(--text-primary, #333333);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top:hover .tooltip {
  opacity: 1;
  visibility: visible;
  top: -45px;
}

.footer {
    position: relative;
    margin-top: 6rem;
    padding-top: 10rem;
    background-color: var(--card-bg, #1a1a2e);
    color: var(--text-secondary, #f5f5f5);
    overflow: hidden;
}

.footer-wave-container {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%231a1a2e' fill-opacity='1' d='M0,128L60,117.3C120,107,240,85,360,90.7C480,96,600,128,720,149.3C840,171,960,181,1080,165.3C1200,149,1320,107,1380,85.3L1440,64L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: contain;
    transform-origin: center bottom;
}

.footer-wave:nth-child(1) {
    opacity: 0.3;
    animation: wave-animation 18s linear infinite;
}

.footer-wave:nth-child(2) {
    opacity: 0.6;
    animation: wave-animation 14s linear infinite reverse;
    top: 20px;
}

.footer-wave:nth-child(3) {
    opacity: 1;
    animation: wave-animation 10s linear infinite;
    top: 40px;
}

@keyframes wave-animation {
    0% { transform: translateX(0); }
    50% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.logo-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent, #4e54c8), var(--secondary-accent, #8f94fb));
    border-radius: 12px;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb, 78, 84, 200), 0.3);
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #ffffff);
}

.logo-text .highlight {
    color: var(--accent, #4e54c8);
}

.footer-description {
    color: var(--text-secondary, #cccccc);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-heading {
    position: relative;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-primary, #ffffff);
}

.footer-heading i {
    color: var(--accent, #4e54c8);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    display: flex;
    align-items: center;
    color: var(--text-secondary, #cccccc);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-links a i {
    width: 1.5rem;
    margin-right: 0.5rem;
    color: var(--text-muted, #999999);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent, #4e54c8);
    transform: translateX(8px);
}

.footer-links a:hover i {
    color: var(--accent, #4e54c8);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    margin-bottom: 1.2rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(var(--accent-rgb, 78, 84, 200), 0.1);
    border-radius: 10px;
    margin-right: 1rem;
}

.contact-icon i {
    color: var(--accent, #4e54c8);
    font-size: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info span {
    font-size: 0.8rem;
    color: var(--text-muted, #999999);
    margin-bottom: 0.2rem;
}

.contact-info a, .contact-info p {
    color: var(--text-secondary, #cccccc);
    text-decoration: none;
    margin: 0;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent, #4e54c8);
}

.footer-social {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary, #ffffff);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary, #ffffff);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent, #4e54c8), var(--secondary-accent, #8f94fb));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    color: white;
    box-shadow: 0 8px 20px rgba(var(--accent-rgb, 78, 84, 200), 0.3);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg, #ffffff);
    color: var(--text-primary, #333333);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: var(--text-secondary, #cccccc);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    display: flex;
    align-items: center;
    color: var(--text-secondary, #cccccc);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a i {
    margin-right: 0.5rem;
}

.legal-links a:hover {
    color: var(--accent, #4e54c8);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent, #4e54c8), var(--secondary-accent, #8f94fb));
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(var(--accent-rgb, 78, 84, 200), 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb, 78, 84, 200), 0.4);
}

.back-to-top .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg, #ffffff);
    color: var(--text-primary, #333333);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-wave-container {
        height: 80px;
    }
    
    .footer {
        margin-top: 4rem;
        padding-top: 8rem;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer-wave-container {
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon-container {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .legal-links a {
        padding: 0.5rem 1rem;
    }
}

/* Media query per il menu mobile */
@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 70px 20px 30px;
        border-radius: 0;
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links li {
        margin: 8px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
    
    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }
    
    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }
    
    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }
    
    .nav-links.active li:nth-child(5) {
        transition-delay: 0.6s;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 15px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 15px;
    }
    
    .nav-links a i {
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .nav-links a.active {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.15), rgba(244, 114, 182, 0.15));
        color: var(--primary-color);
        box-shadow: none;
    }
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: 15px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.theme-toggle {
    margin-left: 15px;
    position: relative;
    z-index: 1001;
}

.theme-toggle input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 55px;
    height: 28px;
    background: linear-gradient(to right, #f9a8d4, #818cf8);
    border-radius: 30px;
    position: relative;
    padding: 0 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.switch .fa-sun {
    color: #f59e0b;
    font-size: 14px;
    z-index: 1;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
}

.switch .fa-moon {
    color: #6366f1;
    font-size: 14px;
    z-index: 1;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.5));
}

.switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .switch .slider {
    transform: translateX(27px);
}

input:checked + .switch {
    background: linear-gradient(to right, #818cf8, #f9a8d4);
}
    }
    
    .footer-logo-section {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-wave-container {
        height: 80px;
    }
    
    .footer {
        margin-top: 4rem;
        padding-top: 8rem;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-heading {
        justify-content: center;
    }
    
    .footer-links a {
        justify-content: center;
    }
    
    .footer-contact li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .footer-social {
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .footer-wave-container {
        height: 60px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .logo-icon-container {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.7rem;
    }
    
    .legal-links a {
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 768px) {
    .burger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 75%;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        padding: 70px 20px 30px;
        border-radius: 0;
    }
    
    .nav-links.active {
        right: 0;
        display: flex;
    }
    
    .nav-links li {
        margin: 8px 0;
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
    
    .nav-links.active li:nth-child(2) {
        transition-delay: 0.3s;
    }
    
    .nav-links.active li:nth-child(3) {
        transition-delay: 0.4s;
    }
    
    .nav-links.active li:nth-child(4) {
        transition-delay: 0.5s;
    }
    
    .nav-links.active li:nth-child(5) {
        transition-delay: 0.6s;
    }
    
    .nav-links a {
        font-size: 16px;
        padding: 15px;
        width: 100%;
        justify-content: flex-start;
        border-radius: 15px;
    }
    
    .nav-links a i {
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .nav-links a.active {
        background: linear-gradient(90deg, rgba(79, 70, 229, 0.15), rgba(244, 114, 182, 0.15));
        color: var(--primary-color);
        box-shadow: none;
    }
}

.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
    margin-left: 15px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

.theme-toggle {
    margin-left: 15px;
    position: relative;
    z-index: 1001;
}

.theme-toggle input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    width: 0;
    height: 0;
}

.switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 55px;
    height: 28px;
    background: linear-gradient(to right, #f9a8d4, #818cf8);
    border-radius: 30px;
    position: relative;
    padding: 0 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.switch .fa-sun {
    color: #f59e0b;
    font-size: 14px;
    z-index: 1;
    filter: drop-shadow(0 0 2px rgba(245, 158, 11, 0.5));
}

.switch .fa-moon {
    color: #6366f1;
    font-size: 14px;
    z-index: 1;
    filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.5));
}

.switch .slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .switch .slider {
    transform: translateX(27px);
}

input:checked + .switch {
    background: linear-gradient(to right, #818cf8, #f9a8d4);
}
