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

:root {
    --bg-light: #ffffff;
    --bg-secondary: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    /* Logo Colors */
    --color-blue: #1d4ed8;
    /* Professional Blue */
    --color-red: #ef4444;
    /* Vibrant Red */
    --color-cyan: #06b6d4;
    /* Bright Cyan */

    --glow-blue: rgba(29, 78, 216, 0.4);
    --glow-red: rgba(239, 68, 68, 0.3);
    --glow-cyan: rgba(6, 182, 212, 0.3);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', sans-serif;
}

/* Background effects for Light Theme */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    top: -100px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 60%);
    top: 40%;
    left: 20%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 30px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-100%);
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.5s;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--color-blue);
}

.logo span {
    color: var(--color-red);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--color-blue);
}

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

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

/* Hero Section (antigravity style) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    z-index: 10;
    padding-top: 80px;
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.reveal-text>* {
    transform: translateY(120%);
    opacity: 0;
    will-change: transform, opacity;
}

.hero-section.loaded .reveal-text>* {
    animation: textUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-delay-1>* {
    animation-delay: 0.15s !important;
}

.reveal-delay-2>* {
    animation-delay: 0.3s !important;
}

.reveal-delay-3>* {
    animation-delay: 0.45s !important;
}

.reveal-delay-4>* {
    animation-delay: 0.6s !important;
}

.subtitle {
    color: var(--color-blue);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(29, 78, 216, 0.1);
    border-radius: 50px;
}

.title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
    color: var(--text-dark);
}

.title span {
    background: linear-gradient(to right, var(--color-blue) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.roles {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.separator {
    color: rgba(0, 0, 0, 0.1);
    margin: 0 0.8rem;
}

.motto {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-style: italic;
    border-left: 4px solid var(--color-red);
    padding-left: 1.5rem;
    margin-bottom: 3.5rem;
    position: relative;
    line-height: 1.5;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
}

.motto .author {
    display: block;
    font-size: 0.95rem;
    margin-top: 0.8rem;
    font-style: normal;
    font-weight: 700;
    color: var(--color-blue);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    color: white;
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-45deg);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.4);
}

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

.btn-secondary {
    background: white;
    border: 2px solid var(--color-blue);
    color: var(--color-blue);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--color-blue);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.2);
}

/* Image Reveal Animation */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 100%;
    min-height: 80vh;
    perspective: 1000px;
}

.hero-image-backdrop {
    position: absolute;
    width: 75%;
    height: 85%;
    right: 5%;
    top: auto;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(6, 182, 212, 0.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    z-index: 1;
    transform: rotateY(15deg) translateX(80px);
    opacity: 0;
    transition: all 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image {
    max-width: 480px;
    width: 90%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transform-origin: center right;

    /* Initial state for animation */
    transform: translateX(120px) scale(0.9) rotateY(10deg);
    opacity: 0;
    filter: brightness(0.9);
}

.hero-section.loaded .hero-image-backdrop {
    transform: rotateY(0) translateX(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.hero-section.loaded .hero-image {
    animation: slideInPhoto 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.7s;
}

@keyframes slideInPhoto {
    0% {
        transform: translateX(120px) scale(0.9) rotateY(10deg);
        opacity: 0;
        filter: brightness(0.9);
    }

    100% {
        transform: translateX(0) scale(1) rotateY(0);
        opacity: 1;
        filter: brightness(1);
    }
}

/* Sections Styling */
.services-section,
.about-section {
    padding: 8rem 5%;
    position: relative;
    z-index: 10;
}

.services-section {
    background: var(--bg-secondary);
    border-radius: 50px 50px 0 0;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.02);
}

.about-section {
    background: white;
    min-height: 40vh;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
    font-weight: 800;
}

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

.skill-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    z-index: -1;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card:nth-child(2)::before {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(29, 78, 216, 0.03) 100%);
}

.skill-card:hover {
    transform: translateY(-15px);
    border-color: rgba(29, 78, 216, 0.2);
    box-shadow: 0 30px 60px rgba(29, 78, 216, 0.1);
}

.skill-card:hover::before {
    transform: translateY(0);
}

.skill-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 2rem;
    background: rgba(29, 78, 216, 0.1);
    color: var(--color-blue);
    transition: all 0.4s ease;
}

.skill-card:nth-child(2) .skill-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
}

.skill-card:nth-child(3) .skill-icon {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-cyan);
}

