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

/* Root Variables for easy theme adjustments */
:root {
  --primary-color: #425981;
  --secondary-color: #2e3440;
  --highlight-color: #88c0d0;
  --accent-color: #5e81ac;
  --error-color: #fdecea;
  --error-text-color: #b23c17;
  --success-color: #81a1c1;
  --text-color: #ffffff;
  --border-color: #4c566a;
  --border-radius: 8px;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --font-family: "Poppins", sans-serif;
  --font-size: 1rem;
  --line-height: 1.8;
}

/* General Body Styling */
html,
body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-family);
  color: var(--text-color);
  scroll-behavior: smooth;
}

input,
textarea,
label,
body {
  cursor: none;
}

.custom-cursor {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
  z-index: 9999;
}

.custom-cursor.hovered {
  width: 30px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.5);
}

.circle:hover ~ .custom-cursor {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
}

.section {
  height: 100vh;
}

#section1,
#section2 {
  position: relative;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding-top: 200px;
}

/* Welcome Text and Contact Form Styling */
.welcome-text,
.contact-form-container {
  width: 600px;
  font-size: 1.2rem;
  line-height: var(--line-height);
  color: var(--text-color);
  margin: 10px auto;
  padding: 20px;
  background: linear-gradient(135deg, #1b1f2a, #2e3440);
  border-radius: 12px;
  box-shadow: 0 4px 6px var(--shadow-color);
  white-space: pre-line;
  transform: scale(1.1);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.contact-me-button {
  display: flex;
  opacity: 0;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 40px;
  margin-top: 30px;
  margin-bottom: 60px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
  background: linear-gradient(135deg, #1b1f2a, #2e3440);
  border: none;
  border-radius: var(--border-radius);
  cursor: none;
  text-decoration: none;
  transform: scale(0.8);
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.contact-me-button.fade-in {
  opacity: 1;
  transform: scale(1);
  animation: fadeIn 0.6s ease forwards;
}

.welcome-text:hover,
.contact-me-button:hover {
  background: var(--accent-color);
  transform: scale(1.3);
}

.contact-me-button i {
  font-size: 1.5rem;
  transition: transform 0.3s ease-in-out;
}

.contact-me-button:hover i {
  animation: bounce 0.5s infinite;
}

/* Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes smoothMovement {
  0% {
    transform: translate(0, 0) scale(1) rotate(60deg);
  }
  20% {
    transform: translate(250px, -150px) scale(1.2) rotate(15deg);
  }
  40% {
    transform: translate(150px, 200px) scale(0.4) rotate(-10deg);
  }
  60% {
    transform: translate(-200px, 50px) scale(1.8) rotate(25deg);
  }
  80% {
    transform: translate(50px, -100px) scale(0.6) rotate(-20deg);
  }
  100% {
    transform: translate(0, 0) scale(1.5) rotate(0deg);
  }
}

.circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  animation: smoothMovement 20s ease-in-out infinite;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

.circle:hover {
  animation-play-state: paused;
  opacity: 0;
}

/* Circles Specific Positioning */
.circle:nth-child(1) {
  width: 100px;
  height: 100px;
  bottom: 10%;
  left: 15%;
  animation-delay: 1s;
}

.circle:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 20%;
  right: 20%;
  animation-delay: 2s;
}

.circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 20%;
  animation-delay: 3s;
}

.circle:nth-child(4) {
  width: 120px;
  height: 120px;
  bottom: 30%;
  right: 10%;
  animation-delay: 4s;
}

.expertises {
  display: flex;
  opacity: 0;
  font-size: 20px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.8);
  padding: 16px 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  will-change: transform, opacity;
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.4s ease;
  margin: 30px 5px 0;
}

.expertises.fade-in {
  opacity: 1;
}

.expertises:hover {
  /* transform: scale(1.05);
  background: rgba(0, 0, 0, 0.5);
  opacity: 0; */
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Form Styling */
#contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

#contact-form label {
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--highlight-color);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form textarea {
  width: 100%;
  padding: 10px 15px;
  font-size: var(--font-size);
  color: var(--text-color);
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form textarea:focus {
  border-color: var(--highlight-color);
  box-shadow: 0 0 8px rgba(136, 192, 208, 0.6);
  outline: none;
}

#contact-form textarea {
  resize: vertical;
  min-height: 100px;
  max-height: 250px;
}

#contact-form input[type="submit"] {
  padding: 12px 25px;
  width: 150px;
  margin-top: 20px;
  margin-bottom: -60px;
  font-size: var(--font-size);
  font-weight: bold;
  color: var(--text-color);
  background-color: var(--border-color);
  border: 3px solid var(--border-color);
  border-radius: 6px;
  cursor: none;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

#contact-form input[type="submit"]:hover {
  background: var(--accent-color);
  transform: scale(1.3);
}

