
body {
  font-family: "Segoe UI",-apple-system,Arial,Verdana,sans-serif;
  background: #020617;
  color: white;
  transition: 0.3s;
  margin-top: 0px;
}

/* SWITCH */
.switch {
  position: relative;
  width: 50px;
  height: 25px;
}

/* Hide default checkbox */
.switch input {
  display: none;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  background: #0f172a;
  border: 1px solid #06b6d4;
  border-radius: 50px;
  width: 100%;
  height: 100%;
  transition: 0.4s;
}

/* Circle */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #06b6d4;
  border-radius: 50%;
  transition: 0.4s;
}

/* Toggle ON */
input:checked + .slider {
  background: #e2e8f0;
}

input:checked + .slider::before {
  transform: translateX(24px);
  background: #0f172a;
}

/*----------- 🌞 LIGHT MODE -----------*/

/* Body */
body.light {
  background: #f8fafc;
  color: black;
}

/* Cards */
body.light .project-card,
body.light .skill-card {
  background: #ffffff;
}

/* Navbar */
body.light .navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background: #ffffffbd;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
body.light .logo-img {
  width: 100px;
  content: url("assets/logo-light.png");
  transition: 0.3s;
}

/* LINKS */
body.light .nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* LINK STYLE */
body.light .nav-links a {
  position: relative;
  color: #000000;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

/* 🔥 UNDERLINE ANIMATION */
body.light .nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #06b6d4;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

body.light .nav-links a:hover::after {
  width: 100%;
}

/* HOVER COLOR */
body.light .nav-links a:hover {
  color: #06b6d4;
}

/* ACTIVE LINK */
body.light .nav-links a.active {
  color: #06b6d4;
}

body.light .nav-links a.active::after {
  width: 100%;
}

/* SCROLL EFFECT (optional glow) */
body.light .navbar.scrolled {
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.2);
}


/*----------- 🌙 DARK MODE -----------*/

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* LOGO */
nav h2 {
    margin: 0px 0px;
    align-content: center;
}

/* Default (Dark Mode) */
.logo-img {
  width: 100px;
  content: url("assets/logo-dark.png");
  transition: 0.3s;
}

/* LINKS */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* LINK STYLE */
.nav-links a {
  position: relative;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

/* 🔥 UNDERLINE ANIMATION */
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #06b6d4;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* HOVER COLOR */
.nav-links a:hover {
  color: #06b6d4;
}

/* ACTIVE LINK */
.nav-links a.active {
  color: #06b6d4;
}

.nav-links a.active::after {
  width: 100%;
}

/* SCROLL EFFECT (optional glow) */
.navbar.scrolled {
  box-shadow: 0 5px 20px rgba(6, 182, 212, 0.5);
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px;
}

/* TEXT */
.hero-text {
  max-width: 500px;
}

.hero-text span {
  color: #06b6d4;
}

.hero-text h2 {
  color: #22c55e;
  height: 30px;
}

.status p {
  margin: 5px 0;
}

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #06b6d4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
body.light .btn {
  color: black;
}
.btn:hover {
  background: #0891b2;
}

.outline {
  background: transparent;
  border: 1px solid #06b6d4;
}

/* SOCIAL */
.socials {
  margin-top: 20px;
}

.socials a {
  margin-right: 15px;
  color: #06b6d4;
  text-decoration: none;
}

/* IMAGE */
.hero-image img {
  width: 280px;
  border-radius: 50%;
  border: 3px solid #06b6d4;
  animation: float 3s ease-in-out infinite;

  /* GLOW */
  box-shadow: 0 0 25px #06b6d4;
}

/* FLOAT */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    margin-top: 30px;
  }
}

/* BUTTONS */
button {
  padding: 10px 20px;
  background: #06b6d4;
  border: none;
  color: white;
  cursor: pointer;
}

.outline {
  background: transparent;
  border: 1px solid #06b6d4;
}

/* SECTIONS */
section {
  padding: 60px;
  text-align: center;
}

#about {
  padding: 80px 20px;
}

/* CONTAINER */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1100px;
  margin: auto;
}

/* TEXT */
.about-text {
  flex: 1;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-text ul {
  padding-left: 20px;
}

.about-text li {
  list-style: none; 
  margin-bottom: 10px;
}

/* IMAGE */
.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 80%;
  max-width: 350px;
  animation: float 3s ease-in-out infinite;
}

body.light .about-image img {
  width: 80%;
  max-width: 350px;
  content: url("assets/about-img-light.webp");
  animation: float 3s ease-in-out infinite;
}

/* FLOAT ANIMATION */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    width: 60%;
  }
}

/* SKILLS */
#skills {
  padding: 80px 20px;
  text-align: center;
}

#skills h2 {
  margin-bottom: 40px;
}

/* Container */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: auto;
}

/* Glass Card */
.skill-card {
  background: rgba(96, 138, 199, 0.3);
  border-radius: 15px;
  padding: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  transition: 0.3s;
  cursor: pointer;
}

/* Icon */
.skill-card img {
  width: 50px;
  margin-bottom: 10px;
}

/* Text */
.skill-card p {
  margin: 0;
  font-size: 14px;
}

/* Hover Effect 🔥 */
.skill-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.3);
  border: 1px solid #06b6d4;
  filter: drop-shadow(0 0 10px #06b6d4);
}

/* PROJECT */
#projects {
  padding: 80px 20px;
  text-align: center;
}

#projects h2 {
  margin-bottom: 50px;
}

/* GRID */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* CARD */
.project-card {
  background: #0f172a;
  border-radius: 15px;
  overflow: hidden;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.05);
}

/* HOVER CARD */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

/* IMAGE */
.project-img {
  overflow: hidden;
}

.project-img img {
  width: 100%;
  transition: 0.5s;
}

body.light .dark-img {
  width: 100%;
  content: url("assets/project2-dark.png");
  transition: 0.5s;
}

/* 🔥 IMAGE ZOOM */
.project-card:hover img {
  transform: scale(1.1);
}

/* CONTENT */
.project-content {
  padding: 20px;
  text-align: left;
}

.project-content h3 {
  margin: 10px 0;
}

.tech {
  color: #06b6d4;
  font-size: 14px;
}

/* LIST */
.project-content ul {
  padding-left: 18px;
  margin: 10px 0;
}

.project-content li {
  margin-bottom: 5px;
}

/* BUTTONS */
.project-buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.project-buttons a {
  padding: 8px 15px;
  background: #06b6d4;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: 0.3s;
}

body.light .project-buttons a {
  color: black;
}

.project-buttons a:hover {
  background: #0891b2;
}

.project-buttons .outline {
  background: transparent;
  border: 1px solid #06b6d4;
}

.project-buttons .outline:hover {
  background: #06b6d4;
}

/* WHY */
.why-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* CONTACT */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  margin: auto;
}

input, textarea {
  padding: 10px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
}