.skill-card:hover .skill-icon {
    transform: scale(1.1) rotate(5deg);
}

.skill-card:nth-child(1):hover .skill-icon {
    background: var(--color-blue);
    color: white;
}

.skill-card:nth-child(2):hover .skill-icon {
    background: var(--color-red);
    color: white;
}

.skill-card:nth-child(3):hover .skill-icon {
    background: var(--color-cyan);
    color: white;
}


.skill-card h4 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.3;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* === Wide 3-col -> 3-col, 6 cards grid === */
.skills-grid-wide {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1100px) {
    .skills-grid-wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .skills-grid-wide {
        grid-template-columns: 1fr;
    }
}

/* === Skill Icon Color Variants === */
.icon-blue {
    background: rgba(29, 78, 216, 0.1);
    color: var(--color-blue);
}

.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-red);
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-cyan);
}

.icon-ai {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.icon-jetson {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.skill-card:hover .icon-blue {
    background: var(--color-blue);
    color: white;
}

.skill-card:hover .icon-red {
    background: var(--color-red);
    color: white;
}

.skill-card:hover .icon-cyan {
    background: var(--color-cyan);
    color: white;
}

.skill-card:hover .icon-ai {
    background: #8b5cf6;
    color: white;
}

.skill-card:hover .icon-jetson {
    background: #10b981;
    color: white;
}

/* === AI Card variant === */
.skill-card-ai {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, white 40%);
    border-color: rgba(139, 92, 246, 0.1);
}

.skill-card-ai:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.1);
}

/* === Jetson Card variant === */
.skill-card-jetson {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.04) 0%, white 40%);
    border-color: rgba(16, 185, 129, 0.1);
}

.skill-card-jetson:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 30px 60px rgba(16, 185, 129, 0.1);
}

.jetson-label {
    display: block;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* === Tech Pills === */
.skill-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tech-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.8rem;
    border-radius: 50px;
    background: rgba(29, 78, 216, 0.07);
    color: var(--color-blue);
    border: 1px solid rgba(29, 78, 216, 0.12);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.tech-pill.ai-pill {
    background: rgba(139, 92, 246, 0.07);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.15);
}

.tech-pill.jetson-pill {
    background: rgba(16, 185, 129, 0.07);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.15);
}

.skill-card:hover .tech-pill {
    background: rgba(29, 78, 216, 0.12);
}

.skill-card:hover .tech-pill.ai-pill {
    background: rgba(139, 92, 246, 0.12);
}

.skill-card:hover .tech-pill.jetson-pill {
    background: rgba(16, 185, 129, 0.12);
}

/* ensure skill cards use flex column for layout */
.skill-card {
    display: flex;
    flex-direction: column;
}


/* ===== LINKEDIN NAV ===== */
.nav-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0a66c2;
    color: white !important;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-linkedin::after {
    display: none !important;
}

.nav-linkedin:hover {
    background: #004a86;
    transform: translateY(-2px);
    color: white !important;
}

/* ===== BTN LINKEDIN HERO ===== */
.btn-linkedin {
    background: #0a66c2;
    color: white;
    border: none;
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.3);
}

.btn-linkedin:hover {
    background: #004a86;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 102, 194, 0.4);
}

/* ===== SECTION SUBTITLE ===== */
.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* ===== LINKEDIN BADGE ===== */
.linkedin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(10, 102, 194, 0.08);
    color: #0a66c2;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(10, 102, 194, 0.2);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    margin-bottom: 4rem;
}

.linkedin-badge:hover {
    background: #0a66c2;
    color: white;
    transform: translateY(-2px);
}

/* ===== CURRICULUM SECTION ===== */
.curriculum-section {
    padding: 8rem 5%;
    background: white;
    position: relative;
    z-index: 10;
}

.curriculum-header {
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--color-blue), var(--color-cyan), var(--color-red));
    border-radius: 3px;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 4rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2.55rem;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--color-blue);
    transition: all 0.3s ease;
}

.timeline-marker.current {
    background: var(--color-blue);
    box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.15);
    animation: pulse 2.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.15);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(29, 78, 216, 0.05);
    }
}

.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content:hover {
    box-shadow: 0 20px 50px rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.2);
    transform: translateX(6px);
}

.timeline-period {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.current-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    color: white !important;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
}

.timeline-role {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.timeline-company {
    margin-bottom: 1.2rem;
}

.company-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-blue);
}

