/* General Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #000;
  color: #fff;
}

html {
  /* Adjusted scroll-padding-top to roughly match your navbar height */
  /* Please verify the actual height of your .navbar in browser dev tools and update this value for perfect alignment */
  scroll-padding-top: 80px; /* Changed from 100px */
  scroll-behavior: smooth;
}

/* Section spacing */
section {
  /* Reduced top/bottom padding for all sections to decrease overall space */
  padding: 30px 80px; /* Changed from 60px 80px */
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #ff3366;
}

.highlight {
  color: #ff3366;
  font-weight: bold;
}

/* Resume Download Link */
.download-line {
  margin-top: 20px;
  font-size: 1.05rem;
}

.download-line a {
  color: #ff3366;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #ff3366;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.3s, color 0.3s;
}

.download-line a:hover {
  background-color: #ff3366;
  color: #fff;
}

/* Navigation - Keep only one fixed/sticky nav bar definition in your HTML */
/* This 'nav' rule might be redundant if you're using '.navbar' for your main header */
/* If you use <nav> in your HTML directly for the main header, ensure it has the .navbar class */
nav {
  display: flex;
  justify-content: flex-end;
  background-color: #000;
  padding: 20px 80px; /* This padding contributes to its height if this 'nav' is active */
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  text-decoration: none;
  color: #00bfa6;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #009688;
}

.nav-links a.active {
  color: #ff3366 !important;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90vh;
  background-color: #000;
  color: #fff;
  padding: 0 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h3 {
  font-weight: normal;
  color: gray;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 2.8rem;
  margin: 0;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 90%;
}

.hero-image img {
  height: 100%;
  object-fit: contain;
  border-radius: 0;
}

/* About Section */
.about {
  background-color: #111;
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.about-content img {
  width: 280px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.details {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.details p {
  margin-bottom: 10px;
}

.details strong {
  color: #ff3366;
}

/* Projects Section */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-top: 10px; /* This padding-top is specific to the grid, not the section */
}

/* Project Card */
.project-card {
  background: #111;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 15px rgba(0, 191, 166, 0.1);
  border: 1px solid #222;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 191, 166, 0.25);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card button {
  margin-top: 10px;
  background-color: #00bfa6;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.project-card button:hover {
  background-color: #009688;
}

.small-image2 {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.small-image1 .project-terminal-img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 191, 166, 0.2);
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cert-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 25px rgba(0, 191, 166, 0.4);
}

.cert-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.cert-card:hover img {
  transform: scale(1.05);
}

.cert-card p {
  margin-top: 15px;
  font-weight: bold;
  color: #fff;
  font-size: 1rem;
}

.cert-card a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: transparent;
  border: 2px solid #00bfa6;
  color: #00bfa6;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-card a:hover {
  background-color: #00bfa6;
  color: #000;
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  background-color: #111;
  color: #fff;
  padding: 40px 80px 60px;
}

.contact-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.contact-info {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: 0;
}

.contact-info h2 {
  font-size: 2rem;
  color: #ff3366;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.text-link {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.text-link:hover {
  color: #ff3366;
  text-decoration: underline;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ff3366;
}

.icon-img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s;
}

.social-links a:hover .icon-img {
  transform: scale(1.2);
  filter: brightness(1.5);
}

/* Resume Button */
.resume-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  color: #fff;
  background-color: #ff3366;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  text-align: center;
  width: fit-content;
}

.resume-btn:hover {
  background-color: #ff5588;
}

/* Contact Form Styles */
.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 16px;
  font-size: 1rem;
  background-color: #222;
  border: none;
  border-radius: 8px;
  color: #fff;
}

.contact-form button {
  padding: 12px;
  font-size: 1rem;
  background-color: #ff3366;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #ff5588;
}

/* Footer */
.contact-footer {
  text-align: center;
  margin-top: 40px;
  color: #aaa;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    justify-content: center;
  }

  .hero,
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-image img,
  .about-content img {
    max-width: 80%;
  }
}

/* Icon Links for Contact Section */
.icon-links {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  align-items: center;
}

.icon-img {
  width: 24px;
  height: 24px;
  filter: brightness(1) invert(0);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.icon-img:hover {
  transform: scale(1.2);
  filter: brightness(1.5) saturate(1.2);
}

/* Branding Logo in Nav (Top Left) */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 80px;
  background-color: #000;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #fff;
}

.brand-logo .dot {
  color: #ff3366;
}

.navbar .nav-links ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.navbar .nav-links ul li a {
  text-decoration: none;
  color: #00bfa6;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.navbar .nav-links ul li a:hover {
  color: #009688;
}

/* This rule is duplicated, kept for completeness, but ensure your nav links get it */
.nav-links a.active {
  color: #ff3366 !important;
}