:root {
  --primary: #1f355b;
  --bg: #ffffff;
  --text: #111;
  --dark-bg: #0d1117;
  --dark-text: #e6e6e6;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.dark {
  background: var(--dark-bg);
  color: var(--dark-text);
}

.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #3a75c4, #1f355b);
  color: #fff;
}

.hero .btn {
  margin-top: 20px;
  background: #fff;
  color: #000;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.hero-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0px 5px 20px rgba(0,0,0,0.2);
}

/* Mobile responsiveness */
@media(max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
  }
}


section {
  padding: 70px 12%;
}

.btn {
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
}

.skills-grid, .project-container, .cert-carousel {
  display: grid;
  gap: 20px;
}

.skills-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.skills-grid div, .cert {
  padding: 15px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  text-align: center;
}

.project-container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.project-card {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.cert-carousel {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.get-in-touch {
  text-align: center;
  padding: 70px 0;
  background-color: #111; /* optional, ensures icons are visible */
}

.get-in-touch h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #fff;
}

.get-in-touch p {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: .8;
  color: #ddd;
}

.contact-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-item svg {
  width: 20px;
  height: 20px;
  fill: currentColor; /* inherits text color */
}

.contact-item.whatsapp { background: #25D366; }
.contact-item.email { background: #444; }
.contact-item.linkedin { background: #0077B5; }
.contact-item.github { background: #000; }

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
}


footer {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #fff;
}

#whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
