/* ===================================
   PORTFOLIO - PROFESSIONAL & INVITING
   Franco Rosatto - Game Developer
   =================================== */

:root {
  /* Unity-inspired Professional Palette */
  --color-primary: #00d4ff;
  --color-secondary: #00a8e8;
  --color-accent: #00ff9f;
  --color-dark: #0d0d0d;
  --color-dark-light: #1a1a1a;
  --color-dark-card: #1e1e1e;
  --color-gray: #a0a0a0;
  --color-gray-light: #c0c0c0;
  --color-light: #f3f4f6;
  --color-white: #ffffff;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --line-height-tight: 1.3;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;
}

/* ===================================
   BASE STYLES
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-white);
  line-height: var(--line-height-normal);
  background: var(--color-dark);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   NAVIGATION
   =================================== */
.navbar {
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  z-index: 9999;
  position: sticky;
  top: 0;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white) !important;
  letter-spacing: -0.3px;
}

.brand-highlight {
  color: var(--color-primary);
}

.nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  margin: 0 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0 !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-white) !important;
}

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

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  min-height: 90vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--color-dark);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=1920&q=80') center/cover no-repeat;
  filter: blur(2px) brightness(0.15);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.92) 0%, rgba(26, 26, 26, 0.88) 100%);
  z-index: 1;
}

.hero-particles {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 212, 255, 0.12);
  color: var(--color-primary);
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
  letter-spacing: -1.2px;
}

.gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #00ff9f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-gray-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-lg);
  max-width: 540px;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: left;
  border-left: 3px solid var(--color-primary);
  padding-left: var(--spacing-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.2rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.hero-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.tech-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-gray-light);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===================================
   SECTIONS
   =================================== */
.section-padding {
  padding: var(--spacing-2xl) 0;
}

.bg-light {
  background-color: var(--color-dark-light) !important;
}

.bg-dark {
  background-color: var(--color-dark) !important;
  position: relative;
  overflow: hidden;
}

.bg-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('https://images.unsplash.com/photo-1511512578047-dfb367046420?w=1920&q=80') center/cover no-repeat;
  filter: blur(3px) brightness(0.12);
  z-index: 0;
}

.bg-dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.95) 0%, rgba(26, 26, 26, 0.92) 100%);
  z-index: 1;
}

.bg-dark .container {
  position: relative;
  z-index: 2;
}

.section-header {
  margin-bottom: var(--spacing-2xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.8px;
  line-height: var(--line-height-tight);
}

.section-title i {
  color: var(--color-primary);
  margin-right: 0.5rem;
  font-size: 1.8rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-gray);
  line-height: var(--line-height-relaxed);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   CARDS - UNIFIED STYLE
   =================================== */
.card {
  background: var(--color-dark-card);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.card-accent {
  border-left: 3px solid var(--color-primary);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  line-height: var(--line-height-tight);
}

.card-subtitle {
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-text {
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--line-height-relaxed);
  font-size: 0.95rem;
}

/* ===================================
   LISTS
   =================================== */
ul.clean-list {
  list-style: none;
  padding-left: 0;
}

ul.clean-list li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--line-height-relaxed);
  font-size: 0.95rem;
}

ul.clean-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

ul.clean-list li strong {
  color: var(--color-white);
  font-weight: 600;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-card {
  background: var(--color-dark-card);
  padding: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.about-content .lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.about-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
  font-size: 0.98rem;
}

/* ===================================
   TIMELINE - COMPACT
   =================================== */
.timeline {
  position: relative;
  padding: var(--spacing-lg) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, rgba(0, 212, 255, 0.3) 100%);
}

.timeline-item {
  position: relative;
  padding-left: 90px;
  margin-bottom: var(--spacing-xl);
}

.timeline-marker {
  position: absolute;
  left: 34px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.timeline-content {
  background: var(--color-dark-card);
  padding: var(--spacing-lg);
  border-left: 3px solid var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-primary);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.timeline-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.3rem;
  line-height: var(--line-height-tight);
}

.timeline-header h4 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.timeline-date {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  margin-right: var(--spacing-sm);
  font-weight: 500;
  border: 1px solid rgba(0, 212, 255, 0.25);
}

.timeline-location {
  color: var(--color-gray);
  font-size: 0.85rem;
}

.role-description {
  font-size: 1rem;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.75);
  margin: var(--spacing-md) 0;
}

