/* ===== Global Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
}

/* ===== Navigation ===== */
.navbar {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* Top-right alignment */
  background-color: #0d253f;
  padding: 1rem 2rem;
}

.navbar ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #0097b2;
}

/* ===== Hero Section ===== */
.hero {
  background: #f4f4f4;
  padding: 50px 40px;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

/* Hero Left Column */
.hero-left {
  flex: 1 1 25%;
  text-align: center;
  background-color: #0d253f;
  padding: 2rem;
  color: #fff;
  border-radius: 8px;
}

.hero-profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #0d253f;
  margin-bottom: 20px;
}

.hero-left h2 {
  font-size: 1.2rem;
  margin: 10px 0 15px;
  font-weight: normal;
  color: #fff;
  text-decoration: none; /* Remove underline */
}

/* Social Icons */
.social-icons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 1.5rem;
  transition: transform 0.2s, color 0.2s;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #0097b2;
}

/* Hero Right Column */
.hero-right {
  flex: 1 1 70%;
  padding: 2rem;
}

.hero-right h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0097b2;
}

.hero-right h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #0d253f;
}

.hero-right p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 20px;
  text-align: justify;
}

/* ===== Buttons ===== */
.hero-buttons,
.cta-buttons {
  display: flex;
  justify-content: center; /* Center requested buttons */
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-primary {
  background-color: #0d253f;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0d253f;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
  background-color: #fff;
  color: #0d253f;
  border: 1px solid #0d253f;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
}

.btn-secondary:hover {
  background-color: #0097b2;
}

.btn-outline {
  background: #0d253f;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #0097b2;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  background: #0d253f;
  color: #fff;
  padding: 1rem;
}

/* ===== Content ===== */
.content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  text-align: left;
}

.content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #0097b2;
}

.content h2,
.content h3 {
  margin-bottom: 1.5rem;
  color: #0d253f;
  text-decoration: none; /* Remove underline on index.html h2 */
}

.content p,
.content li {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 1rem;
}

.content ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

/* Cards & Projects */
.card, .project, .contact-socials, .contact-form {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover,
.project:hover,
.contact-socials:hover,
.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Project Buttons */
.project-buttons a {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  background-color: #0d253f;
  transition: background 0.3s ease;
}

.project-buttons a:hover {
  background-color: #0097b2;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    flex: 1 1 100%;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar {
    justify-content: center; /* Center nav links on mobile */
  }

  .navbar ul {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .contact-grid {
    flex-direction: column;
  }
}

/* ===== Remove underline from project h2 links and add hover color ===== */
.project-link {
  text-decoration: none; /* Remove underline */
}

.project-link h2 {
  color: #0d253f; /* Default color */
  transition: color 0.3s; /* Smooth hover transition */
}

.project-link:hover h2 {
  color: #0097b2; /* Hover color */
}

/* ===== Center Projects on Portfolio Page ===== */
.content {
  display: flex;
  flex-direction: column;
  align-items: center; /* center all projects horizontally */
  gap: 2rem; /* space between projects */
}

/* Make each project full width up to a max width */
.project {
  width: 100%;
  max-width: 900px; /* adjust to your preference */
  margin: 0 auto;
}

/* Center all content inside each project */
.project {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers everything inside the project */
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center; /* ensures text is centered under images */
}

/* Optional: make images responsive */
.project img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 1rem; /* center and add spacing below */
}

/* Solution Cards Grid */
.solution-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}

/* Individual Solution Card */
.solution-card {
  background: #f9f9f9;
  padding: 1.2rem 1rem 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-left: 6px solid #0097b2; /* Blue edge */
  transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.solution-card strong {
  display: block;
  margin-bottom: 0.5rem;
  color: #0d253f;
}

.solution-card p {
  margin: 0;
  color: #555;
  line-height: 1.5;
}

/* Solution cards spacing */
.solution-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Adjust spacing between cards */
  justify-content: space-between;
}

.solution-card {
  flex: 1 1 calc(33% - 20px); /* 3 cards per row with spacing */
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Call-to-action buttons */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px; /* Space between buttons */
  margin-top: 30px;
}

.cta-buttons .btn {
  display: inline-block;
  padding: 12px 25px;
  background-color: #0d253f;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.cta-buttons .btn:hover {
  background-color: #0097b2;
  color: #fff;
}

/* Optional: make buttons responsive */
@media (max-width: 768px) {
  .solution-card {
    flex: 1 1 100%;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
    text-align: center;
  }
}

/* Hero Section Layout */
.hero-container {
  display: flex;
  gap: 30px; /* space between columns */
  flex-wrap: nowrap; /* prevent wrapping on desktop */
  align-items: flex-start; /* align top of both columns */
}

.hero-left {
  flex: 0 0 35%;
  max-width: 35%;
  text-align: center;
}

.hero-right {
  flex: 0 0 65%;
  max-width: 65%;
}

/* Hero buttons styling */
.hero-buttons a {
  display: inline-block;
  padding: 12px 25px;
  margin: 10px 10px 0 0;
  text-decoration: none;
  color: #ffffff;
  border-radius: 8px;
  font-weight: 600;
  background-color: #0d253f;
  transition: background-color 0.3s ease;
}

.hero-buttons a:hover {
  background-color: #0097b2;
  color: #fff;
}

/* Optional outline button */
.btn-outline {
  border: 2px solid #0d253f;
  background-color: transparent;
  color: #0d253f;
}

.btn-outline:hover {
  background-color: #0097b2;
  color: #fff;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .hero-container {
    flex-direction: column;
    flex-wrap: wrap; /* now wrap for mobile */
  }

  .hero-left,
  .hero-right {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
    margin: 10px 0;
  }
}
