/* Base Styles */
        :root {
            --primary-color: #071134;
            --secondary-color: #1b348c;
            --accent-color: #082075;
            --text-light: #f3f4f6;
            --text-dark: #111827;
            --background: #f9fafb;
        }
        @font-face {
            font-family: 'Rowdies-Regular';
            src: url('/style/Rowdies/Rowdies-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: sans-serif;
        }
        
        body {
            background-color: var(--background);
            color: var(--text-dark);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        /* Container and Utils */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.2rem;
        }
        .section {
            padding: 5rem 0;
        }
        
        /* Header */
        header {
            background: rgb(33, 36, 155);
            background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: var(--text-light);
            padding: 2rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        header.scrolled {
            padding: 1rem 0;
            background: rgba(33, 36, 155, 0.95);
        }
        
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            font-family:'Rowdies-Regular',sans-serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-light);
            text-decoration: none;
            position: relative;
            display: inline-block;
        }
        
        .logo::after {
            content: '';
            position: absolute;
            width: 50%;
            height: 3px;
            bottom: -5px;
            left: 0;
            background-color: var(--accent-color);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }
        
        .logo:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }
        
        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }
        
        .nav-links a {
            color: var(--text-light);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 0.5rem;
            position: relative;
        }
        
        .nav-links a::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--text-light);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform 0.3s ease-out;
        }
        
        .nav-links a:hover::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }
        
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: var(--text-light);
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        /* Hero Section */
        .hero {
            height: 75vh;
            display: flex;
            align-items: center;
            position: relative;
            margin-top: 4rem;
        }
        
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, rgb(4 38 114 / 90%), rgb(1 15 66 / 90%));
        }
        
        .hero-content {
            position: relative;
            z-index: 1;
            color: var(--text-light);
            max-width: 650px;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            line-height: 1.2;
            animation: fadeInUp 1s ease;
        }
        
        .hero p {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            animation: fadeInUp 1s ease 0.2s;
            animation-fill-mode: both;
        }
        
        .btn {
            display: inline-block;
            background-color: var(--accent-color);
            color: var(--text-light);
            padding: 0.8rem 2rem;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            animation: fadeInUp 1s ease 0.4s;
            animation-fill-mode: both;
        }
        
        .btn:hover {
            background-color: #0e2254;
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }
        
        /* About Section */
        .about-image {
            overflow: hidden;
            border-radius: 10px;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            position: relative;
        }
        
        .about-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
            transform-origin: center;
        }
        
        .about-image:hover img {
            transform: scale(1.05);
        }
        
        .about-image::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            border: 3px solid var(--primary-color);
            border-radius: 10px;
            transform: translate(15px, 15px);
            z-index: -1;
            transition: transform 0.3s ease;
        }
        
        .about-image:hover::after {
            transform: translate(10px, 10px);
        }
        
        .about-text h2 {
            font-size: 2.5rem;
            margin-bottom: 1.5rem;
            position: relative;
            padding-bottom: 0.5rem;
        }
        
        .about-text h2::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-color);
        }*/
        /* Stile generale */
        #about .container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
        }
        
        .about-content {
            display: flex;
            align-items: center;
            gap: 40px;
        }
        
        .about-image {
            width: 450px;
            height: 400px;
            background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
        }
        
        /* Effetto floating per gli skill */
        .floating-skills {
            position: absolute;
            width: 100%;
            height: 100%;
        }
        
        .skill-bubble {
            position: absolute;
            padding: 8px 15px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            font-size: 14px;
            color: white;
            backdrop-filter: blur(5px);
            animation: floatAnimation 5s infinite ease-in-out alternate;
        }
        
        .about-text p {
            margin-bottom: 1rem;
            font-size: 1.1rem;
        }
        
        .skills {
            margin-top: 2rem;
        }
        
        .skills h3 {
            margin-bottom: 1rem;
        }
        
        .skill-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }
        
        .skill-tag {
            background-color: var(--primary-color);
            color: var(--text-light);
            padding: 0.5rem 1rem;
            border-radius: 50px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }
        
        .skill-tag:hover {
            background-color: var(--secondary-color);
            transform: translateY(-3px);
        }
        
        /* Portfolio Section */
        .section-header {
            text-align: center;
            margin-bottom: 3rem;
        }
        
        .section-header h2 {
            font-size: 2.5rem;
            position: relative;
            display: inline-block;
            padding-bottom: 0.5rem;
        }
        
        .section-header h2::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 50px;
            height: 3px;
            background-color: var(--accent-color);
            transform: translateX(-50%);
        }
        
        .filter-buttons {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .filter-btn {
            background: none;
            border: 2px solid var(--primary-color);
            color: var(--primary-color);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .filter-btn:hover, .filter-btn.active {
            background-color: var(--primary-color);
            color: var(--text-light);
        }
        
        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
        }
        
        .portfolio-item {
            border-radius: 10px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            height: 300px;
        }
        
        .portfolio-item:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .portfolio-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .portfolio-item:hover .portfolio-img {
            transform: scale(1.05);
        }
        
        .portfolio-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 1.5rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .portfolio-item:hover .portfolio-overlay {
            opacity: 1;
        }
        
        .portfolio-title {
            color: var(--text-light);
            font-size: 1.3rem;
            margin-bottom: 0.5rem;
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }
        
        .portfolio-category {
            color: var(--accent-color);
            font-size: 0.9rem;
            transform: translateY(20px);
            transition: transform 0.3s ease 0.1s;
        }
        
        .portfolio-item:hover .portfolio-title,
        .portfolio-item:hover .portfolio-category {
            transform: translateY(0);a
        }
        
        .portfolio-buttons {
            margin-top: 1rem;
            display: flex;
            gap: 1rem;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.3s ease 0.2s;
        }
        
        .portfolio-item:hover .portfolio-buttons {
            transform: translateY(0);
            opacity: 1;
        }
        
        .portfolio-btn {
            background-color: var(--primary-color);
            color: var(--text-light);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .portfolio-btn:hover {
            background-color: var(--accent-color);
        }
        
        /* Contact Section */
        .contact {
            background-color: var(--secondary-color);
            color: var(--text-light);
        }
        
        .contact .section-header h2::after {
            background-color: var(--text-light);
        }
        
        .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }
        
        .form-group {
            margin-bottom: 1.5rem;
        }
        
        .form-control {
            width: 100%;
            padding: 1rem;
            font-size: 1rem;
            background-color: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 5px;
            color: var(--text-light);
            transition: all 0.3s ease;
        }
        
        .form-control::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }
        
        .form-control:focus {
            outline: none;
            background-color: rgba(255, 255, 255, 0.2);
        }
        
        textarea.form-control {
            resize: vertical;
            min-height: 150px;
        }
        
        /* Footer */
        footer {
            background-color: var(--secondary-color);
            color: var(--text-light);
            text-align: center;
            padding: 2rem 0;
            position: relative;
        }
        
        .footer-content {
            max-width: 500px;
            margin: 0 auto;
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin: 1.5rem 0;
        }
        
        .social-link {
            color: var(--text-light);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 1px solid var(--text-light);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.3s ease;
        }
        
        .social-link:hover {
            background-color: var(--text-light);
            color: var(--secondary-color);
        }
        
        .footer-bottom {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        .footer-bottom a{
            color:#ffffff;
            text-decoration:none;
        }
        /*dnone*/
        #portfolio, #contact{
            display:none;
        }
        
        /* Animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        /* Animazione dei tag */
        @keyframes floatAnimation {
            0% { transform: translateY(0); }
            100% { transform: translateY(-20px); }
        }
        
        /* Media Queries */
        @media screen and (max-width: 991px) {
            .about-content {
                display: grid;
                grid-template-columns: 1fr;
                gap: 2rem;
                justify-items:center;
            }
            .about-content .about-image{
                order:2;
            }
        }
        
        @media screen and (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .nav-links {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                flex-direction: column;
                background-color: var(--secondary-color);
                padding: 2rem;
                gap: 1rem;
                transform: translateY(-150%);
                transition: transform 0.3s ease;
                z-index: 999;
            }
            
            .nav-links.active {
                transform: translateY(0);
            }
            
            .mobile-menu-btn {
                display: block;
            }
            
            .portfolio-grid {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            .about-image{
                width:100%;
            }
        }