@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Londrina+Outline&family=Londrina+Solid:wght@300;400&family=Poppins:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
  height: 100%; 
  overflow: hidden;
}
body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0a0a1a 0%, #151533 100%);
  color: #fff;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}


.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(16, 255, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 255, 240, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  opacity: 0.5;
}

.cyber-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 255, 240, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(60px);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.1);
  }
}


.section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh;
  padding: 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  z-index: 1;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 255, 240, 0.3) transparent;
}

.section::-webkit-scrollbar {
  height: 6px;
}

.section::-webkit-scrollbar-track {
  background: rgba(16, 255, 240, 0.08);
  border-radius: 4px;
}

.section::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  border-radius: 4px;
}

.section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #20ffff, #ff6db6);
}

#section-projects {
  overflow-y: hidden;
  overflow-x: hidden;
}

.section.hidden { 
  pointer-events: none; 
  opacity: 0;
  transform: translateX(100%);
}


.hero-title {
  font-family: 'Londrina Outline', sans-serif;
  font-weight: 100;
  font-size: clamp(48px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  cursor: pointer;
  text-shadow: 0 0 30px rgba(0, 255, 255, 0.7);
}

.outline-text {
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #00ffff 0%, #ff4da6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.fill-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  overflow: hidden;
  transition: height 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  pointer-events: none;
}

.filled-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #00ffff 0%, #ff4da6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Londrina Solid', sans-serif;
  font-weight: 400;
}

.hero-title:hover .fill-layer {
  height: 100%;
}

.hero-title.filled .fill-layer {
  height: 100%;
}

.hero-sub {
  font-size: clamp(14px, 1.6vw, 20px);
  max-width: 65%;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 300;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}

.bg-image { 
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  filter: brightness(0.3) saturate(1.4) hue-rotate(360deg);
  z-index: -3; 
  
}

.bg-image-projects { 
  position: absolute; 
  inset: 0;
  left:60%;
  width: 50%; 
  height: 100%; 
  object-fit: cover; 
  filter: brightness(0.3) saturate(1.2) hue-rotate(360deg);
  z-index: -3; 
  
}