/* ===================================
   EXPERTISE SECTION
   =================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.expertise-card {
  background: var(--color-dark-card);
  padding: var(--spacing-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--color-primary);
  transition: all 0.3s ease;
}

.expertise-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  border-left-color: var(--color-primary);
}

.expertise-icon {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary);
  display: block;
}

.expertise-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--spacing-xs);
  line-height: var(--line-height-tight);
}

.expertise-card p {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   HIGHLIGHT BOX
   =================================== */
.highlight-box {
  background: rgba(0, 212, 255, 0.04);
  border-left: 4px solid var(--color-primary);
  padding: var(--spacing-xl);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-left: 4px solid var(--color-primary);
}

.highlight-box h4 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  font-weight: 700;
}

.highlight-box h4 i {
  color: var(--color-accent);
  margin-right: 0.5rem;
}

/* ===================================
   PROJECT CARDS
   =================================== */
.project-card {
  background: var(--color-dark-card);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
}

.project-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--color-dark-light);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.9;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
  opacity: 1;
}

.project-content {
  padding: var(--spacing-md);
}

.project-content h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: var(--line-height-normal);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-card {
  background: var(--color-dark-card);
  padding: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #00d4ff 0%, #00a8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info h5 {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--color-accent);
}

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  background: var(--color-dark);
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright-text {
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 991px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-padding {
    padding: var(--spacing-xl) 0;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    padding-left: 50px;
  }
  
  .timeline-marker {
    left: 14px;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .nav-link {
    margin: 0 0.8rem;
  }
}

/* ===================================
   UTILITIES
   =================================== */
.text-primary {
  color: var(--color-primary) !important;
}

.text-white {
  color: var(--color-white) !important;
}

.mb-2 { margin-bottom: var(--spacing-sm) !important; }
.mb-3 { margin-bottom: var(--spacing-md) !important; }
.mb-4 { margin-bottom: var(--spacing-lg) !important; }
.mb-5 { margin-bottom: var(--spacing-xl) !important; }

.mt-2 { margin-top: var(--spacing-sm) !important; }
.mt-3 { margin-top: var(--spacing-md) !important; }
.mt-4 { margin-top: var(--spacing-lg) !important; }
.mt-5 { margin-top: var(--spacing-xl) !important; }

/* ===================================
   SECTION BACKGROUNDS WITH IMAGES
   =================================== */

/* EXPERIENCE SECTION - Stumble Guys Style */
#experience {
  position: relative;
  background-color: var(--color-dark);
  overflow: hidden;
}

#experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/stumble_guys_bg_1771006489652.png') center/cover no-repeat;
  filter: blur(8px) brightness(0.25); /* Darker and blurrier */
  z-index: 0;
  transition: all 0.5s ease;
}

#experience .container {
  position: relative;
  z-index: 2;
}

/* GAMEDEV SECTION - Unity/Dev Environment Style */
#gamedev {
  position: relative;
}

/* Darker image */
#gamedev::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/game_dev_bg_1771003001078.png') center/cover no-repeat !important;
  filter: blur(8px) brightness(0.2) !important; /* Darker and blurrier */
  z-index: 0;
}

/* Revert overlay to fully dark/transparent gradient if needed, but the brightness filter does most work */
#gamedev::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(13, 13, 13, 0.9) 0%, rgba(26, 26, 26, 0.85) 100%) !important;
  z-index: 1;
}

#gamedev .container {
  position: relative;
  z-index: 2;
}

/* ARCHITECTURE SECTION - Blue/Tech Style */
#architecture {
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark-light);
  color: var(--color-white) !important; /* Force white text */
}

/* Ensure all headings and text are readable */
#architecture h2,
#architecture h3,
#architecture h4,
#architecture h5,
#architecture p,
#architecture li,
#architecture span {
  color: var(--color-white);
}

#architecture .section-subtitle {
  color: rgba(255, 255, 255, 0.8) !important;
}

#architecture ul.clean-list li {
  color: rgba(255, 255, 255, 0.85);
}

#architecture ul.clean-list li strong {
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Better readability */
}

#architecture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/game_dev_bg_1771003001078.png') center/cover no-repeat;
  filter: blur(6px) brightness(0.25); /* Darker background */
  z-index: 0;
}

#architecture .container {
  position: relative;
  z-index: 2;
}

/* PROJECTS SECTION - Mixed Game Style */
#projects {
  position: relative;
  overflow: hidden;
  background-color: var(--color-light); /* Fallback */
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/game_hero_bg_1771002925140.png') center/cover no-repeat;
  filter: blur(8px) brightness(0.2);
  z-index: 0;
}

#projects .container {
  position: relative;
  z-index: 2;
}
