/* PROFESSIONAL RESET & BASE */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html { 
  font-size: 16px; 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: #ecf0f1;
  min-height: 100vh;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  
  /* CSS Custom Properties for Markdown */
  --text-primary: #ecf0f1;
  --text-heading: #ffffff;
  --text-emphasis: #f8f9fa;
  --text-secondary: #bdc3c7;
  --accent-color: #3498db;
  --code-bg: rgba(255, 255, 255, 0.1);
  --code-text: #e74c3c;
  --code-block-bg: #2c3e50;
  --code-block-text: #ecf0f1;
}

/* Background gradiente */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 50%, #34495e 100%);
  z-index: -2;
}

#app { 
  min-height: 100vh; 
  display: flex; 
  flex-direction: column; 
}

/* PROFESSIONAL DESIGN SYSTEM - DARK THEME */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #5dade2;
  --earth-color: #d4ac84;
  --success-color: #58d68d;
  --surface: #34495e;
  --surface-alt: rgba(52, 73, 94, 1);
  --border-color: #566573;
  --text-primary: #ecf0f1;
  --text-secondary: #bdc3c7;
  --text-muted: #85929e;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  --border-radius: 16px;
  --transition: all 0.3s ease;
  --logo-colorgradient-full: linear-gradient(to right, rgba(177, 164, 130, 0.8) 0%, rgba(151, 185, 158, 0.8) 50%, rgba(89, 152, 166, 0.8) 100%);
  --logo-colorgradient-transparent: linear-gradient(to right, rgba(177, 164, 130, 0.5) 0%, rgba(151, 185, 158, 0.5) 50%, rgba(89, 152, 166, 0.5) 100%);
  --logo-color-earth: rgba(177, 164, 130, 1);
  --logo-color-grass: rgba(151, 185, 158, 1);
  --logo-color-water: rgba(89, 152, 166, 1);
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--surface) 100%);
  border-top: 2px solid var(--primary-color);
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 300px;
}

.cookie-text p {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-link {
  color: var(--accent-color);
  text-decoration: underline;
  transition: var(--transition);
}

.cookie-link:hover {
  color: var(--primary-color);
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.cookie-buttons .btn-primary {
  background: var(--primary-color);
  color: white;
}

.cookie-buttons .btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.cookie-buttons .btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-buttons .btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-primary);
}

