/* ================================================
   CV Page Custom Styles - Mattia Gazzotti
   Modern, Clean, Professional
================================================ */

/* === HEADER FIXES === */
.cv-hero + .cv-counters {
  margin-top: -50px;
}

/* Header su pagina CV - Full Width */
.header-2 .container {
  max-width: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.header-2 #main-menu > li > a {
  color: #fff !important;
}

.header-2 #main-menu > li > a:hover {
  color: #00c9ff !important;
}

.header-2 .navbar {
  padding-top: 25px;
  padding-bottom: 25px;
}

.header-2 #main-menu > li {
  margin: 0 12px;
}

/* Sticky Header */
#header-wrap.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #1c1d3e 0%, #2575fc 100%) !important;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
  padding: 10px 40px;
}

#header-wrap.fixed-header .navbar {
  padding-top: 10px;
  padding-bottom: 10px;
}

#header-wrap.fixed-header #main-menu > li > a {
  color: #fff !important;
}

#header-wrap.fixed-header .nav-link {
  color: #fff !important;
}

#header-wrap.fixed-header ul li a {
  color: #fff !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === HERO SECTION === */
.cv-hero {
  background: linear-gradient(135deg, #1c1d3e 0%, #2575fc 100%);
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.cv-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/pattern/01.png') repeat;
  opacity: 0.05;
}

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

.cv-hero-content {
  color: #fff;
}

.cv-hero-subtitle {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 15px;
}

.cv-hero-title {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #fff;
}

.cv-hero-title span {
  color: #fff;
}

.cv-hero-roles {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

.cv-hero-roles span {
  display: inline-block;
  padding: 0 15px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.cv-hero-roles span:last-child {
  border-right: none;
}

.cv-hero-image {
  position: relative;
}

.cv-hero-image img {
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  max-width: 350px;
  border: 4px solid rgba(255,255,255,0.1);
}

.cv-hero-image::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2575fc 0%, #00c9ff 100%);
  border-radius: 20px;
  top: 20px;
  left: 20px;
  z-index: -1;
  opacity: 0.3;
}

/* === COUNTER SECTION === */
.cv-counters {
  background: #fff;
  padding: 60px 0;
  margin-top: -50px;
  position: relative;
  z-index: 10;
  border-radius: 20px 20px 0 0;
}

.cv-counter-item {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.cv-counter-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, #e0e0e0, transparent);
}

.cv-counter-item:last-child::after {
  display: none;
}

.cv-counter-number {
  font-size: 48px;
  font-weight: 700;
  color: #1c1d3e;
  line-height: 1;
  margin-bottom: 10px;
}

.cv-counter-number span {
  color: #2575fc;
}

.cv-counter-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}

/* === TIMELINE SECTION === */
.cv-timeline-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.cv-section-title {
  text-align: center;
  margin-bottom: 60px;
}

.cv-section-title h6 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #2575fc;
  margin-bottom: 15px;
}

.cv-section-title h2 {
  font-size: 42px;
  font-weight: 600;
  color: #1c1d3e;
}

.cv-timeline {
  position: relative;
  padding: 20px 0;
}

.cv-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #2575fc, #00c9ff);
}

.cv-timeline-item {
  position: relative;
  margin-bottom: 50px;
  width: 50%;
  padding-right: 50px;
}

.cv-timeline-item:nth-child(even) {
  margin-left: 50%;
  padding-right: 0;
  padding-left: 50px;
}

.cv-timeline-item::before {
  content: '';
  position: absolute;
  right: -8px;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #2575fc;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px #2575fc;
}

.cv-timeline-item:nth-child(even)::before {
  right: auto;
  left: -8px;
}

.cv-timeline-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.cv-timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.cv-timeline-year {
  display: inline-block;
  background: linear-gradient(135deg, #2575fc 0%, #00c9ff 100%);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 15px;
}

.cv-timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #1c1d3e;
  margin-bottom: 10px;
}

