/* Global Styles */
html, body {
  font-family: 'Poppins', sans-serif;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
}

/* Main Content Wrapper */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  overflow: hidden;
}

/* Hero Section - Full Screen Fit */
.hero {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #1e1e2f, #32324d);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  min-height: 40vh;
  height: 40vh;
  max-height: 50vh;
  box-sizing: border-box;
}

.hero h1 {
  font-size: 2.8rem;
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
}

/* Profile Image */
.profile-image img {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  max-width: 150px;
  width: 100%;
}

.profile-image img:hover {
  transform: scale(1.05);
}

/* Flexbox Layout for Main Sections */
.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 200px);
}

/* Clickable Sections - Index Page */
.clickable-sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  flex-shrink: 0;
  margin-bottom: 10px;
}

.clickable-sections .project-card {
  background: #1e1e2f;
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 100%;
  max-width: 250px;
  min-height: 250px;
  height: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.clickable-sections .project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* Consistent Project Cards */
.project-card {
  font-family: 'Poppins', sans-serif;
  background: #1e1e2f;
  color: white;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 20px;
  width: 100%;
  max-width: 350px;
  min-height: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.project-card .card-title {
  margin-bottom: 10px;
}

.project-card h4,
.project-card h3 {
  color: #fff;
  font-size: 1.4em;
}

/* Default image styles (logos + certs) */
.project-card img {
  max-height: 100px;
  margin-bottom: 15px;
  border-radius: 5px;
}

/* Only certificate images get hover zoom */
.project-card .certificate-img {
  transition: transform 0.3s ease;
}

.project-card .certificate-img:hover {
  transform: scale(3.0);
  z-index: 10;
  position: relative;
}

/* Links and buttons */
.project-card a {
  margin: 5px;
  transition: transform 0.3s ease;
}

.project-card a:hover {
  transform: translateY(-3px);
}

.project-card .btn {
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.project-card .btn:hover {
  transform: translateY(-2px);
}

.project-card .mt-auto {
  margin-top: auto;
}

/* Certification Box (if used elsewhere) */
.certification-box {
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  transition: box-shadow 0.3s ease-in-out;
  max-width: 300px;
  min-height: 250px;
  height: 250px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

.certification-box:hover {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}


/* Footer - Fixed at Bottom */
.footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 15px 0;
  width: 100%;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.3);
}

/* Button Styles */
.btn-primary {
  background: #007bff;
  border: none;
}

.btn-primary:hover {
  background: #0056b3;
}

.btn-success {
  background: #28a745;
  border: none;
}

.btn-success:hover {
  background: #218838;
}

.btn-dark {
  background: #343a40;
  border: none;
}

.btn-dark:hover {
  background: #23272b;
}

/* Marquee Scrolling Text */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  width: calc(100% - 400px);
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.marquee-text {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 10s linear infinite, colorChange 3s linear infinite;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes colorChange {
  0% {
    color: red;
  }
  33% {
    color: yellow;
  }
  66% {
    color: green;
  }
  100% {
    color: red;
  }
}

/* Adjustments for Navbar Compatibility */
.navbar {
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.navbar-brand,
.navbar-nav {
  z-index: 2;
  pointer-events: auto;
  font-weight: 600;
}

.icon-codecademy {
  width: 48px;
  height: 48px;
  margin-right: 8px;
  vertical-align: middle;
  filter: invert(1);
}
 /* white C++ logo */
 .cplusplus-logo {
  filter: invert(1);
}
.cplusplus-logo:hover {
  transform: scale(1.0);
  z-index: 10;
}
