/**
 * Computer Wizard - Portfolio WIP Styles
 * Brand Identity Color Palette
 */

:root {
    /* Computer Wizard Brand Colors */
    --cw-blue: #0061a0;        
    --cw-lightblu: #1ac0f2;
    --cw-cl-card: #1e3a5f;
    --cw-grey: #f8f9fa;
    --cw-darkblue: #23274e;
    --shadow-nav: 0 2px 6px rgba(40, 40, 40, 0.3);
    
    /* Neutral Colors */
    --cw-white: #ffffff;
    --cw-gray-100: #f5f7fa;
    --cw-gray-200: #e4e9f0;
    --cw-gray-300: #c5d0de;
    --cw-gray-400: #a0aec0;
    --cw-gray-500: #718096;
    --cw-gray-600: #4a5568;
    --cw-gray-700: #2d3748;
    --cw-gray-900: #1a202c;
    
    /* Status Colors */
    --status-development: #ff5959;
    --status-review: #8dd5ff;
    --status-testing: #ffeb7a;
    --status-ready: #42f132;
    
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
     overflow-anchor: none;
}

body {
    font-family: "Poppins", sans-serif;    
    color: white;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
    overflow-anchor: none;
}
.wrap-flex {display:flex;}
.gap10 {gap:10px;}
.gap5 {gap:5px;}
.gap16 {gap:16px;}
.align-center {align-items: center;}
.justify-c {justify-content: center;}
.nounderline {text-decoration: none;}

/* Top Navbar */
.topbar {
    height:30px;
    position: fixed; 
    top:0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background:var(--cw-blue);
    color:white;
    z-index: 1001;
    display:flex;
    align-items:center;
}
.topbar ul {list-style: none; width:auto; margin:0 auto; }
.topbar ul li {font-size:11px; }
.navbar {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 96, 160, 0.08);
    z-index: 1001;
    height: 4.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-nav);
}

.navbar-content {
    max-width: 100%;
    height: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;    
    margin:0 auto;    
}

.logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #0060A0;
    text-decoration: none;
    letter-spacing: -0.5px;    
    width:auto;
}

.nav-links {
    display: flex;    
    width:100%;
    justify-content: flex-end;
    align-items:center;   
}

.nav-links a {
    color: var(--cw-blue);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-size:18px;
    font-weight: 500;
    line-height: inherit;  
    padding: 5px 15px; 
}

.nav-links a:hover {
    color: var(--cw-lightblu);
}

.nav-links a:hover::after {
    width: 100%;
}



/* Sidebar */
.sidebar {
    position: fixed;
    top: 100px;
    left: 0;
    width: 280px;
    height: calc(100vh - 100px);
    max-height: calc(100vh - 100px);
    background: white;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 30px 0;
    z-index: 100;
    transition: transform 0.3s ease;    
}

.sidebar.collapsed {
    transform: translateX(-280px);
}

.sidebar-section {
    margin-bottom: 35px;
}

.sidebar-title {
    padding: 0 25px;
    margin-bottom: 15px;    
}

.sidebar-title a {
    font-size: 0.75em;
    color: #0060A0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration:none;
    font-weight: 700;
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 2px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.sidebar-list a:hover {
    background: #f5f9fc;
    color: #0060A0;
    border-left-color: #0060A0;
}

.sidebar-list a.active {
    background: #f5f9fc;
    color: #0060A0;
    border-left-color: #0060A0;
    font-weight: 600;
}

.project-favicon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 4px;
}
.project-disclaimer {
    font-size: 0.9em;
    color: #0060A0;  
    font-style: italic;
}

.project-name-sidebar {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar Toggle Buttons */
.sidebar-toggle-desktop {
    position: fixed;
    top: 115px;
    left: 0;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
    transition: all 0.3s ease;
    color: #0060A0;
    font-size: 1.2em;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle-desktop:hover {
    background: #f5f9fc;
    width: 45px;
}

.sidebar.collapsed ~ .sidebar-toggle-desktop {
    left: 0;
}

.sidebar:not(.collapsed) ~ .sidebar-toggle-desktop {
    left: 280px;
}

.sidebar-toggle-mobile {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: white;
    color: var(--cw-blue);
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.4));
    z-index: 98;
    transition: all 0.3s ease;
    touch-action: manipulation;
}

.sidebar-toggle-mobile:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 96, 160, 0.5);
}

.sidebar-toggle-mobile:active {
    transform: scale(0.95);
}

/* Menu a tendina per categorie siti */
.sidebar-category {
    margin-bottom: 5px;
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    color: #0060A0;
    font-weight: 600;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-header:hover {
    background: #f0f7fc;
    border-left-color: #0060A0;
}

.category-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.category-header.open .category-arrow {
    transform: rotate(-180deg);
}

.category-list {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.category-list.open {
    max-height: 500px;
}

.category-list li {
    margin-bottom: 2px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 25px 8px 25px;
    color: #666;
    text-decoration: none;
    font-size: 0.85em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;    
}

.category-list a:hover {
    background: #f5f9fc;
    color: #0060A0;
    border-left-color: #0060A0;
}

.category-list a.active {
    background: #f5f9fc;
    color: #0060A0;
    border-left-color: #0060A0;
    font-weight: 600;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    transition: margin-left 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar.collapsed ~ .main-content {
    margin-left: 0;
}

/* Hero Section - Full Screen */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0060A0 0%, #004d85 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: rotate 40s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding:10px;
}

h1 {
    font-size: 5em;
    font-weight: 800;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.6em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 50px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0060A0;
    background: white;
    text-decoration: none;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s infinite;
}

@media (max-width:737px) {.scroll-indicator{bottom:100px;}}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Container */
.container {
    width:100%;
    margin: 0 auto;
    padding: 120px 40px 80px;
    background: #f8f9fa;
    width: 100%;
    overflow-x: hidden;
}
.bckg-blu {background:var(--cw-blue);}

.section-title {
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -2px;
    color: var(--cw-darkblue);
}

.txt-w {color:white;}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.2em;
    margin-bottom: 80px;
    font-weight: 300;
}

.section-subtitle-light {color:#f8f9fa;}

/* Projects Stack */
.projects-stack {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;     
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 96, 160, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 96, 160, 0.4);
    scroll-margin-top: 0;
    text-decoration: none;
    color: inherit;
    display: block;
    max-width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 96, 160, 0.15);
    border-color: #0060A0;
}

