html {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-image: url('/assets/images/saracosta-foto8.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
}

main {
  background: transparent; /* Ensure main has no background */
  padding: 0; /* Remove any padding on main */
  margin: 0; /* Remove any margin on main */
}

section {
  margin: 0;
  padding: 0;
  background: transparent;
}

section[id] {
    scroll-margin-top: 80px;
}

.toggle-link a {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #d2691e; /* Orange/brown color like the image */
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%; /* Makes it circular */
  cursor: pointer;
  border: none;
  font-family: 'Open Sans', sans-serif;
}

.toggle-link a:hover {
  background-color: #b8621a; /* Slightly darker on hover */
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 20px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.85); /* Reduced from 0.9 to 0.85 */
    backdrop-filter: blur(5px); /* Add slight blur to nav */
}

.nav-left {
    flex: 0 0 auto;
}

.nav-center {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-right {
    flex: 0 0 auto;
}

.nav-logo img {
    height: 40px;
    width: auto;
    display: block;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d2691e;
}

/* Make sure nav doesn't interfere with logo link */
.nav-logo {
    text-decoration: none !important;
}

.nav-logo:hover {
  opacity: 0.8;
}

* Language selector styling */
.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-label {
  font-size: 1.2em;
}

#language-select {
  background-color: transparent;
  border: 2px solid #d2691e;
  border-radius: 20px;
  padding: 5px 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #d2691e;
  cursor: pointer;
  outline: none;
}

#language-select:hover {
  background-color: #d2691e;
  color: white;
}

.banner {
  width: 100vw; /* Full viewport width */
  height: 250px;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background-color: #d2691e; /* Orange background */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white; /* White text */
  padding: 50px 20px; /* Large top & bottom padding */
  box-sizing: border-box;
}

.banner-content {
  max-width: 800px;
  width: 100%;
  z-index: 1;
}

.banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 30px 0;
  line-height: 1.2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */
}

