@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top left, #0f172a, #020617 60%);
  overflow-x: hidden;
  position: relative;
}

body:before,
body:after {
  content: "";
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(180px);
  opacity: 0.4;
  z-index: -1;
}

body::before {
  top: -100px;
  left: -100px;
  background: #2563eb;
}

body::after {
  bottom: -250px;
  right: -100px;
  background: #9333ea;
}

/* Header Section */
header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.logo {
  text-decoration: none;
  color: white;
  font-size: 2em;
  font-weight: 600;
}

.logo span {
  color: #00d9ff;
}

header nav li {
  display: inline;
  margin: 0 20px;
}

header nav li a {
  text-decoration: none;
  color: white;
  text-transform: uppercase;
  position: relative;
  font-size: 1.1rem;
}

header nav li a::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #00d9ff;
  border-radius: 50px;
  transition: all 0.5s ease;
  transform: scale(0);
}

header nav li a:hover::before {
  transform: scale(1);
}

header nav li a:hover {
  color: #00d9ff;
}

.socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.socials a {
  font-size: 1.35rem;
  color: white;
  transition: all 0.5s ease;
}

.socials a:hover {
  transform: translateY(-5px) scale(1.2);
  color: #00d9ff;
}

#menu {
  background: transparent;
  color: white;
  width: 40px;
  height: 30px;
  font-size: 2em;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  display: none;
  border: none;
}

main {
  padding: 0 10%;
}

/* Hero Section */
.hero {
  min-height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text > span {
  font-size: 2.5em;
  color: #00d9ff;
}

.hero-text h1 {
  font-size: 3.5em;
  color: white;
}

.hero-text h1 span {
  color: #00d9ff;
}

.hero-text p {
  color: white;
  font-size: 2.5rem;
}

.btns {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btns a {
  padding: 10px 20px;
  cursor: pointer;
  text-decoration: none;
  color: white;
  border-radius: 50px;
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.5s ease;
}

.btns a:first-child {
  background: #2563eb;
}

.btns a:last-child {
  background: #00d9ff;
  color: #1a1650;
}

.btns a:hover {
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.3);
}

.btns a:hover:first-child {
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.hero-img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #00d9ff;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 183, 255, 0.7);
  animation: boxShadowGlow 1s linear infinite alternate;
}

.hero-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

@keyframes boxShadowGlow {
  100% {
    box-shadow: 0 0 100px rgba(0, 183, 255, 0.9);
  }
}

/* About Section */
#about {
  position: relative;
  z-index: 1;
  margin-top: 80px;
}

.section-header {
  text-align: center;
}

.section-label {
  color: #00d9ff;
  font-size: 2em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.7em;
  line-height: 1.3;
  color: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 20px;
}

.about-image {
  position: relative;
}

.about-main-img {
  width: 100%;
  border-radius: 15px;
}

.about-icon {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%);
  background: #00d9ff;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.about-icon i {
  font-size: 35px;
  color: #1a1650;
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 200px;
  height: 100px;
  transform: translateY(-50%);
  background: rgba(72, 52, 139, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.experience-badge .number {
  font-size: 3em;
  font-weight: 700;
  color: #00d9ff;
}

.experience-badge .text {
  font-size: 14px;
  line-height: 1.4;
  color: white;
}

.bio h3 {
  font-size: 2em;
  margin-bottom: 20px;
  color: white;
}

.bio-text {
  color: #b8b8d1;
  line-height: 1.8;
  margin-bottom: 30px;
}

.bio-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.bio-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bio-item label {
  color: #b8b8d1;
  font-size: 14px;
}

.bio-item span {
  color: #fff;
  font-weight: 600;
}

.btn {
  background: #00d9ff;
  color: #1a1650;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
}

/* --- Skills Slider Carousel --- */
#skills {
  position: relative;
  margin-top: 100px;
  z-index: 1;
}

.skills-slider {
  overflow: hidden;
  padding: 40px 0;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.skills-slider::before,
.skills-slider::after {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  content: "";
  z-index: 2;
}

.skills-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color, #0f172a) 0%, transparent 100%); 
}

.skills-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color, #0f172a) 0%, transparent 100%);
}

.skills-track {
  display: inline-block;
  animation: slide 25s linear infinite;
}

.skills-track:hover {
  animation-play-state: paused;
}

.skill-slide {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  margin: 0 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #e2e8f0;
}

.skill-slide i {
  font-size: 3.5rem;
  margin-bottom: 12px;
  color: #38bdf8;
  transition: transform 0.3s ease, color 0.3s ease;
}

