
#loader{
  position:fixed;
  inset:0;
  background:#0b0617;
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:9999;
}

/* TEXT */
.loader-text{
  display:flex;
  gap:10px;
  font-size:4rem;
  font-weight:700;
}

.loader-text span{
  color:#a855f7;
  animation:bounce 2.2s infinite;
}

.loader-text span:nth-child(2){
  animation-delay:.2s;
}
.loader-text span:nth-child(3){
  animation-delay:.3s;
}
.loader-text span:nth-child(4){
  animation-delay:.4s;
}
.loader-text span:nth-child(5){
  animation-delay:.5s;
}
.loader-text span:nth-child(6){
  animation-delay:.6s;
}
.loader-text span:nth-child(7){
  animation-delay:.7s;
}
.loader-text span:nth-child(8){
  animation-delay:.8s;
}

/* ANIMATION */
@keyframes bounce{
  0%,100%{
    transform:translateY(0);
    opacity:0.5;
  }
  50%{
    transform:translateY(-20px);
    opacity:1;
  }
}







/* projects SECTION */
.projects-section{
  padding:100px 8%;
  background:#0b0617;
}

/* HEADING */
.section-header{
  text-align:center;
  margin-bottom:60px;
}

.section-header h2{
  font-size:3rem;
  background:linear-gradient(90deg,#a855f7,#ec4899);
  -webkit-background-clip:text;
  color:transparent;
  letter-spacing:1px;
}

.section-header p{
  margin-top:10px;
  font-size:1rem;
  opacity:.75;
}


.projects-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr); /* 👈 ALWAYS 3 */
  gap:50px;
}


@media (max-width:900px){
  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:600px){
  .projects-grid{
    grid-template-columns:1fr;
  }
}


.projects-btn-wrapper{
  margin-top:60px;
  display:flex;
  justify-content:center;
}

.projects-btn{
  background:linear-gradient(90deg,#a855f7,#ec4899);
  color:#fff;
  padding:14px 32px;
  font-size:1rem;
  border-radius:40px;
  text-decoration:none;   /* 🔥 important */
  display:flex;
  align-items:center;
  gap:10px;
  box-shadow:0 15px 40px rgba(168,85,247,.4);
  transition:all .35s ease;
}

/* ICON */
.projects-btn i{
  transition:transform .3s ease;
}

/* HOVER */
.projects-btn:hover{
  transform:translateY(-4px);
  box-shadow:0 25px 60px rgba(236,72,153,.45);
}

.projects-btn:hover i{
  transform:translateX(6px);
}








/* FLIP CARD WRAPPER */
.flip-card{
  height:320px;
  perspective:1200px;
}

/* INNER CARD */
.flip-card-inner{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  transition:transform .8s cubic-bezier(.4,.2,.2,1);
}

/* FLIP ON HOVER */
.flip-card:hover .flip-card-inner{
  transform:rotateY(180deg);
}

/* BOTH SIDES */
.flip-card-front,
.flip-card-back{
  position:absolute;
  width:100%;
  height:100%;
  backface-visibility:hidden;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 25px 60px rgba(0,0,0,0.5);
}

/* FRONT IMAGE */
.flip-card-front img{
  width:auto;
  height:100%;
  object-fit:cover;
}

/* BACK SIDE */
.flip-card-back{
  background:linear-gradient(135deg,#0f0c29,#302b63,#24243e);
  transform:rotateY(180deg);
  padding:25px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.flip-card-back h3{
  color:#a855f7;
  margin-bottom:10px;
}

.flip-card-back p{
  font-size:0.95rem;
  opacity:.85;
}

.flip-card-back a{
  margin-top:15px;
  width:fit-content;
  padding:10px 20px;
  background:#a855f7;
  color:white;
  border-radius:30px;
  text-decoration:none;
  transition:.3s;
}

.flip-card-back a:hover{
  background:#9333ea;
}












/* ===== PROJECTS ===== */
.project-filters {
  text-align: center;
  margin-bottom: 30px;
}
.project-filters button {
  background: none;
  color: #fff;
  border: 2px solid #fff;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}
.project-filters button.active,
.project-filters button:hover {
  background: #a855f7;
  border-color: #a855f7;
}
body.light-mode .project-filters button {
  color: #111;
  border-color: #111;
}
body.light-mode .project-filters button.active,
body.light-mode .project-filters button:hover {
  background: #4f46e5;
  border-color: #4f46e5;
}
#projects .card {
  background: #111;
  padding: 25px;
  border-radius: 18px;
  margin-bottom: 25px;
  transition: 0.3s;
}
body.light-mode #projects .card {
  background: #f0f0f0;
  color: #111;
}
#projects .card:hover {
  transform: translateY(-10px) scale(1.02);
}
#projects .card h4 {
  color: #a855f7;
  margin-bottom: 10px;
}
body.light-mode #projects .card h4 {
  color: #4f46e5;
}
#projects .card a {
  margin-top: 10px;
  display: inline-block;
}








.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  padding: 15px 35px;
  border-radius: 50px;
  display: flex;
  gap: 40px;
  align-items: center;
  z-index: 1000;
}
body.light-mode .glass-nav {
  background: rgba(0, 0, 0, 0.08);
}
.glass-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}
.glass-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
}
body.light-mode .glass-nav a {
  color: #111;
}
.glass-nav a:hover {
  color: #a855f7;
}
.glass-nav .hire {
  color: #a855f7;
}



/* ===== DARK/LIGHT TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #a855f7;
  color: #fff;
  padding: 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  transition: 0.3s;
}
body.light-mode .theme-toggle {
  background: #111;
  color: #fff;
}