.timeline-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.timeline-desc strong {
    color: var(--text-dark);
    font-weight: 700;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--color-blue);
    border: 1px solid rgba(29, 78, 216, 0.15);
}

/* ===== CLIENTS / COLLABORAZIONI ===== */
.clients-section {
    padding: 8rem 5%;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.client-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    position: relative;
}

.client-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(29, 78, 216, 0.12);
    border-color: rgba(29, 78, 216, 0.25);
}

.client-logo-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(29, 78, 216, 0.07);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.client-card:hover .client-logo-wrapper {
    background: var(--color-blue);
    color: white;
    transform: rotate(5deg) scale(1.1);
}

.client-info h5 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.client-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.client-arrow {
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--color-blue);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.client-card:hover .client-arrow {
    opacity: 1;
    transform: translateX(0);
}

.client-more {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.04), rgba(6, 182, 212, 0.04));
    border: 2px dashed rgba(29, 78, 216, 0.2);
    justify-content: center;
    text-align: center;
    cursor: default;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.client-more small {
    font-weight: 400;
    font-size: 0.85rem;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    position: relative;
    z-index: 10;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-blue);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.footer-logo span {
    color: var(--color-red);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.footer-links a:hover {
    color: var(--color-blue);
    border-color: var(--color-blue);
    background: rgba(29, 78, 216, 0.05);
    transform: translateY(-2px);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===================================================
   CONSULENZA GESTIONALE SECTION
   =================================================== */
.consulenza-section {
    padding: 8rem 5%;
    background: white;
    position: relative;
    z-index: 10;
}

.consulenza-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 1000px) {
    .consulenza-grid {
        grid-template-columns: 1fr;
    }
}

.consulenza-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.consulenza-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.consulenza-card:hover::after {
    transform: scaleX(1);
}

.consulenza-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.15);
}

.consulenza-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.consulenza-card:hover .consulenza-icon {
    background: var(--color-blue);
    color: white;
    transform: scale(1.08) rotate(3deg);
}

.consulenza-icon-red {
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-red);
}

.consulenza-card:hover .consulenza-icon-red {
    background: var(--color-red);
    color: white;
}

.consulenza-icon-cyan {
    background: rgba(6, 182, 212, 0.08);
    color: var(--color-cyan);
}

.consulenza-card:hover .consulenza-icon-cyan {
    background: var(--color-cyan);
    color: white;
}

.consulenza-body h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.consulenza-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.consulenza-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.consulenza-list li {
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.consulenza-list li::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-blue);
    flex-shrink: 0;
}

/* ===================================================
   ERP & BI SECTION
   =================================================== */
.erp-section {
    padding: 8rem 5%;
    background: var(--bg-secondary);
    position: relative;
    z-index: 10;
}

.erp-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .erp-columns {
        grid-template-columns: 1fr;
    }
}

.erp-col {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.erp-col-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.erp-col-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.erp-col-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--color-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.erp-col-icon-bi {
    background: rgba(243, 130, 31, 0.1);
    color: #f3821f;
}

.erp-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.erp-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.erp-item-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.dot-blue {
    background: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.dot-red {
    background: var(--color-red);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.dot-cyan {
    background: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.dot-powerbi {
    background: #f3821f;
    box-shadow: 0 0 0 4px rgba(243, 130, 31, 0.15);
}

.erp-item-content strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.erp-item-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0.5rem;
}

/* ERP Badges */
.erp-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 50px;
    background: rgba(29, 78, 216, 0.08);
    color: var(--color-blue);
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.erp-badge-star {
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(6, 182, 212, 0.1));
    color: var(--color-blue);
    border-color: rgba(6, 182, 212, 0.3);
}

.erp-badge-bi {
    background: rgba(243, 130, 31, 0.1);
    color: #f3821f;
    border-color: rgba(243, 130, 31, 0.25);
}

/* BI Features Grid */
.bi-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 0, 0, 0.05);
}

.bi-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    cursor: default;
}

.bi-feature-item:hover {
    background: rgba(243, 130, 31, 0.06);
    transform: translateY(-2px);
}

.bi-feature-icon {
    font-size: 1.2rem;
}