.banner-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0 0 30px 0;
  line-height: 1.3;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-description {
  font-size: 1rem;
  font-weight: 300;
  margin: 0;
  line-height: 1.4;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.banner a, .banner button {
  color: white;
  border: 2px solid white;
  background: transparent;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.banner a:hover, .banner button:hover {
  background: white;
  color: #d2691e;
}

/* Language trigger styling */
.lang-trigger {
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
  position: relative;
}

.lang-trigger:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.lang-trigger:active {
  transform: scale(0.98);
}

/* Optional: Underline effect on hover */
.lang-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.lang-trigger:hover::after {
  width: 100%;
}

/* Current language styling */
.lang-trigger.current-lang {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.lang-trigger.current-lang::after {
  width: 100%;
}

/* 404 Error page styles */
.error-banner {
  height: 100vh; /* Full viewport height for 404 */
  min-height: 600px;
}

.error-title {
  font-size: 8rem !important;
  font-weight: 900;
  margin: 0 0 20px 0;
  letter-spacing: 0.1em;
}

.error-zero {
  color: rgba(255, 255, 255, 0.3);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.error-actions {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-button {
  display: inline-block;
  padding: 15px 30px;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid white;
  font-size: 1.1rem;
}

.error-button.primary {
  background-color: white;
  color: #d2691e;
}

.error-button.primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.error-button.secondary {
  background-color: transparent;
  color: white;
}

.error-button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 404 Mobile responsiveness */
@media (max-width: 768px) {
  .error-title {
    font-size: 5rem !important;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-button {
    width: 200px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .error-title {
    font-size: 4rem !important;
  }
  
  .error-banner {
    padding: 100px 15px;
  }
  
  .error-banner .banner-subtitle {
    font-size: 1.8rem !important;
  }
  
  .error-banner .banner-description {
    font-size: 1.1rem !important;
  }
}

/* Section styling */
.section-container {
  max-width: 1200px;
  margin: 0 auto; /* Remove top/bottom margins */
  padding: 60px 20px;
  background: transparent;
  border-radius: 10px;
  backdrop-filter: none;
  /* Remove margin-bottom - spacing will come from transparent areas */
}

.section-container + .section-container {
  margin-top: 40px; /* This creates transparent gaps between sections */
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 60px;
}

/* Card grid layout */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px; /* These gaps will now be transparent */
  margin-bottom: 0; /* Remove bottom margin */
}

/* Card styling */
.card {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(221, 221, 221, 0.7);
  border-radius: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  align-self: start;
  margin: 0; /* Ensure no margins on cards */
}

.card:hover {
  border-color: #d2691e;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent */
  border-bottom: 1px solid rgba(238, 238, 238, 0.8);
  cursor: pointer;
  user-select: none;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #333;
  margin: 0;
}

.card-toggle-icon {
  width: 28px;
  height: 28px;
  background-color: #d2691e;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-toggle-icon:hover {
  background-color: #b8621a;
  transform: scale(1.1);
}

.card-content {
  padding: 0 25px;
  height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(250, 250, 250, 0.85); /* More transparent */
  opacity: 0;
  visibility: hidden;
}

.card-content.expanded {
  height: auto;
  min-height: 50px; /* Minimum height to ensure smooth transition */
  padding: 25px;
  opacity: 1;
  visibility: visible;
}


.card-content-inner {
  padding: 10px 0;
}

.card.expanded .card-toggle-icon {
  transform: rotate(45deg);
  background-color: #b8621a;
}

/* Full-width cards */
.card.full-width {
  grid-column: 1 / -1;
}

/* Content styling within cards */
.card-content h4 {
  color: #d2691e;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.card-content ul {
  margin: 0;
  padding-left: 20px;
}

.card-content li {
  margin-bottom: 8px;
}

.card-content p {
  margin-bottom: 15px;
  color: #666;
}

.institution {
  font-weight: 600;
  color: #d2691e;
}

.year {
  font-style: italic;
  color: #888;
}

.degree {
  font-weight: 500;
  color: #333;
}

/* Mobile responsiveness for cards */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }
  
  .section-container {
    padding: 30px 15px;
    margin: 20px 10px;
  }
  
  .card-header {
    padding: 15px 20px;
  }
  
  .card-title {
    font-size: 1rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav-center {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-right {
    order: 2;
  }

  .banner {
    height: 200px;
    padding: 30px 20px;
  }
  
  .banner-title {
    font-size: 1.5rem;
  }
  
  .banner-subtitle {
    font-size: 1.2rem;
  }
  
  .banner-description {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .banner {
    height: 150px;
    padding: 15px 15px;
  }
  
  .banner-title {
    font-size: 2rem;
  }
  
  .banner-subtitle {
    font-size: 1.5rem;
  }
  
  .banner-description {
    font-size: 1rem;
  }
}

/* Image rows styling */
.image-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px; /* Equal spacing between images */
  margin-bottom: 40px; /* Space between rows */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Individual image links */
.image-link {
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9); /* Slight background for consistency */
  padding: 10px; /* Small padding around images */
}

.image-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Images within the links */
.image-link img {
  height: 200px; /* Fixed height as requested */
  width: auto; /* Auto width to maintain aspect ratio */
  max-width: 600px; /* Prevent images from being too wide */
  object-fit: cover; /* Ensure images cover their container nicely */
  display: block;
  border-radius: 4px;
}

/* Alternative: If you want all images to be squares */
.image-link.square img {
  width: 200px;
  height: 200px;
  object-fit: cover;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
  .image-row {
    gap: 20px; /* Smaller gaps on mobile */
    margin-bottom: 30px;
  }
  
  .image-link img {
    height: 150px; /* Smaller images on mobile */
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .image-row {
    flex-direction: column; /* Stack images vertically on very small screens */
    gap: 15px;
  }
  
  .image-link img {
    height: 120px;
  }
}

/* Add this CSS to your styles.css */

/* Contact section layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Equal columns */
  gap: 60px; /* Space between form and info */
  align-items: start;
}

/* Contact subtitles */
.contact-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: #d2691e;
  margin-bottom: 30px;
  text-align: center;
}

/* Form container */
.contact-form-container {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: rgba(255, 255, 255, 0.95);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #d2691e;
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Submit button */
.submit-btn {
  background-color: #d2691e;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: center;
}

.submit-btn:hover {
  background-color: #b8621a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Contact info container */
.contact-info-container {
  background: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(221, 221, 221, 0.5);
  font-size: 1rem;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item strong {
  color: #d2691e;
  font-weight: 600;
  display: inline-block;
  min-width: 120px;
}

/* Responsive design */
@media (max-width: 968px) {
  .contact-layout {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 40px;
  }
  
  .contact-form-container,
  .contact-info-container {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-layout {
    gap: 30px;
  }
  
  .contact-form-container,
  .contact-info-container {
    padding: 25px;
  }
  
  .contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
  }
  
  .submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-form-container,
  .contact-info-container {
    padding: 20px;
  }
  
  .contact-item strong {
    min-width: 100px;
  }
}
