@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&display=swap");

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
blockquote {
  font-family: "DM Serif Display", serif;
}

h1,
.h1 {
  font-size: 65px;
}

h2,
.h2 {
  font-size: 45px;
}

img {
  max-width: 100%;
}

blockquote {
  font-size: 28px;
}

sup,
.sup {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
}

.underline::after {
  content: " ";
  border-bottom: 3px solid;
  position: relative;
  display: block;
  width: 50px;
  padding-top: 1rem;
}

.toast {
  bottom: 1rem;
  right: 1rem;
}

.underline.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-inverse {
  margin-top: 180px;
  padding: 1px 0px;
}

.section-inverse > div {
  margin-top: -180px;
}

.card-footer {
  background-color: white;
  padding: 1rem 1rem;
}

.background-image {
  background-position: center center;
  background-size: cover;
}

.navbar-light .navbar-nav .nav-link {
  text-transform: uppercase;
  padding-right: 1rem;
  padding-left: 1rem;
}

.circle {
  border-radius: 500px;
}

header.p-section {
  padding: 160px 0px 120px;
}

.p-section {
  padding: 100px 0px;
}

.p-section-lg {
  padding: 160px 0px;
}

.container-lg {
  max-width: 900px;
}

.w-md {
  max-width: 600px;
}

.w-sm {
  max-width: 400px;
}

.btn {
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.5rem;
}

.btn-group-lg > .btn,
.btn-lg {
  padding: 0.75rem 2rem;
}

.btn-group-sm > .btn,
.btn-sm {
  padding: 0.3rem 0.75rem;
}

.testimonial-item {
  max-width: 800px;
  padding: 40px;
}

.testimonial-item:nth-child(even) {
  margin-left: auto;
}

.testimonial-image {
  max-width: 100px;
  float: left;
  margin-right: 25px;
}

.marker-highlight {
  position: relative;
  display: inline-block;
}

.marker-highlight:before {
  content: "";
  background-color: #0b6efd87;
  width: 102%;
  height: 0.2em;
  position: absolute;
  z-index: -2;
  filter: url(#marker-shape);
  left: -0.05em;
  padding: 0 0.25em;
  bottom: 0.2em;
}

/* Responsive Typography */
@media (max-width: 1000px) {
  h1,
  .h1 {
    font-size: 45px;
  }

  h2,
  .h2 {
    font-size: 35px;
  }

  blockquote {
    font-size: 24px;
  }

  header.p-section {
    padding: 100px 0px 80px;
  }
}

/* Responsive Containers */
@media (max-width: 576px) {
  .p-section,
  .p-section-lg {
    padding: 60px 0px;
  }

  .container-lg {
    max-width: 100%;
  }

  .w-md,
  .w-sm {
    max-width: 100%;
  }

  .btn {
    padding: 0.5rem 1rem;
  }
}

/* Typing Effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid black;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  width: 100%;
  word-wrap: break-word;
}

#sup-text,
#headline-text,
#sub-text {
  display: inline-block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: break-word;
  text-align: center;
}

#headline-text {
  font-size: 2em; /* Adjust font size as needed */
}

#sup-text {
  font-size: 1em; /* Adjust as needed */
  display: block;
  margin-bottom: 10px; /* Space between sup and headline */
  overflow: hidden;
  white-space: nowrap;
}

#headline-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid black;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  font-size: 2em; /* Adjust font size as needed */
  width: 100%;
  word-wrap: break-word;
}

#sub-text {
  display: block;
  font-size: 1.2em; /* Adjust as needed */
  margin-top: 20px;
  overflow: hidden;
  white-space: nowrap;
}

/* Timeline */
.timeline {
  position: relative;
  padding: 1em 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  padding: 2em 0;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(odd) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(even) {
  animation-delay: 0.4s;
}

.timeline-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transform: scale(0.5);
  animation: bounceIn 0.6s ease forwards;
}

.timeline-item:nth-child(odd) .timeline-icon {
  left: calc(50% - 70px);
}

.timeline-item:nth-child(even) .timeline-icon {
  left: calc(50% + 0px);
}

