:root {
  --bg-main: #0a0f2c;
  --text-main: #ffffff;
  --text-subtle: #cccccc;
  --accent-pink: #f72585;
  --accent-blue: #4cc9f0;
  --card-bg: #121840;
}

/* === GLOBAL === */
body {
  margin: 0;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* === HEADER === */
header {
  background: linear-gradient(to right, #0a0f2c, #121840);
  padding: 100px 40px 40px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

header h1 {
  font-size: 48px;
  margin: 0;
  color: #98FF98;
  text-shadow: 0 0 10px var(--text-main);
}

header p {
  color: var(--text-subtle);
  font-size: 18px;
  margin-top: 10px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin-top: 30px;
}

nav ul li a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 30px;
  transition: 0.3s ease;
}

nav ul li a:hover {
  background-color: var(--accent-blue);
  color: #000;
}

/* === SECTIONS === */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}

section h2 {
  text-align: center;
  font-size: 28px;
  color: var(--accent-blue);
  margin-bottom: 40px;
  text-shadow: 0 0 10px var(--accent-blue);
}

/* === ABOUT === */
.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  justify-content: center;
}

.about-image img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-blue);
  box-shadow: 0 0 20px var(--accent-blue);
}

.about-text {
  max-width: 600px;
}

.about-text p {
  margin-bottom: 15px;
}

.highlight {
  color: var(--accent-blue);
  font-weight: bold;
}

.connect-btn {
  display: inline-block;
  margin-top: 20px;
  background-color: var(--accent-pink);
  color: #000;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 10px var(--accent-pink);
  transition: 0.3s ease;
}

.connect-btn:hover {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 20px #fff;
}

/* === SKILLS === */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
}

.skill-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-blue);
}

.skill-card i {
  font-size: 30px;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.skill-card h3 {
  color: var(--text-main);
  font-size: 16px;
}

.skill-card i {
  font-size: 30px;
  color: #ffffff; /* ✅ Now the icon will be white */
  margin-bottom: 10px;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-blue);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project-card h3 {
  color: var(--accent-blue);
  margin: 10px 0 5px;
}

.project-card p {
  font-size: 14px;
  color: var(--text-subtle);
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card-link:hover .project-card {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(252, 250, 250, 0.2);
  transition: 0.3s;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: stretch; /* ensures all items stretch to same height */
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%; /* fill the available height */
}

.project-card p {
  flex-grow: 1; /* push content to make height consistent */
  font-size: 14px;
  color: var(--text-subtle);
}



/* === CERTIFICATES === */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.certificate-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px var(--accent-pink);
}

.certificate-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.certificate-card p {
  font-size: 14px;
  color: var(--text-subtle);
}


/* === CONTACT === */
.contact-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.contact-icons a {
  color: var(--accent-blue);
  font-size: 28px;
  text-shadow: 0 0 8px var(--accent-blue);
  transition: 0.3s ease;
}

.contact-icons a:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 12px var(--accent-pink);
  transform: scale(1.2);
}

/* === FOOTER === */
footer {
  background: #121840;
  padding: 40px 20px;
  color: var(--text-main);
  text-align: center;
}


#contact {
  background-color: #001F3F;
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 16px;
}

.contact-form button {
  background-color: #7DF9FF;
  color: #001F3F;
  border: none;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #00ced1;
}

.footer-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.footer-icons a {
  color: var(--accent-blue);
  font-size: 22px;
  text-shadow: 0 0 8px var(--accent-blue);
  transition: 0.3s ease;
}

.footer-icons a:hover {
  color: var(--accent-pink);
  text-shadow: 0 0 12px var(--accent-pink);
  transform: scale(1.15);
}


