/* 
  Renan De Moraes - Portfolio 
  Premium Dark Mode, Glassmorphism, and Storytelling Timeline 
*/

:root {
  --bg-dark: #050505;
  --bg-card: rgba(20, 20, 20, 0.6);
  --text-main: #f0f0f0;
  --text-muted: #a0a0a0;
  
  --accent-cyan: #00d2ff;
  --accent-blue: #3a7bd5;
  --accent-purple: #8a2be2;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --gradient-secondary: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  --nav-height: 80px;
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

.bg-gradient-spot {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  opacity: 0.15;
}

.spot-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-purple);
}

.spot-2 {
  bottom: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--accent-cyan);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: -1px;
}

.logo .dot {
  color: var(--accent-cyan);
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links .nav-cta {
  background: var(--gradient-primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  margin-left: 2rem;
  transition: all 0.3s ease;
}

.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
  color: #fff;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding-top: var(--nav-height);
}

.subtitle {
  font-family: var(--font-primary);
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.hero-section .title {
  font-family: var(--font-heading);
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-section .highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--text-main);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-muted);
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-cyan);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { top: 8px; opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: var(--gradient-primary);
  height: 0;
  transition: height 0.5s ease-out;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3rem;
  width: 100%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 3px solid var(--accent-cyan);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.timeline-content {
  width: 90%;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 2rem;
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 2rem;
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-cyan);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-heading);
}

.timeline-company {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.highlight-box {
  background: rgba(138, 43, 226, 0.1);
  border-left: 3px solid var(--accent-purple);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
}

/* Detailed Experience Section */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.experience-card {
  text-align: left;
  padding: 2.5rem;
}

.experience-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.exp-bullets {
  list-style-type: none;
  padding-left: 0;
}

.exp-bullets li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.exp-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-weight: bold;
}

.exp-bullets li strong {
  color: var(--text-main);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.4);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.glass-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(20,20,20,0.8) 0%, rgba(10,10,10,0.9) 100%);
  border: var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 15px rgba(0, 210, 255, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-inner {
  padding: 2.5rem 2rem;
}

.project-tag {
  display: inline-block;
  background: rgba(255,255,255,0.05);
  color: var(--accent-cyan);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border: 1px solid rgba(0,210,255,0.2);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background: #000;
  padding: 3rem 0;
  border-top: var(--glass-border);
  text-align: center;
}

.footer .logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links a {
  color: var(--text-main);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-cyan);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section .title {
    font-size: 3rem;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-progress {
    left: 30px;
  }
  
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 70px;
    padding-right: 0;
    text-align: left;
  }
  
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .nav-links {
    display: none; /* simple mobile nav hide for now */
  }
  
  .cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-secondary {
    margin-left: 0;
  }
}

/* Print / Presentation Export Styles */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .navbar, .scroll-indicator, .footer, .bg-gradient-spot, .grid-overlay {
    display: none !important;
  }
  .section {
    padding: 2rem 0;
    page-break-inside: avoid;
  }
  .glass-card, .timeline-content {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
    color: #000;
  }
  .timeline-content p, .exp-bullets li, .glass-card p {
    color: #333;
  }
  .section-title {
    -webkit-text-fill-color: #000;
  }
  .project-card {
    background: #fff;
    border: 1px solid #ccc;
  }
  .project-card h3, .project-card p {
    color: #000;
  }
  .hero-section {
    min-height: auto;
  }
  .cta-group {
    display: none;
  }
  .experience-card h3 {
    color: #000;
  }
  .exp-bullets li::before {
    color: #000;
  }
  .highlight-box {
    background: #f9f9f9;
    border-left: 3px solid #ccc;
  }
}