.arrow-btn {
  position: absolute;
  background: rgba(16, 255, 240, 0.05);
  border: none;
  color: #10fff0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  outline: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 5;
  font-size: 1.5rem;
  padding: 0;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.arrow-btn:hover { 
  background: rgba(16, 255, 240, 0.15);
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(16, 255, 240, 0.3);
}

.arrow-btn:active { 
  transform: scale(0.95); 
}

.arrow-btn i {
  transition: transform 0.3s ease;
}

.arrow-btn:hover i {
  transform: scale(1.2);
}

@keyframes fadeInArrow {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.arrow-btn {
  opacity: 0;
  animation: fadeInArrow 0.4s ease-in-out 0.5s forwards;
}

.arrow-btn.reset-animation {
  animation: none;
  opacity: 0;
}

#btn-left { left: 2vw; top: 50%; transform: translateY(-50%); }
#btn-right { right: 2vw; top: 50%; transform: translateY(-50%); }
#btn-bottom { left: 50%; bottom: 3vh; transform: translateX(-50%); }
#btn-top { left: 50%; top: 3vh; transform: translateX(-50%); }
#btn-left-about { left: 2vw; top: 50%; transform: translateY(-50%); }
#btn-right-contact { right: 2vw; top: 50%; transform: translateY(-50%); }


.mobile-header { 
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 255, 240, 0.2);
  color: #fff;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
}

.mobile-nav-title { 
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-toggle { 
  width: 32px; 
  height: 32px;
  display: flex; 
  flex-direction: column; 
  gap: 5px; 
  justify-content: center; 
  align-items: center; 
  cursor: pointer;
  transition: transform 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.menu-toggle:active { transform: scale(0.95); }

.menu-toggle span { 
  height: 2px; 
  width: 100%; 
  display: block; 
  background: #10fff0; 
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background: #ff4da6;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background: #ff4da6;
}


.dropdown { 
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  overflow: hidden;
  z-index: 99;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid rgba(16, 255, 240, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.dropdown.active {
  max-height: 400px;
}

.nav-menu-link { 
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  border-top: 1px solid rgba(16, 255, 240, 0.05);
  transition: all 0.3s ease;
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

.nav-menu-link:hover { 
  background: rgba(16, 255, 240, 0.08);
  padding-left: 25px;
  color: #10fff0;
}

.nav-menu-link:active {
  background: rgba(16, 255, 240, 0.12);
}

.nav-menu-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0px;
  background: linear-gradient(to bottom, #10fff0, #ff4da6);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-menu-link:hover::before {
  transform: translateX(0);
  width:3px;
 
  
}


.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  width: 100%;
}

.card {
  background: rgba(16, 16, 32, 0.6);
  border: 1px solid rgba(16, 255, 240, 0.15);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
 
}



.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4da6, #10fff0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 255, 240, 0.3);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(16, 255, 240, 0.1);
    
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.tag {
  background: rgba(16, 255, 240, 0.08);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: #a0f0ff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tag:hover {
  background: rgba(16, 255, 240, 0.15);
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-2px);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  color: #10fff0;
  text-decoration: none;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  border-radius: 10px;
  background: rgba(16, 255, 240, 0.08);
  border: 1px solid rgba(16, 255, 240, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.cta-link:hover {
  background: rgba(16, 255, 240, 0.15);
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(16, 255, 240, 0.1);
  color: #fff;
}

.cta-link:hover .arrow {
  transform: translateX(4px);
}

.cta-link .arrow {
  transition: transform 0.3s ease;
}


.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  width: 100%;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(16, 16, 32, 0.4);
  border-radius: 16px;
  border: 1px solid rgba(16, 255, 240, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.contact-method:hover {
  background: rgba(16, 16, 32, 0.6);
  border-color: rgba(16, 255, 240, 0.25);
  transform: translateY(-3px);
}

.contact-method i {
  font-size: 1.8rem;
  color: #10fff0;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 255, 240, 0.1);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-method-content {
  flex: 1;
}

.contact-method-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.contact-method-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.contact-method-content a {
  color: #a0f0ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-method-content a:hover {
  color: #10fff0;
  text-decoration: underline;
}

.contact-form-container {
  background: rgba(16, 16, 32, 0.4);
  border-radius: 20px;
  padding: 2.2rem;
  border: 1px solid rgba(16, 255, 240, 0.15);
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: #a0f0ff;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 0.9rem 1rem;
  background: rgba(10, 10, 20, 0.6);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 10px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(16, 255, 240, 0.5);
  box-shadow: 0 0 0 2px rgba(16, 255, 240, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  padding: 0.9rem 1.5rem;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  color: #0a0a1a;
  border: none;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 255, 240, 0.2);
}

.submit-btn:active {
  transform: translateY(0);
}


.contact-card {
  background: rgba(255, 77, 166, 0.05);
  border: 1px solid rgba(255, 77, 166, 0.15);
}

.contact-card:hover {
  border-color: rgba(255, 77, 166, 0.3);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(255, 77, 166, 0.1);
}

.contact-card::before {
  background: linear-gradient(90deg, #10fff0, #ff4da6);
}

.contact-card h3 {
  background: linear-gradient(90deg, #fff, #ffa0d2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


.about-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.about-card {
  background: rgba(16, 16, 32, 0.6);
  border: 1px solid rgba(16, 255, 240, 0.15);
  border-radius: 20px;
  padding: 2.2rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4da6, #10fff0);
  z-index: 2;
}

.about-section-title {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-text {
  line-height: 1.7;
  opacity: 0.85;
  font-size: 0.95rem;
}

.about-text-spaced {
  line-height: 1.7;
  opacity: 0.85;
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.skill-tag {
  background: rgba(16, 255, 240, 0.08);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 16px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  color: #a0f0ff;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: rgba(16, 255, 240, 0.15);
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-2px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.2rem;
}

.social-links-margin {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.hero-description {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  opacity: 0.8;
  color: #a0f0ff;
}


.projects-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  gap: 2rem;
  width: 90%;
  padding: 1rem 5vw 3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 255, 240, 0.3) transparent;
  margin-top: 2rem;
}

.projects-grid::-webkit-scrollbar {
  height: 6px;
}

.projects-grid::-webkit-scrollbar-track {
  background: rgba(16, 255, 240, 0.08);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  border-radius: 4px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #20ffff, #ff6db6);
}

.projects-grid .card {
  flex: 0 0 380px;
  min-width: 320px;
}


#section-home > div {
  margin-left: 100px;
  max-width: 900px;
}

#section-projects > div {
  z-index: 2;
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-top: 4rem;
  padding-left: 0;
  padding-right: 0;
}

#section-about > div,
#section-contact > div {
  z-index: 2;
  max-width: 1200px;
}

#section-about > div {
  margin-left: 100px;
}

.section-content-grid {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}


@media (max-width: 1200px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .contact-methods .card {
   width: 100%;
  }
  
  .contact-form-container {
    order: 1;
  }
}

@media (max-width: 1000px) {
  .fill-layer {
    margin-top:16px;
  }
  
  
  .arrow-btn { 
    display: none !important; 
  }
  
  
  .mobile-header { 
    display: flex; 
    height: 60px;
  }
  
  .dropdown {
    display: block;
  }
  
  .hero-title { 
    font-size: clamp(36px, 12vw, 80px); 
    margin-top: 0.5rem;
  }
  
  .hero-sub { 
    font-size: clamp(13px, 4vw, 18px); 
    max-width: 95%; 
  }
  
  .section { 
    padding: 20px;
    padding-top: 80px;
    justify-content: flex-start;
    height: 100vh;
    margin-top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }
  
  body {
    overflow: hidden;
  }
  
  #section-projects {
    overflow-y: auto;
  }
  
  .content-grid { 
    grid-template-columns: 1fr; 
    gap: 1.8rem; 
  }
  
  #section-home div,
  #section-projects > div,
  #section-about > div,
  #section-contact > div {
    margin-left: 0 !important;
    max-width: 100% !important;
    margin-top: 1rem !important;
  }

  #section-about > div > div,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .contact-layout {
    gap: 2rem;
    margin-bottom:2vh;
    max-width: 1100px;
  }

  .projects-grid { 
    padding: 1rem 4vw 2.5rem; 
    gap: 1.5rem;
  }
  
  .projects-grid .card {
    min-width: 280px;
    flex: 0 0 320px;
  }
  
  .bg-image-projects {
    left: 0;
    width: 100%;
  }
  
  .section.hidden {
    transform: translateX(100%) !important;
  }
  
  .section:not(.hidden) {
    transform: translateX(0) !important;
  }
  
  .hero-title {
    padding: 15px 0;
    margin: 15px 0;
  }
  
  .card {
    padding: 1.8rem;
  }
  
  .about-card {
    padding: 1.8rem;
  }
  
  .contact-form-container {
    padding: 1.8rem;
  }
}

@media (max-width: 600px) {
  .dropdown {
    top: 60px;
  }
  
  .nav-menu-link {
    padding: 16px 20px;
    font-size: 0.95rem;
  }
  
  .mobile-header {
    padding: 0 15px;
  }
  
  .section {
    padding: 15px;
    padding-top: 80px;
  }
  
  .mobile-nav-title {
    max-width: 70%;
  }
  
  .projects-grid .card {
    min-width: 260px;
    flex: 0 0 300px;
  }
  
  .contact-method {
    padding: 1rem;
    width: 100%;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
}


@media (max-width: 400px) {
  .hero-title {
    font-size: clamp(32px, 10vw, 60px);
  }
  
  .hero-sub {
    font-size: clamp(12px, 3.5vw, 16px);
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .about-card {
    padding: 1.5rem;
  }
  
  .contact-form-container {
    padding: 1.3rem;
  }
  
  .mobile-header {
    padding: 0 12px;
  }
  
  .projects-grid .card {
    min-width: 240px;
    flex: 0 0 280px;
  }
}

.project-section {
  background-color: #000d14;
  overflow-y: hidden;
}


.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #10fff0;
  border-radius: 50%;
  animation: particleFloat 15s infinite linear;
  box-shadow: 0 0 8px #10fff0;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

@media (max-width: 1000px) {
  .section-indicators {
    display: none;
  }
}


.game-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.game-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(16, 16, 32, 0.6);
  border: 1px solid rgba(16, 255, 240, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
  width: 100%;
}

.game-cta:hover {
  background: rgba(16, 16, 32, 0.8);
  border-color: rgba(16, 255, 240, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-cta:hover .arrow {
  transform: translateX(4px);
}

.game-cta:hover .game-icon {
  transform: scale(1.1);
}

.game-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff4da6, #10fff0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-cta:hover::before {
  transform: scaleX(1);
}

.game-icon {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.game-text {
  flex: 1;
}

.arrow {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
  color: #10fff0;
}


.games-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
}

.games-overlay:not(.hidden) {
  opacity: 1;
}

.game-container {
  background: rgba(16, 16, 32, 0.95);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  width: 100%;
  max-width: 600px;
  border: 1px solid rgba(16, 255, 240, 0.2);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(16, 255, 240, 0.05),
    inset 0 0 30px rgba(16, 255, 240, 0.03);
  animation: gameSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

@keyframes gameSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-game-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 77, 166, 0.1);
  color: #ff4da6;
  border: 1px solid rgba(255, 77, 166, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10001;
  backdrop-filter: blur(5px);
}

.close-game-btn:hover {
  background: rgba(255, 77, 166, 0.2);
  border-color: rgba(255, 77, 166, 0.4);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 77, 166, 0.2);
}
/* Add this to the CSS file */

.game-controls {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.game-btn {
  padding: 12px 24px;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  color: #0a0a1a;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 160px;
  position: relative;
  overflow: hidden;
}

.game-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 255, 240, 0.3);
}

.game-btn:active {
  transform: translateY(-1px);
}

.game-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(16, 255, 240, 0.1);
}

.game-header h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.game-status {
  font-size: 1rem;
  color: #a0f0ff;
  opacity: 0.9;
  font-weight: 400;
}


.game-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 auto 30px;
  max-width: 320px;
  background: rgba(10, 10, 20, 0.5);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(16, 255, 240, 0.1);
}

.board-cell {
  aspect-ratio: 1;
  background: rgba(16, 16, 32, 0.8);
  border: 2px solid rgba(16, 255, 240, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: transparent;
  position: relative;
  overflow: hidden;
}

.board-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16, 255, 240, 0.05), rgba(255, 77, 166, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.board-cell:hover {
  background: rgba(16, 16, 32, 0.9);
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.board-cell:hover::before {
  opacity: 1;
}

.board-cell.x {
  color: #10fff0;
  text-shadow: 0 0 20px rgba(16, 255, 240, 0.5);
}

.board-cell.o {
  color: #ff4da6;
  text-shadow: 0 0 20px rgba(255, 77, 166, 0.5);
}

.board-cell.winning {
  background: rgba(16, 255, 240, 0.1);
  border-color: rgba(16, 255, 240, 0.6);
  animation: pulseWin 1.5s infinite alternate;
}

@keyframes pulseWin {
  0% { 
    box-shadow: 0 0 10px rgba(16, 255, 240, 0.3);
    transform: scale(1);
  }
  100% { 
    box-shadow: 0 0 30px rgba(16, 255, 240, 0.6);
    transform: scale(1.05);
  }
}


.cps-game-container {
  max-width: 500px;
}

.cps-display {
  text-align: center;
  margin-bottom: 30px;
}

.cps-score {
  font-size: 4rem;
  font-weight: 700;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  text-shadow: 0 0 20px rgba(16, 255, 240, 0.3);
}

.cps-timer {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 20px;
  font-weight: 600;
}

.cps-result {
  font-size: 1.2rem;
  color: #a0f0ff;
  margin-top: 15px;
  min-height: 30px;
}

.cps-click-area {
  width: 250px;
  height: 250px;
  background: rgba(10, 10, 20, 0.6);
  border: 3px solid rgba(16, 255, 240, 0.3);
  border-radius: 20px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.cps-click-area:hover {
  background: rgba(10, 10, 20, 0.8);
  border-color: rgba(16, 255, 240, 0.5);
}

.cps-click-area:active {
  transform: scale(0.98);
  background: rgba(16, 255, 240, 0.1);
}

.cps-click-area.active {
  background: rgba(16, 255, 240, 0.15);
  border-color: #10fff0;
  animation: pulseClick 0.3s ease;
}

@keyframes pulseClick {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.cps-click-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.cps-time-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 25px;
}

.cps-time-btn {
  padding: 12px;
  background: rgba(16, 16, 32, 0.6);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 10px;
  color: #a0f0ff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.cps-time-btn:hover {
  background: rgba(16, 255, 240, 0.1);
  border-color: rgba(16, 255, 240, 0.4);
}

.cps-time-btn.active {
  background: rgba(16, 255, 240, 0.2);
  border-color: #10fff0;
  color: #10fff0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(16, 255, 240, 0.2);
}

.cps-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.cps-btn {
  padding: 12px 28px;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  color: #0a0a1a;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 140px;
  position: relative;
  overflow: hidden;
}

.cps-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 255, 240, 0.3);
}

.cps-btn:active {
  transform: translateY(-1px);
}

.cps-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.game-instructions {
  font-size: 0.9rem;
  color: #a0f0ff;
  text-align: center;
  margin-top: 15px;
  opacity: 0.8;
}


@media (max-width: 768px) {
  .game-container {
    padding: 20px;
    margin: 10px;
    max-width: 95%;
  }
  
  .game-header h2 {
    font-size: 1.8rem;
  }
  
  .game-board {
    max-width: 280px;
    gap: 10px;
    padding: 15px;
  }
  
  .board-cell {
    font-size: 2.8rem;
  }
  
  .cps-click-area {
    width: 200px;
    height: 200px;
  }
  
  .cps-score {
    font-size: 3rem;
  }
  
  .cps-timer {
    font-size: 2rem;
  }
  
  .cps-time-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cps-controls {
    flex-direction: column;
    align-items: center;
  }
  
  .cps-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .game-buttons {
    gap: 10px;
  }
  
  .game-cta {
    padding: 12px 16px;
  }
}

@media (max-width: 480px) {
  .game-header h2 {
    font-size: 1.5rem;
  }
  
  .cps-click-area {
    width: 180px;
    height: 180px;
  }
  
  .cps-score {
    font-size: 2.5rem;
  }
  
  .board-cell {
    font-size: 2.2rem;
  }
  
  .game-cta {
    font-size: 0.9rem;
    padding: 10px 14px;
  }
  
  .game-icon {
    font-size: 1.1rem;
  }
}

.hidden {
  display: none !important;
}

body.game-open {
  overflow: hidden;
}


.language-toggle {
  margin-top: 25px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
}

.language-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #10fff0, #ff4da6);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: 50px;
}

.language-toggle:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 255, 240, 0.3);
  color: #0a0a1a;
}

.language-toggle:hover::before {
  transform: translateX(0);
}

.language-toggle:hover .language-text,
.language-toggle:hover .language-icon {
  color: #0a0a1a;
}

.language-text {
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 700;
}

.language-icon {
  font-size: 0.9rem;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

.language-toggle:hover .language-icon {
  transform: rotate(15deg);
}

.language-toggle.active {
  background: white;
  border-color: white;
}

.language-toggle.active .language-text,
.language-toggle.active .language-icon {
  color: #0a0a1a;
}

.language-toggle.active::before {
  transform: translateX(0);
}


.credits {
  margin-top: 25px;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  backdrop-filter: blur(5px);
  letter-spacing: 0.5px;
  margin-left: 15px;
}

.credits::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #10fff0, #ff4da6);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
  border-radius: 50px;
}

.credits:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(16, 255, 240, 0.3);
  color: #0a0a1a;
}

