/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* Custom cursor in use */
  transition: background 0.3s, color 0.3s;
}

/* === CUSTOM CURSOR === */
#custom-cursor {
  position: fixed;
  width: 15px;
  height: 15px;
  background: #00ffc8;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease;
}

/* === LOADER === */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #0f0f0f;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}
#loader::after {
  content: "";
  width: 40px;
  height: 40px;
  border: 4px solid #00ffc8;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === PARTICLES BACKGROUND === */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
}
.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.about-text {
  flex: 1 1 300px;
}

.about-img {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-img img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-img img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
}

/* Make layout stack vertically on smaller screens */
@media screen and (max-width: 768px) {
  .about-flex {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    order: 2;
  }

  .about-img {
    order: 1;
  }
}

/* === CONTAINER === */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
}

/* === HEADER === */
header {
  background: #111;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffc8;
  letter-spacing: 1px;
  animation: fadeInLeft 1s ease-in-out;
}
@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* === NAV (Optional if needed) === */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}
nav ul li a {
  text-decoration: none;
  color: #ccc;
  font-weight: 500;
  transition: 0.3s;
}
nav ul li a:hover {
  color: #00ffc8;
}

/* === HERO === */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5rem 0;
  background: #121212;
}
.hero-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.text {
  flex: 1;
  min-width: 280px;
}
.text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.text .sub {
  color: #00ffc8;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.text p {
  color: #ccc;
  margin-bottom: 1.5rem;
}

/* === CTA BUTTON === */
.cta, button {
  padding: 0.75rem 1.5rem;
  background: #00ffc8;
  border: none;
  color: #000;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cta:hover, button:hover {
  background: #00cfa0;
}
button:hover,
button:focus,
button:active {
  transform: scale(1.05);
  box-shadow: 0 0 12px #00ffc8;
}

/* Ripple effect */
.ripple-effect {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}
@keyframes ripple {
  to { transform: scale(4); opacity: 0; }
}

/* === SOCIAL === */
.social a {
  margin-right: 1rem;
  color: #00ffc8;
  text-decoration: none;
  font-weight: bold;
}

/* === PROFILE IMAGE === */
.profile-img img {
  width: 280px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,255,200,0.2);
}

/* === UNIVERSAL SECTION FADE === */
section {
  padding: 4rem 0;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION GLOW EFFECT ON INTERACT === */
section,
.card,
.skills-list li,
.features-list li,
button,
.cta,
a,
.profile-img img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
section:hover,
.card:hover,
.skills-list li:hover,
.features-list li:hover,
button:hover,
.cta:hover,
a:hover,
.profile-img img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(0, 255, 200, 0.2);
  z-index: 1;
  position: relative;
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
  section:active,
  .card:active,
  button:active {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(0, 255, 200, 0.35);
  }
}

/* === HEADINGS & BLOCKQUOTES === */
h2, h3 {
  color: #00ffc8;
  margin-bottom: 1.5rem;
}
blockquote {
  border-left: 4px solid #00ffc8;
  padding-left: 1rem;
  color: #aaa;
  font-style: italic;
  margin-top: 1rem;
}

/* === CARDS & LISTS === */
.cards,
.skills-list,
.features-list {
  display: grid;
  gap: 1.5rem;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card,
.skills-list li,
.features-list li {
  background: #1a1a1a;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,255,200,0.05);
  color: #ddd;
}
.skills-list li strong,
.features-list li strong {
  color: #fff;
}

/* === CONTACT FORM === */
form input,
form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: #1a1a1a;
  color: #fff;
}
form button {
  background: #00ffc8;
  color: #000;
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem;
  background: #111;
  color: #666;
  font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media only screen and (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    justify-content: center;
  }
  .profile-img img {
    width: 200px;
  }
}

/* === LIGHT MODE === */
body.light-mode {
  background: #fefefe;
  color: #111;
}
body.light-mode header,
body.light-mode section,
body.light-mode footer {
  background: #fff;
  color: #111;
}
body.light-mode .card,
body.light-mode input,
body.light-mode textarea {
  background: #f0f0f0;
  color: #000;
}
.summary-boxes {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 2rem;
}

.summary-box {
  background: #1a1a1a;
  color: #ddd;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,255,200,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(0,255,200,0.3);
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #0f0f0f; /* fallback background */
  z-index: -1;
  pointer-events: none; /* so it doesn’t block clicks */
}
#particles-js canvas {
  filter: blur(0.4px) brightness(1.3);
}
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #0f0f0f;
  z-index: -1; /* MUST BE BELOW ALL OTHER ELEMENTS */
  pointer-events: none;
}
section {
  position: relative;
  z-index: 1;
}
/* === CSS Animated Background Stars === */
.animated-bg {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
  overflow: hidden;
  z-index: -1;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle 3s infinite ease-in-out alternate;
}

@keyframes twinkle {
  from { opacity: 0.3; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1.2); }
}
