/* ============================================
   VARIABILI CSS E CONFIGURAZIONE GLOBALE
   ============================================ */

:root {
    /* Palette colori principale */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #ec4899;
    --color-accent: #14b8a6;
    
    /* Colori di sfondo e testo */
    --color-bg-dark: #0f172a;
    --color-bg-darker: #020617;
    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    
    /* Effetti glass morphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
    
    /* Transizioni e animazioni */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s ease;
    --transition-slow: 0.8s ease;
    
    /* Spaziature */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

/* ============================================
   RESET E STILI BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Nasconde il contenuto durante il caricamento */
body.loading {
    overflow: hidden;
}

body.loading .container,
body.loading .footer {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   ANIMAZIONE INTRO/LOADER
   ============================================ */

.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e1b4b 100%);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.intro-loader.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

.loader-content {
    position: relative;
    text-align: center;
    z-index: 10002;
}

/* Logo animato centrale */
.loader-logo {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    position: relative;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.letter {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px) rotate(-10deg);
    animation: letterAppear 0.6s ease forwards;
}

.letter-c {
    animation-delay: 0.2s;
}

.letter-b {
    animation-delay: 0.4s;
}

@keyframes letterAppear {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

/* Anelli rotanti attorno al logo */
.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    animation: ringAppear 0.8s ease forwards, ringRotate 3s linear infinite;
}

.ring-outer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-top-color: var(--color-primary);
    border-right-color: var(--color-primary);
    animation-delay: 0.6s;
}

.ring-middle {
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    border-bottom-color: var(--color-secondary);
    border-left-color: var(--color-secondary);
    animation-delay: 0.8s;
    animation-direction: reverse;
}

.ring-inner {
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    animation-delay: 1s;
}

@keyframes ringAppear {
    to {
        opacity: 1;
    }
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Effetto Matrix/Digital Rain */
.digital-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: none;
    opacity: 0.3;
}

#matrixCanvas {
    width: 100%;
    height: 100%;
}

/* Testo di caricamento */
.loader-text {
    margin-top: 2rem;
}

.loading-message {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease 1.2s forwards;
}

/* Skills durante il caricamento */
.loader-skills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.skill-load {
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--color-text-primary);
    opacity: 0;
    transform: translateY(20px);
    animation: skillLoadAppear 0.4s ease forwards;
}

.skill-load:nth-child(1) {
    animation-delay: 1.4s;
}

.skill-load:nth-child(2) {
    animation-delay: 1.6s;
}

.skill-load:nth-child(3) {
    animation-delay: 1.8s;
}

.skill-load:nth-child(4) {
    animation-delay: 2s;
}

.skill-load:nth-child(5) {
    animation-delay: 2.2s;
}

.skill-load:nth-child(6) {
    animation-delay: 2.4s;
}

@keyframes skillLoadAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barra di progresso */
.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.4s ease 2.6s forwards;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    animation: progressFill 2s ease forwards 2.8s, progressShine 2s linear infinite;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

@keyframes progressFill {
    to {
        width: 100%;
    }
}

