/* ✅ Fix navigation anchor jump */
:root {
  scroll-padding-top: 120px;
}

/* GENERAL STYLING */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #f0f4f8;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ✅ Header scrolls with page */
header {
  background: linear-gradient(135deg, #002b5b, #004e92);
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Profile image */
.profile-container {
  margin-top: 20px;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffffcc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

header h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1px;
  animation: slideDown 1s ease;
}

header p {
  margin-top: 10px;
  font-size: 1.1rem;
}

nav {
  margin-top: 15px;
}

nav a {
  color: #ffffffcc;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: #fff;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: #ffffff;
}

section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

section:nth-of-type(even) {
  background: #ffffff;
  border-radius: 8px;
}

h2 {
  color: #002b5b;
  font-size: 2rem;
  margin-bottom: 20px;
  animation: colorPulse 2s infinite alternate;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 15px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

ul li:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

a {
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

a:hover {
  color: #004e92;
}

footer {
  background: #002b5b;
  color: #fff;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

/* FADE-IN SECTION CLASS */
.fadeInActive {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* DARK MODE STYLES */
body.dark {
  background-color: #1e1e2f;
  color: #e0e0e0;
}

body.dark header {
  background: linear-gradient(135deg, #0a0a1f, #19193a);
}

body.dark nav a {
  color: #ccc;
}

body.dark nav a:hover {
  color: #fff;
}

body.dark section {
  background: #2a2a3d;
  border-radius: 8px;
}

body.dark ul li {
  background: #33354a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

body.dark a {
  color: #66ccff;
}

body.dark footer {
  background: #0a0a1f;
}

/* DARK MODE TOGGLE BUTTON */
.dark-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #fff;
  color: #002b5b;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark-toggle:hover {
  background: #ddd;
}

/* CONTACT FORM STYLING */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077cc;
  outline: none;
  background: #eef8ff;
}

.contact-form button {
  padding: 12px;
  font-size: 1rem;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #005fa3;
}

/* ICON STYLE */
i {
  margin-right: 8px;
  color: #0073e6;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes colorPulse {
  from {
    color: #002b5b;
  }
  to {
    color: #0066cc;
  }
}