* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  height: 100vh;
  scrollbar-color: #555 #1e1e1e;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  cursor: url("img/cursor.png"), auto;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
  background-color: var(--navbar-bg);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  justify-content: flex-start;
  padding-left: 20px;
  padding-top: 9px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--navbar-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-right: 40px;
}
.nav-links a:hover::after {
  width: 100%;
  left: 0;
}
img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  text-align: center;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
  animation: appear 3.5s ease-in;
  transition: background 0.3s ease;
}

.profile-img img {
  width: 100%;
  height: 450px;
  border-radius: 10%;
  object-fit: contain;
  margin-bottom: 1.5rem;
  border: none;
  margin: 0 auto;
  text-align: center;
  margin-top: 4px;
  transform: translateY(5px);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: appear 1.5s ease-in;
}
.hero h2 {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.hero .btn {
  display: inline-block;
  background: #00ffc3;
  color: #121212;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  border-radius: 0.9rem;
  padding: 4px;
  margin-top: 9px;
  animation: bounce 1s ease infinite;
}
.hero .btn:hover {
  animation: none;
}
.btn {
  display: inline-block;
  background: #00ffc3;
  color: #121212;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
  border-radius: 0.9rem;
  padding: 4px;
  margin-top: 9px;
}

.btn:hover {
  background: #00c2ac;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Hamburger styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  margin-left: 1rem;
  padding-right: 30px;
}

.hamburger:focus {
  outline: none;
}

.line {
  width: 28px;
  height: 3px;
  background: var(--navbar-text);
  margin-bottom: 6px;
  border-radius: 2px;
  transition: all 0.3s;
}
.line:last-child {
  margin-bottom: 0;
}

.hamburger.active .line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Responsive nav menu */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-links i {
    margin-right: 6px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 220px;
    height: 100vh;
    background: var(--navbar-bg);
    flex-direction: column;
    gap: 0;
    padding-top: 80px;
    transition: left 0.3s;
    z-index: 1000;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    padding: 0;
  }
  .nav-links a {
    display: block;
    padding: 1.2rem 2rem;
    color: var(--navbar-text);
  }
  .nav-links.active {
    left: 0;
  }
  .profile-img img {
    width: 250px;
    height: 350px;
    border-radius: 10%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: none;
  }
  .logo {
    position: relative;
    z-index: 1100; /* Higher than .nav-links (z-index: 1000) to make it visible through the menu */
    background: transparent;
  }
  .container h1 {
    font-weight: bold;
    font: 2em sans-serif;
  }
  .nav-links {
    z-index: 1000;
  }
  .custom-cursor {
    opacity: 0;
  }
}
.hero {
  animation: appear 1.2s ease-in;
}
section {
  padding-top: 100px 20px;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/*about section*/
.about {
  padding-top: 100px;
  background-color: var(--about-bg);
  color: var(--text-color);
  min-height: 100vh;
  scroll-margin-top: 80px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.about-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}
.about-text {
  flex: 1;
  min-width: 280px;
}
.about-skills {
  flex: 1;
  min-width: 280px;
}
.about-skills h3 {
  font-size: 24px;
  margin-bottom: 15px;
}
.about-skills ul {
  list-style: none;
  padding: 0;
}
.about-skills li {
  background-color: #1a1a1a;
  margin: 10px 0;
  padding: 10px 15px;
  border-left: 4px solid var(--main-red);
}
.about-skills li .html5-icon {
  color: #e44d26;
  text-shadow: 0 0 8px #e44d26, 0 0 16px #e44d26;
}
.about-skills li .css3-icon {
  color: #1572b6;
  text-shadow: 0 0 8px #1572b6, 0 0 16px #1572b6;
}
.about-skills li .js-icon {
  color: #f7df1e;
  text-shadow: 0 0 8px #f7df1e, 0 0 16px #f7df1e;
}
.about-skills li .git-icon {
  color: #f34f29;
  text-shadow: 0 0 8px #f34f29, 0 0 16px #f34f29;
}
.about-skills li .mobile-icon {
  color: #0a0a0a;
  text-shadow: 0 0 8px #f44336, 0 0 16px #ff5252;
}

.custom-map-maker {
  bottom: 20px;
  color: red;
  text-shadow: 0 0 8px #5f6769, 0 0 16px #b3d9e1;
}
/* Add more as needed for your icons */

/* Example usage in HTML:
<li><i class="html5-icon fab fa-html5"></i> HTML5</li>
<li><i class="css3-icon fab fa-css3-alt"></i> CSS3</li>
<li><i class="js-icon fab fa-js"></i> JavaScript</li>
*/
/*Projects Section*/
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

/* Enlarged project cards */
.project-card {
  flex: 0 0 360px;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  text-align: left;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  object-fit: cover;
  max-height: 240px; /* taller preview image */
}

/* Responsive: stack and shrink on small screens */
@media (max-width: 768px) {
  .project-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 16px;
  }
  .project-card img {
    max-height: 180px;
  }
}
.project-card h3 {
  color: var(--text-color);
  margin-bottom: 10px;
  text-align: center;
  transition: color 0.3s ease;
}

