/* ========== VARIABLES ========== */
:root {
    /* Colors */
    --primary-color: #121212;
    --primary-dark: #32746D;
    --primary-light: #982649;

    --bg-color: #F8F9FA;
    --bg-secondary: #d9d7cc;
    --bg-dark: #1E1E24;
    --bg-dark-secondary: #2A2A32;

    --text-primary: #1E1E24;
    --text-secondary: #6C757D;
    --text-light: #FFFFFF;

    --border-color: #E9ECEF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 90%;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg-color: #1E1E24;
    --bg-secondary: #2A2A32;
    --bg-dark: #F8F9FA;
    --bg-dark-secondary: #d9d7cc;

    --text-primary: #FFFFFF;
    --text-secondary: #ADB5BD;
    --text-light: #1E1E24;

    --border-color: #3A3A42;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ========== BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-color);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========== UTILITY CLASSES ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h1 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.title-study {
    font-size: 48px;
    margin-bottom: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 15, 9, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 15, 9, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: var(--primary-dark);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

.social-links {
    display: flex;
    gap: 50px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--bg-dark-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-4px);
}

/* ========== HEADER ========== */
header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg);
    z-index: 1000;
    transition: all var(--transition-normal);
}

/* .header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-color);
} */

nav {
    background-color: var(--primary-dark);
    width: auto;
    padding: 25px;
    margin: 0 auto;
    border-radius: 25px;
    margin-top: 50px;
}

.nav-menu {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-evenly;
    gap: 100px;
}

/* .bg-logo{
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    width: 10%;
    padding: 5px;
    justify-content: center;
    height: 20vh;
} */
.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-color);
    transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(15deg);
}

.theme-icon {
    font-size: 18px;
    color: var(--bg-dark);
}

.theme-icon:hover {
    font-size: 18px;
    color: var(--text-light);
}

.nav-toggle,
.nav-close {
    display: none;
}

/* ========== HERO SECTION ========== */
.hero {
    padding: 0px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    ;
    background: var(--bg-secondary);
    overflow: hidden;
}

.hero-container {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    height: 75vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    animation: fadeInUp 0.8s ease;
    gap: 50px;
}