.credits:hover::before {
  transform: translateX(0);
}


@media (max-width: 1000px) {
  .language-toggle,
  .credits {
    margin-top: 20px;
    padding: 10px 22px;
    font-size: 0.95rem;
  }
  
  .credits {
    margin-left: 10px;
  }
}

@media (max-width: 600px) {
  .language-toggle,
  .credits {
    padding: 9px 20px;
    font-size: 0.9rem;
  }
  
  .credits {
    margin-left: 8px;
  }
}


.credits-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  overflow-y: auto;
}

.credits-overlay:not(.hidden) {
  opacity: 1;
}

.credits-container {
  background: rgba(16, 16, 32, 0.95);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(16, 255, 240, 0.3);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(16, 255, 240, 0.1),
    inset 0 0 40px rgba(16, 255, 240, 0.05);
  animation: creditsSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
}

@keyframes creditsSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-credits-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 77, 166, 0.1);
  color: #ff4da6;
  border: 1px solid rgba(255, 77, 166, 0.3);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100001;
  backdrop-filter: blur(5px);
}

.close-credits-btn:hover {
  background: rgba(255, 77, 166, 0.25);
  border-color: rgba(255, 77, 166, 0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 77, 166, 0.3);
}

.credits-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(16, 255, 240, 0.2);
}

