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

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  overflow-x: hidden;
}

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

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s cubic-bezier(0.17, 0.67, 0.83, 0.67),
    background 0.2s ease, border-color 0.2s ease;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(2px);
  mix-blend-mode: difference;
}

.cursor-trail {
  width: 8px;
  height: 8px;
  background: #00d4ff;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.3s ease,
    width 0.3s ease, height 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0.6;
  mix-blend-mode: difference;
}
/* Floating particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00d4ff;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 6s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header */
header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00d4ff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

nav ul li a:hover {
  background: rgba(26, 26, 46, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Hero Section */
#hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  background: linear-gradient(45deg, #b5f4ff, #7c7c7cb7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 15px 40px;
  background: rgba(26, 26, 46, 0.8);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

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

/* Sections */
section {
  padding: 100px 0;
  position: relative;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  background: linear-gradient(45deg, #c3dee3, #8e8d8d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  max-width: 800px;
  margin: 0 auto;
}

.skill-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}
/* Fade in for headers and text */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Slide animations for categories */
.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft 1s ease forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease forwards;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Fade-in delay for stack items */
.stack-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}
.fade-in-delay-2 {
  animation-delay: 0.4s;
}
.fade-in-delay-3 {
  animation-delay: 0.6s;
}
.fade-in-delay-4 {
  animation-delay: 0.8s;
}
.fade-in-delay-5 {
  animation-delay: 1s;
}

.profile-pic {
  width: 250px;
  height: 350px;
  border-radius: 5%;
  object-fit: cover;
  border: 5px solid #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  animation: pulse 2s infinite;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 50px rgba(0, 212, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  }
}
.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

h2 {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 10px;
  color: #fff;
}

.subtitle {
  text-align: center;
  color: #a0aec0;
  margin-bottom: 40px;
  font-size: 1.1em;
}
.skill-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
}

.about-text {
  max-width: 600px;
  color: #e2e8f0;
}

.tech-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.category h3 {
  font-size: 1.5em;
  color: #90cdf4;
  margin-bottom: 20px;
  text-align: center;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  ); /* Increased from 120px to 150px */
  gap: 15px; /* Increased from 10px to 15px */
  justify-items: center;
}

.stack-item {
  width: 200px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px; /* Increased from 15px to 20px */
  border-radius: 12px; /* Slightly increased for a softer look */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px; /* Increased from 5px to 8px */
  min-height: 120px; /* Added to ensure consistent height */
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  transform: translateY(0);
}
.stack-item small {
  font-size: 1em;
  color: #a0aec0;
  display: block;
}

.stack-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

.stack-item:hover {
  cursor: pointer;
  border: 1px solid #00d4ff; /* Correct syntax: width style color */
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease; /* Smooth hover effect */
}

@media (max-width: 768px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .about-text {
    text-align: center;
  }

  .tech-stack {
    grid-template-columns: 1fr;
  }

  .category h3 {
    font-size: 1.3em;
  }

  .stack-grid {
    grid-template-columns: 1fr; /* single column */
  }

  .stack-item {
    padding: 10px;
  }
}
@media (max-width: 768px) {
  .profile-pic {
    width: 120px;
    height: 120px;
  }

  .about-text {
    text-align: center;
    max-width: 100%;
    padding: 0 10px;
  }

  h2 {
    font-size: 2em; /* Reduced from 2.5em */
  }

  .subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .skill-content {
    flex-direction: column;
    text-align: center;
  }

  .tech-stack {
    grid-template-columns: repeat(1, 1fr); /* force 2 columns */
    gap: 20px;
  }

  .category h3 {
    font-size: 1.3em;
  }

  .stack-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns instead of 1 */
    gap: 15px;
  }

  .stack-item {
    width: 100%;
    padding: 15px;
    min-height: 100px;
  }

  .stack-item small {
    font-size: 0.9em;
  }
}

.about-content p {
  font-size: 1.2rem;
  line-height: 1.8;
  flex: 1;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  transform: translateY(0);
}

.project-card:hover {
  cursor: pointer;
  border: 1px solid #00d4ff;
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #00d4ff;
}

.project-card p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-card a {
  color: #ff6b6b;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.project-links {
  display: flex;
  gap: 15px; /* space between links */
  margin-top: 10px; /* optional spacing above links */
  transition: all 0.3s ease;
}

.project-links a {
  text-decoration: none;
  color: #00d4ff; /* your preferred color */
  padding: 5px 10px;
  border: 1px solid #00d4ff;
  border-radius: 5px;
  transition: background 0.3s, color 0.3s;
}

.framework-logos {
  display: flex;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
  justify-content: center;
}

.framework-logos img {
  width: 35px;
  height: 35px;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid #00d4ff;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(16, 155, 183, 0.682);
  transform: translateY(0);
}
.framework-logos img:hover {
  transform: scale(1.05);
  transition: 0.2s;
}

.project-links a:hover {
  box-shadow: 0 0 10px rgba(16, 155, 183, 0.682);
  border: 1px solid #00d5ffd1;
  color: #00d5ffa7;
  transform: scale(1.1);
  transition: 0.3s;
}

/* YouTube Section */
#youtube {
  background: rgba(0, 0, 0, 0.2);
}

.youtube-video {
  text-align: center;
  margin-top: 30px;
}

