/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fafbfc;
    color: #1a1a1a;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animazioni Keyframes */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(20px);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Header */
header {
    padding: 20px 40px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    animation: slideInDown 0.6s ease-out;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0040ff;
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fafbfc 0%, #f0f3f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 64, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 64, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hero h1 .highlight {
    color: #0040ff;
}

.hero p {
    font-size: 20px;
    color: #555;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button CTA */
.cta-button {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #0040ff 0%, #0035dd 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 64, 255, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 64, 255, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 100px 40px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 60px;
    color: #1a1a1a;
    animation: fadeInUp 0.8s ease-out;
}

.section-title .highlight {
    color: #0040ff;
}

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

.service-card {
    padding: 40px 30px;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.1s; }
.service-card:nth-child(5) { animation-delay: 0.2s; }
.service-card:nth-child(6) { animation-delay: 0.3s; }

.service-card:hover {
    transform: translateY(-8px);
    border-color: #0040ff;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f3ff 100%);
    box-shadow: 0 20px 40px rgba(0, 64, 255, 0.15);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Projects Section */
.projects {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f3f7 100%);
    max-width: 1200px;
    margin: 0 auto;
}

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

.project-item {
    padding: 30px;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #0040ff;
    transition: all 0.4s ease;
    animation: slideInLeft 0.8s ease-out both;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }

.project-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 64, 255, 0.2);
}

.project-badge {
    display: inline-block;
    background: #0040ff;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    animation: scaleIn 0.6s ease-out;
}

.project-item h3 {
    font-size: 18px;
    color: #1a1a1a;
    font-weight: 700;
}

/* About Section */
.about {
    padding: 100px 40px;
    background: white;
    max-width: 1200px;
    margin: 0 auto;
}

.about-content {
    animation: fadeInUp 0.8s ease-out;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 18px;
    color: #555;
    margin-bottom: 24px;
    line-height: 1.8;
}

.about-text p:first-child {
    color: #0040ff;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 100px 40px;
    background: linear-gradient(135deg, #f9fafb 0%, #f0f3f7 100%);
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0040ff;
    box-shadow: 0 0 0 3px rgba(0, 64, 255, 0.1);
    background: #f9fafb;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    padding: 40px;
    background: #1a1a1a;
    color: white;
    text-align: center;
}

.footer-content p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-content p:first-child {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 16px;
    }

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

    .services {
        padding: 60px 20px;
    }

    .projects {
        padding: 60px 20px;
    }

    .about {
        padding: 60px 20px;
    }

    .contact {
        padding: 60px 20px;
    }

    nav {
        gap: 15px;
    }

    nav a {
        font-size: 12px;
    }

    header {
        padding: 15px 20px;
    }

    .hero {
        min-height: 70vh;
    }
}

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

    .section-title {
        font-size: 24px;
        margin-bottom: 40px;
    }

    .services-grid,
    .projects-list {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 14px;
    }
}
