/* =====================
   CSS VARIABLES
===================== */
:root {
  --primary-color: #00bcd4;
  --secondary-color: #222;
  --text-light: #ffffff;
  --text-dark: #333;
  --card-bg: #ffffff;
}

/* =====================
   GLOBAL STYLES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;

  background: linear-gradient(-45deg, #00bcd4, #ff4081, #3f51b5, #4caf50);
  background-size: 400% 400%;
  animation: gradientBG 12s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

a {
  color: var(--text-light);
  text-decoration: none;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 1rem 2rem;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =====================
===================== */
/* Global headings – default white, except where overridden */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    text-align: center;
}

/* =====================
   HERO SECTION
===================== */
header {
  padding: 6rem 2rem;
  background: rgba(0,0,0,0.45);
  text-align: center;
  color: var(--text-light);
}

header h1,
header p {
  text-align: center;
}

header p {
  font-size: 1.2rem;
  margin-top: 1rem;
}

/* =====================
   SECTIONS
===================== */
section {
  padding: 4rem 2rem;
  text-align: center;
}

section p {
  margin: 0.8rem 0;
  color: var(--text-light);
}

/* =====================
   ABOUT SECTION
===================== */
.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-content img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  border: 4px solid white;
}

/* =====================
   SKILLS SECTION
===================== */
#skills ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

#skills li {
  background: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
}

/* =====================
   PROJECTS SECTION
===================== */
.project {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  margin: 0 auto 2rem auto;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Project titles should be black */
.project h3 {
    color: #000;
}

.project p {
  color: #555;
}

.project-video {
  width: 100%;
  margin-top: 1rem;
  border-radius: 8px;
}

/* =====================
   RESUME SECTION
===================== */
#resume {
  text-align: center;
}

#resume a {
  background: var(--primary-color);
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  display: inline-block;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

#resume a:hover {
  background: #0097a7;
}

/* =====================
   CONTACT SECTION
===================== */
#contact {
  text-align: center;
}

#contact p {
  margin: 0.6rem 0;
  color: var(--text-light);
}

/* =====================
   FOOTER
===================== */
footer {
  background: var(--secondary-color);
  color: #aaa;
  padding: 1rem;
  text-align: center;
}

/* =====================
   MOBILE RESPONSIVE
===================== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--secondary-color);
    position: absolute;
    top: 70px;
    left: 0;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    text-align: center;
    padding: 0.8rem 0;
  }

  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .about-content img {
    width: 200px;
    height: 200px;
  }
}
