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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

@media (min-width: 769px) {
    body {
        cursor: none;
    }

    a,
    button,
    .contact-card,
    .stat-card,
    .skill-card,
    .timeline-item {
        cursor: none;
    }
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

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

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #00d4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background: #00d4ff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    body {
        cursor: auto !important;
    }

    a,
    button,
    .contact-card,
    .stat-card,
    .skill-card,
    .timeline-item {
        cursor: pointer !important;
    }

    .custom-cursor,
    .custom-cursor-dot {
        display: none !important;
    }
}

.nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    padding: 15px 40px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    gap: 40px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
}

.nav a:hover {
    color: #00d4ff;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #b066ff);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.music-btn {
    position: fixed;
    top: 100px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 99;
    transition: all 0.3s;
}

.music-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: scale(1.1);
}

.music-btn.playing {
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
    }
}

@media (max-width: 768px) {
    .music-btn {
        top: 50px;
        right: 35px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px 50px;
    }

    #qrcode {
        display: none;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.avatar-container {
    position: relative;
    margin-bottom: 40px;
}

.avatar-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.4), rgba(176, 102, 255, 0.2), transparent);
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.avatar {
    position: relative;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 72px;
    font-weight: 900;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
    cursor: pointer;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.avatar-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    z-index: 2;
}

.avatar-photo {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar:hover .avatar-initials {
    opacity: 0;
}

.avatar:hover .avatar-photo {
    opacity: 1;
}

.hero h1 {
    font-size: 96px;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #b066ff, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: slideUp 1s ease-out;
    line-height: 1.1;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 42px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    animation: slideUp 1s ease-out 0.2s backwards;
}

.hero p {
    font-size: 22px;
    max-width: 800px;
    margin: 0 auto 50px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    animation: slideUp 1s ease-out 0.4s backwards;
}

.hero p span {
    color: #00d4ff;
    font-weight: 700;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 60px auto;
    animation: slideUp 1s ease-out 0.6s backwards;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-10px) rotateY(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.stat-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.stat-value {
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1s ease-out 0.8s backwards;
}

.btn {
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #0095ff);
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #b066ff;
    transform: translateY(-3px) scale(1.05);
}

.section {
    padding: 120px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 72px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 40px;
    transition: all 0.4s;
}

.skill-card:hover {
    transform: translateY(-15px) rotateY(5deg);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 30px 80px rgba(0, 212, 255, 0.3);
}

.skill-category {
    font-size: 28px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}


.skill-level {
    font-size: 18px;
    font-weight: 700;
    color: #00d4ff;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #b066ff);
    border-radius: 10px;
    transition: width 1.5s ease-out;
}

.timeline {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.timeline-wrapper {
    position: relative;
}

.timeline-container {
    display: flex;
    gap: 40px;
    will-change: transform;
    padding: 100px 0;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    min-width: 600px;
    max-width: 600px;
    height: 500px;
    flex-shrink: 0;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item.past-experience {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.015);
}

.timeline-item.past-experience:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(176, 102, 255, 0.5);
    box-shadow: 0 30px 80px rgba(176, 102, 255, 0.3);
    transform: scale(1.05);
}

#experience {
    padding: 120px 0 0 0;
    overflow: visible;
}

.timeline-icon {
    font-size: 72px;
    transition: transform 0.4s;
    text-align: center;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.3) rotate(15deg);
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.timeline-company {
    font-size: 20px;
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.timeline-achievement {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 15px;
}

.contact-info-wrapper {
    flex: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-10px) scale(1.05) rotateZ(2deg);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(176, 102, 255, 0.2));
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.contact-text {
    font-size: 16px;
    font-weight: 600;
}

.contact-actions {
    display: flex;
    justify-content: space-evenly;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.download-cv-btn {
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
    text-decoration: none;
}

.download-cv-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.6);
}

.qr-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.qr-container:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    padding: 15px;
    border-radius: 20px;
    margin: 0 auto 20px;
}

.qr-code img {
    width: 100%;
    height: 100%;
}

.qr-label {
    font-size: 16px;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 5px;
}

.qr-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.chat-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    border-radius: 50%;
    border: none;
    font-size: 40px;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.5);
    z-index: 99;
    transition: all 0.3s;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.chat-btn:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.7);
}

.chat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chat-container {
    width: 100%;
    max-width: 700px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-header {
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.3s;
}

.chat-close:hover {
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
}

.chat-message {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
}

.chat-message.user {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(176, 102, 255, 0.2));
    border: 1px solid rgba(0, 212, 255, 0.5);
    margin-left: 60px;
}

.chat-message strong {
    color: #00d4ff;
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.chat-input-container {
    padding: 25px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 15px;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 15px 25px;
    color: #fff;
    font-size: 16px;
    outline: none;
}

.chat-input:focus {
    border-color: #00d4ff;
}

.chat-send {
    background: linear-gradient(135deg, #00d4ff, #b066ff);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.chat-send:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.5);
}

@media (max-width: 1024px) {
    .contact-3d-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .avatar3d-contact {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        position: relative;
        top: 0;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 56px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .section-title {
        font-size: 42px;
    }

    .timeline-item {
        min-width: 85vw;
        max-width: 85vw;
        padding: 30px;
        height: auto;
    }
}

.chat-message.assistant .typing-dots {
    display: inline-flex;
    gap: 6px;
    vertical-align: middle;
    margin-left: 6px;
}

.typing-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    opacity: 0.85;
    display: inline-block;
    animation: chatDotBounce 1.2s infinite ease-in-out;
}

.typing-dots .dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots .dot:nth-child(3) {
    animation-delay: 0.30s;
}

@keyframes chatDotBounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .6;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

#vcf-download { display: none; }
@media (max-width: 768px){
  #vcf-download { display: inline-flex; }
  .qr-container { background: none; backdrop-filter: none; border: none; box-shadow: none; padding: 0; }
  .qr-label, .qr-description { display: none; }}