@keyframes progressShine {
    to {
        background-position: 200% 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsive per loader */
@media (max-width: 768px) {
    .loader-logo {
        width: 150px;
        height: 150px;
    }
    
    .letter {
        font-size: 3rem;
    }
    
    .progress-container {
        width: 250px;
    }
    
    .loader-skills {
        gap: 0.5rem;
    }
    
    .skill-load {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================
   CANVAS PARTICELLE DI SFONDO
   ============================================ */

#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Overlay con gradiente animato */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
    transition: background 1s ease, opacity 0.8s ease;
}

/* Temi per ogni skill - Web */
.gradient-overlay.theme-web {
    background: 
        radial-gradient(circle at 20% 30%, rgba(251, 146, 60, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(234, 179, 8, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.2) 0%, transparent 60%);
    animation: gradientWeb 12s ease infinite;
}

/* Temi per ogni skill - AI */
.gradient-overlay.theme-ai {
    background: 
        radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(217, 70, 239, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 50% 80%, rgba(147, 51, 234, 0.25) 0%, transparent 60%);
    animation: gradientAI 10s ease infinite;
}

/* Temi per ogni skill - Cloud */
.gradient-overlay.theme-cloud {
    background: 
        radial-gradient(circle at 25% 25%, rgba(56, 189, 248, 0.3) 0%, transparent 65%),
        radial-gradient(circle at 75% 75%, rgba(186, 230, 253, 0.25) 0%, transparent 65%),
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 65%);
    animation: gradientCloud 14s ease infinite;
}

/* Temi per ogni skill - DevOps */
.gradient-overlay.theme-devops {
    background: 
        radial-gradient(circle at 40% 30%, rgba(34, 197, 94, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 60% 70%, rgba(59, 130, 246, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 30% 60%, rgba(16, 185, 129, 0.22) 0%, transparent 60%);
    animation: gradientDevOps 11s ease infinite;
}

/* Temi per ogni skill - Data */
.gradient-overlay.theme-data {
    background: 
        radial-gradient(circle at 35% 35%, rgba(239, 68, 68, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 65% 65%, rgba(251, 146, 60, 0.28) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(220, 38, 38, 0.22) 0%, transparent 60%);
    animation: gradientData 13s ease infinite;
}

/* Temi per ogni skill - Security */
.gradient-overlay.theme-security {
    background: 
        radial-gradient(circle at 30% 50%, rgba(127, 29, 29, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 70% 50%, rgba(71, 85, 105, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 50% 30%, rgba(153, 27, 27, 0.25) 0%, transparent 60%);
    animation: gradientSecurity 16s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Animazioni specifiche per ogni tema */
@keyframes gradientWeb {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.9;
        transform: scale(1.15) rotate(2deg);
    }
    66% {
        opacity: 0.85;
        transform: scale(1.08) rotate(-2deg);
    }
}

@keyframes gradientAI {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
    25% {
        opacity: 0.95;
        transform: scale(1.1) translateX(20px);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15) translateX(-10px);
    }
    75% {
        opacity: 0.95;
        transform: scale(1.08) translateX(15px);
    }
}

@keyframes gradientCloud {
    0%, 100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    50% {
        opacity: 0.85;
        transform: scale(1.2) translateY(-20px);
    }
}

@keyframes gradientDevOps {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    20% {
        transform: scale(1.05) rotate(1deg);
    }
    40% {
        transform: scale(1.12) rotate(-1deg);
    }
    60% {
        transform: scale(1.08) rotate(1deg);
    }
    80% {
        transform: scale(1.15) rotate(-1deg);
    }
}

@keyframes gradientData {
    0%, 100% {
        opacity: 1;
        transform: scale(1) skew(0deg);
    }
    33% {
        opacity: 0.92;
        transform: scale(1.1) skew(2deg);
    }
    66% {
        opacity: 0.88;
        transform: scale(1.18) skew(-2deg);
    }
}

@keyframes gradientSecurity {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    25% {
        opacity: 0.95;
        transform: scale(1.05);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.15);
    }
    75% {
        opacity: 0.95;
        transform: scale(1.08);
    }
}

/* ============================================
   CONTENITORE PRINCIPALE
   ============================================ */

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
}

/* ============================================
   SEZIONE HERO
   ============================================ */

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-sm);
}

/* ============================================
   AVATAR ANIMATO CON ANELLI ROTANTI
   ============================================ */

.avatar-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: var(--spacing-lg);
    animation: fadeInDown 1s ease;
}

.avatar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 0 40px rgba(99, 102, 241, 0.5),
        0 0 80px rgba(236, 72, 153, 0.3);
    z-index: 5;
    transition: transform var(--transition-normal);
}

.avatar-circle:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.avatar-initials {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Anelli rotanti attorno all'avatar */
.avatar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-primary-light);
    border-right-color: var(--color-primary-light);
}

.ring-1 {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateRing 8s linear infinite;
}

.ring-2 {
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-top-color: var(--color-secondary);
    border-right-color: var(--color-secondary);
    animation: rotateRing 6s linear infinite reverse;
}

.ring-3 {
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    border-top-color: var(--color-accent);
    border-right-color: var(--color-accent);
    animation: rotateRing 10s linear infinite;
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   TITOLI E TESTO
   ============================================ */

.name-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    position: relative;
    animation: fadeInUp 1s ease 0.3s both;
}

.name-line {
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary), var(--color-accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 8s ease infinite;
    position: relative;
    display: inline-block;
}

/* Effetto glitch sul nome al hover */
.name-line::before,
.name-line::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.name-line:hover::before {
    opacity: 0.7;
    animation: glitchTop 0.3s infinite;
}

.name-line:hover::after {
    opacity: 0.7;
    animation: glitchBottom 0.3s infinite reverse;
}

@keyframes glitchTop {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    20% {
        clip-path: inset(0 0 85% 0);
        transform: translate(-2px, 2px);
    }
    40% {
        clip-path: inset(0 0 70% 0);
        transform: translate(2px, -2px);
    }
    60% {
        clip-path: inset(0 0 40% 0);
        transform: translate(-2px, 0);
    }
}

