:root {
  --primary-color: #d15252;
  --secondary-color: #a83232;
  --text-color: #ffffff;
  --bg-color: #000000;
  --card-bg: #111111;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: var(--bg-color);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #222;
  transition: top 0.3s ease-in-out;
}

.logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 50%;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.nav-links li a {
  font-weight: 500;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links li a.active,
.nav-links li a:hover {
  color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  padding: 80px 30px;
  background-color: var(--bg-color);
}

.hero-left {
  flex: 1 1 300px;
  text-align: center;
}

.profile-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--primary-color);
  padding: 10px;
  box-shadow: 0 0 20px rgba(213, 42, 42, 0.5);
}

.hero-right {
  flex: 1 1 400px;
  padding: 20px;
}

.first-name, .last-name {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.role {
  color: var(--primary-color);
  font-weight: 600;
}
.resume-button {
  margin-top: 15px;
}

/* ===== Social Icons ===== */
.social-icons {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  justify-content: left;
  flex-wrap: wrap;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: translateY(-5px) scale(1.1);
}

/* ===== Sections ===== */
.section {
  padding: 80px 30px;
  text-align: center;
  background-color: var(--bg-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section + .section {
  margin-top: 40px;
}

.section:nth-child(even) {
  background-color: #0d0d0d;
}

.section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: 20px;
  grid-template-columns:  repeat(auto-fit,minmax(240px, 1fr));
  margin-top: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== Cards ===== */
.card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #222;
  text-align: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

/* ===== Images & Links ===== */
.certificate-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.card:hover .certificate-img {
  transform: scale(1.03);
}

.project-link {
  padding: 6px 12px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.project-link:hover {
  background-color: var(--secondary-color);
}

/* ===== Contact Form ===== */
.contact-form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  background-color: #111;
  color: white;
  border: 1px solid #333;
  border-radius: 4px;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
}

/* ===== Contact Icons ===== */
.contact-options {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: white;
}

.contact-icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.contact-link:hover .contact-icon {
  transform: scale(1.1);
}

/* ===== Footer ===== */
footer {
  padding: 20px;
  background-color: var(--card-bg);
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-2,
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    flex-direction: column;
    padding: 50px 20px;
  }

  .hero-right {
    text-align: center;
  }

  .first-name, .last-name {
    font-size: 2.2rem;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