.credits-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.credits-subtitle {
  font-size: 1.1rem;
  color: #a0f0ff;
  opacity: 0.9;
  font-weight: 300;
}

.credits-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.credit-card {
  background: rgba(20, 20, 40, 0.7);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 18px;
  padding: 25px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.credit-card:hover {
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.credit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4da6, #10fff0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.credit-card:hover::before {
  transform: scaleX(1);
}

.credit-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #fff, #a0f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.credit-info {
  margin-bottom: 20px;
}

.credit-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e0e0ff;
}

.credit-info strong {
  color: #10fff0;
  font-weight: 600;
  min-width: 80px;
  display: inline-block;
}

.credit-artist {
  color: #ff4da6;
  font-weight: 500;
}

.credit-description {
  font-style: italic;
  opacity: 0.85;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 255, 240, 0.15);
  color: #b0d0ff;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.credits-footer {
  margin-top: 30px;
  padding: 20px;
  background: rgba(16, 255, 240, 0.07);
  border: 1px solid rgba(16, 255, 240, 0.15);
  border-radius: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #a0f0ff;
  line-height: 1.6;
}

.credits-footer p {
  margin: 0;
  opacity: 0.9;
}


.certificates-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  overflow-y: auto;
}

.certificates-overlay:not(.hidden) {
  opacity: 1;
}