@keyframes glitchBottom {
    0%, 100% {
        clip-path: inset(0 0 0 0);
        transform: translate(0, 0);
    }
    20% {
        clip-path: inset(85% 0 0 0);
        transform: translate(2px, -2px);
    }
    40% {
        clip-path: inset(70% 0 0 0);
        transform: translate(-2px, 2px);
    }
    60% {
        clip-path: inset(40% 0 0 0);
        transform: translate(2px, 0);
    }
}

@keyframes gradientText {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Contenitore del titolo professionale */
.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.6s both;
}

.profession-title {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--color-text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Ornamenti decorativi ai lati del titolo */
.title-ornament {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    position: relative;
}

.title-ornament::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.title-ornament.left::before {
    right: 0;
}

.title-ornament.right::before {
    left: 0;
}

/* ============================================
   CARD CONTATTO CON GLASS MORPHISM
   ============================================ */

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: var(--spacing-md);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease 0.9s both;
    overflow: hidden;
}

.contact-card::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 0.6s ease;
}

.contact-card:hover::before {
    left: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 40px rgba(99, 102, 241, 0.3),
        0 0 60px rgba(236, 72, 153, 0.2);
    border-color: var(--color-primary-light);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 12px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.email-link {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.email-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transition: width var(--transition-normal);
}

.email-link:hover {
    color: var(--color-primary-light);
}

.email-link:hover::after {
    width: 100%;
}

/* ============================================
   BOTTONE CALL TO ACTION
   ============================================ */

.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border: none;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease 1.2s both;
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(99, 102, 241, 0.6),
        0 0 60px rgba(99, 102, 241, 0.3);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.button-icon {
    display: inline-flex;
    transition: transform var(--transition-normal);
}

.cta-button:hover .button-icon {
    transform: translateX(5px);
}

/* ============================================
   INDICATORE SCROLL
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    animation: fadeIn 1s ease 1.5s both, bounce 2s ease infinite 2s;
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--color-text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-primary-light);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   SEZIONE SKILLS CON ORB FLUTTUANTI
   ============================================ */

.skills-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0 var(--spacing-lg) 0;
    animation: fadeInUp 1s ease 0.9s both;
}

.skill-orb {
    width: 120px;
    height: 120px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text-primary);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    animation: fadeInScale 1s ease both;
}

.skill-orb:nth-child(1) {
    animation-delay: 0.2s;
}

.skill-orb:nth-child(2) {
    animation-delay: 0.4s;
}

.skill-orb:nth-child(3) {
    animation-delay: 0.6s;
}

.skill-orb:nth-child(4) {
    animation-delay: 0.8s;
}

.skill-orb:nth-child(5) {
    animation-delay: 1s;
}

.skill-orb::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.skill-orb:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
}

.skill-orb:hover::before {
    opacity: 1;
}

/* Effetti specifici per ogni skill orb */
.skill-orb[data-skill="Web"]:hover {
    box-shadow: 
        0 20px 60px rgba(251, 146, 60, 0.6),
        0 0 80px rgba(249, 115, 22, 0.4);
}

.skill-orb[data-skill="AI"]:hover {
    box-shadow: 
        0 20px 60px rgba(168, 85, 247, 0.6),
        0 0 80px rgba(147, 51, 234, 0.4);
}

.skill-orb[data-skill="Cloud"]:hover {
    box-shadow: 
        0 20px 60px rgba(56, 189, 248, 0.6),
        0 0 80px rgba(14, 165, 233, 0.4);
}

.skill-orb[data-skill="DevOps"]:hover {
    box-shadow: 
        0 20px 60px rgba(34, 197, 94, 0.6),
        0 0 80px rgba(16, 185, 129, 0.4);
}

.skill-orb[data-skill="Data"]:hover {
    box-shadow: 
        0 20px 60px rgba(239, 68, 68, 0.6),
        0 0 80px rgba(220, 38, 38, 0.4);
}

.skill-orb[data-skill="Security"]:hover {
    box-shadow: 
        0 20px 60px rgba(153, 27, 27, 0.6),
        0 0 80px rgba(127, 29, 29, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================
   ANIMAZIONI KEYFRAMES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .avatar-container {
        width: 160px;
        height: 160px;
    }
    
    .avatar-circle {
        width: 110px;
        height: 110px;
    }
    
    .avatar-initials {
        font-size: 2.5rem;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md);
    }
    
    .title-ornament {
        width: 40px;
    }
    
    .skill-orb {
        width: 100px;
        height: 100px;
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .hero-section {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    
    .skill-orb {
        width: 90px;
        height: 90px;
        font-size: 0.85rem;
    }
}

/* ============================================
   ACCESSIBILITÀ
   ============================================ */

/* Miglioramento focus per navigazione da tastiera */
a:focus,
button:focus {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 4px;
}

/* Riduzione movimento per utenti con preferenze */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

