/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Body */
body {
  font-family: "Open Sans", sans-serif;
  background-color: #f3f4f6;
  color: #6c757d;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: "Barlow", sans-serif;
  color: #212529;
}

/* Logo */
.logo {
  height: 2rem;
}

/* Header */
.header {
  background-image: linear-gradient(to right, rgba(1, 13, 14, 0.89), rgba(2, 10, 6, 0.7)), url('img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Navigation Links */
.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.nav-link:hover {
  color: #95d5b2;
}

.dropdown-menu {
  background-color: #1B4332;
  border: none;
}

.dropdown-item {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
}

.dropdown-item:hover {
  background-color: #2D6A4F;
  color: #95d5b2;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(to right, rgba(1, 13, 14, 0.89), rgba(2, 10, 6, 0.7)), url('/img/hero.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero h2 {
  font-size: 4.5rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Playing Words Animation */
.playing-words {
  display: inline-block;
  position: relative;
  color: #95d5b2;
  font-weight: 800;
  font-size: 5.5rem;

}

.playing-words::after {
  content: "Web Designer";
  animation: word-play 9s infinite;
}

@keyframes word-play {
  0%, 25% {
    content: "Web Designer";
  }
  33%, 58% {
    content: "Software Developer";
  }
  66%, 100% {
    content: "Freelancer";
  }
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Buttons */
.hire-me-btn {
  background-color: #40916C;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.hire-me-btn:hover {
  background-color: #2D6A4F;
}

.download-cv-btn {
  background-color: #28a745;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}

.download-cv-btn:hover {
  background-color: #218838;
}

.portfolio-btn {
  border: 1px solid white;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.portfolio-btn:hover {
  background-color: white;
  color: #1B4332;
}

/* Section */
.section {
  padding: 5rem 0;
  position: relative;
}

/* Section Subtitle */
.section-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #40916C;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

/* Card */
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card-body {
  padding: 2rem;
}

.card .display-6 {
  font-size: 2rem;
}

/* Progress Bar */
.progress {
  height: 0.5rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
}

.progress-bar.bg-teal {
  background-color: #40916C;
}

/* Companies Section with Animated Logos */
.companies-section {
  background-color: #2D6A4F;
  padding: 3rem 0;
  overflow: hidden;
}

.logos-container {
  width: 100%;
  overflow: hidden;
}

.logos-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 20s linear infinite;
}

.company-logo {
  height: 50px;
  margin-right: 2rem;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Footer */
.footer {
  background-color: #04181C;
  color: white;
  padding: 3rem 0 1rem;
}

.social-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: #95d5b2;
}

.footer .container {
  padding-bottom: 1.5rem;
}

.footer .container:last-child {
  padding-top: 1rem;
}

.footer p {
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #40916C;
  color: white;
  border: none;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: #2D6A4F;
}

/* Custom Colors */
.text-teal {
  color: #40916C;
}

.bg-teal {
  background-color: #40916C;
}

/* Spacing and Typography */
.display-4 {
  font-size: calc(1.5rem + 2.5vw);
}

.display-5 {
  font-size: calc(1.3rem + 1.5vw);
}

.display-6 {
  font-size: calc(1.2rem + 0.9vw);
}

.h5 {
  font-size: 1.25rem;
}

.h6 {
  font-size: 1rem;
}

.fs-3 {
  font-size: 1.5rem;
}

.fw-semibold {
  font-weight: 600;
}

.fw-light {
  font-weight: 400;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1rem;
}

.ms-2 {
  margin-left: 0.5rem;
}

.ps-md-4 {
  padding-left: 1rem;
}

.me-2 {
  margin-right: 0.5rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .ps-md-4 {
    padding-left: 1.5rem;
  }

  .d-md-flex {
    display: flex !important;
  }

  .d-md-none {
    display: none !important;
  }

  .mt-md-0 {
    margin-top: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero {
    padding: 3rem 0;
  }

  .footer .d-flex {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}

/* Ensure Font Awesome icons are visible and sized appropriately */
i.fas,
i.fab {
  font-size: 1rem; /* Default size */
  line-height: 1; /* Prevent alignment issues */
}

/* Specific sizes for different sections */
.nav-link i {
  font-size: 1.2rem;
}

.social-link i {
  font-size: 1.2rem;
}

.back-to-top i {
  font-size: 1.5rem;
}