:root {
    --primary: #00d9ff;
    --secondary: #7c3aed;
    --accent: #f72585;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #14141f;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --glow: rgba(0, 217, 255, 0.3);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    scroll-padding-top: 100px;
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 70px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    will-change: scroll-position;
    -webkit-tap-highlight-color: transparent;
    touch-action: pan-y;
}

/* Loading Screen */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-dark);
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.7);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 0 20px rgba(0, 217, 255, 0);
    }
}

.loader-text {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Custom Cursor */
.cursor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10001;
    transition: transform var(--transition-fast), width var(--transition-fast), height var(--transition-fast);
    will-change: transform;
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    top: -20px;
    left: -20px;
    pointer-events: none;
    z-index: 10000;
    transition: all var(--transition-base);
    opacity: 0.7;
    will-change: transform;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.1);
}

.cursor.active {
    width: 24px;
    height: 24px;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent), 0 0 45px var(--accent);
    border-color: rgba(255, 255, 255, 0.9);
}

.cursor-follower.active {
    width: 70px;
    height: 70px;
    border-color: var(--accent);
    opacity: 0.6;
    box-shadow: 0 0 20px rgba(247, 37, 133, 0.6);
    background: rgba(247, 37, 133, 0.15);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition-base);
    will-change: background, backdrop-filter;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(30px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-main {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--bg-dark);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: var(--primary);
    overflow: hidden;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition-base);
}

.nav-link:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: transparent;
}

.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cv-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.cv-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-base);
}

.cv-download-btn:hover::before {
    left: 100%;
}

.cv-download-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.25);
}

.cv-download-btn:active {
    transform: translateY(1px) scale(0.94) !important;
    box-shadow: 0 2px 10px rgba(0, 217, 255, 0.2) !important;
    transition: transform 0.1s ease, box-shadow 0.1s ease !important;
}

.cv-download-btn i {
    font-size: 1rem;
}

.theme-toggle,
.color-palette-toggle {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: none;
    transition: all var(--transition-base);
    font-size: 1.1rem;
}

.theme-toggle:hover,
.color-palette-toggle:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}

.theme-toggle:active,
.color-palette-toggle:active {
    transform: translateY(0) scale(0.95);
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: none;
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.lang-code {
    font-weight: 700;
    min-width: 25px;
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    transform: rotate(15deg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 2rem 4rem;
    overflow: hidden;
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#particles {
    width: 100%;
    height: 100%;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    will-change: transform;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.title-line:nth-child(2) {
    animation-delay: 0.4s;
}

.title-line:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.title-accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    animation: underlineGrow 1s ease 0.8s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    border: 2px solid transparent;
    font-size: 1rem;
    cursor: none;
    position: relative;
    overflow: hidden;
    transform: scale(1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:active::before {
    width: 0 !important;
    height: 0 !important;
    transition: width 0.1s ease, height 0.1s ease !important;
}

.btn span,
.btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 217, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.25) !important;
    transition: none !important;
}

.btn-primary:active::before {
    width: 0 !important;
    height: 0 !important;
    transition: width 0.05s ease, height 0.05s ease !important;
}

.btn-primary i {
    transition: transform var(--transition-base);
}

.btn-primary:hover i {
    transform: translateX(5px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0) scale(1) !important;
    transition: none !important;
}

.btn-outline:active::before {
    width: 0 !important;
    height: 0 !important;
    transition: width 0.05s ease, height 0.05s ease !important;
}

.btn-cv {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.btn-cv::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    transition: left var(--transition-base);
    z-index: -1;
}

.btn-cv:hover::before {
    left: 0;
}

.btn-cv:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 37, 133, 0.3);
}

.btn-cv:active {
    transform: translateY(0) scale(1) !important;
    box-shadow: 0 5px 15px rgba(247, 37, 133, 0.25) !important;
    transition: none !important;
}

.btn-cv:active::before {
    left: -100% !important;
    transition: left 0.05s ease !important;
}

.btn-cv i {
    color: var(--accent);
    transition: color var(--transition-base);
}

.btn-cv:hover i {
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.visual-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
}

.visual-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 2;
}

