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

body {
  background-color: rgba(26, 26, 26, 1);
  color: white;
  text-align: center;
  align-items: center;
}

/* .portfolio {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: center;
  padding-bottom: 40px;
} */

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    "DM Serif Text",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-weight: 400;
}

.highlight {
  color: rgba(152, 216, 178, 1);
}

.text-white {
  color: rgba(255, 255, 255, 1);
}

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

/* Hero Section */
/* .hero {
  position: relative;
  width: 100%;
  min-height: 810px;
  padding: 40px 80px 228px;
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.hero-background {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
}

header {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 15%;
  width: 100%;
}

.logo {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  z-index: 101;
}

nav {
  width: 41.5%;
  height: 95px;
  position: fixed;
  text-align: center;
  right: 50%;
  top: 40px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(52, 52, 52, 0.2) 100%);
  border-radius: 47.5px;
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(25px);
  z-index: 100;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 12%;
  padding: 0;
  margin: 0;
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-family: "Mulish", sans-serif;
  font-weight: 400;
  font-size: 18px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  /* text-decoration: none; */
}

.portfolio-text {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  margin-left: auto;
  color: #fff;
}

/* Hero Section */
.hero {
  margin-top: 120px;
  padding: 0 20px;
}

.hero h1 {
  font-family: 'DM Serif Text';
  font-size: 78px;
  font-weight: 400;
  line-height: 1.3;
}

.green {
  font-family: 'DM Serif Text';
  color: #98D8B2
}