.project-card.full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin:0 auto;
    align-items: stretch;
    max-width:80%;
}

.project-card.full:nth-child(even) .project-visual {
    order: 2;
}

.project-card.full:nth-child(even) .project-content {
    order: 1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin:0 auto;
    gap: 40px;
    margin-bottom: 60px;
    width: 100%;
    max-width: 60%;
}
@media (min-width:2150px) {  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 50px; max-width:50%; } .project-card.full {max-width:90%; }}
@media (max-width: 1750px) and (min-width:1301px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 60px; max-width:80%; }        
    }



/* @media (max-width:1450px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
} */

.project-card.compact {
    display: flex;
    flex-direction: column;
}

.project-card.compact .project-visual {
    height: 230px;
}

.project-visual {
    min-height: 230px;
    background: linear-gradient(135deg, #0060A0 0%, #004d85 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5em;
    position: relative;
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-bottom:1px solid rgba(0, 96, 160, 0.4);
    
}

.project-card.full .project-visual img {border-right:1px solid rgba(0, 96, 160, 0.4); border-bottom:none;}

.project-visual::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 4s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.project-content {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1; /* AGGIUNGI QUESTA */
    min-height: 0; /* AGGIUNGI QUESTA */
}

.project-card.compact .project-content {
    padding: 35px;
}

.project-number {
    font-size: 0.85em;
    color: #0060A0;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-title {
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.project-card.compact .project-title {
    font-size: 1.6em;
}

.project-description {
    font-size: 1.05em;
    color: #666;
    line-height: 1.7;
    margin-bottom: 10px;
}

.project-card.compact .project-description {
    font-size: 0.95em;
}

/* Features List */
.project-features {
    display: grid;
    gap: 12px;
    margin: 15px 0;
    grid-template-columns: repeat(2, 1fr);
}

.project-card.compact .project-features {
    grid-template-columns: 1fr;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: #444;
    line-height: 1.5;
}

.feature-icon {
    color: #0060A0;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Status Badge */
.project-status-wrap {
    margin-top: 10px;
     margin-top: auto;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9em;
    font-weight: 600;
}

.status-badge.status-ready {
    background: #0060A0;
    color: white;
}

.status-badge.status-development,
.status-badge.status-review,
.status-badge.status-testing {
    background: #ff3300;
    color: white;
}

.status-badge.status-progress {
    background: #ff9500;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse-status 2s infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Responsive */
@media (max-width:1600px) { .project-card.full { grid-template-columns: 1fr; } .project-card.full .project-visual img {border-bottom:1px solid rgba(0, 96, 160, 0.4); border-right:none;} }    
@media (max-width: 1300px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1001;
        width: 280px;
        max-width: 85vw;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-toggle-desktop {
        display: none;
    }
    
   .sidebar-toggle-mobile {
        display: flex;
        align-items: center;
        justify-content: center;        
        width:50px;
        height:50px;
    } 
    
    .main-content {
        margin-left: 0 !important;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); gap:50px;
        max-width:80%;
    }
    
    .project-card.full {
        grid-template-columns: 1fr;
    }
    .project-card.full .project-visual img {border-bottom:1px solid rgba(0, 96, 160, 0.4); border-right:none;}
    
    .project-card.full .project-visual,
    .project-card.full:nth-child(even) .project-visual {
        order: 1;
        min-height: 300px;
    }
    
    .project-card.full .project-content,
    .project-card.full:nth-child(even) .project-content {
        order: 2;
    }
    
    .project-features {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width:850px) { .projects-grid { gap:20px; max-width:90%;}}
@media (max-width:737px) { .projects-grid { grid-template-columns:1fr; gap:20px; max-width:95%;}.project-card.full {max-width:95%; }}

@media (max-width:900px) {
     .project-visual {
        min-height: 250px !important;
        font-size: 3.5em;
    }

     .project-card.compact .project-visual {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 0 20px;
    }
    
    .hide-mobile {
        display: none;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .container {
        padding: 80px 25px 40px 25px;
        
    }
    
    .section-title {
        font-size: 2.5em;
    }
    
    .project-content {
        padding: 30px;
    }
    
    .project-card.compact .project-content {
        padding: 25px;
    }
    
    .project-title {
        font-size: 1.3em !important;        
    }
    
   .project-description {font-size:0.8rem !important;}
    
    .projects-stack {
        gap: 40px;
    }  
    
}

@media (max-width:500px) {
 .project-visual {
        min-height: 280px;
        font-size: 3.5em;
    }
    
    .project-card.compact .project-visual {
        height: 220px;
    }
}

/* Scrollbar personalizzata per sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #0060A0;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #004d85;
}
/* Footer */
.footer {
    background: var(--cw-blue);    
    padding: 20px 0;
    margin-top: auto;
    border-top:1px solid white;
}

.container-footer {
     width: 100%;
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 1.5rem;;
    position:relative;
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    color: white;
    margin-bottom: 10px;
}

.footer-text:last-child {
    margin-bottom: 0;
}

.footer-text a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #1ac0f2;
    text-decoration: underline;
}