.main-image {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 30px;
    opacity: 0.3;
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.visual-card {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: float 6s infinite ease-in-out;
    transition: all var(--transition-base);
    will-change: transform;
}

.visual-card:hover {
    transform: translateY(-10px) scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.card-content {
    text-align: center;
    color: var(--text-secondary);
}

.card-content i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.card-content svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    fill: currentColor;
}

.card-content span {
    font-size: 0.875rem;
    font-weight: 600;
}

.card-1 {
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.card-2 {
    top: 0;
    right: 0;
    animation-delay: 2s;
}

.card-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(20px);
        opacity: 0;
    }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    will-change: opacity, transform;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    margin-bottom: 4rem;
}

.section-number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
}

.title-word {
    display: block;
}

/* About Section */
.about {
    background: var(--bg-darker);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    margin-bottom: 3rem;
}

.text-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    display: none;
}

/* Skills Section */
.skills-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skills-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.skills-category:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 217, 255, 0.1);
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: var(--primary);
    font-size: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all var(--transition-base);
    will-change: transform;
    opacity: 0;
    transform: translateX(-20px);
}

.skill-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.skill-card:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px) translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    font-size: 1.75rem;
    color: var(--primary);
    flex-shrink: 0;
}

.skill-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px var(--glow);
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Projects Section */
.projects {
    background: var(--bg-darker);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all var(--transition-base);
    will-change: transform;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

.project-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.3);
}

.project-image {
    position: relative;
    height: 400px;
    min-height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(124, 58, 237, 0.3));
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.project-item:hover .project-bg {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-overlay .project-links {
    display: flex;
    gap: 1rem;
}

.project-overlay .project-link,
.project-overlay .project-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 1.25rem;
}

.project-overlay .project-link:hover,
.project-overlay .project-link-icon:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 255, 0.1);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 0.75rem;
}

.project-link-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link-icon:hover {
    background: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* Testimonials Section */
.testimonials {
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--transition-base);
    will-change: transform;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.5rem;
}

.testimonial-info h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #fbbf24;
    font-size: 0.875rem;
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50%;
    color: var(--bg-dark);
    font-size: 1.25rem;
    cursor: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.5);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-items {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-base);
    will-change: transform;
    opacity: 0;
    transform: translateX(-20px);
}

