@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;600;700&display=swap');

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

::-webkit-scrollbar {
  background-color: #000044;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background-color: #00d4ff;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #00b0cc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Work Sans', sans-serif;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  overflow-x: hidden;
}

.cursor-bg {
  position: fixed;
  background-color: #00d4ff;
  width: 20px;
  height: 20px;
  border-radius: 100%;
  z-index: 1000000000000000000000000000000000000000;
}

.cursor-border {
  position: fixed;
  border: 3px solid #00d4ff;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  z-index: 1000000000000000000000000000000000000000;
}

.hero-content {
  width: 300px;
  animation: img 10s ease-in;
  animation-iteration-count: infinite;
  animation-duration: 40s;
  transform: rotateX(0deg);
  padding: 20px;
  width: 50%;
}

.hero-img {
  display: flex;
  width: 50%;
  justify-content: right;
}

@keyframes img {
  0% {
    transform: rotateY(0deg);
  }
  
  50% {
    transform: rotateY(700deg);
  }
  
  100% {
    transform: rotateY(0deg);
  }
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
}

/* Loader Base */
#loader {
  position: fixed;
  inset: 0;
  background-color: #0f0c29;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Loader Text Animation */
.loader-text {
  font-size: 50px;
  font-weight: 800;
  color: #00d4ff;
  font-family: 'Work Sans', sans-serif;
  animation: loaderBlink 1s ease-in-out infinite alternate;
  letter-spacing: 2px;
}

@keyframes loaderBlink {
  0% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.05); }
}

/* Hidden state after load */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-box {
  /* position: absolute;
  top: 0;
  right: 0; */
  display: flex;
  height: 20%;
  gap: 12px;
}

/* Loader Spinner */
.loader-box1, .loader-box2, .loader-box3 {
  width: 20px;
  height: 80px;
  background-color: #ffffff;
  border-top-color: transparent;
}

.loader-box1 {
  animation: height 1s linear infinite;
}

.loader-box2 {
  animation: height 1.2s linear infinite;
}

.loader-box3 {
  animation: height 1.3s linear infinite;
}

@keyframes height {
  0% { height: 80px; }
  50% { height: 20px; }
  100% { height: 80px; }
}

.brand {
  font-size: 2rem;
  font-weight: 700;
  color: #00d4ff;
}

/* Hero Section */
.hero {
  height: fit-content;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 7rem;
}

.hero-content {
  max-width: 800px;
  animation: slideUp 1s ease forwards;
  transform: translateY(50px);
  opacity: 0;
}

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

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1.2rem;
  color: #cccccc;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.highlight {
  color: #00d4ff;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-outline {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: #00d4ff;
  color: #000;
  box-shadow: 0 0 15px #00d4ff99;
  border: none;
}

.btn-primary:hover {
  background: #fff;
  color: #000;
}

.btn-outline {
  border: 2px solid #00d4ff;
  color: #00d4ff;
  background: transparent;
}

.btn-outline:hover {
  background: #00d4ff;
  color: #000;
}

/* About */
.about {
  background: #121225;
  text-align: center;
  padding: 4rem 2rem;
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about p {
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #ccc;
}

/* Skills */
.skills {
  background-color: #0f0c29;
  padding: 4rem 2rem;
  text-align: center;
}

.skills h2 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.skill {
  background: #1c1c3c;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 0 10px #00d4ff55;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.skill i {
  margin: auto;
}

/* Projects */
.projects {
  background: #0d0d1f;
  padding: 4rem 2rem;
  text-align: center;
}

.projects h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.project-grid > a {
  color: inherit;
  text-decoration: none;
}

.project-card {
  background: #1c1c3c;
  padding: 2rem;
  border-radius: 15px;
  transition: 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  width: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px #00d4ff99;
}

.project-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #00d4ff;
  text-decoration: none;
}

.project-card a {
  color: #00d4ff;
  text-decoration: underline;
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
}

/* Certifications */

.certifications-section {
  padding: 80px 20px;
  background: #0f0c29;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.cert-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.cert-card {
  background: #1c1c3c;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  padding: 20px;
  width: 300px;
  text-align: center;
  height: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card .cert-info {
  display: flex;
  flex-direction: column;
  gap: 10px;

}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.cert-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 16px;
}

.cert-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #ffffff;
}

.cert-info p {
  font-size: 0.95rem;
  color: #e0e0e0;
}


/* Contact */
.contact {
  background: #121225;
  padding: 4rem 2rem;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  background: #00d4ff;
  color: #000;
  padding: 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #fff;
}

/* Footer */
.footer {
  background-color: #0d1117;
  text-align: center;
  padding: 3rem 1rem;
  color: #ccc;
  font-size: 0.9rem;
}

/* Scroll Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 10px 14px;
  background: #00d4ff;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  z-index: 999;
  box-shadow: 0 0 10px #00d4ff90;
}

#scrollTopBtn:hover {
  background: #fff;
}

.contact a, .cert-card a {
  color: #00d4ff;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s ease;
}

.contact a:hover , .cert-card a:hover {
  text-decoration: underline;
  font-size: 21px;
  transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .code-demo-container {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .btn-group {
    flex-direction: column;
  }

  .skills-grid {
    flex-direction: column;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .card {
    width: 90%;
  }
  .cursor-bg, .cursor-border {
    display: none;
  }

  .hero-content {
    width: 100%;
  }

  .hero-img {
    position: absolute;
    right: -0px;
    z-index: -1;
  }
}

@media screen and (max-width:402px) {
  .project-card {
    width: 300px;
  }
}

/* Fade In */
.fade-in {
  animation: fadeIn 1.5s ease-in forwards;
}
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Animate from Left */
.animate-left {
  animation: slideLeft 1.5s ease forwards;
}
@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Animate from Right */
.animate-right {
  animation: slideRight 1.5s ease forwards;
}
@keyframes slideRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Zoom In */
.zoom-in {
  animation: zoomIn 2s ease-in-out forwards;
}
@keyframes zoomIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Float Up and Down (Looping) */
.animate-float {
  animation: floatLoop 6s ease-in-out infinite;
}
.animate-float-slow {
  animation: floatLoop 10s ease-in-out infinite;
}
@keyframes floatLoop {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Slide Down */
.slide-down {
  animation: slideDown 1s ease-in-out forwards;
}
@keyframes slideDown {
  0% { transform: translateY(-100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Slide Up */
.slide-up {
  animation: slideUp 1s ease-in-out forwards;
}
@keyframes slideUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Slide In (from bottom right) */
.slide-in {
  animation: slideIn 1s ease-in-out forwards;
}
@keyframes slideIn {
  0% { transform: translate(50px, 50px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

