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

:root {
  --primary: #7c4dff;
  --primary-light: #b47cff;
  --secondary: #00e5ff;
  --background: #0a0a0c;
  --surface: #16161a;
  --text-main: #ffffff;
  --text-muted: #a0a0ab;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --accent-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0px 3px 18px #000000);
  display: flex;
  justify-content: center;
}

nav.scrolled {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 0;

}

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


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

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.nav-links a:hover {
  color: var(--primary-light);
}

/* Sections */
section {
  padding: 100px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #000000;
  background: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(67, 9, 121, 1) 76%, rgba(247, 0, 255, 1) 100%);
}

.hero-bg-accent,
.hero-bg-accent-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  pointer-events: none;
}

.hero-bg-accent {
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: var(--primary);
  opacity: 0.15;
  animation: pulse 10s infinite alternate;
}

.hero-bg-accent-2 {
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: var(--secondary);
  opacity: 0.1;
  animation: pulse 8s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    transform: scale(1) translate(0, 0);
  }

  100% {
    transform: scale(1.1) translate(20px, 20px);
  }
}

.hero-content h1 {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 1.1;
  font-weight: 100;
  margin-bottom: 25px;
  letter-spacing: -2px;
}


.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  border:2px solid var(--glass-border);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
}

/* About Section */

#about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #000000;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.about-text p {
  color: #565656;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #000000;
}

.stat-label {
  font-size: 0.9rem;
  color: #565656;
}

/* Technologies Section */

#tech {
  background: white;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.tech-card {
  padding: 25px 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.tech-card:hover {
  border-color: #000000;
  transform: translateY(-8px) scale(1.05);
  background: rgba(124, 77, 255, 0.05);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.1);
}

.tech-card i {
  font-size: 3rem;
  transition: all 0.3s ease;
}

.tech-card:hover i {
  transform: rotate(10deg);
}

.tech-card span {
  font-weight: 600;
  font-size: 0.9rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #000000;
}

.tech-card:hover span {
  color: #565656;
}


#projects {
  background: white;
}

.section-header {
  margin-bottom: 60px;
  width: 100%;
  text-align: center;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #000000;
  font-weight: 500;
  font-family: 'Plus Jakarta Sans', sans-serif;
  
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  width: 100%;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #000000;
}

.project-image {
  width: 100%;
  height: 250px;
  background: #222;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  flex-grow: 1;
  padding: 25px;
  color: #000000;
  display: flex;
  flex-direction: column;
}

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;

}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: var(--glass);
  border-radius: 20px;
  color: #000000;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-info p {
  color: #565656;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.project-info .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Contact Section */

#contact {
  background: white;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  color: #000000;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

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

.social-icon {
  font-size: 1.5rem;
  color: #000000;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  color: #000000;
  transform: translateY(-5px);
}

footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
  color: #000000;
  background-color: white;
  filter: drop-shadow(0px 0px 1300px #000000);
}


/* From Uiverse.io by Praashoo7 */
.social-media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  gap: 0.5em;
}

.up {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.down {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.card1 {
  width: 120px;
  height: 120px;
  outline: none;
  border: none;
  background: white;
  border-radius: 180px 5px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  display: block;
}

.instagram {
  margin-top: 1.5em;
  margin-left: 1.2em;
  fill: #cc39a4;
}

.card2 {
  width: 120px;
  height: 120px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 180px 5px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  display: block;
}

.twitter {
  margin-top: 1.5em;
  margin-left: -.9em;
  fill: #03A9F4;
}

.card3 {
  width: 120px;
  height: 120px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 5px 5px 180px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  display: block;
}

.github {
  margin-top: -.6em;
  margin-left: 1.2em;
}

.card4 {
  width: 120px;
  height: 120px;
  outline: none;
  border: none;
  background: white;
  border-radius: 5px 5px 180px 5px;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: .2s ease-in-out;
  display: block;
}

.discord {
  margin-top: -.9em;
  margin-left: -1.2em;
  fill: #8c9eff;
}

.card1:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #cc39a4;
}

.card1:hover .instagram {
  fill: white;
}

.card2:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #03A9F4;
}

.card2:hover .twitter {
  fill: white;
}

.card3:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: black;
}

.card3:hover .github {
  fill: white;
}

.card4:hover {
  cursor: pointer;
  scale: 1.1;
  background-color: #8c9eff;
}