.timeline-content {
  position: relative;
  width: 45%;
  padding: 1.5em 2em;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
  left: 0;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  left: 55%;
  text-align: right;
}

.timeline-item h5 {
  margin-bottom: 0.5em;
  font-size: 1.25em;
}

.timeline-item p {
  margin-bottom: 0.5em;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 100%;
  background-color: #b5e5c0;
  z-index: 0;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards 0.6s;
}

/* Responsive Timeline */
@media (max-width: 992px) {
  .timeline-item .timeline-content {
    width: 90%;
    left: 5%;
    text-align: center;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    left: 5%;
  }

  .timeline-icon {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Animation keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Shadow for Buttons */
.shadow-btn {
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Standard shadow */
  transition: box-shadow 0.3s ease-in-out; /* Smooth transition on hover */
}

.shadow-btn:hover {
  box-shadow: 0px 8px 12px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow on hover */
}

/* Footer Responsive */
footer .list-inline-item {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  footer .list-inline-item {
    text-align: center;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

/* Responsive Project Section */
@media (max-width: 768px) {
  #portfolio .card {
    margin-bottom: 20px; /* Add some spacing between cards on smaller screens */
  }

  #portfolio .card h3 {
    font-size: 1.5rem; /* Adjust the heading size for smaller screens */
  }

  #portfolio .card-body p {
    font-size: 1rem; /* Adjust paragraph text size for better readability */
  }

  #portfolio .card-footer {
    padding: 0.75rem 1rem; /* Adjust padding for footer in cards */
    font-size: 0.9rem; /* Adjust footer text size */
  }

  #portfolio .background-image {
    height: 150px; /* Reduce image height for smaller screens */
  }

  #portfolio .row {
    margin: 0; /* Remove row margin to utilize full width */
  }

  #portfolio .col-sm-6,
  #portfolio .col-lg-4 {
    width: 100%; /* Make each card take full width on small screens */
  }

  #portfolio .card h3 {
    font-size: 1.2rem; /* Smaller font for headers in project cards */
  }

  #portfolio .card-body p {
    font-size: 0.95rem; /* Smaller font for paragraphs in project cards */
  }

  #portfolio .card-footer {
    font-size: 0.85rem; /* Smaller font for footer in project cards */
  }
}

/* Further adjustments for very small screens */
@media (max-width: 576px) {
  #portfolio .background-image {
    height: 120px; /* Further reduce image height for very small screens */
  }

  #portfolio .card-footer {
    font-size: 0.8rem; /* Adjust footer text size further */
    text-align: center; /* Center-align footer text */
  }

  #portfolio .card-body p {
    font-size: 0.9rem; /* Adjust text size for readability */
  }
}

/* Company Section - Responsive Design */

/* For screens between 768px and 992px */
@media (min-width: 768px) and (max-width: 992px) {
  .timeline-content {
    width: 100%;
    left: 0;
    text-align: center;
    padding: 2em 1em; /* Increase padding for spacing */
  }

  .timeline-icon {
    left: 50%;
    transform: translateX(-50%);
    top: -30px; /* Position the icon above the content */
  }

  .timeline-item {
    padding-top: 60px; /* Add padding to avoid overlap between icon and content */
    margin-bottom: 50px; /* Add margin between timeline items */
  }

  .timeline-content h5 {
    margin-top: 50px; /* Add margin to account for the icon placement */
    font-size: 1.5rem; /* Adjust the font size for better readability */
  }

  .timeline-content p {
    font-size: 1rem; /* Adjust text size for readability */
    margin-bottom: 15px;
  }

  .timeline {
    padding: 0; /* Remove extra padding from the timeline container */
  }

  .timeline::before {
    width: 2px; /* Thinner line for small screens */
  }
}