.skill-slide:hover i {
  transform: translateY(-10px);
  color: #0ea5e9; 
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Portfolio Grid Layout --- */
#portfolio {
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

#portfolio .more {
  text-align: center;
  margin-top: 50px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.portfolio-item {
  position: relative;
  border-radius: 15px; 
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  background: #1e293b;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate; 
  -webkit-mask-image: -webkit-radial-gradient(white, black); 
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2); 
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 350px; 
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px 15px; 
  box-sizing: border-box; 
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info {
  width: 100%;
  max-width: 280px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h3 {
  color: #38bdf8;
  font-size: 1.3rem;
  margin-bottom: 10px;
  width: 100%;
}

.portfolio-info p {
  color: #e2e8f0;
  font-size: 0.85rem;
  margin-bottom: 15px;
  line-height: 1.5;
  word-wrap: break-word; 
}

.portfolio-links {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.portfolio-links .portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 50%;
  font-size: 1.2rem;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.portfolio-links .portfolio-link:hover {
  background: #e2e8f0;
  transform: scale(1.15);
}

/* Contact Section */
#contact {
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 50px;
}

.contact-form {
  background: rgba(72, 52, 139, 0.3);
  backdrop-filter: blur(10px);
  padding: 40px;
  max-width: 100vw;
  border-radius: 15px;
  border: 1px solid rgba(0, 217, 255, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(26, 22, 80, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.2);
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  transition: all 0.3s;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00d9ff;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #f7f7f7;
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
  margin-bottom: 30px;
}

.btnSubmit {
  text-align: center;
}

.btn-submit {
  font-size: 17px;
}

/* Footer Section */
.footer {
  background: rgba(26, 22, 80, 0.8);
  padding: 60px 8% 30px;
  margin-top: 100px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 17px;
}

/* Fade Animations and Toasts */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #16a34a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.toast.error {
  background-color: #dc2626;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(5%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-item {
  opacity: 0;
  transform: translateY(15%);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- Global Media Queries --- */
@media (max-width: 1000px) {
  header {
    padding: 20px 5%;
  }
  main {
    padding: 0 5%;
  }
}

@media (max-width: 768px) {
  .hero{
    min-height: 100vh;
  }
  #menu {
    display: flex;
  }
  header {
    max-width: 100vw;
  }
  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    overflow: hidden;
    max-height: 0;
    transition: max-height 1s ease;
  }
  header nav li {
    display: block;
    margin: 20px;
    text-align: center;
  }
  header nav li a {
    color: #020617;
  }
  header nav.open {
    max-height: 300px;
  }

  /* Hero Adjustments */
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 100px;
  }
  .hero-img {
    height: 200px;
    width: 200px;
    margin-bottom: -30px;
  }
  .hero-text {
    text-align: center;
    margin-top: 50px;
  }
  .hero-text > span {
    font-size: 1.9rem;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1.5rem;
  }
  .btns {
    justify-content: center;
  }
  .btns a {
    font-size: 1.1rem;
  }

  .section-label {
    font-size: 1.5em;
  }
  .section-title {
    font-size: 2em;
  }

  .about-container,
  .bio-details,
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 30px 20px;
  }

  .skills-slider {
    padding: 20px 0;
  }
  .skills-slider::before,
  .skills-slider::after {
    width: 40px;
  }
  .skill-slide {
    width: 100px;
    margin: 0 10px;
    font-size: 0.85rem; 
  }
  .skill-slide i {
    font-size: 2.5rem; 
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 150px;
  }
  .socials {
    display: none;
  }
  .experience-badge {
    width: 150px;
  }
  .hero-text h1 {
    font-size: 1.5em;
  }
  .hero-text p {
    font-size: 1em;
  }
  .hero-text > span {
    font-size: 1.9rem;
  }
  .btns a {
    font-size: 1rem;
  }
  .hero-img {
    height: 150px;
    width: 150px;
    margin-bottom: -30px;
  }
  .section-label {
    font-size: 1.5rem;
  }
  .section-title {
    font-size: 1.1rem;
  }
  .about-main-img {
    width: 290px;
  }
  .about-icon {
    left: -10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .about-icon i {
    font-size: 18px;
  }
  .footer {
    font-size: .8rem;
  }
  .footer .socials {
    display: block;
  }
}
body {
  cursor: none; 
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: #00d9ff;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.cursor-outline {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 217, 255, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s;
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline,
.portfolio-item:hover ~ .cursor-outline {
  width: 50px;
  height: 50px;
  border-color: #38bdf8;
  background-color: rgba(56, 189, 248, 0.1);
}
.typewriter-text {
  font-family: monospace; 
  color: #38bdf8;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: #00d9ff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}