.card4:hover .discord {
  fill: white;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate {
  animation: fadeInUp 0.8s ease forwards;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 9999;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-content h1 {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav .container {
    padding: 10px 20px;
  }

  nav .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    z-index: 998;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    margin: 0;
    padding: 0;
  }

  nav .nav-links.nav-active {
    right: 0;
  }

  nav .nav-links li {
    margin: 20px 0;
  }

  nav .nav-links a {
    font-size: 1.5rem;
    color: var(--text-main);
  }

  body.light-theme nav .nav-links {
    background: rgba(255, 255, 255, 0.95);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image.glass {
    height: 300px !important;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    padding: 30px !important;
  }
  
  .social-media {
    transform: scale(0.8);
    margin-top: 20px;
  }
  
  .hero-content div {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-content div .btn-primary {
    margin: 0 !important;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .social-media {
    transform: scale(0.65);
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* From Uiverse.io by RiccardoRapelli */ 
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch #input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2196f3;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  z-index: 0;
  overflow: hidden;
}

.sun-moon {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: yellow;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

#input:checked + .slider {
  background-color: black;
}

#input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

#input:checked + .slider .sun-moon {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
  background-color: white;
  -webkit-animation: rotate-center 0.6s ease-in-out both;
  animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
  opacity: 0;
  transition: 0.4s;
  fill: gray;
}

#input:checked + .slider .sun-moon .moon-dot {
  opacity: 1;
}

.slider.round {
  border-radius: 34px;
}

.slider.round .sun-moon {
  border-radius: 50%;
}

#moon-dot-1 {
  left: 10px;
  top: 3px;
  position: absolute;
  width: 6px;
  height: 6px;
  z-index: 4;
}

#moon-dot-2 {
  left: 2px;
  top: 10px;
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 4;
}

#moon-dot-3 {
  left: 16px;
  top: 18px;
  position: absolute;
  width: 3px;
  height: 3px;
  z-index: 4;
}

#light-ray-1 {
  left: -8px;
  top: -8px;
  position: absolute;
  width: 43px;
  height: 43px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-2 {
  left: -50%;
  top: -50%;
  position: absolute;
  width: 55px;
  height: 55px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

#light-ray-3 {
  left: -18px;
  top: -18px;
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: -1;
  fill: white;
  opacity: 10%;
}

.cloud-light {
  position: absolute;
  fill: #eee;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
}

.cloud-dark {
  position: absolute;
  fill: #ccc;
  animation-name: cloud-move;
  animation-duration: 6s;
  animation-iteration-count: infinite;
  animation-delay: 1s;
}

#cloud-1 {
  left: 30px;
  top: 15px;
  width: 40px;
}

#cloud-2 {
  left: 44px;
  top: 10px;
  width: 20px;
}

#cloud-3 {
  left: 18px;
  top: 24px;
  width: 30px;
}

#cloud-4 {
  left: 36px;
  top: 18px;
  width: 40px;
}

#cloud-5 {
  left: 48px;
  top: 14px;
  width: 20px;
}

#cloud-6 {
  left: 22px;
  top: 26px;
  width: 30px;
}

@keyframes cloud-move {
  0% {
    transform: translateX(0px);
  }

  40% {
    transform: translateX(4px);
  }

  80% {
    transform: translateX(-4px);
  }

  100% {
    transform: translateX(0px);
  }
}

.stars {
  transform: translateY(-32px);
  opacity: 0;
  transition: 0.4s;
}

.star {
  fill: white;
  position: absolute;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  animation-name: star-twinkle;
  animation-duration: 2s;
  animation-iteration-count: infinite;
}

#input:checked + .slider .stars {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

#star-1 {
  width: 20px;
  top: 2px;
  left: 3px;
  animation-delay: 0.3s;
}

#star-2 {
  width: 6px;
  top: 16px;
  left: 3px;
}

#star-3 {
  width: 12px;
  top: 20px;
  left: 10px;
  animation-delay: 0.6s;
}

#star-4 {
  width: 18px;
  top: 0px;
  left: 18px;
  animation-delay: 1.3s;
}

@keyframes star-twinkle {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.2);
  }

  80% {
    transform: scale(0.8);
  }

  100% {
    transform: scale(1);
  }
}

/* ====== VISUAL LOADER ====== */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ====== DARK THEME FIXES ====== */
body.dark-theme #about,
body.dark-theme #tech,
body.dark-theme #projects,
body.dark-theme #contact,
body.dark-theme footer {
  background: var(--background) !important;
}

body.dark-theme .about-text h2,
body.dark-theme .about-text p,
body.dark-theme .stat-number,
body.dark-theme .stat-label,
body.dark-theme .section-header h2,
body.dark-theme .section-header p,
body.dark-theme .tech-card span,
body.dark-theme .project-info h3,
body.dark-theme .project-info p,
body.dark-theme .contact-container h2,
body.dark-theme .contact-container p,
body.dark-theme footer,
body.dark-theme .tag {
  color: var(--text-main) !important;
}

body.dark-theme .project-card,
body.dark-theme .tech-card,
body.dark-theme .project-info .btn {
  border-color: var(--glass-border) !important;
}

body.dark-theme .project-info .btn {
  color: var(--text-main) !important;
}

body.dark-theme .contact-container {
  background: var(--glass) !important;
  border: 1px solid var(--glass-border) !important;
}

body.dark-theme .card1,
body.dark-theme .card2,
body.dark-theme .card3,
body.dark-theme .card4 {
  background: var(--glass) !important;
  box-shadow: none !important;
  border: 1px solid var(--glass-border) !important;
}

body.dark-theme .card1 .instagram,
body.dark-theme .card2 .twitter,
body.dark-theme .card3 .github,
body.dark-theme .card4 .discord {
  fill: var(--text-main) !important;
}
