:root {
  --background-color: #0a0a0a;
  --font-color: white;
  --primary:  #8349FF;
  --secondary: #171717;
  --border: #212121;
  --color1: #8349FF;  /*  primary color */
  --color2: #FF49A1;  /* Pink */
  --color3: #49B6FF;  /* Blue */
  --color4: #49FFB6;  /* Mint */
}

 *{
    margin: 0;
    padding: 0;
  }
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  scroll-behavior: smooth;
  }

@media (max-width: 75em) {
  html {
    font-size: 60%;
  }
}
@media (max-width: 61.25em) {
  html {
    font-size: 58%;
  }
}
@media (max-width: 28.75em) {
  html {
    font-size: 55%;
  }
}

  #navbar {
  display: flex;
  justify-content: center; 
  align-items: center;
  background: hsla(60, 5%, 96%, 0.05);
  padding: 2rem 3rem;
  position: fixed;
  top: 24px;
  left: 50%; 
  transform: translateX(-50%); 
  width: 60%; 
  z-index: 1000;  
  border-radius: 100rem;
  border: 2px solid var(--border);
}
.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%; 
  max-width: 1280px; 
}
  
.logo {
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}

.grouped-links {
  display: flex;
  gap: 4rem; 
}

.nav-link {
  text-decoration: none; 
  color: var(--font-color); 
  font-size: 2rem;
  transition: color 0.3s ease; /
}

.nav-link:hover {
  color: var(--primary);
}

    body {
      margin: 0; 
  font-family: "Epilogue", sans-serif;
  font-size: 1.8rem; 
  font-weight: 400;
  line-height: 1.4;
  background-color: var(--background-color);
  color: var(--font-color);
  justify-items: center;
}

#welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

.welcome-content {
  display: flex;
  align-items: center;
  gap: 10rem;
  max-width: 1280px;
  width: 100%;
}
.text-content {
  flex: 1;
  padding-right: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.text-content h1 {
  font-size: 7.5rem;
  margin-bottom: 0.5rem;
}

.text-content p {
  font-size: 2.5rem;
  font-style: italic;
}

#welcome-section-img {
  width: 650px;
height: 650px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

#projects {
  padding: 60px 0;
  margin: 0;
}

.projects-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.projects-section-header {
  color: var(--font-color);
  text-align: center;
  margin-bottom: 50px;
  font-size: 5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: 6rem;
}

.project-card {
  background-color: var(--secondary);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--border); 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
  transform: scale(1.05);
}

.project-card:hover .project-title {
  color: var(--primary);
}
.project-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.project-title {
  color: var(--font-color);
  padding: 15px;
  text-align: center;
  margin: 0;
  background-color: var(--secondary);
  font-size: 2.5rem;
}



@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .projects-section-header {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .project-image {
    height: 250px;
  }

  .projects-section {
    padding: 0 10px;
  }

  .projects-section-header {
    font-size: 1.8rem;
  }
}

#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10rem 2rem;
  background-color: var(--secondary);
  margin-top: 10rem;
}

.contact-section {
  text-align: center;
  max-width: 800px;
  margin-bottom: 5rem;
}

.contact-section-header {
  font-size: 5rem;
  margin-bottom: 2rem;
}

.contact-section p {
  font-size: 2.5rem;
  font-style: italic;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
}

.contact-details {
  font-size: 3.5rem;
  color: var(--font-color);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-details:hover {
  color: var(--primary);
  transform: translateY(-5px);
}

footer {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--background-color);
  border-top: 2px solid var(--border);
}

footer p {
  font-size: 1.8rem;
  margin: 1rem 0;
}

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

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


@media (max-width: 768px) {
  .contact-section-header {
    font-size: 3.5rem;
  }
  
  .contact-section p {
    font-size: 2rem;
  }
  
  .contact-links {
    gap: 2rem;
  }
  
  .contact-details {
    font-size: 2.8rem;
  }
}

@media (max-width: 480px) {
  .contact-section-header {
    font-size: 2.8rem;
  }
  
  .contact-section p {
    font-size: 1.8rem;
  }
  
  .contact-details {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  #navbar {
    width: 90%;
    padding: 1.5rem 2rem;
  }

  .logo {
    font-size: 3rem;
  }

  .grouped-links {
    gap: 2rem;
  }

  .nav-link {
    font-size: 2rem;
  }

  .welcome-content {
    flex-direction: column;
    gap: 5rem;
    text-align: center;
  }

  .text-content {
    align-items: center;
    padding-right: 0;
  }

  .text-content h1 {
    font-size: 5rem;
  }

  #welcome-section-img {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  #navbar {
    width: 95%;
    padding: 1rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .grouped-links {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 1.8rem;
  }

  .text-content h1 {
    font-size: 4rem;
  }

  .text-content p {
    font-size: 2rem;
  }

  #welcome-section-img {
    width: 300px;
    height: 300px;
  }
}


.highlight {
  background: linear-gradient(
    45deg,
    var(--color1),
    var(--color2),
    var(--color3),
    var(--color4)
  );
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient 8s linear infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated-text {
  font-size: 2.5rem;
  font-style: italic;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}