.btn {
  display: inline-block;
  margin-top: 66px;
  padding: 14px 35px;
  border: 2px solid #98D8B2;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* .header-content {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 */
/* .header-top {
  align-self: stretch;
  display: flex;
  width: 100%;
  max-width: 1255px;
  align-items: center;
  gap: 40px 87px;
  font-size: 18px;
  flex-wrap: wrap;
} */

/* .designer-name {
  font-size: 18px;
  align-self: stretch;
  margin: auto 0;
} */

/* .main-nav {
  border-radius: 48px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.16);
  align-self: stretch;
  padding: 36px 70px;
} */

/* .nav-list {
  display: flex;
  list-style: none;
  gap: 40px 100px;
  font-family:
    Mulish,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  flex-wrap: wrap;
}
 */
/* .nav-link {
  color: inherit;
  text-decoration: none;
} */

/* .nav-link:hover,
.nav-link:focus {
  text-decoration: underline;
  color: rgba(152, 216, 178, 1);
} */

/* .portfolio-type {
  align-self: stretch;
  margin: auto 0;
  flex-grow: 1;
  flex-shrink: 1;
  width: 104px;
} */

/* .tagline {
  position: relative;
  font-size: 78px;
  margin-top: 112px;
  text-align: center;
} */

/* .job-title {
  position: relative;
  align-self: stretch;
  border-radius: 47px;
  border: 2px solid rgba(152, 216, 178, 1);
  margin-top: 66px;
  margin-bottom: -46px;
  padding: 15px 20px;
  font-family:
    Mulish,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-align: center;
} */

/* Main Content */
.main-content {
  width: 100%;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-container {
  z-index: 10;
  display: flex;
  width: 100%;
  max-width: 1030px;
  flex-direction: column;
  align-items: center;
  margin-top: 150px;
  
}

.about-text {
  padding: 10px;
  width: 100%;
  max-width: 800px;
}

.about-text h3 {
  margin: auto;
  font-family: 'DM Serif Text';
  font-size: 2rem;
  font-weight: 400;
  text-align: left;
}

.about-text p {
  margin: 20px auto;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #FFFFFF;
  line-height: 1.7;
  text-align: left;
}

.about-heading {
  color: rgba(152, 216, 178, 1);
  font-size: 32px;
  align-self: flex-start;
}

.about-description {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-weight: 300;
  margin-top: 35px;
}

/* .divider-container {
  align-self: stretch;
  display: flex;
  margin-top: 50px;
  align-items: stretch;
  width: 100%;
  justify-content: center;
}

.divider-spacer {
  background-color: rgba(26, 26, 26, 1);
  display: flex;
  width: 100px;
  flex-shrink: 0;
  height: 100px;
}

.divider-image {
  aspect-ratio: 18.18;
  object-fit: contain;
  object-position: center;
  width: 60%;
  max-width: 930px;
  align-self: flex-start;
  margin-top: 24px;
} */
 .carousel{
  max-width: 75%;
 }

.carousel-item {
  display: flex;
  justify-content: flex-start;
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden;
}

.carousel-item img {
  width: 18%; /* Adjust based on your image width */
  border-radius: 5px;
  object-fit: contain;
  animation: slide 13s linear infinite; /* Increased animation duration */
}


.carousel-control-prev,
.carousel-control-next {
  display: none;
}

@keyframes slide {
  0% {
      transform: translateX(0);
  }
  100% {
      transform: translateX(-900px);
  }
}

.cta-buttons {
  display: flex;
  margin-top: 42px;
  width: 100%;
  max-width: 330px;
  align-items: stretch;
  gap: 20px;
  font-family:
    Mulish,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.32px;
  justify-content: space-between;
  margin: auto;
  padding-top: 25px;
}

.cta-button {
  text-decoration: none;
  border-radius: 10px;
  padding: 16px 15px;
  display: inline-block;
}

.cta-button.primary {
  background-color: rgba(152, 216, 178, 1);
  color: rgba(26, 26, 26, 1);
}

.cta-button.secondary {
  border: 1px solid rgba(152, 216, 178, 1);
  color: rgba(152, 216, 178, 1);
  padding: 16px 23px;
}

.section-heading {
  color: rgba(255, 255, 255, 1);
  font-size: 32px;
  text-align: center;
  margin-top: 185px;
}

/* Project Cards */

#work{
  padding-top: 150px;
}
.project-card {
  border-radius: 35px;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: 35px;
  width: 100%;
  max-width: 830px;
  padding: 25px;
  height: auto;
  min-height: 252px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.project-content {
  display: flex;
  gap: 25px;
  height: 100%;
}

.project-column {
  display: flex;
  flex-direction: column;
  line-height: normal;
  width: 30%;
  height: 100%;
}

.project-column.project-details {
  width: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0;
  margin-top: 0px;
}

.project-image {
  width: 100%;
  height: 202px;
  object-fit: cover;
  border-radius: 20px;
}

.project-info {
  display: flex;
  flex-direction: column;
  height: 202px;
  overflow: hidden;
}

.project-tags {
  position: absolute;
  top: 0px;
  right: 70px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.tag-icon {
  aspect-ratio: 0.66;
  object-fit: contain;
  width: 25px;
  flex-shrink: 0;
}

.tag-icon-single {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 2;
}

/* .project-tags {
  align-self: flex-end;
  display: flex;
  margin-right: 48px;
  align-items: stretch;
  gap: 10px;
}

.tag-icon {
  aspect-ratio: 0.66;
  object-fit: contain;
  object-position: center;
  width: 25px;
  border-radius: 0;
  flex-shrink: 0;
}

.tag-icon-single {
  align-self: flex-end;
  margin-right: 48px;
} */

.project-category {
  color: rgba(204, 204, 204, 1);
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-align: left;
  margin-top: 10px;
}

.project-title {
  color: rgba(255, 255, 255, 1);
  font-size: 29px;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: left;
}

.project-description {
  color: rgba(204, 204, 204, 1);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  font-weight: 300;
  text-align: left;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Container that holds both cards side by side */
/* Container for both cards */
.cards-container {
display: flex;
gap: 20px;
justify-content: center;
margin-top: 35px;
width: 100%;
flex-wrap: wrap;
}

/* Project card styling - now just the image */
.project-cards {
display: block;
width: 400px; /* Adjust based on your image size */
max-width: 100%;
height: 252px; /* Adjust based on your image size */
border-radius: 35px;
overflow: hidden; /* Ensures rounded corners for image */
position: relative;
transition: all 0.3s ease-in-out;
text-decoration: none;
}

/* Remove all background and padding effects */
.project-cards:hover {
transform: scale(1.02);
box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Image container fills entire card */
.project-images {
width: 100%;
height: 100%;
position: relative;
}

/* Image fills entire card */
.project-images img {
width: 100%;
height: 100%;
object-fit: cover;
}

/* Overlay text remains the same */
.overlay-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #FFFFFF;
font-size: 30px;
font-family: 'DM Serif Text', serif;
font-weight: 400;
pointer-events: none; /* Allows clicks to pass through to link */
}

/* Skills Section */
.skills-section {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-grid {
  margin-top: 20px;
  width: 100%;
  max-width: 820px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.skill-card {
  border-radius: 20px;
  display: flex;
  flex-grow: 1;
  padding: 0px 0px;
  flex-direction: column;
  align-items: flex-start;
  width: 30%;
  min-width: 200px;
  max-width: 300px;
  height: auto;
}

.skill-icon {
  background-color: rgba(152, 216, 178, 1);
  border-radius: 50%;
  display: flex;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.skill-icon-img {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 35px;
  border-radius: 50%;
}

.skill-title {
  color: rgba(255, 255, 255, 1);
  font-size: 28px;
  margin-top: 20px;
}

.skill-description {
  color: rgba(204, 204, 204, 1);
  font-size: 18px;
  font-weight: 300;
  margin-top: 20px;
}

/* Contact Form */
/* .contact-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-form {
  border-radius: 35px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  margin-top: 200px;
  width: 830px;
  max-width: 100%;
  padding: 25px;
  flex-direction: column;
  align-items: stretch;
  font-family:
    "Source Sans Pro",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 14px;
  color: rgba(174, 174, 174, 1);
  font-weight: 300;
}

.form-row {
  display: flex;
  margin-left: 15px;
  width: 100%;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-label {
  margin: auto 0;
}

.form-group {
  display: flex;
  align-items: stretch;
  gap: 40px 67px;
  flex-wrap: wrap;
}

.form-group .form-label {
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 16px 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.form-message {
  border: none;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-top: 25px;
  padding: 16px 15px 84px;
  width: 100%;
  color: rgba(174, 174, 174, 1);
  font-family: inherit;
  font-size: inherit;
  resize: none;
}

.submit-button {
  border: none;
  border-radius: 10px;
  background-color: rgba(152, 216, 178, 1);
  align-self: center;
  margin-top: 25px;
  width: 120px;
  max-width: 100%;
  padding: 14px 26px;
  font-size: 20px;
  color: rgba(26, 26, 26, 1);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus {
  background-color: rgba(122, 186, 148, 1);
  outline: none;
} */

.contact-section {
  margin-top: 200px;
  width: 100%;
  max-width: 830px;
  padding: 0 20px;
}

.contact-form {
  background-color: #FFFFFF0D;
  border-radius: 35px;
  padding: 2rem;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.form-input {
  color: var(--secondary-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  border-radius: 10px;
  background: #FFFFFF1A;
  padding: 1rem;
  border: none;
  width: 100%;
}

.form-textarea {
  color: var(--secondary-text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 14px;
  margin-top: 2rem;
  border-radius: 10px;
  background: #FFFFFF1A;
  padding: 1rem;
  height: 109px;
  width: 100%;
  border: none;
  resize: none;
}

.form-submit {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.submit-button {
  width: 120px;
  height: 40px;
  border-radius: 10px;
  background-color: #98D8B2;
  color: black;
  text-align: center;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer {
  display: flex;
  margin-top: 100px;
  margin: auto;
  width: 100%;
  max-width: 830px;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 100px 20px 40px;
}

.footer-email {
  align-self: stretch;
  border-radius: 100px;
  border: 1px solid rgba(152, 216, 178, 1);
  padding: 15px 19px;
  font-family:
    Mulish,
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 1);
  font-weight: 300;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.social-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 41px;
  flex-shrink: 0;
}

#scroll-to-top {
  visibility: hidden;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 1000;
  background-image: url('images/scroll/green.png'); /* Replace with your image path */
  background-size: cover; /* Ensures the image covers the entire button */
  background-position: center; /* Centers the image */
}

#scroll-to-top:hover {
  opacity: 0.8; /* Slight opacity change on hover */
}

/* Media Queries */
/* Large devices (desktops) */
@media (max-width: 1200px) {
  nav {
    width: 70%;
  }
  
  nav ul {
    width: 90%;
    gap: 4%;
  }
  
  nav ul li a {
    padding: 8px 12px;
    font-size: 17px;
  }
  
  .hero h1 {
    font-size: 60px;
  }

  .project-card {
    max-width: 90%;
  }

  .cards-container {
    width: 90%;
  }
}

/* Medium devices (tablets) */
@media (max-width: 991px) {
  header {
    padding: 25px 4%;
  }
  
  nav {
    width: 85%;
    height: 80px;
    top: 0;
  }
  
  nav ul {
    width: 95%;
    gap: 3%;
  }
  
  nav ul li a {
    font-size: 16px;
    padding: 8px 10px;
  }
  
  .hero h1 {
    font-size: 50px;
  }
  
  .project-content {
    flex-direction: column;
  }
  
  .project-column {
    width: 100%;
  }
  
  .project-column.project-details {
    width: 100%;
    margin-top: 20px;
  }
  
  .project-image {
    height: auto;
    max-height: 202px;
  }
  
  .project-info {
    height: auto;
  }

  .skills-grid {
    width: 90%;
  }

  .about-text {
    width: 90%;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer {
    width: 90%;
  }
}

/* Small devices (mobile) */
@media (max-width: 767px) {
  header {
    flex-direction: column;
    gap: 15px;
  }
  
  .logo, .portfolio-text {
    margin: 0;
  }
  
  nav {
    position: relative;
    width: 98%;
    height: auto;
    top: 0;
    right: 0;
    transform: none;
    margin: 20px auto;
    padding: 15px 0;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
  
  .hero {
    margin-top: 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .btn {
    margin-top: 30px;
  }
  
  .about-container {
    margin-top: 80px;
  }
  
  .about-text {
    padding: 10px 20px;
  }
  
  .about-text h3 {
    font-size: 1.5rem;
  }
  
  .about-text p {
    font-size: 16px;
  }
  
  .divider-image {
    width: 80%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .section-heading {
    margin-top: 100px;
    font-size: 28px;
  }
  
  .project-title {
    font-size: 24px;
  }
  
  .project-tags {
    top: 25px;
    right: 25px;
  }
  
  .contact-section {
    margin-top: 100px;
  }
  
  .skill-card {
    width: 45%;
  }
  
  .footer {
    flex-direction: column;
    gap: 30px;
  }
  
  .social-links {
    width: 100%;
    justify-content: center;
  }
  
  .cards-container {
    flex-direction: column;
    align-items: center;
  }
  
  .project-cards {
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .skill-card {
    width: 100%;
  }
  
  .project-cards {
    height: 180px;
    margin-bottom: 20px;
  }
  
  .overlay-text {
    font-size: 24px;
  }
  
  .footer-email {
    width: 100%;
    text-align: center;
  }
}