.youtube-video iframe {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
#contact {
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 50%
  );
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,212,255,0.1)"/></svg>')
    repeat;
  animation: moveStars 20s linear infinite;
  z-index: 1;
}
a {
  text-decoration: none;
  color: whitesmoke;
}

@keyframes moveStars {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-100px);
  }
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #00d4ff;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.contact-info p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  justify-content: left;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-method:hover {
  cursor: pointer;
  background: rgba(0, 212, 255, 0.1);
  transform: translateX(10px);
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.2);
}

.contact-method-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  min-width: 40px;
}

.contact-methods {
  display: grid;
  gap: 20px; /* spacing between items */
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px; /* space between icon and text */
}

.contact-method-icon {
  font-size: 1.5rem;
  color: #00d4ff;
  min-width: 40px; /* keeps icons aligned */
  display: flex;
  justify-content: center;
}
.contact-method-text {
  text-align: left; /* បញ្ជាក់អោយអត្ថបទនៅឆ្វេង */
}

.contact-method-text h4 {
  color: #00d4ff;
  margin-bottom: 5px;
  font-size: 1rem;
}

.contact-method-text p,
.contact-method-text a {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 0.95rem;
  text-decoration: none;
}

.contact-method-text a:hover {
  color: #00d4ff; /* hover effect for links */
}

.contact-form-container {
  margin-top: 65px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(0, 212, 255, 0.1),
    transparent
  );
  animation: rotate 10s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  pointer-events: none;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 20px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: #00d4ff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  left: 15px;
  font-size: 0.85rem;
  color: whitesmoke;
  background: rgba(59, 64, 76, 0.81);
  padding: 5px 10px;
  border-radius: 5px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 20px;
}

.form-group textarea + label {
  top: 30px;
}

.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 30px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.5);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
    text-align: center;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
    margin-top: 10px;
    gap: 10px;
  }

  nav ul li a {
    padding: 8px 15px;
    font-size: 0.9rem;
  }
  /* Basic styling */
  header {
    background: #111;
    color: #fff;
    padding: 15px 0;
  }

  .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
  }

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

  .logo {
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
  }
}
/* Hamburger Button */
.menu-toggle {
  display: none; /* លាក់នៅ Desktop */
}

/* -------------------- Mobile Navigation -------------------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block; /* បង្ហាញនៅ Mobile */
    font-size: 28px;
    background: none;
    border: none;
    color: #00d4ff;
    cursor: pointer;
    z-index: 1100;
  }
  .nav-links {
    border-radius: 10px;
    margin-top: 40px;
    position: fixed;
    top: 0;
    right: -250px; /* hidden off screen */
    width: 220px;
    height: 50vh;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: right 0.3s ease-in-out;
    border-left: 2px solid rgba(0, 212, 255, 0.3);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0; /* slide in */
  }

  .nav-links li a {
    font-size: 1.2rem;
    padding: 10px 20px;
    border-radius: 24px;
  }
}
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  padding: 20px;
  text-align: center;
}

.contact-form-container {
  padding: 30px 20px;
}

.social-links {
  justify-content: center;
}
/* Additional Advanced Styles */
.glitch-effect {
  position: relative;
  color: #00d4ff;
  font-size: 4rem;
  font-weight: bold;
  text-transform: uppercase;
  animation: glitch 2s infinite;
}

@keyframes glitch {
  0%,
  100% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
}

.neon-box {
  border: 2px solid #00d4ff;
  border-radius: 15px;
  padding: 20px;
  background: rgba(0, 212, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5),
    inset 0 0 10px rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.neon-box:hover {
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.8),
    inset 0 0 20px rgba(0, 212, 255, 0.2);
  transform: translateY(-5px);
}

.typing-effect {
  border-right: 2px solid #00d4ff;
  animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00d4ff;
  }
}

.holographic-effect {
  background: linear-gradient(45deg, #00d4ff, #4ecdc4, #45b7d1);
  background-size: 400% 400%;
  animation: holographic 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  animation: float-around 15s infinite ease-in-out;
}

@keyframes float-around {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

.section-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  margin: 50px 0;
  animation: pulse-width 2s infinite;
}

@keyframes pulse-width {
  0%,
  100% {
    width: 0%;
    margin-left: 50%;
  }
  50% {
    width: 100%;
    margin-left: 0%;
  }
}

/* Advanced Button Styles */
.advanced-btn {
  position: relative;
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  border: 2px solid #00d4ff;
  color: #00d4ff;
  text-decoration: none;
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
}

.advanced-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 212, 255, 0.8),
    transparent
  );
  transition: left 0.5s ease;
}

.advanced-btn:hover::before {
  left: 100%;
}

.advanced-btn:hover {
  background: #00d4ff;
  color: #000;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

/* Matrix Rain Effect */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

.matrix-column {
  position: absolute;
  top: -100%;
  font-family: "Courier New", monospace;
  font-size: 14px;
  color: #00d4ff;
  animation: matrix-fall 10s linear infinite;
}

@keyframes matrix-fall {
  0% {
    top: -100%;
  }
  100% {
    top: 100%;
  }
}
/* ================= Scroll Animations ================= */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-animate.show {
  opacity: 1;
  transform: translateY(0);
}
/* Optional: staggered delays */
.scroll-delay-1 {
  transition-delay: 0.4s;
}
.scroll-delay {
  transition-delay: 0.8s;
}
b {
  color: #40b6ff;
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
  text-align: center;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.modal-content .close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
