/* Reset e variabili */
:root {
    --primary-color: #FF7E00;
    --secondary-color: #ea580c;
    --accent-color: #fb923c;
    --text-color: #1f2937;
    --light-bg: #fff7ed;
    --white: #ffffff;
    --dark-bg: #431407;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ff6b35;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo:hover::after {
    transform: scaleX(1);
}

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

.nav-links a {
    text-decoration: none;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--white);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin-bottom: 3rem;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
}

.cta-button:first-child {
    background-color: var(--white);
    color: var(--primary-color);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    opacity: 0;
    animation: fadeIn 0.8s ease 0.6s forwards;
}

.scroll-down span {
    font-size: 1rem;
    font-weight: 500;
}

.scroll-down i {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 2rem;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Sections background */
#about, #timeline, #projects, #certifications, #contact {
    position: relative;
    z-index: 1;
    background-color: var(--white);
    padding: 6rem 0;
}

/* About Section */
.about {
    padding: 8rem 1rem;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(79,70,229,0.05) 0%, rgba(124,58,237,0.05) 100%);
    z-index: -1;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item .number {
    display: block;
    font-size: 2.8rem;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-item .label {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 500;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
}

/* Skills Section */
.skills {
    padding: 8rem 1rem;
    background: var(--light-bg);
}

.skills h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skills-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4b5563;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Portfolio Section */
.portfolio {
    padding: 8rem 1rem;
    background: var(--white);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 2rem;
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.portfolio-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.portfolio-link:hover {
    background: #d97706;
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 8rem 1rem;
    background: var(--white);
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    background: var(--gradient);
    padding: 3rem 2rem;
    border-radius: 20px;
    color: var(--white);
    height: fit-content;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
}

.contact-info-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.contact-info-icon {
    font-size: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-info-content p {
    font-size: 1rem;
    opacity: 0.9;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--text-color);
    background: var(--light-bg);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(249,115,22,0.1);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(249,115,22,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.submit-btn:hover {
    color: var(--white);
}

.submit-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-btn i {
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
    color: var(--white);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .contact-info-item:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }
}

/* Footer */
footer {
    background: var(--gradient);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff10" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,186.7C384,213,480,235,576,234.7C672,235,768,213,864,202.7C960,192,1056,192,1152,170.7C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--white);
    font-size: 1.5rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
    border-radius: 50%;
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link:hover::before {
    transform: scale(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-content {
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .cta-button {
        width: 100%;
        text-align: center;
    }
}

/* Timeline Section */
.timeline-section {
    padding: 8rem 1rem;
    background: var(--white);
    position: relative;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(249,115,22,0.03) 0%, rgba(234,88,12,0.03) 100%);
    z-index: 0;
}

.timeline-section h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.timeline-tab {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.timeline-tab:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.timeline-tab:hover {
    color: var(--white);
}

.timeline-tab.active {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(249,115,22,0.2);
}

.timeline {
    position: relative;
    padding: 2rem;
    background: transparent;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.timeline.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.timeline h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.timeline h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.timeline-container {
    position: relative;
    z-index: 1;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 40px;
    width: 3px;
    height: calc(100% - 50px);
    background: var(--gradient);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(249,115,22,0.3);
}

.timeline-item {
    width: 100%;
    padding-left: 80px;
    position: relative;
    margin-bottom: 3rem;
    perspective: 1000px;
}

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

.timeline-content {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    position: relative;
    border: 1px solid rgba(249,115,22,0.1);
    transform-style: preserve-3d;
    transform: rotateX(0deg);
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 6px rgba(249,115,22,0.1);
    transition: all 0.3s ease;
    left: -64px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249,115,22,0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(249,115,22,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249,115,22,0);
    }
}

.timeline-content:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.95);
}

.timeline-content:hover::before {
    box-shadow: 0 0 0 8px rgba(249,115,22,0.2);
    transform: translateY(-50%) scale(1.2);
}

.timeline-date {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(249,115,22,0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.timeline-content:hover .timeline-date {
    background: var(--gradient);
    color: var(--white);
    transform: translateX(5px);
}

.timeline-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
    transition: all 0.3s ease;
}

.timeline-content:hover .timeline-title {
    color: var(--primary-color);
    transform: translateX(5px);
}

.timeline-description {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.timeline-content:hover .timeline-description {
    transform: translateX(5px);
}

.timeline-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    position: relative;
    background: rgba(249,115,22,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.timeline-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.timeline-content:hover .timeline-link {
    transform: translateX(5px);
}

.timeline-link:hover {
    color: var(--white);
}

.timeline-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.timeline-link i {
    transition: transform 0.3s ease;
}

.timeline-link:hover i {
    transform: translateX(5px);
    color: var(--white);
}

@media (max-width: 768px) {
    .timeline-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .timeline-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .timeline {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .timeline-title {
        font-size: 1.4rem;
    }

    .timeline-date {
        font-size: 1rem;
    }

    .timeline-description {
        font-size: 1rem;
    }
}

/* Project Cards */
.project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    border: 1px solid rgba(249,115,22,0.1);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.95);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    padding: 20px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 2.5rem;
}

.project-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
    transform: translateX(5px);
}

.project-description {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-description {
    transform: translateX(5px);
}

.project-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    color: #4b5563;
    transition: all 0.3s ease;
}

.project-features li i {
    color: var(--primary-color);
}

.project-card:hover .project-features li {
    transform: translateX(5px);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    background: rgba(249,115,22,0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    z-index: -1;
}

.project-link:hover {
    color: var(--white);
}

.project-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.project-link i {
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
    color: var(--white);
}

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

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.6rem;
    }

    .about-image img {
        width: 250px;
        height: 250px;
    }

    .project-image {
        height: 150px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        left: 0 !important;
        margin-bottom: 2rem;
    }
    
    .timeline-content::before {
        left: -50px !important;
    }
    
    .project-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 1024px) {
    .timelines-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .timeline + .timeline {
        margin-top: 4rem;
    }
}

/* Certifications Section */
.certifications {
    padding: 8rem 1rem;
    background: var(--white);
    position: relative;
}

.certifications::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(249,115,22,0.03) 0%, rgba(234,88,12,0.03) 100%);
    z-index: 0;
}

.certifications h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    position: relative;
    z-index: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.certifications-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.certification-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: rotateX(0deg);
    border: 1px solid rgba(249,115,22,0.1);
}

.certification-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.95);
}