@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes textUp {
    0% {
        transform: translateY(120%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scroll Reveal Classes (Many Animations) */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
    opacity: 1 !important;
    transform: translate(0) scale(1) !important;
}

/* Delay modifiers for stagger effect */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Responsive */
@media screen and (max-width: 1024px) {
    .title {
        font-size: 4rem;
    }

    .hero-image {
        max-width: 400px;
    }
}

@media screen and (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 120px;
        min-height: auto;
    }

    .hero-content {
        margin-bottom: 5rem;
        padding-top: 0;
    }

    .motto {
        border-left: none;
        padding-left: 0;
        border-top: 4px solid var(--color-red);
        padding-top: 2rem;
        display: inline-block;
        background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
        border-radius: 0 0 15px 15px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image-wrapper {
        justify-content: center;
        height: auto;
        min-height: 400px;
        width: 100%;
        perspective: none;
    }

    .hero-image-backdrop {
        right: auto;
        width: 100%;
        height: 100%;
        max-width: 400px;
    }

    .title {
        font-size: 3.8rem;
    }

    .roles {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .separator {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Add a hamburger menu for mobile later */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .floating-words {
        display: none;
    }
}

/* ===================================================
   DROPDOWN NAVIGATION
   =================================================== */

.has-dropdown {
    position: relative;
}

.nav-arrow {
    display: inline-block;
    font-size: 0.55rem;
    margin-left: 4px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.has-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 280px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(29, 78, 216, 0.12);
    border-radius: 20px;
    padding: 0.6rem;
    list-style: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 200;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.96);
    border-left: 1px solid rgba(29, 78, 216, 0.12);
    border-top: 1px solid rgba(29, 78, 216, 0.12);
    transform: translateX(-50%) rotate(45deg);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    transition: background 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dropdown-item.dd-last {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(29, 78, 216, 0.06);
    transform: translateX(4px);
}

.dropdown-item::after {
    display: none !important;
}

.dd-icon {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(29, 78, 216, 0.08);
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover .dd-icon {
    background: rgba(29, 78, 216, 0.15);
    transform: scale(1.1) rotate(-5deg);
}

.dd-icon-sell {
    background: rgba(239, 68, 68, 0.08) !important;
}

.dropdown-item:hover .dd-icon-sell {
    background: rgba(239, 68, 68, 0.16) !important;
}

.dd-icon-rooms {
    background: rgba(6, 182, 212, 0.08) !important;
}

.dropdown-item:hover .dd-icon-rooms {
    background: rgba(6, 182, 212, 0.16) !important;
}

.dd-icon-commerce {
    background: rgba(16, 185, 129, 0.08) !important;
}

.dropdown-item:hover .dd-icon-commerce {
    background: rgba(16, 185, 129, 0.16) !important;
}

.dd-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dd-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
}

.dd-text small {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================================
   FLOATING WORDS — ANTIGRAVITY HERO
   =================================================== */

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-words {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.fw {
    position: absolute;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(29, 78, 216, 0.20);
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    will-change: transform;
    animation: fw-bob 6s ease-in-out infinite;
    border: 1px solid rgba(29, 78, 216, 0.12);
    background: rgba(29, 78, 216, 0.04);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    transition: transform 0.06s linear;
}

.fw:nth-child(2) {
    animation-delay: -1.2s;
}

.fw:nth-child(3) {
    animation-delay: -2.4s;
}

.fw:nth-child(4) {
    animation-delay: -3.6s;
}

.fw:nth-child(5) {
    animation-delay: -0.8s;
}

.fw:nth-child(6) {
    animation-delay: -4.2s;
}

.fw:nth-child(7) {
    animation-delay: -1.8s;
}

.fw:nth-child(8) {
    animation-delay: -3.0s;
}

.fw:nth-child(9) {
    animation-delay: -5.0s;
}

.fw:nth-child(10) {
    animation-delay: -2.0s;
}

.fw-blue {
    color: rgba(29, 78, 216, 0.22);
    border-color: rgba(29, 78, 216, 0.14);
    background: rgba(29, 78, 216, 0.05);
}

.fw-red {
    color: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.14);
    background: rgba(239, 68, 68, 0.04);
}

.fw-cyan {
    color: rgba(6, 182, 212, 0.22);
    border-color: rgba(6, 182, 212, 0.14);
    background: rgba(6, 182, 212, 0.04);
}

.fw-purple {
    color: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.14);
    background: rgba(139, 92, 246, 0.04);
}

@keyframes fw-bob {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-14px) rotate(2deg);
    }

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