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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #cbd5e1;
    background-color: #071028;
}

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

/* Navigation */
.navbar {
    background-color: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    overflow: hidden;
    font-size: 18px;
    font-weight: 700;
    color: #e6f0fb;
    letter-spacing: 1px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #e6f7ff;
}

.lang-switcher {
    display: inline-flex;
    gap: 8px;
    margin-left: 18px;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.lang-btn:hover { background: rgba(255,255,255,0.03); }
.lang-btn.active { background: #F4F754; color: #04111a; border-color: #F4F754; }

/* Language fade helper */
.lang-en, .lang-it { transition: opacity .28s ease; }

/* Theme toggle button */
.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.06);
    color: #cbd5e1;
    padding: 6px 10px;
    border-radius: 6px;
    margin-left: 8px;
    cursor: pointer;
}
.theme-toggle:hover { background: rgba(255,255,255,0.03); }

/* Light theme overrides (added when <html> has class 'light-theme') */
.light-theme body {
    background-color: #ffffff;
    color: #1f2937;
}
.light-theme .navbar { background-color: #ffffff; border-bottom: 1px solid #e6eef9; }
.light-theme .logo { color: #0f172a; }
.light-theme .nav-links a { color: #0f172a; }
.light-theme .lang-btn { border-color: #e2e8f0; color: #0f172a; }
.light-theme .lang-btn.active { background: #F4F754; color: #04111a; border-color: #F4F754; }
.light-theme .theme-toggle { border-color: #e2e8f0; color: #0f172a; }
.light-theme .hero { background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.light-theme .hero h1 { color: #0f172a; }
.light-theme .tagline { color: #0f172a; }
.light-theme .subtitle { color: #475569; }
.light-theme .cta-button { background-color: #0f172a; color: #ffffff; border-color: #0f172a; }
.light-theme .cta-button:hover { background-color: #e8e646; border-color: #e8e646; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(244,247,84,0.12); color: #04111a;}
.light-theme .expertise-card { background-color: #ffffff; border-color: #e2e8f0; }
.light-theme .expertise-card h3 { color: #0f172a; }
.light-theme .expertise-card p { color: #64748b; }
.light-theme .experience-item { background-color: #f8f9fa; border-color: #e2e8f0; }
.light-theme .experience-content h3 { color: #0f172a; }
.light-theme .experience-meta { color: #64748b; }
.light-theme .experience-highlights li { color: #475569; }
.light-theme .experience-highlights li:before { color: #0f172a; }
.light-theme .contact-link { border-color: #0f172a; color: #0f172a; }
.light-theme .contact-link:hover { background-color: #0f172a; color: #ffffff; }
.light-theme .footer { background-color: #0f172a; color: #94a3b8; }

/* Improve section heading readability in light theme */
.light-theme .about h2,
.light-theme .expertise h2,
.light-theme .contact h2,
.light-theme .experience h2 {
    color: #0f172a;
}

.light-theme .about p {
    color: #475569;
}

/* Hero Section */
.hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(3,7,18,0.6) 0%, rgba(7,16,36,0.6) 100%);
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #e6f0fb;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 28px;
    color: #F4F754;
    margin-bottom: 15px;
    font-weight: 600;
}

.subtitle {
    font-size: 18px;
    color: #9fb3c6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #F4F754;
    color: #04111a;
    padding: 14px 40px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #F4F754;
}

.cta-button:hover {
    background-color: #0f172a; 
    color: #ffffff; 
    border-color: #0f172a;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: transparent;
}

.about h2,
.expertise h2,
.contact h2 {
    font-size: 42px;
    color: #e6f0fb;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 700;
}

.about p {
    font-size: 18px;
    color: #9fb3c6;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

/* Expertise Section */
.expertise {
    padding: 100px 0;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.expertise-card {
    background-color: rgba(255,255,255,0.03);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    border-color: #F4F754;
    box-shadow: 0 12px 30px rgba(244,247,84,0.06);
    transform: translateY(-5px);
}

.expertise-card h3 {
    font-size: 20px;
    color: #e6f0fb;
    margin-bottom: 15px;
    font-weight: 600;
}

.expertise-card p {
    font-size: 15px;
    color: #9fb3c6;
    line-height: 1.7;
}

/* Experience Section */
.experience {
    padding: 100px 0;
    background-color: transparent;
}

.experience h2 {
    font-size: 42px;
    color: #e6f0fb;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.experience-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    background-color: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

.experience-item:hover {
    border-color: #F4F754;
    box-shadow: 0 8px 20px rgba(244,247,84,0.06);
}

.experience-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #e6f0fb;
    margin-bottom: 5px;
}

.experience-meta {
    font-size: 14px;
    color: #9fb3c6;
    margin-bottom: 20px;
    font-weight: 500;
}

.experience-highlights {
    list-style: none;
    padding: 0;
}

.experience-highlights li {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.experience-highlights li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #F4F754;
    font-weight: bold;
    font-size: 18px;
}

.experience-highlights li:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: transparent;
    text-align: center;
}

/* Certifications Section */
.certifications {
    padding: 100px 0;
    background-color: transparent;
}

.certifications h2 {
    font-size: 42px;
    color: #e6f0fb;
    margin-bottom: 60px;
    text-align: center;
    font-weight: 700;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.certification-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    background-color: rgba(255,255,255,0.02);
}

.certification-badge:hover {
    border-color: #F4F754;
    box-shadow: 0 12px 30px rgba(244,247,84,0.06);
    transform: translateY(-5px);
}

.certification-badge img {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    object-fit: contain;
}

.certification-badge p {
    font-size: 14px;
    color: #9fb3c6;
    text-align: center;
    line-height: 1.5;
}

.light-theme .certifications h2 {
    color: #0f172a;
}

.light-theme .certification-badge {
    border-color: #e2e8f0;
    background-color: #ffffff;
}

.light-theme .certification-badge:hover {
    border-color: #F4F754;
    box-shadow: 0 12px 30px rgba(244,247,84,0.06);
}

.light-theme .certification-badge p {
    color: #64748b;
}

.contact > .container > p {
    font-size: 18px;
    color: #9fb3c6;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid rgba(255,255,255,0.06);
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background-color: #F4F754;
    color: #04111a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #04111a;
    color: #9fb3c6;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

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

    .tagline {
        font-size: 20px;
    }

    .subtitle {
        font-size: 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .about h2,
    .expertise h2,
    .contact h2 {
        font-size: 32px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .experience-item {
        flex-direction: column;
        gap: 20px;
    }

    .experience-logo {
        width: 60px;
        height: 60px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }

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

    .tagline {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
        font-size: 12px;
    }
}