.contact-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.contact-icon-wrapper {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    color: var(--bg-dark);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details p {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    border-color: transparent;
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
    transform: translateY(-2px);
}

.form-group input,
.form-group textarea {
    transition: all var(--transition-base);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-container p {
    margin-bottom: 0.5rem;
}

.footer-container i {
    color: var(--accent);
}

/* Smooth Page Transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Touch optimizations */
button,
.btn,
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection on mobile for better UX */
@media (max-width: 768px) {
    button,
    .btn {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary), var(--accent));
}

/* Selection */
::selection {
    background: rgba(0, 217, 255, 0.3);
    color: var(--text-primary);
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Smooth Image Loading */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Prevent Layout Shift */
.hero-visual,
.about-image {
    aspect-ratio: 1;
    object-fit: cover;
}

/* GPU Acceleration */
.hero-visual,
.visual-card,
.project-item,
.skill-card,
.btn {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 2rem;
    }

    .hero-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .visual-wrapper {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .scroll-hint {
        display: none;
    }

    .image-frame {
        display: none;
    }

    .about-image {
        display: none;
    }

    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 2rem;
        transition: left var(--transition-base);
        border-top: 1px solid var(--border);
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        font-size: 1rem;
    }

    .cv-download-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .cv-download-btn span {
        display: none;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .btn-cv {
        width: auto;
        justify-content: center; 
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-grid {
        gap: 2rem;
    }

    .about-image {
        height: 300px;
    }

    .hero-stats {
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-number {
        font-size: 2rem;
    }

    .visual-wrapper {
        height: 300px;
    }

    .visual-wrapper .visual-card {
        display: none;
    }

    .project-image {
        height: 250px;
    }

    .contact-item {
        padding: 1.5rem;
    }

    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-text {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero {
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-divider {
        display: none;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn-group .btn {
        width: 100%;
    }

    .visual-wrapper {
        height: 300px;
        margin-bottom: 2rem;
    }

    .about-image {
        height: 250px;
    }

    .project-image {
        height: 200px;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
    }

    .contact-item a,
    .contact-item p {
        font-size: 0.85rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .btn {
        padding: 0.65rem 1.25rem;
        font-size: 0.85rem;
    }

    .visual-wrapper {
        height: 200px;
    }

    .about-image {
        height: 200px;
    }

    .project-image {
        height: 180px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Light Mode */
body.light-mode {
    --bg-dark: #ffffff;
    --bg-darker: #f5f5f5;
    --bg-light: #fafafa;
    --text-primary: #0a0a0f;
    --text-secondary: #4a4a5a;
    --text-muted: #71717a;
    --border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.03);
}

body.light-mode .hero::before {
    background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
}

body.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.light-mode .cursor {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary), 0 0 20px var(--primary), 0 0 30px var(--primary);
    border: 2px solid rgba(0, 0, 0, 0.3);
}

body.light-mode .cursor-follower {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    background: rgba(0, 217, 255, 0.15);
}

body.light-mode .cursor.active {
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent), 0 0 45px var(--accent);
    border-color: rgba(0, 0, 0, 0.4);
}

body.light-mode .cursor-follower.active {
    box-shadow: 0 0 20px rgba(247, 37, 133, 0.7);
    background: rgba(247, 37, 133, 0.2);
}

body.light-mode .project-image {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(124, 58, 237, 0.2));
}

body.light-mode ::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

/* Print Styles */
@media print {
    .navbar,
    .loader,
    .cursor,
    .cursor-follower,
    .scroll-hint,
    .back-to-top,
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    cursor: auto;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.active ~ body,
body:has(.lightbox.active) {
    cursor: auto !important;
}



.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }
}

/* CV PDF Viewer Modal */
.cv-viewer {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    cursor: auto;
}

.cv-viewer.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cv-viewer-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    z-index: 10002;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.cv-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.cv-viewer-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10002;
}

.cv-viewer-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.cv-language-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cv-lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-base);
    min-width: 50px;
}

.cv-lang-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.cv-lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.cv-iframe {
    width: 90%;
    max-width: 900px;
    height: 85%;
    max-height: 90vh;
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
    background: white;
}

.cv-viewer-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cv-viewer-actions .btn {
    padding: 0.75rem 1.5rem;
}

@media (max-width: 768px) {
    .cv-viewer-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .cv-viewer-header {
        top: 1rem;
        left: 1rem;
        right: 4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cv-viewer-header h3 {
        font-size: 1.25rem;
    }

    .cv-language-selector {
        width: 100%;
        justify-content: flex-start;
    }

    .cv-lang-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .cv-iframe {
        width: 95%;
        height: 80%;
        max-height: 85vh;
    }

    .cv-viewer-actions {
        margin-top: 1rem;
    }
}

/* Color Palette Panel */
.color-palette-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 380px;
    max-height: 90vh;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: right var(--transition-slow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.color-palette-panel.active {
    right: 20px;
}

.color-palette-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
}

.color-palette-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.color-palette-close {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: none;
    transition: all var(--transition-base);
    font-size: 1rem;
}

.color-palette-close:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

.color-palette-content {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.color-palette-content::-webkit-scrollbar {
    width: 6px;
}

.color-palette-content::-webkit-scrollbar-track {
    background: transparent;
}

.color-palette-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.color-theme-group {
    margin-bottom: 2rem;
}

.color-theme-group:last-child {
    margin-bottom: 0;
}

.color-theme-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.color-themes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.color-theme {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.color-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-base);
}

.color-theme:hover::before {
    left: 100%;
}

.color-theme:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}

.color-theme.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}

.color-preview {
    width: 100%;
    height: 50px;
    border-radius: 8px;
    transition: transform var(--transition-base);
}

.color-theme:hover .color-preview {
    transform: scale(1.05);
}

.color-theme span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

.color-palette-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--card-bg);
}

.reset-colors-btn {
    width: 100%;
    padding: 0.875rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.reset-colors-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width var(--transition-base), height var(--transition-base);
}

.reset-colors-btn:hover::before {
    width: 300px;
    height: 300px;
}

.reset-colors-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.2);
}

.reset-colors-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Color Themes */
body[data-bg-theme="dark-blue"] {
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #14141f;
}

