* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* BODY DEFAULT (DARK) */
body {
  color: white;
  background: #0f172a;
  transition: background 0.6s ease, color 0.6s ease;
}

html,
body {
  overflow-x: hidden;
}

/* LIGHT MODE BACKGROUND IMAGE */
body.light {
  color: #111;
  background: url("background.jpg") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
}

/* LIGHT MODE OVERLAY */
body.light::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
  z-index: -1;
}

body.light #particles-js {
  display: none;
}

@media(max-width: 768px) {
  body.light {
    background: url("background.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }

}

.section {
  background: transparent;
}

/* GLASS CARDS */
.skills-category,
.project-card,
.contact-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* LIGHT MODE OVERLAY */
body.light::before {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

/* PARTICLES */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* NAVBAR */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 15px 8%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s ease;
}


.logo {
  font-size: 22px;
  font-weight: bold;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu {
  display: none;
  cursor: pointer;
}

/* LIGHT MODE NAVBAR */
body.light header {
  background: whitesmoke;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light nav a {
  color: #111;
}

@media (max-width: 768px) {

  header {
    padding: 12px 20px;
  }

  nav {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 200px;
    background: rgba(0, 0, 0, 0.6);
    flex-direction: column;
    display: none;
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 10px 0;
  }

  .menu {
    display: block;
  }

  /* LIGHT MODE MOBILE NAV */
  body.light nav {
    background: whitesmoke;
  }

}

/* SECTIONS */
.section {
  min-height: 100vh;
  padding: 90px 20px 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
}

.title {
  font-size: 32px;
  margin-bottom: 20px;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  text-align: left;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  z-index: 1;
  position: relative;
}

.hero-text {
  flex: 1 1 600px;
  max-width: 650px;
  animation: fadeInLeft 1s ease forwards;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  color: #38bdf8;
}

.typing {
  font-size: 24px;
  margin: 15px 0 25px;
  color: #38bdf8;
  font-weight: 600;
  min-height: 28px;

}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  opacity: 0.9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* BUTTONS */
.buttons {
  margin: 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #38bdf8;
  color: #fff;
}

.btn-primary-hire {
  background-color: #38bdf8;
  color: #fff;
  border: none;
}

.btn-primary-hire:hover {
  background-color: #0ea5e9;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #6a0dad;
}

/* SOCIAL ICONS */
.socials {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.socials a {
  font-size: 22px;
  color: #fff;
  transition: all 0.3s ease;
}

.socials a:hover {
  color: #38bdf8;
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.2s;
}

.animate-fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 0.6s;
}

.animate-fade-in-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 1s;
}

.animate-fade-in-delay-3 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 1.4s;
}

.animate-fade-in-delay-4 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
  animation-delay: 1.8s;
}

/* KEYFRAME */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.buttons .btn {
  animation: bounceIn 0.8s forwards;
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  60% {
    transform: scale(1.1);
    opacity: 1;
  }

  80% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* SOCIALS */
.socials {
  margin-top: 20px;
}

.socials a {
  font-size: 22px;
  margin: 0 10px;
  color: inherit;
}

body.light .hero h1,
body.light .hero-description,
body.light nav a,
body.light .logo,
body.light .title,
body.light p,
body.light h3,
body.light h4 {
  color: #000;
  text-shadow: none;
}

body.light .socials a {
  color: #000;
}

body.light .typing {
  color: #b41a06;
}

/* ABOUT SECTION  */

.about-section {
  width: 90%;
  max-width: 850px;
  margin: 40px auto;
  padding: 35px 28px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: white;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.about-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

/* Title */
.about-section .title {
  margin-bottom: 18px;
  font-size: 26px;
  color: #38bdf8;
}

/* Text */
.about-section p {
  line-height: 1.7;
  font-size: 15.5px;
  opacity: 0.95;
}

/* Light mode */
body.light .about-section {
  background: rgba(255, 255, 255, 0.6);
  color: #111;
}

.section {
  min-height: auto;
  padding: 70px 20px;
}

/*  MOBILE */

@media (max-width: 768px) {

  .about-section {
    width: 92%;
    padding: 28px 20px;
    margin: 30px auto;
  }

  .about-section .title {
    font-size: 22px;
  }

  .about-section p {
    font-size: 14.5px;
  }

}

/* SKILLS */
.skills-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-card {
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 900px;
}

.skills-category {
  padding: 25px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);

  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);

  text-align: center;
}

.skills-category h3 {
  margin-bottom: 20px;
  color: #38bdf8;
}

.skills-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-card {
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* PROJECTS */
.project-card {
  width: 420px;
  padding: 30px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.project-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.project-card ul {
  padding-left: 20px;
  line-height: 1.7;
}

.project-card li {
  margin-bottom: 8px;
}

.project-card {
  text-align: left;
  width: 420px;
  padding: 30px;

}

#projects {
  padding-top: 120px;
  padding-bottom: 80px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  width: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

#projects .section-title {
  margin-bottom: 40px;
}

/* Project list */
.project-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.project-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.project-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #38bdf8;
}

.projects-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 80px;
}

