@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #2a2a2a;
  --accent-color: #00ff99;
  --text-color: #f4f4f4;
}

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  background-color: var(--primary-color);
  color: var(--text-color);
}

header {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 1.5rem 5%;
  position: fixed;
  width: 90%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 40px;
  align-items: center;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 20px;
}

.lang-switcher a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--accent-color);
}

.nav-links li a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 16px;
  position: relative;
  transition: color 0.3s;
  z-index: 1;
}

.nav-links li a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--accent-color);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.3s ease-in-out;
  z-index: -1;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
  transform: scaleY(1);
}

.contact-button {
  color: var(--accent-color);
  text-decoration: none;
  border: 2px solid var(--accent-color);
  padding: 8px 24px;
  border-radius: 5px;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.contact-button:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 20px 5%;
  gap: 50px;
  position: relative;
  z-index: 1;
}
.hero-container2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5% 50px;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-text h1 {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 80%;
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  box-shadow: 0 0 30px rgba(0, 255, 153, 0.4);
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-color);
  color: rgba(255, 255, 255, 0.95);
  padding: 12px 24px;
  text-decoration: none;
  margin-top: 20px;
  margin-right: 15px;
  border-radius: 5px;
  font-weight: bold;
  transition:
    background-color 0.3s,
    color 0.3s;
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  background-color: #00cc88;
  border-color: #00cc88;
}

.cta-button-secondary {
  background-color: transparent;
  color: var(--accent-color);
}

.cta-button-secondary:hover {
  background-color: var(--accent-color);
  color: rgba(255, 255, 255, 0.95);
}

.linknsNoDefault {
  color: inherit;
}

.badge {
  display: inline-block;
  height: 75px;
  width: 200px;
  border-radius: 20px 20px 20px 20px;
  margin: 5px 5px 0 5px;
}
.badge:hover {
  transform: scale(1.1);
  box-shadow: 2px 4px 15px rgb(223, 255, 81);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.centeredTxt {
  text-align: center;
}
.textSizeHuge {
  font-size: 30px !important;
}

.divider {
  width: 100%;
  border: 1px solid #00ff99;
}

section {
  padding: 60px 5%;
  position: relative;
}

section#home {
  background:
    linear-gradient(rgba(26, 26, 26, 0.8), #0dc97e),
    url("https://www.toptal.com/designers/subtlepatterns/uploads/double-bubble-outline.png");
  background-attachment: fixed;
  text-align: center;
  border-bottom-left-radius: 2% 2%;
  border-bottom-right-radius: 2% 2%;
}

section#about {
  background:
    linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
    url("https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

section#projects {
  background:
    linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
    url("https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

section#contact {
  background:
    linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
    url("https://images.pexels.com/photos/160107/pexels-photo-160107.jpeg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--accent-color);
}

.project-gallery {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.project-card {
  background-color: var(--secondary-color);
  border: 1px solid #444;
  border-radius: 10px;
  padding: 25px;
  width: 320px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 255, 153, 0.1);
}

.project-card img {
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}

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

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

input,
textarea {
  width: 80%;
  padding: 12px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: var(--secondary-color);
  color: var(--text-color);
}

button {
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #00cc88;
}

.social-links a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

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

footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  text-align: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--accent-color);
}

#back-to-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

#back-to-top:hover {
  opacity: 0.8;
}

@keyframes scroll-reveal {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
