/* Reset & Base Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  animation: fadeIn 1s ease-in forwards;
  transition: background-color 0.3s, color 0.3s;
  line-height: 1.6;
}

body.light-theme {
  background-color: #f0f2f5;
  color: #333;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Header */
header {
  background: linear-gradient(135deg, #1e1e1e, #2c2c2c);
  padding: 2.2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  margin-bottom: 2.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-theme header {
  background: linear-gradient(135deg, #fff, #e6f0ff);
  color: #333;
}

header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #00e6e6;
  margin-bottom: 0.4rem;
  transition: color 0.3s ease;
}

body.light-theme header h1 {
  color: #007bff;
}

header p {
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  font-weight: 500;
  word-break: break-word;
  overflow-wrap: anywhere;
}

header a {
  color: #00e6e6;
  text-decoration: none;
  font-weight: 600;
  margin: 0 0.65rem;
  transition: color 0.3s ease;
}

body.light-theme header a {
  color: #007bff;
}

header a:hover {
  color: #66ffff;
}

/* Social Links */
.social-links {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

/* Section Titles */
.cv-section {
  margin-bottom: 2.8rem;
}

.cv-section h2 {
  font-size: 1.95rem;
  color: #00e6e6;
  border-bottom: 3px solid #00e6e6;
  padding-bottom: 0.55rem;
  margin-bottom: 1.6rem;
  font-weight: 700;
  transition: color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .cv-section h2 {
  color: #007bff;
  border-color: #007bff;
}

/* CV Items */
.cv-item {
  background: #1e1e1e;
  padding: 1.6rem 2rem;
  border-radius: 12px;
  margin-bottom: 1.8rem;
  box-shadow: 0 0 9px rgba(0, 230, 230, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cv-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 22px rgba(0, 230, 230, 0.4);
}

body.light-theme .cv-item {
  background: #fff;
  color: #333;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.18);
}

body.light-theme .cv-item:hover {
  box-shadow: 0 12px 22px rgba(0, 123, 255, 0.4);
}

/* CV Item Titles */
.cv-item h3 {
  font-size: 1.45rem;
  color: #00e6e6;
  margin-bottom: 0.9rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

body.light-theme .cv-item h3 {
  color: #007bff;
}

/* CV Item Text */
.cv-item p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* Lists */
.cv-section ul {
  list-style: disc inside;
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 500;
}

.cv-section ul li {
  margin-bottom: 0.55rem;
}

/* Links */
.cv-item a {
  color: #00e6e6;
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.3s ease;
}

body.light-theme .cv-item a {
  color: #007bff;
}

.cv-item a:hover {
  color: #66ffff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.25rem;
  background: #1e1e1e;
  color: #e0e0e0;
  border-radius: 10px;
  margin-top: 3.2rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-theme footer {
  background: #fff;
  color: #333;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  header h1 {
    font-size: 2.2rem;
  }
  .cv-section h2 {
    font-size: 1.6rem;
  }
  .cv-item {
    padding: 1.2rem 1.3rem;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.8rem;
  }
  .cv-section h2 {
    font-size: 1.4rem;
  }
}


#theme-toggle-btn {
  background: linear-gradient(135deg, #00e6e6, #008f8f);
  border: none;
  outline: none;
  color: #121212;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 230, 230, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  font-size: 1rem;
  user-select: none;
}

#theme-toggle-btn:hover {
  background: linear-gradient(135deg, #00ffff, #00b3b3);
  box-shadow: 0 6px 14px rgba(0, 255, 255, 0.7);
  transform: translateY(-2px);
}

#theme-toggle-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 230, 230, 0.4);
}
