/* Modern Portfolio Styles for Nicholas Lemos */

:root {
  /* Color Palette */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --background-primary: #ffffff;
  --background-secondary: #f9fafb;
  --background-dark: #111827;
  --border-color: #e5e7eb;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Header Styles */
#header {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-normal);
}

#header .profile {
  padding: var(--spacing-xl) var(--spacing-lg);
  text-align: center;
}

#header .profile img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  object-fit: cover;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

#header .profile img:hover {
  transform: scale(1.05);
  border-color: var(--secondary-color);
}

#header .profile h1 {
  font-family: var(--font-secondary);
  font-size: 1.75rem;
  font-weight: 700;
  margin: var(--spacing-md) 0 var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#header .profile .social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

#header .profile .social-links a {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.1);
  border: 2px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: var(--transition-normal);
  text-decoration: none;
}

#header .profile .social-links a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modern Navigation */
.nav-menu {
  padding: var(--spacing-lg) 0;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
  margin: 0 var(--spacing-sm) var(--spacing-xs);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: var(--transition-slow);
}

.nav-menu a:hover::before {
  left: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: white;
  background: rgba(37, 99, 235, 0.2);
  transform: translateX(8px);
}

.nav-menu a i {
  font-size: 1.25rem;
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.nav-menu a:hover i,
.nav-menu a.active i {
  color: var(--secondary-color);
  transform: scale(1.1);
}

/* Modern Hero Section */
#hero {
  background: linear-gradient(135deg, 
    rgba(17, 24, 39, 0.8) 0%, 
    rgba(37, 99, 235, 0.6) 50%, 
    rgba(245, 158, 11, 0.4) 100%),
    url("../img/hero-bg.jpg") center/cover;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 70%, rgba(37, 99, 235, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--spacing-2xl);
}

#hero h1 {
  font-family: var(--font-secondary);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

#hero p {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 1s ease-out 0.2s both;
}

#hero .typed {
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Modern Sections */
section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-bg {
  background: var(--background-secondary);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-title p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Modern Cards */
.modern-card {
  background: var(--background-primary);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.modern-card:hover::before {
  transform: scaleX(1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utility Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Responsive Design */
@media (max-width: 1199px) {
  #header {
    left: -300px;
  }
  
  #main {
    margin-left: 0;
  }
  
  .mobile-nav-active #header {
    left: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }
  
  #hero .hero-container {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .modern-card {
    padding: var(--spacing-lg);
  }
}