.cv-timeline-desc {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* === TECH STACK SECTION === */
.cv-tech-section {
  padding: 100px 0;
  background: #fff;
}

.cv-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.cv-tech-item {
  text-align: center;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.cv-tech-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2575fc, #00c9ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cv-tech-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 117, 252, 0.15);
  background: #fff;
}

.cv-tech-item:hover::before {
  transform: scaleX(1);
}

.cv-tech-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-tech-icon i {
  font-size: 48px;
  background: linear-gradient(135deg, #2575fc 0%, #00c9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cv-tech-icon img {
  max-width: 100%;
  max-height: 100%;
}

.cv-tech-name {
  font-size: 16px;
  font-weight: 600;
  color: #1c1d3e;
  margin-bottom: 5px;
}

.cv-tech-level {
  font-size: 12px;
  color: #2575fc;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === SKILLS MODERN === */
.cv-skills-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #1c1d3e 0%, #2a2b5a 100%);
}

.cv-skills-section .cv-section-title h6,
.cv-skills-section .cv-section-title h2 {
  color: #fff;
}

.cv-skill-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cv-skill-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-5px);
}

.cv-skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.cv-skill-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.cv-skill-percent {
  font-size: 14px;
  color: #00c9ff;
  font-weight: 600;
}

.cv-skill-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.cv-skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #2575fc, #00c9ff);
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 0;
}

.cv-skill-progress.animated {
  width: var(--progress);
}

/* === CTA SECTION === */
.cv-cta-section {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.cv-cta-title {
  font-size: 42px;
  font-weight: 600;
  color: #1c1d3e;
  margin-bottom: 20px;
}

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

.cv-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 35px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cv-btn-primary {
  background: linear-gradient(135deg, #2575fc 0%, #00c9ff 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 117, 252, 0.3);
}

.cv-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(37, 117, 252, 0.4);
  color: #fff;
}

.cv-btn-outline {
  background: transparent;
  color: #1c1d3e;
  border: 2px solid #1c1d3e;
}

.cv-btn-outline:hover {
  background: #1c1d3e;
  color: #fff;
}

/* === SOCIAL LINKS === */
.cv-social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.cv-social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.cv-social-link:hover {
  background: #2575fc;
  color: #fff;
  transform: translateY(-3px);
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .cv-hero-title {
    font-size: 42px;
  }
  
  .cv-timeline::before {
    left: 20px;
  }
  
  .cv-timeline-item,
  .cv-timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 60px;
    padding-right: 0;
  }
  
  .cv-timeline-item::before,
  .cv-timeline-item:nth-child(even)::before {
    left: 12px;
    right: auto;
  }
  
  /* Mobile Menu Fix */
  .header-2 .navbar-toggler span {
    background: #fff !important;
  }
  
  .header-2 .navbar-collapse {
    background: #1c1d3e !important;
    padding: 20px;
    border-radius: 10px;
    margin-top: 15px;
  }
  
  .header-2 .navbar-collapse #main-menu > li > a {
    color: #fff !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  
  .header-2 .navbar-collapse #main-menu > li:last-child > a {
    border-bottom: none;
  }
  
  .header-2 .navbar-collapse #main-menu > li > a:hover {
    color: #00c9ff !important;
  }
  
  /* Submenu mobile */
  .header-2 .navbar-collapse #main-menu ul {
    background: rgba(255,255,255,0.05) !important;
    border-radius: 8px;
    margin-top: 5px;
  }
  
  .header-2 .navbar-collapse #main-menu ul li a {
    color: rgba(255,255,255,0.85) !important;
    padding: 10px 20px !important;
  }
  
  .header-2 .navbar-collapse #main-menu ul li a:hover {
    color: #00c9ff !important;
  }
}

@media (max-width: 768px) {
  .cv-hero {
    padding: 120px 0 60px;
  }
  
  .cv-hero-title {
    font-size: 32px;
    margin-top: 20px;
  }
  
  .cv-hero-subtitle {
    margin-top: 30px;
  }
  
  .cv-hero-roles span {
    display: block;
    padding: 5px 0;
    border-right: none;
  }
  
  .cv-counter-item::after {
    display: none;
  }
  
  .cv-counter-number {
    font-size: 36px;
  }
  
  .cv-section-title h2 {
    font-size: 32px;
  }
  
  .cv-cta-title {
    font-size: 32px;
  }
  
  .cv-hero-image {
    margin-top: 40px;
  }
  
  .cv-hero-image img {
    max-width: 280px;
    margin: 0 auto;
    display: block;
  }
}