.certificates-container {
  background: rgba(16, 16, 32, 0.95);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(16, 255, 240, 0.3);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(16, 255, 240, 0.1),
    inset 0 0 40px rgba(16, 255, 240, 0.05);
  animation: certificatesSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(15px);
}

@keyframes certificatesSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close-certificates-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 77, 166, 0.1);
  color: #ff4da6;
  border: 1px solid rgba(255, 77, 166, 0.3);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100001;
  backdrop-filter: blur(5px);
}

.close-certificates-btn:hover {
  background: rgba(255, 77, 166, 0.25);
  border-color: rgba(255, 77, 166, 0.5);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 77, 166, 0.3);
}

.certificates-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(16, 255, 240, 0.2);
}

.certificates-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #10fff0, #ff4da6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.certificates-subtitle {
  font-size: 1.1rem;
  color: #a0f0ff;
  opacity: 0.9;
  font-weight: 300;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.certificate-item {
  background: rgba(20, 20, 40, 0.7);
  border: 1px solid rgba(16, 255, 240, 0.2);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-align: center;
}

.certificate-item:hover {
  border-color: rgba(16, 255, 240, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.certificate-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4da6, #10fff0);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.certificate-item:hover::before {
  transform: scaleX(1);
}

.certificate-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #10fff0;
}

