:root {
  --bg-color: #1e1f26;
  --primary-color: #ff0202;
  --secondary-color: #f03;
  --text-color: #ffffff;
  --card-bg: #ffffff;
  --card-text: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
  font-family: 'Libre Baskerville', serif;
  color: var(--text-color);
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body::-webkit-scrollbar {
  display: none;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  background-size: cover;
  z-index: -1;
}

h1, h2, p {
  line-height: 1.3;
  animation: fadeInUp 0.5s ease forwards;
}

h1 {
  font-size: clamp(24px, 5vw, 60px);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.highlight{
  white-space: nowrap;
}

h2 {
  font-size: clamp(20px, 4vw, 50px);
  
}

p {
  font-size: clamp(16px, 2.5vw, 30px);
  margin-bottom: 2rem;
}

.highlight {
  font-family: 'Handlee', cursive;
  font-weight: 900;
  color: var(--primary-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding-right: 24px;
  padding-left: 0px;
}

.logo {
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 60px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 120%;
  transition: 0.7s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  font-size: 150%;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  background-color: var(--primary-color);
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 40px;
  position: relative;
  scroll-snap-align: start;
  height: 100vh;
}

.section-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding-top: 30px;
  text-align: center;
}

#home .wave {
  display: inline-block;
  animation: wave 2.5s infinite;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.downloadCv {
  display: block;
  width: 200px;
  height: 60px;
  background-image: linear-gradient(135deg, #f03, rgb(44, 12, 2) 2%, #f03);
  color: var(--text-color);
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  position: relative;
  margin: 2rem auto 0;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.downloadCv::after, .downloadCv::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-image: conic-gradient(from var(--angle),transparent 25%, #08f, #f03 99%, transparent);
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  z-index: -1;
  padding: 3px;
  border-radius: 20px;
  animation: 3s spin linear infinite;
}

@keyframes spin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

.downloadCv::before {
  filter: blur(1.5rem);
  opacity: 0.5;
}

.downloadCv:hover {
  background-image: linear-gradient(135deg, #640000, #f00);
  box-shadow: 0px 0px 15px rgba(255, 0, 0, 0.7);
  border: 2px solid rgba(255, 0, 0, 0.8);
}

.downloadCv:active {
  box-shadow: 0px 2px 10px rgba(255, 48, 48, 0.5);
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-top: 2rem;
}

.about-text {
  flex: 1;
  text-align: left;
}

.profile-img {
  width: 300px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  animation: glowing 3s infinite alternate;
}

@keyframes glowing {
  0% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
  50% { box-shadow: 0 0 25px rgba(255, 0, 0, 0.9); }
  100% { box-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }
}

#portfolio h1 {
  margin-bottom: 2rem;
  text-align: center;
  font-family: "Big Shoulders", sans-serif;
  font-weight: 900;
}

.mySwiper {
  width: 100%;
  padding: 20px 0;
}

.swiper-slide {
  display: flex;
  justify-content: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
  font-weight: bold;
  opacity: 0.8;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  opacity: 1;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  max-width: 350px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.card h3 {
  margin: 15px 0 10px;
  font-size: 1.4rem;
  color: var(--card-text);
}

.card p {
  font-size: 1rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 10px;
}

.links {
  font-size: 1rem;
}

.links a {
  text-decoration: none;
  font-weight: bold;
}

.code {
  color: blue;
}

.demo {
  color: blue;
}

.social-icons {
  position: fixed;
  bottom: 30px;
  left: 0;
  right: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
  z-index: 2;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background-color: rgba(255, 0, 51, 0.1);
  color: var(--secondary-color);
  font-size: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255, 0, 51, 0.4);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#portfolio h1 {
  font-size: clamp(20px, 8vw, 40px);
  margin-bottom: 1.5rem;
}

#contact {
  background-color: #191b2494;
  color: white;
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

#contact h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
}

#contact p {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #ccc;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e91e63; 
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-form button {
  width: 100%;
  padding: 12px 0;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  background-color: #ff2d75;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.4);
}

.mail {
  display: inline-block;
  animation: wave 2.5s infinite;
}

::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .section {
    padding: 0 15px;
  }
  
  #about .about-container, #portfolio .section-content {
    flex-direction: column;
    text-align: center;
    gap: 0;
    margin: 0;
    padding-top: 0;
  }
  
  #home .section-content {
    padding-top: 100px;
    margin-bottom: 200px;
  }

  h1 {
    font-size: clamp(20px, 7vw, 32px);
  }
  
  h2 {
    font-size: clamp(18px, 6vw, 28px);
  }
  
  .hamburger {
    display: block;
  }
  
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    gap: 0;
    flex-direction: column;
    background-color: #222222;
    width: 100%;
    text-align: center;
    transition: 0.3s;
  }
  
  .nav-item {
    margin: 16px 0;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text {
    text-align: center;
  }
  
  .profile-img {
    width: 200px;
  }
  
  .card {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    transform: scale(0.8);
  }
  
  .mySwiper {
    padding: 10px 0;
  }
  
  .downloadCv {
    margin: 2rem auto 0;
  }
}
