:root {
    --primary-color: #982FD0;
    --secondary-color: #67D02F;
    --background-color: #0D0D0D;
    --text-color: #F5F5F5;
    --card-bg: #1A1A1A;
    --accent-color: #FF5C00;
    --shadow-color: rgba(0, 0, 0, 0.5);
  }
  
  /* Reset and Base */
  body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
  }
  
  /* Background Shapes */
  .background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
  }
  
  .shape {
    position: absolute;
    opacity: 0.1;
  }
  
  .shape1 {
    top: 10%;
    left: 5%;
    animation: float 20s ease-in-out infinite;
  }
  
  .shape2 {
    bottom: 20%;
    right: 5%;
    animation: float 15s ease-in-out infinite reverse;
  }
  
  .shape3 {
    top: 60%;
    left: 15%;
    animation: float 18s ease-in-out infinite 2s;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-20px) rotate(5deg);
    }
    100% {
      transform: translateY(0) rotate(0deg);
    }
  }
  
  /* Header */
  header {
    padding: 40px 20px;
    text-align: center;
    position: relative;
  }
  
  .profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
  }
  
  .profile-pic-container {
    position: relative;
    margin-bottom: 20px;
  }
  
  .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(152, 47, 208, 0.3);
    z-index: 2;
    border: 4px solid var(--primary-color);
  }
  
  .profile-pic-outline {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 2px dashed var(--secondary-color);
    animation: rotate 20s linear infinite;
  }
  
  @keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .profile-text {
    position: relative;
  }
  
  .profile-text h1 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
  }
  
  .profile-text p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 5px;
  }
  
  /* Navigation */
  nav {
    margin: 40px 0;
  }
  
  nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 25px;
  }
  
  nav ul li {
    margin: 0;
  }
  
  nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 10px 15px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
  }
  
  nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  nav a:hover::after {
    width: 80%;
  }
  
  nav a:hover {
    transform: translateY(-3px);
  }
  
  /* Projects Section */
  #projetos {
    padding: 40px 20px;
    position: relative;
  }
  
  #projetos h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
  }
  
  #projetos h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Updated project grid */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
  }
  
  /* For exactly 4 cards, this works well */
  @media (min-width: 1200px) {
    .project-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
    
    .card {
      flex: 0 0 calc(25% - 30px);
      margin: 15px;
      min-width: 280px;
    }
  }
  
  /* For 3 cards per row on medium-large screens */
  @media (min-width: 992px) and (max-width: 1199px) {
    .project-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* For 2 cards per row on medium screens */
  @media (min-width: 768px) and (max-width: 991px) {
    .project-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    min-height: 280px; /* Instead of fixed height */
    z-index: 1;
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
  }
  
  .card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at bottom right, var(--primary-color) 10%, transparent 70%);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
    transition: all 0.4s ease;
  }
  
  .card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  
  .card:hover::after {
    width: 150px;
    height: 150px;
    opacity: 0.2;
  }
  
  .card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
  }
  
  .card p {
    opacity: 0.7;
    margin-bottom: 20px;
    flex-grow: 1;
  }
  
  /* Modern Button Styles */
  .btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--text-color);
    border: none;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(152, 47, 208, 0.3);
    margin: 5px;
    display: inline-block;
    font-size: 0.9rem;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(152, 47, 208, 0.4);
  }
  
  .btn:hover::before {
    left: 0;
  }
  
  .btn:active {
    transform: translateY(-1px);
  }
  
  /* Add a container for buttons */
  .button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: auto;
  }
  
  /* Animations */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }
  
  .fade-in-delayed {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.3s;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Responsive adjustments */
  @media (max-width: 768px) {
    .profile-text h1 {
      font-size: 2.2rem;
    }
    
    nav ul {
      flex-direction: column;
      gap: 15px;
    }
    
    .project-grid {
      grid-template-columns: 1fr;
    }
    
    .card {
      height: auto;
    }
  }