.project-card p {
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.project-card a {
  color: #d4af37;
  font-weight: bold;
  text-decoration: underline;
}

/*Why work with me section*/
.why-work {
  background-color: var(--secondary-bg);
  color: var(--text-color);
  padding: 80px 20px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.why-work h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.why-work p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1rem;
  line-height: 1.6;
}
.why-work ul {
  list-style: none;
  padding: 0;
}
.why-work ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/*Contact Section*/
.contact-section {
  padding: 60px 20px;
  background: var(--secondary-bg);
  text-align: center;
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--text-color);
  transition: color 0.3s ease;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  padding: 15px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid var(--main-red);
  border-radius: 5px;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.contact-form button {
  padding: 8px 18px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.contact-form input::placeholder,
textarea::placeholder {
  color: #bbb;
}

/*footer*/
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2rem 1rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-direction: column;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.footer p {
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  text-align: center;
  color: var(--footer-text);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.footer-links a {
  margin: 0 10px;
  color: var(--navbar-text);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  font-size: 1rem;
  margin: 0 0.5rem;
}

.socials a {
  margin: 0 10px;
  font-size: 1.2rem;
  margin: 0 0.5rem;
}

.footer-links a,
.socials a {
  color: var(--main-red);
  position: relative;
  /* Glowing effect */
  text-shadow: 0 0 8px #0c0c0c, 0 0 16px var(--main-red),
    0 0 24px var(--main-red);
  /* Reflection effect (WebKit only) */
  -webkit-box-reflect: below 0.2em linear-gradient(transparent, #0004);
  transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover,
.socials a:hover {
  color: var(--accent-red);
  transform: translateY(-4px);
  text-shadow: 0 0 12px var(--accent-red), 0 0 24px var(--accent-red),
    0 0 36px var(--accent-red);
}

/*backtotop button*/
.backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 10px 8px;
  text-decoration: none;
  border-radius: 50%;
  font-size: 13px;
  text-align: center;
  cursor: pointer;
  animation: heartbeat 1.5s infinite;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
}
.backToTop.hidden {
  opacity: 0;
  pointer-events: none;
}
.backToTop:hover {
  background-color: var(--main-red);
}
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.95);
  }
  75% {
    transform: scale(1.05);
  }
}
button i {
  margin-right: 8px;
  font-size: 20px;
}
.scroll-indicator {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  bottom: 20px;
  opacity: 1;
  z-index: 1000;
  transition: opacity 0.5s ease;
  animation: bounce1 2s infinite;
  color: var(--main-red);
  z-index: 10;
}
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}
@keyframes bounce1 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.8;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}
img {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 25% cover 50%;
}
/*Animation*/
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-up.visible {
  animation: fadeUp 0.8s ease;
}
@keyframes fade-down {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.fade-up {
  animation: fadeUp 3.6s forwards;
}
.fade-down {
  animation: fade-down 2.6s ease forwards;
}
.fade-left {
  animation: fadeLeft 4.5s ease forwards;
}
.fade-Left.visible {
  animation: fadeleft 0.8s ease-out;
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fade-right.visible {
  animation: fadeRight 0.8s ease-out;
}

.zoom-in.visible {
  animation: zoomIn 0.8s ease-out;
}
.delay-1 {
  animation-delay: 0.8s;
}
.delay-2 {
  animation-delay: 0.4s;
}
.delay-3 {
  animation-delay: 0.6s;
}
section {
  min-height: 10vh;
  padding: 60px 20px;
}
.animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-in-out;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.nav-links a i {
  color: var(--main-red);
  /* Glowing effect */
  text-shadow: 0 0 8px var(--main-red), 0 0 16px var(--main-red),
    0 0 24px var(--main-red);
  /* Reflection effect (WebKit only) */
  -webkit-box-reflect: below 0.2em linear-gradient(transparent, #0004);
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover i {
  color: var(--accent-red);
  transform: translateY(-5px);
  text-shadow: 0 0 12px var(--accent-red), 0 0 24px var(--accent-red),
    0 0 36px var(--accent-red);
}

.nav-link.active {
  color: var(--accent-red);
  font-weight: bold;
  position: relative;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 10%;
  height: 2px;
  background: var(--main-red);
  animation: underline 1.3s ease;
}

@keyframes underline {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--navbar-text);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.theme-toggle:hover {
  background: rgba(229, 57, 53, 0.1);
  transform: scale(1.1);
}

.theme-toggle i {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--main-red);
  text-shadow: 0 0 8px var(--main-red), 0 0 16px var(--main-red);
}

.theme-toggle:hover i {
  transform: rotate(20deg);
  color: var(--accent-red);
  text-shadow: 0 0 12px var(--accent-red), 0 0 24px var(--accent-red);
}

/* Mobile responsive for theme toggle */
@media (max-width: 768px) {
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 50px;
    z-index: 1102;
  }
}

/* Example red palette */
:root {
  --main-red: #e53935;
  --accent-red: #ff5252;
  --dark-bg: #121212;
  --light-bg: #ffffff;
  --dark-secondary: #1a1a1a;
  --light-secondary: #f5f5f5;
  --dark-text: #fff;
  --light-text: #121212;
  --dark-border: #333;
  --light-border: #e0e0e0;
  --dark-card: #1c1c1c;
  --light-card: #ffffff;
}

/* Light theme variables */
[data-theme="light"] {
  --bg-color: var(--light-bg);
  --secondary-bg: var(--light-secondary);
  --text-color: var(--light-text);
  --border-color: var(--light-border);
  --card-bg: var(--light-card);
  --navbar-bg: #ffffff;
  --navbar-text: #121212;
  --hero-bg: linear-gradient(to bottom right, #f5f5f5, #e0e0e0);
  --about-bg: #fafafa;
  --footer-bg: #f8f8f8;
  --footer-text: #666;
}

/* Dark theme variables (default) */
[data-theme="dark"] {
  --bg-color: var(--dark-bg);
  --secondary-bg: var(--dark-secondary);
  --text-color: var(--dark-text);
  --border-color: var(--dark-border);
  --card-bg: var(--dark-card);
  --navbar-bg: #1a1a1a;
  --navbar-text: #fff;
  --hero-bg: linear-gradient(to bottom right, #1f1f1f, #0d0d0d);
  --about-bg: #0d0d0d;
  --footer-bg: #121212;
  --footer-text: #ccc;
}

/* About skills border */
.about-skills li {
  background-color: var(--card-bg);
  margin: 10px 0;
  padding: 10px 15px;
  border-left: 4px solid var(--main-red);
  transition: background-color 0.3s ease;
}

/* Skill icon glows (keep their natural color, but you can add a red glow if you want) */
.about-skills li .html5-icon {
  color: #e44d26;
  text-shadow: 0 0 8px #e44d26, 0 0 16px #e44d26;
}
.about-skills li .css3-icon {
  color: #1572b6;
  text-shadow: 0 0 8px #1572b6, 0 0 16px #1572b6;
}
.about-skills li .js-icon {
  color: #f7df1e;
  text-shadow: 0 0 8px #f7df1e, 0 0 16px #f7df1e;
}
.about-skills li .git-icon {
  color: #f34f29;
  text-shadow: 0 0 8px #f34f29, 0 0 16px #f34f29;
}
.about-skills li .mobile-icon {
  color: #0a0a0a;
  text-shadow: 0 0 8px #f44336, 0 0 16px #ff5252;
}

/* Navbar icon glow */
.nav-links a i {
  color: var(--main-red);
  text-shadow: 0 0 8px var(--main-red), 0 0 16px var(--main-red),
    0 0 24px var(--main-red);
  -webkit-box-reflect: below 0.2em linear-gradient(transparent, #0004);
  transition: color 0.3s, text-shadow 0.3s;
}
.nav-links a:hover i {
  color: var(--accent-red);
  transform: translateY(-5px);
  text-shadow: 0 0 12px var(--accent-red), 0 0 24px var(--accent-red),
    0 0 36px var(--accent-red);
}

/* Active nav link */
.nav-link.active {
  color: var(--accent-red);
  font-weight: bold;
  position: relative;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 10%;
  height: 2px;
  background: var(--main-red);
  animation: underline 1.3s ease;
}

/* General button style */
button,
.btn,
.hero .btn,
.contact-form button {
  background: linear-gradient(135deg, var(--main-red), var(--accent-red));
  color: var(--light-text);
  border: 2px solid var(--main-red);
  font-weight: bold;
  border-radius: 30px;
  padding: 10px 24px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(239, 236, 236, 0.15);
  letter-spacing: 1px;
  text-decoration: none;
  outline: none;
  margin-top: 10px;
}

button:hover,
.btn:hover,
.hero .btn:hover,
.contact-form button:hover {
  background: var(--main-red);
  color: #fff;
  box-shadow: 0 4px 16px rgba(229, 57, 53, 0.25);
}
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #e01313;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

/* Modal-Popup */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #aaa;
  float: right;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--text-color);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  position: relative;
  max-width: 500px;
  text-align: center;
  transform: translateY(-30px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4 ease, background-color 0.3s ease;
  color: var(--text-color);
}

.modal.show {
  display: block;
  opacity: 1;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content li {
  list-style: none;
}