.certification-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--white);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.certification-content {
    flex-grow: 1;
}

.certification-content h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-content h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

.certification-content p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-content p {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .certification-card {
        padding: 1.5rem;
    }

    .certification-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .certification-content h3 {
        font-size: 1.2rem;
    }
}

.contact-form .project-link {
    background: rgba(249,115,22,0.1);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: auto;
    margin-top: 1rem;
}

.contact-form .project-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-form .project-link:hover {
    background: var(--gradient);
    color: var(--white);
}

.contact-form .project-link:hover i {
    transform: translateX(5px);
}

.contact-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 250px;
    margin: 8px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.contact-item .icon {
    background: linear-gradient(135deg, #ff6b35 0%, #f7c59f 100%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.contact-item .icon i {
    color: white;
    font-size: 16px;
}

.contact-item h3 {
    margin: 5px 0;
    font-size: 16px;
    color: #1f2937;
    font-weight: 600;
}

.contact-item p, 
.contact-item a {
    margin: 5px 0;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.cv-section {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 197, 159, 0.1) 100%);
}

.cv-container {
    max-width: 800px;
    margin: 0 auto;
}

.cv-container h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.cv-container p {
    margin-bottom: 2rem;
    color: #374151;
}

/* Stili per il modal della password */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.modal-content h3 {
    margin-bottom: 1rem;
    color: #1f2937;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #374151;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.modal-content .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
} 