/* Form Status */
.form-status {
  margin-top: 20px;
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  display: none;
}

.form-status.success {
  background-color: var(--success-color);
  border: 1px solid #a5d6a7;
}

.form-status.error {
  background-color: var(--error-color);
  color: var(--error-text-color);
  border: 1px solid #f5b7b1;
}

/* Footer Positioning */
.footer {
  background-color: var(--secondary-color);
  color: var(--text-color);
  padding: 5px 0;
  text-align: center;
  border-top: 2px solid var(--border-color);
  font-size: 0.9rem;
  width: 100%;
  position: relative;
  margin-top: auto;
}

/* Footer Links */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 20px 0;
}

.footer-links a {
  color: var(--text-color);
  font-size: 3rem;
  transition: transform 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--highlight-color);
  transform: scale(1.3);
  cursor: none;
}

.footer-links i {
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border: 3px solid var(--border-color);
  border-radius: 50%;
  background-color: var(--secondary-color);
}

.footer-links a:hover i {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.footer-copyright {
  font-size: 0.75rem;
  color: #d8dee9;
  justify-items: end;
  margin-right: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .welcome-text,
  .contact-form-container {
    width: 90%;
    font-size: 1rem;
  }

  .contact-me-button {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .footer {
    padding: 10px 0;
    font-size: 0.85rem;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-links a {
    font-size: 2rem;
  }

  .footer-copyright {
    font-size: 0.7rem;
    margin-right: 10px;
  }
  #contact-form input[type="text"],
  #contact-form input[type="email"],
  #contact-form textarea {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .circle {
    width: 50px;
    height: 50px;
  }

  #section1,
  #section2 {
    padding-top: 100px;
  }
}

@media (max-width: 480px) {
  .welcome-text,
  .contact-form-container {
    font-size: 0.9rem;
  }

  .contact-me-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .footer {
    padding: 8px 0;
    font-size: 0.75rem;
  }

  .footer-links a {
    font-size: 1.8rem;
  }

  .footer-copyright {
    font-size: 0.6rem;
  }
  .expertises {
    font-size: 14px;
  }

  .circle {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    overflow-y: auto;
  }

  .welcome-text,
  .contact-form-container {
    width: 90%; /* Flexible width */
    font-size: 1rem;
    padding: 15px;
  }

  .contact-me-button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  #section1,
  #section2 {
    padding-top: 80px;
  }

  .circle {
    width: 40px;
    height: 40px;
  }
}

/* Hide Custom Cursor for Mobile */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

@media (max-width: 480px) {
  .welcome-text,
  .contact-form-container {
    font-size: 0.9rem;
    padding: 10px;
  }

  .contact-me-button {
    padding: 10px 15px;
    font-size: 0.85rem;
  }

  #contact-form input[type="text"],
  #contact-form input[type="email"],
  #contact-form textarea {
    padding: 8px;
    font-size: 0.85rem;
  }

  .footer {
    font-size: 0.7rem;
    padding: 8px 0;
  }

  .footer-links a {
    font-size: 1.5rem;
  }

  .circle {
    width: 30px;
    height: 30px;
  }
}