#projects .title {
  margin-top: 40px;
}

#projects {
  padding-top: 180px;
}

/* MOBILE RESPONSIVE  */

@media (max-width: 768px) {

  #projects {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .projects-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .projects-grid {
    gap: 25px;
    margin-top: 40px;
  }

  .project-card {
    width: 100%;
    padding: 20px;
  }

  .project-card h3 {
    font-size: 18px;
  }

  .project-card li {
    font-size: 14px;
  }
}


/*  iphones */
@media (max-width: 480px) {

  .project-card {
    padding: 18px;
    border-radius: 12px;
  }

  .project-card h3 {
    font-size: 17px;
  }

  .project-list li {
    font-size: 13.5px;
    line-height: 1.5;
  }

}

/* CONTACT */
.contact-container {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 320px;
  padding: 25px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 8px;
  outline: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 18px;
}

.contact-info i {
  margin-right: 10px;
  color: #38bdf8;
}

/* MOBILE */
@media(max-width:768px) {

  nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    display: none;
    padding: 20px;
  }

  nav.show {
    display: flex;
  }

  .menu {
    display: block;
  }

  .hero h1 {
    font-size: 30px;
  }
}

.about-text {
  font-size: 40px;
  line-height: 1.5;
  max-width: 900px;
  font-family: "Roboto", sans-serif;
}

/* NAVBAR LIGHT MODE */
body.light header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light nav a {
  color: #111;
}

body.light .logo {
  color: #111;
}

body.light .title {
  color: #0f172a;
}

body.light .skills-category,
body.light .project-card,
body.light .contact-box {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* SKILL CARDS TEXT */
body.light .skill-card {
  color: #111;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

/* BUTTON COLOR */
body.light .btn {
  background: #2563eb;
  color: white;
}

body.light .btn:hover {
  background: #1d4ed8;
}

/* ABOUT TEXT */
body.light .about-text {
  color: #111;
  opacity: 0.9;
}

/* NAV LINK HOVER EFFECT */
nav a {
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #38bdf8;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* CUSTOM FOOTER */
.custom-footer {
  background: rgba(5, 1, 26, 0.25);
  color: #fff;
  text-align: center;
  padding: 25px 15px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  transition: all 0.5s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.custom-footer p {
  margin: 5px 0;
}

.custom-footer p:last-child {
  font-style: italic;
  color: #ffd700;
}

/* LIGHT THEME FOOTER */
body.light .custom-footer {
  background-color: transparent;
  color: #111;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

body.light .custom-footer p:last-child {
  color: #d10404;
}

/* RESPONSIVE FOOTER */
@media (max-width: 600px) {
  .custom-footer {
    font-size: 13px;
    padding: 20px 10px;
  }
}