.hero-greeting {
    display: inline-block;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-description {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 0.8s ease;
    height: 100%;
    width: 100%;
}


.hero-blob {
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, var(--bg-secondary), var(--primary-light), var(--primary-color), var(--primary-dark));
    animation: meshGradient 10s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

@keyframes meshGradient {
    0% {
        background-position: 0% 50%;
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    50% {
        background-position: 100% 50%;
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    100% {
        background-position: 0% 50%;
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.hero-stats {
    display: flex;
    gap: 16px;
}

.stat-card {
    background: var(--bg-color);
    padding: 20px 18px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 160px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 15, 9, 0.4);
    color: var(--bg-color);
}

.stat-card i {
    font-size: 28px;
    color: var(--text-primary);
}

.stat-card h3 {
    font-size: 24px;
    font-family: var(--font-primary);
}

.stat-card p span {
    font-size: 12px;
    color: var(--text-primary);
    display: flex;
    width: 100%;
}

/* ========== Skills SECTION ========== */
.skills-section{
        padding: 150px 0px;
}
.skills-container {
    display: flex;
    height: 80vh;
    background: var(--bg-color);
}

/* Bento Grid */
.bento-grid {
    display: flex;
    gap: 50px;
    width: auto;
    flex-direction: column;
    margin: 0 auto;
}

.bento-container {
    display: flex;
    flex-direction: column;
}

.label {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

.label-sm {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-family: var(--font-primary);
    text-transform: uppercase;
}
.grid-wrapper {
    display: grid;
    gap: 0;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas:
        "main it1 it3"
        "main it2 it4";
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 400px;
}

.grid-area {
    grid-area: main;
}

.item-1 {
    grid-area: it1;
}

.item-2 {
    grid-area: it2;
}

.item-3 {
    grid-area: it3;
}

.item-4 {
    grid-area: it4;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    color: white;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.card p {
    font-size: 1.8rem;
    text-align: center;
    margin: 0;
    color: white !important;
    font-family: var(--font-primary);
    font-weight: 700;
}

.card span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.95);
}

/* Card Colors */
.wordpress {
    background: linear-gradient(135deg, #0091c2 0%, #33c2f1 100%);
}

.elementor {
    background: linear-gradient(135deg, #92053c 0%, #f33a97 100%);
}

.affinity {
    background: linear-gradient(135deg, #A7F175 0%, #6ab439 100%);
}

.figma {
    background: linear-gradient(135deg, #8c52ff 0%, #a770ff 100%);
}

.illustrator {
    background: linear-gradient(135deg, #ff9a00 0%, #1c1305 100%);
}

.vs-code {
    background: linear-gradient(135deg, #007acc 0%, #0098ff 100%);
}

.html-css-javascript {
    background: linear-gradient(135deg, #f16529 0%, #f0d44a 100%);
}

.vite {
    background: linear-gradient(135deg, #863bff 0%, #47bfff 100%);
}

.react {
    background: linear-gradient(135deg, #008ca3 0%, #014a56 100%);
}

.ai {
    background: linear-gradient(135deg, #DE7356 50%, #EA4335 100%);
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

.flex-study {
    display: flex;
    gap: 50px;
    width: auto;
    flex-direction: column;
    margin: 0 auto;
}

.grid-card-study {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 2fr));
    gap: 32px;
}

.card-study {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    background: var(--bg-secondary);
    /* Segue il tuo colore di sfondo secondario */
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.status-badge {
    align-self: flex-end;
    background: var(--primary-light);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-study:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
}

.dark-mode .react-minimal-card {
    background: var(--bg-dark-secondary);
}

.study {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
.study-in-corso {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
}

.study-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 28px;
    margin: 0px;
}

.type-icon-bg {
    background: #ffffff;
    border-radius: 10px;
}

.react-icon-bg {
    background: #61dafb;
    color: #20232a;
}

/* ========== SERVICES SECTION ========== */
.howIwork {
    background: var(--bg-secondary);
}
.howIwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    /* AGGIUNGI QUESTE DUE RIGHE */
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    background: var(--bg-color, white);
    padding: 40px 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    /* Usa 'all' per testare */
    justify-content: center;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md, 0 8px 16px rgba(0, 0, 0, 0.2));
    border-color: var(--primary-dark, blue);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 28px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: var(--font-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio {
    background: var(--bg-color);
}

.portfolio-category {
    margin-bottom: 80px;
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.category-title {
    font-size: 32px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    justify-content: center;
}

.project-card {
    background: var(--bg-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);

}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    transform: scale(0.02);
}

.project-card.featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
}

.project-video {
    position: relative;
    overflow: hidden;
}

.project-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.wip-tag {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: wip-pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.wip-tag-site {
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: wip-pulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    width: fit-content;
    gap: 5px;
}

.wip-tag i {
    margin-right: 4px;
    font-size: 10px;
}

@keyframes wip-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.project-content p {
    color: var(--bg-dark);
    margin-bottom: 24px;
    line-height: 1.8;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-dark);
    font-weight: 600;
    transition: gap var(--transition-fast);
}

.project-link:hover {
    gap: 12px;
}
.disclaimer{
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.projects-grid .project-card {
    display: flex;
    flex-direction: column;
}

.projects-grid .project-video {
    height: 250px;
}

/* ========== CONTACT SECTION ========== */
.contact {
    background: var(--primary-dark);
}

.contact-wrapper {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: flex;
    flex-direction: row;
    gap: 24px;
}

.contact-card {
    background: var(--bg-color);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    font-family: var(--font-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    background: var(--bg-color);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========== FOOTER ========== */
footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 40px 0px;
}

.footer-content {
    display: flex;
    gap: 60px;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
}

.footer-logo img {
    width: 25%;
    filter: brightness(0) invert(1);
}

.footer-social h4 {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 18px;
    font-family: var(--font-primary);
}
.footer-links{
    width: auto;
    margin-top: 50px;
    display: flex;
    align-items: center;
    gap: 50px;
}
.footer-links ul {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-light);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 38px;
    height: 75px;
    background: var(--primary-color);
    color: white;
    border-radius: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* @keyframes blobAnimation {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
} */
.iubenda {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-right: 80px;
    padding-top: 17px;
}

#iubenda-cs-banner.iubenda-cs-top {
    justify-content: flex-end !important;
    align-items: flex-end !important;
}

/* ========== RESPONSIVE ========== */

@media screen and (max-width: 1925px)
/*DESKTOP GRANDE*/
    {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        display: flex;
        flex-direction: row-reverse;
    }

    .hero-image {
        order: -1;
    }

    .hero-blob {
        width: 50%;
        height: 50%;
    }

    .hero-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 24px;
    }

    .skills-container {
        flex-direction: column;
        height: 100%;
        gap: 200px;
        width: 90%;
        margin: 0 auto;
    }
    .title-study {
        font-size: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .bento-portfolio {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .bento-grid {
        width: 90%;
    }
    .flex-study {
        display: flex;
        width: 90%;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
        align-items: flex-start;
    }
    .grid-card-study {
        display: flex;
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 50px;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: none;
    }
}

@media screen and (max-width: 1670px)
/*DESKTOP PICCOLO*/
    {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        display: flex;
        flex-direction: row-reverse;
    }

    .hero-image {
        order: -1;
    }

    .hero-blob {
        width: 50%;
        height: 40%;
    }

    .hero-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 24px;
    }

    .title-study {
        font-size: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .skills-container {
        flex-direction: column;
        height: 100%;
        gap: 100px;
        width: 90%;
        margin: 0 auto;
    }

    .bento-portfolio {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .grid-card-study{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: none;
    }
}

@media screen and (max-width: 1445px)
/*LAPTOP*/
    {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        display: flex;
        flex-direction: row-reverse;
    }

    .hero-image {
        order: -1;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .hero-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 24px;
    }

    .title-study {
        font-size: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .skills-container {
        flex-direction: column;
        height: 100%;
        gap: 100px;
        width: 90%;
        margin: 0 auto;
    }

    .bento-portfolio {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: none;
    }
}

@media screen and (max-width: 1024px)
/*TABLET*/
    {
    :root {
        --section-padding: 80px;
    }

    .hero-container {
        display: flex;

    }
    .nav-list{
        display: none;
    }
    .hero-image {
        order: -1;
    }

    .hero-blob {
        width: 300px;
        height: 300px;
    }

    .hero-stats {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 24px;
    }

    .title-study {
        font-size: 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .skills-container {
        flex-direction: column;
        height: 100%;
        gap: 100px;
        width: 90%;
        margin: 0 auto;
    }

    .bento-portfolio {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .grid-card-study{
        flex-wrap: wrap;
        justify-content: space-evenly;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .footer-logo {
        display: none;
    }
}

@media screen and (max-width: 768px)
/*SMARTPHONE GRANDE*/
    {
    :root {
        --header-height: 70px;
        --section-padding: 60px;
    }

    nav {
        display: none;
    }

    .hero {
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .hero-stats {
        margin-bottom: 50px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .title-study {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    .skills-container {
        flex-direction: column;
        height: 100%;
        gap: 100px;
        width: 90%;
        margin: 0 auto;
    }

    .grid-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .bento-grid {
        align-items: center;
    }

    .bento-container {
        align-items: center;
        width: 100%;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card span {
        font-size: 0.8rem;
    }

    .howIwork-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 32px;
    }

    .category-title {
        font-size: 24px;
        display: flex;
    }

    .footer-logo {
        display: none;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .nav-list {
        width: 100%;
    }
}

@media screen and (max-width: 500px)
/*SMARTPHONE PICCOLO*/
    {
    .hero {
        height: 100%;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .hero-stats {
        margin-bottom: 50px;
    }

    .hero-blob {
        width: 250px;
        height: 250px;
    }

    .nav {
        display: none;
    }

    .hero {
        justify-content: center;
    }

    .stat-card {
        min-width: 140px;
        padding: 16px 20px;
    }

    .stat-card i {
        font-size: 24px;
    }

    .stat-card h3 {
        font-size: 20px;
    }

    .project-content {
        padding: 24px;
    }

    .contact-form {
        padding: 24px;
    }

    .footer-logo {
        display: none;
    }

    .bento-grid {
        align-items: center;
    }

    .bento-container {
        align-items: center;
    }

    .grid-wrapper {
        width: 90%;
        margin: 0 auto;
    }

    .nav-link {
        font-size: 0.9rem;
    }

}