/* PROFESSIONAL HEADER & NAVIGATION - DARK THEME */
.sticky-header {
  position: sticky; 
  top: 0; 
  z-index: 100;
  background: var(--surface-alt);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.navbar {
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 1rem 2rem;
}

.logo {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; 
  font-size: 1.5rem; 
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; 
  font-size: 1.5rem; 
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  display: none;
  align-items: center;
  gap: 0.75rem;
}

.logo-text {
  font-family: 'Rubik', sans-serif;
  font-weight: 700; 
  font-size: 1.5rem; 
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
  display: none;
  align-items: center;
}

.logo:hover, .logo-icon:hover, .logo-text:hover {
  color: var(--accent-color);
}

.logo span, .logo-text span { 
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1rem;
  line-height: 1;
  text-align: center;
}

.logo .span-subtitle, .logo-text .span-subtitle {
  background: linear-gradient(to right, rgba(177, 164, 130, 1) 0%, rgba(151, 185, 158, 1) 50%, rgba(89, 152, 166, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18rem;
  text-transform: uppercase;
}

.logo-img {
  height: 2.5rem;
  width: auto;
  transition: var(--transition);
}

.logo:hover .logo-img, .logo-icon:hover .logo-img {
  transform: scale(1.05);
}

.nav-toggle {
  display: none; 
  background: none; 
  border: none; 
  font-size: 1.5rem; 
  color: var(--text-primary); 
  cursor: pointer;
}

.nav-links {
  list-style: none; 
  display: flex; 
  gap: 2rem;
}

.nav-links a {
  color: var(--text-primary); 
  text-decoration: none; 
  font-weight: 500; 
  padding: 0.5rem 1rem; 
  border-radius: var(--border-radius); 
  transition: var(--transition);
}

.nav-links a:hover {
  background: linear-gradient(to right, rgba(177, 164, 130, 1) 0%, rgba(151, 185, 158, 1) 50%, rgba(89, 152, 166, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links a.active {
  background: linear-gradient(to right, rgba(177, 164, 130, 1) 0%, rgba(151, 185, 158, 1) 50%, rgba(89, 152, 166, 1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, rgba(177, 164, 130, 1) 0%, rgba(151, 185, 158, 1) 50%, rgba(89, 152, 166, 1) 100%);
  border-radius: 1px;
}

/* ===== RESPONSIVE DESIGN - HEADER & NAVIGATION ===== */

/* Desktop Small (1024px and down) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .logo {
    font-size: 1.4rem;
  }
  
  .logo span {
    font-size: 0.95rem;
  }
  
  .logo .span-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.15rem;
  }
  
  .logo-img {
    height: 2.2rem;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
  
  .nav-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
}

/* Mobile Large / Tablet (768px and down) */
@media (max-width: 768px) {
  .navbar { 
    flex-wrap: wrap; 
    padding: 1rem 1rem;
    position: relative;
  }
  
  .logo {
    display: none;
  }
  
  .logo-icon {
    display: flex;
    font-size: 1.3rem;
  }
  
  .logo-text {
    display: flex;
    font-size: 1.3rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .logo span, .logo-text span {
    font-size: 0.9rem;
  }
  
  .logo .span-subtitle, .logo-text .span-subtitle {
    font-size: 0.5rem;
    letter-spacing: 0.12rem;
  }
  
  .logo-img {
    height: 2rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    right: 1rem;
    left: 1rem;
    background: var(--surface);
    flex-direction: column;
    box-shadow: var(--shadow-hover);
    border-radius: var(--border-radius);
    z-index: 200;
    gap: 0;
    border: 1px solid var(--border-color);
  }
  
  .nav-links.open { 
    display: flex; 
  }
  
  .nav-links li {
    width: 100%;
    display: block;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links li:last-child a {
    border-bottom: none;
  }
  
  .nav-links a:hover {
    background: var(--accent-color);
    color: white;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
  }
  
  .nav-links a.active {
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
  }
  
  .nav-toggle { 
    display: block;
    font-size: 1.4rem;
  }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 0.8rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }
  
  .logo-icon {
    font-size: 1.2rem;
  }
  
  .logo-text {
    font-size: 1.2rem;
  }
  
  .logo span, .logo-text span {
    font-size: 0.85rem;
    letter-spacing: 0.08rem;
  }
  
  .logo .span-subtitle, .logo-text .span-subtitle {
    font-size: 0.45rem;
    letter-spacing: 0.1rem;
  }
  
  .logo-img {
    height: 1.8rem;
  }
  
  .nav-links {
    top: 65px;
    right: 0.8rem;
    left: 0.8rem;
  }
  
  .nav-links a {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
  }
  
  .nav-toggle {
    font-size: 1.2rem;
  }
}

/* PROFESSIONAL HERO/ABOUT SECTION - FULL WIDTH */
.about-section {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  padding: 1.5rem 1.5rem; 
  text-align: center; 
  min-height: 70vh;
  width: 100%;
}

.profile-pic-wrap {
  width: 150px; 
  height: 150px; 
  border-radius: 50%; 
  overflow: hidden; 
  box-shadow: var(--shadow);
  border: 3px solid var(--accent-color);
  transition: var(--transition);
}

.profile-pic-wrap:hover {
  transform: scale(1.05);
}

.profile-pic {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  display: block;
}

.about-content h1 {
  font-family: 'Rubik', sans-serif;
  font-size: 2.45rem; 
  margin: 0.5rem 0 0.5rem 0; 
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.about-content h2 {
  font-size: 1.5rem; 
  color: var(--earth-color);
  margin: 0 0 2rem 0; 
  font-weight: 500;
}

.about-content p {
  font-size: 1.2rem; 
  margin-bottom: 2.5rem; 
  color: var(--text-secondary);
  max-width: 800px;
  line-height: 1.7;
}

.highlight { 
  color: var(--accent-color);
  font-weight: 600;
}

/* PROFESSIONAL BUTTONS */
.btn {
  display: inline-block; 
  padding: 0.5rem 1rem; 
  border: 2px solid transparent;
  border-radius: var(--border-radius); 
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--logo-colorgradient-full) border-box;
  color: white; 
  font-weight: 600; 
  font-size: 1rem; 
  cursor: pointer; 
  box-shadow: var(--shadow);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--logo-colorgradient-full);
  box-shadow: var(--shadow-hover);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn.primary { 
  background: var(--logo-colorgradient-full);
}


/* MODERN MODAL */
.modal {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  bottom: 0; 
  background: rgba(0, 0, 0, 0.5); 
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 999; 
  transition: var(--transition);
}

.modal.hidden { 
  display: none; 
}

.modal-content {
  background: var(--surface); 
  border-radius: var(--border-radius); 
  max-width: 500px; 
  width: 95vw; 
  padding: 3rem 2rem 2rem 2rem; 
  box-shadow: var(--shadow-hover); 
  position: relative; 
  animation: modalIn 0.4s cubic-bezier(.4,1.6,.6,1) both;
  border: 1px solid var(--border-color);
}

@keyframes modalIn { 
  from { 
    transform: translateY(40px) scale(0.9); 
    opacity: 0; 
  } 
  to { 
    transform: none; 
    opacity: 1; 
  } 
}

.close-modal {
  position: absolute; 
  top: 1rem; 
  right: 1.5rem; 
  background: none; 
  border: none; 
  font-size: 2rem; 
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* PROFESSIONAL FOOTER */
footer {
  background: var(--surface); 
  color: var(--text-secondary); 
  padding: 0.5rem 0; 
  margin-top: auto; 
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.footer-content {
  max-width: 1200px; 
  margin: 0 auto; 
  display: flex; 
  justify-content: space-between;
  align-items: center; 
  padding: 0 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-content span {
  font-size: 0.8rem;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--accent-color);
}

.social-links { 
  display: flex; 
  gap: 1rem; 
}

.social-links img { 
  width: 24px; 
  height: 24px; 
  opacity: 0.7;
  transition: var(--transition);
}

.social-links a:hover img { 
  opacity: 1; 
  transform: scale(1.1);
}

/* ===== RESPONSIVE DESIGN - COOKIE BANNER & FOOTER ===== */

/* Desktop Small (1024px and down) */
@media (max-width: 1024px) {
  .footer-content {
    padding: 0 1.5rem;
  }
  
  .footer-content span,
  .footer-link {
    font-size: 0.75rem;
  }
  
  .social-links img {
    width: 22px;
    height: 22px;
  }
}

/* Mobile Large / Tablet (768px and down) */
@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .cookie-buttons button {
    flex: 1;
    min-width: 120px;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 0 1rem;
  }
  
  .footer-left {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .social-links {
    gap: 1.5rem;
  }
  
  .social-links img {
    width: 26px;
    height: 26px;
  }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
  .cookie-banner {
    padding: 0.8rem;
  }
  
  .cookie-content {
    gap: 0.8rem;
  }
  
  .cookie-text p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  
  .cookie-buttons {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .cookie-buttons button {
    width: 100%;
    min-width: auto;
    font-size: 0.8rem;
    padding: 0.7rem 1rem;
  }
  
  .footer-content {
    padding: 0 0.8rem;
    gap: 0.8rem;
  }
  
  .footer-content span,
  .footer-link {
    font-size: 0.7rem;
  }
  
  .footer-left {
    gap: 0.3rem;
  }
  
  .social-links {
    gap: 1.2rem;
  }
  
  .social-links img {
    width: 24px;
    height: 24px;
  }
}