/* For screens smaller than 768px */
@media (max-width: 768px) {
  .timeline-content {
    width: 100%;
    left: 0;
    text-align: center;
    padding: 1em; /* Adjust padding for better spacing */
  }

  .timeline-icon {
    left: 50%;
    transform: translateX(-50%);
    top: -30px; /* Position the icon above the content */
  }

  .timeline-item {
    padding-top: 60px; /* Add padding to avoid overlap between icon and content */
    margin-bottom: 50px; /* Add margin between timeline items */
  }

  .timeline-content h5 {
    margin-top: 60px; /* Add margin to account for the icon placement */
    font-size: 1.2rem; /* Adjust the font size for better readability */
  }

  .timeline-content p {
    font-size: 1rem; /* Adjust text size for readability */
    margin-bottom: 15px;
  }

  .timeline {
    padding: 0; /* Remove extra padding from the timeline container */
  }

  .timeline-item {
    margin-bottom: 50px; /* Add margin between timeline items */
  }

  .timeline::before {
    width: 2px; /* Thinner line for small screens */
  }
}

@media (max-width: 576px) {
  .timeline-icon {
    width: 50px;
    height: 50px;
  }

  .timeline-content {
    padding: 0.5em 1em; /* Reduce padding for very small screens */
  }

  .timeline-content h5 {
    font-size: 1rem; /* Adjust font size for smaller screens */
  }

  .timeline-content p {
    font-size: 0.9rem; /* Adjust text size for readability */
  }
}

/* Default Typing Animation */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: black;
  }
}

.typing-effect {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid black;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
  width: 100%; /* Ensure the text takes up the full width */
  max-width: 100%; /* Prevent overflow */
  word-wrap: break-word; /* Ensure text wraps if needed */
  box-sizing: border-box; /* Include padding and border in the element's width and height */
}

/* Ensure text containers are responsive */
#sup-text,
#headline-text,
#sub-text {
  display: inline-block;
  width: 100%; /* Make sure it fits the full width */
  overflow: hidden;
  white-space: nowrap;
  word-wrap: break-word;
  text-align: center; /* Center the text */
  box-sizing: border-box; /* Include padding and border in the element's width and height */
}

#headline-text {
  font-size: 2em; /* Adjust font size as needed */
  max-width: 100%; /* Prevent text overflow */
  margin: 0 auto; /* Center the text container */
  padding: 0 10px; /* Add padding for spacing */
}

#sup-text {
  font-size: 1em; /* Adjust as needed */
  display: block;
  margin-bottom: 10px; /* Space between sup and headline */
  max-width: 100%; /* Prevent text overflow */
  overflow: hidden;
  white-space: nowrap;
}

#sub-text {
  display: block;
  font-size: 1.2em; /* Adjust as needed */
  margin-top: 20px;
  max-width: 100%; /* Prevent text overflow */
  padding: 0 10px; /* Add padding for spacing */
}

/* Adjustments for medium-sized screens (768px - 992px) */
@media (min-width: 769px) and (max-width: 1300px) {
  #headline-text {
    font-size: 1.2em; /* Reduce font size for better fit on smaller screens */
  }

  #sub-text {
    font-size: 1.1em; /* Reduce font size for better fit on smaller screens */
  }

  .typing-effect {
    font-size: 1.4em; /* Adjust font size to match headline text */
  }

  #sup-text {
    font-size: 0.15em; /* Adjust super text size */
  }
}

/* Adjustments for smaller screens (<768px) */
@media (max-width: 768px) {
  #headline-text {
    font-size: 1.4em; /* Reduce font size for better fit on smaller screens */
  }

  #sub-text {
    font-size: 1em; /* Reduce font size for better fit on smaller screens */
  }

  .typing-effect {
    font-size: 1.4em; /* Adjust font size to match headline text */
  }

  #sup-text {
    font-size: 0.85em; /* Adjust super text size */
  }
}

/* Adjustments for very small screens (<576px) */
@media (max-width: 576px) {
  #headline-text {
    font-size: 1.2em; /* Further reduce font size on very small screens */
  }

  #sub-text {
    font-size: 0.9em; /* Further reduce font size on very small screens */
  }

  .typing-effect {
    font-size: 1.2em; /* Adjust font size to match headline text */
  }

  #sup-text {
    font-size: 0.75em; /* Further reduce super text size */
  }
}