.certificate-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #fff;
}

.certificate-description {
  font-size: 0.9rem;
  color: #a0f0ff;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 15px;
}

.certificate-placeholder {
  width: 100%;
  height: 150px;
  background: rgba(10, 10, 20, 0.5);
  border: 2px dashed rgba(16, 255, 240, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a0f0ff;
  font-size: 0.9rem;
  margin-top: 10px;
}

.certificate-placeholder i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.certificates-footer {
  margin-top: 30px;
  padding: 20px;
  background: rgba(16, 255, 240, 0.07);
  border: 1px solid rgba(16, 255, 240, 0.15);
  border-radius: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #a0f0ff;
  line-height: 1.6;
}

.certificates-footer p {
  margin: 0;
  opacity: 0.9;
}


.credits-container::-webkit-scrollbar,
.certificates-container::-webkit-scrollbar {
  width: 8px;
}

.credits-container::-webkit-scrollbar-track,
.certificates-container::-webkit-scrollbar-track {
  background: rgba(16, 255, 240, 0.05);
  border-radius: 4px;
}

.credits-container::-webkit-scrollbar-thumb,
.certificates-container::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #10fff0, #ff4da6);
  border-radius: 4px;
}

.credits-container::-webkit-scrollbar-thumb:hover,
.certificates-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #20ffff, #ff6db6);
}


@media (max-width: 768px) {
  .credits-container,
  .certificates-container {
    padding: 30px 25px;
    margin: 10px;
    max-width: 95%;
    max-height: 90vh;
  }
  
  .credits-header h2,
  .certificates-header h2 {
    font-size: 2rem;
  }
  
  .credits-subtitle,
  .certificates-subtitle {
    font-size: 1rem;
  }
  
  .credit-card,
  .certificate-item {
    padding: 20px;
  }
  
  .credit-title {
    font-size: 1.2rem;
  }
  
  .credit-info p {
    font-size: 0.9rem;
  }
  
  .close-credits-btn,
  .close-certificates-btn {
    width: 38px;
    height: 38px;
    font-size: 22px;
    top: 15px;
    right: 15px;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .credits-container,
  .certificates-container {
    padding: 25px 20px;
  }
  
  .credits-header h2,
  .certificates-header h2 {
    font-size: 1.8rem;
  }
  
  .credit-card,
  .certificate-item {
    padding: 18px;
  }
  
  .credit-info strong {
    min-width: 70px;
  }
  
  .close-credits-btn,
  .close-certificates-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}


.certificate-image
{
  width: 100%;
  border-radius: 12px;
  margin:0px;
  margin-top: 10px;
  transition: 0.3s ease-in ;

}

.certificate-image:hover{
  transform: scale(1.05);
  border:3px solid linear-gradient( #20ffff, #ff6db6);
  box-shadow: 0 10px 25px rgba(16, 255, 240, 0.3);
}