body[data-bg-theme="dark-purple"] {
    --bg-dark: #1a0a1f;
    --bg-darker: #0f0510;
    --bg-light: #2d1b3d;
}

body[data-bg-theme="dark-green"] {
    --bg-dark: #0a1f0a;
    --bg-darker: #051005;
    --bg-light: #1a3d1a;
}

body[data-bg-theme="dark-red"] {
    --bg-dark: #1f0a0a;
    --bg-darker: #100505;
    --bg-light: #3d1a1a;
}

body[data-bg-theme="dark-orange"] {
    --bg-dark: #1f150a;
    --bg-darker: #100a05;
    --bg-light: #3d2a1a;
}

body[data-bg-theme="dark-cyan"] {
    --bg-dark: #0a1f1f;
    --bg-darker: #051010;
    --bg-light: #1a3d3d;
}

body[data-bg-theme="dark-pink"] {
    --bg-dark: #1f0a1f;
    --bg-darker: #100510;
    --bg-light: #3d1a3d;
}

body[data-bg-theme="dark-gray"] {
    --bg-dark: #0f0f0f;
    --bg-darker: #080808;
    --bg-light: #1f1f1f;
}

body[data-text-theme="text-white"] {
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
}

body[data-text-theme="text-light-gray"] {
    --text-primary: #e5e5e5;
    --text-secondary: #b8b8c0;
    --text-muted: #8a8a95;
}

body[data-text-theme="text-blue"] {
    --text-primary: #60a5fa;
    --text-secondary: #93c5fd;
    --text-muted: #bfdbfe;
}

body[data-text-theme="text-purple"] {
    --text-primary: #a78bfa;
    --text-secondary: #c4b5fd;
    --text-muted: #ddd6fe;
}

body[data-text-theme="text-green"] {
    --text-primary: #4ade80;
    --text-secondary: #86efac;
    --text-muted: #bbf7d0;
}

body[data-text-theme="text-yellow"] {
    --text-primary: #fbbf24;
    --text-secondary: #fcd34d;
    --text-muted: #fde68a;
}

body[data-text-theme="text-pink"] {
    --text-primary: #f472b6;
    --text-secondary: #f9a8d4;
    --text-muted: #fbcfe8;
}

body[data-text-theme="text-cyan"] {
    --text-primary: #22d3ee;
    --text-secondary: #67e8f9;
    --text-muted: #a7f3d0;
}

body[data-accent-theme="accent-cyan"] {
    --primary: #00d9ff;
    --secondary: #7c3aed;
    --accent: #f72585;
    --glow: rgba(0, 217, 255, 0.3);
}

body[data-accent-theme="accent-blue"] {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --glow: rgba(59, 130, 246, 0.3);
}

body[data-accent-theme="accent-green"] {
    --primary: #10b981;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --glow: rgba(16, 185, 129, 0.3);
}

body[data-accent-theme="accent-red"] {
    --primary: #ef4444;
    --secondary: #f72585;
    --accent: #f97316;
    --glow: rgba(239, 68, 68, 0.3);
}

body[data-accent-theme="accent-orange"] {
    --primary: #f97316;
    --secondary: #fbbf24;
    --accent: #f59e0b;
    --glow: rgba(249, 115, 22, 0.3);
}

body[data-accent-theme="accent-pink"] {
    --primary: #ec4899;
    --secondary: #8b5cf6;
    --accent: #a855f7;
    --glow: rgba(236, 72, 153, 0.3);
}

body[data-accent-theme="accent-purple"] {
    --primary: #a855f7;
    --secondary: #ec4899;
    --accent: #d946ef;
    --glow: rgba(168, 85, 247, 0.3);
}

body[data-accent-theme="accent-teal"] {
    --primary: #14b8a6;
    --secondary: #3b82f6;
    --accent: #06b6d4;
    --glow: rgba(20, 184, 166, 0.3);
}

@media (max-width: 768px) {
    .color-palette-panel {
        width: 90vw;
        max-width: 380px;
        right: -100%;
    }

    .color-palette-panel.active {
        right: 5vw;
    }

    .color-themes {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .color-theme {
        padding: 0.5rem;
    }

    .color-preview {
        height: 40px;
    }
}
