:root {
  --primary: #6c5ce7;
  --secondary: #00cec9;
  --background: #1e272e;
  --text-primary: #f5f6fa;
  --text-secondary: #dcdde1;
  --accent: #00b894;
}

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

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary);
}

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

/* Header */
header {
  background-color: rgba(30, 39, 46, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-primary);
}

.nav-menu a:hover {
  color: var(--secondary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /*background: linear-gradient(to bottom, #1a1a2e, var(--background));*/
  padding-top: 80px;
}

.hero-content {
  text-align: center;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #2d3436;
  display: flex;
  align-items: center;
  justify-content: center;  
  font-size: 3rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease;
}

.hero h2 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.hero h3 {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  background-color: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #5649c0;
}

.btn-secondary {
  background-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: #00b5b1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

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

/* Section Styling */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background-color: #2d3436;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card Styling */
.card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.card h3 {
  color: var(--secondary);
}

/* Subjects Section */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.subject-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.subject-card > div {
  margin-top: auto;
  padding-top: 1.5rem;
}

.subject-tag {
  display: inline-block;
  background-color: rgba(108, 92, 231, 0.2);
  color: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-top: 1rem;
}

/* Contact Section */
.contact-form {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  background-color: #2d3436;
  border: 1px solid #4b5563;
  border-radius: 4px;
  color: var(--text-primary);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  text-align: center;
}

.contact-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #1a1a2e;
  padding: 3rem 0 1.5rem;
  color: #f5f5f5;
  border-top: 1px solid rgba(255, 255, 255, 0.1 );
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-info, .footer-social-container {
  flex: 1;
  min-width: 250px;
}

.footer-info h3, .footer-social-container h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-info h3::after, .footer-social-container h3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item i {
  color: var(--secondary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #f5f5f5;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom p {
  margin: 0.25rem 0;
}

/* Editable Content */
.editable-content {
  border: 1px dashed transparent;
  padding: 0.5rem;
  transition: border-color 0.3s ease;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.editable-content:hover {
  border-color: var(--secondary);
}

.editable-hint {
  color: #636e72;
  font-size: 0.875rem;
}


.biografia {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  animation: fadeIn 1s ease;
}


/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 1s ease;
}

/* Utility Classes */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.text-3xl {
  font-size: 1.875rem;
}

.text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(30, 39, 46, 0.95);
    flex-direction: column;
    padding: 1rem 0;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu li {
    margin: 0.5rem 0;
    text-align: center;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  section h2 {
    font-size: 2rem;
  }
  
  .btn-container {
    flex-direction: column;
  }

   .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }
  
  .footer-info, .footer-social-container {
    text-align: center;
  }
  
  .footer-info h3::after, .footer-social-container h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  footer {
    padding: 2rem 0 1rem;
  }
  
  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}
