:root {
  --bg: #0f172a;
  --text: #fff;
  --primary: #3b82f6;
  --card: #1e293b;
  --sidebar: #020617;
}

/* ================= GLOBAL ================= */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--bg), #020617);
  color: var(--text);
  scroll-behavior: smooth;
}

/* ================= SIDEBAR ================= */
.sidebar {
  width: 250px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  padding: 20px;
  position: fixed;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.sidebar h2 {
  color: var(--primary);
}

.sidebar li {
  list-style: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.sidebar li:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
}

/* ================= SOCIAL ================= */
.social {
  position: absolute;
  bottom: 60px;
}

.social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  margin: 5px 0;
}

.social img {
  width: 20px;
}

/* ================= MAIN ================= */
.main {
  
  padding: 100px 60px 40px;
}

/* ================= HEADINGS ================= */
.section h2 {
  font-size: 28px;
  position: relative;
  margin-bottom: 20px;
}

.section h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--primary);
  position: absolute;
  bottom: -5px;
  left: 0;
}

h2, #typing, a {
  color: var(--primary);
}

/* ================= SKILLS ================= */
#skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  width: 120px;
  height: 120px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
}

.skill-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.skill-card p {
  font-size: 14px;
  margin: 0;
  color: var(--text);
}

.skill-card:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  background: var(--primary);
}

.skill-card:hover p {
  color: white;
}

/* ================= PROJECTS ================= */
#projects-container div {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  padding: 15px;
  margin: 15px 0;
  border-radius: 12px;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

#projects-container div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* ================= CONTACT FORM ================= */
form input, form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(30, 41, 59, 0.7);
  color: var(--text);
}

form input:focus, form textarea:focus {
  border: 1px solid var(--primary);
}

form button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  color: white;
  transition: 0.3s;
}

form button:hover {
  transform: scale(1.03);
}

/* ================= SETTINGS BUTTON ================= */
.settings {
  position: fixed;
  bottom: 25px;
  right: 25px;
  cursor: pointer;
  font-size: 28px;
  background: var(--card);
  padding: 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 2000;   /* important */
}

.settings:hover {
  transform: scale(1.1);
  background: var(--primary);
}

/* Settings dropdown */
.menu {
  display: none;
  position: absolute;
  bottom: 60px;
  right: 0;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px;
  border-radius: 12px;
  width: 180px;
  z-index: 9999;   /* makes color options visible */
}

.menu.show {
  display: block;
}
/* ================= COLOR OPTIONS ================= */
.color-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.color-options span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-block;
}

/* ================= HEART SPARK ================= */
.spark {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: rotate(45deg);
  pointer-events: none;
  opacity: 0.9;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.spark::before {
  top: -3px;
  left: 0;
}

.spark::after {
  left: -3px;
  top: 0;
}

/* ================= RESUME BUTTON ================= */
.resume-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 18px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.resume-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ================= ANIMATION ================= */
.section {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  body {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
  }

  .sidebar li {
    margin: 5px 10px;
  }

  .social {
    position: relative;
    bottom: 0;
    margin-top: 10px;
  }

  .main {
    margin-left: 0;
    padding: 20px;
  }

  .section {
    padding: 30px 0;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 20px;
  }

  #skills-container {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .skill-card {
    width: 100px;
    height: 100px;
  }

  .skill-card img {
    width: 30px;
    height: 30px;
  }

  #projects-container img {
    width: 100%;
  }

  form input,
  form textarea {
    width: 100%;
  }

  .settings {
    bottom: 15px;
    right: 15px;
  }
}

/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 30px;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary);
}

/* Three line icon */
.hamburger {
  font-size: 28px;
  cursor: pointer;
  color: white;
}

.hamburger:hover {
  color: var(--primary);
}

/* Hidden menu */
.nav-links {
  position: absolute;
  top: 70px;
  right: 30px;
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);

  list-style: none;
  padding: 20px;
  border-radius: 12px;

  display: none;
  flex-direction: column;
  gap: 15px;
  width: 180px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-links.show {
  display: flex;
}

.nav-links li {
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.nav-links li:hover {
  color: var(--primary);
  transform: translateX(5px);
}

/* Social icons */
.social-top {
  position: fixed;
  top: 85px;
  right: 30px;

  display: flex;
  gap: 15px;
}

.social-top img {
  width: 24px;
  height: 24px;
}

/* Main section spacing */
.main {
  padding: 110px 50px 40px;
}

/* ================= LAPTOP FIX ================= */
@media (max-width: 1200px) {

  .nav-links {
    gap: 15px;
  }

  .nav-links li {
    font-size: 16px;
  }

  .main {
    padding: 100px 30px;
  }
}

