/* Base styles and variables */
:root {
  --background-color: #1c0f0d;
  --accent-color: #fd5d69;
  --text-color: #ffffff;
  --secondary-text: #aeaeae;
  --form-bg: rgba(253, 93, 105, 0.1);
  --form-section-bg: rgba(253, 93, 105, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #1c0f0d;
  color: #ffffff;
  font-family: "Source Sans 3", sans-serif;
  min-height: 100vh;
  width: 100%;
}

/* Styling for the menu button */
.menu-btn {
  position: fixed;
  top: 195px;
  left: 20%;
  width: 50px;
  height: 50px;
  background-color: #FD5D69; /* Blue color */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

/* Icon inside the button */
.menu-btn::before {
  /* content: "☰";  */
  font-size: 24px;
  color: #1C0F0D;
  font-weight: bold;
}

/* Dropdown menu styles */
.dropdown-menu {
  position: fixed;
  top: 255px; /* Below the button */
  left: 10%;
  width: 180px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: none; /* Hidden by default */
  flex-direction: column;
  overflow: hidden;
  z-index: 999;
}

/* Menu links */
.dropdown-menu a {
  display: block;
  padding: 12px;
  color: black;
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove border from last item */
.dropdown-menu a:last-child {
  border-bottom: none;
}

/* Hover effect */
.dropdown-menu a:hover {
  background-color: #fd5d69;
}

.menu-open .menu-btn::after {
  content: "✕"; /* Unicode for X symbol */
}

.menu-open .dropdown-menu {
  display: flex; /* Show the dropdown */
}

/* *************************************************** */

.container {
  width: 100%;
  min-height: 100vh;
}

header {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10%;
  width: 100%;
  position: relative;
  z-index: 100;
}

.logo {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  z-index: 101;
}

nav {
  width: 60%;
  max-width: 800px;
  height: 95px;
  position: absolute;
  text-align: center;
  right: 50%;
  top: 0;
  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;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15%;
  padding: 0;
  margin: 0;
  width: 80%;
  justify-content: center;
}

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;
  white-space: nowrap;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.portfolio-text {
  font-family: 'DM Serif Text';
  font-size: 18px;
  font-weight: 400;
  margin-left: auto;
  color: #fff;
}

/* Main content styles */
main {
  margin-top: 56px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 50%;
  margin: 0 auto;
}

/* Project intro section */
.project-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.large-menu-icon {
  width: 50px;
  height: 50px;
}

.project-title {
  font-size: 32px;
  font-family: "DM Serif Text", serif;
  font-weight: normal;
}

.text-white {
  color: var(--text-color);
}

.text-accent {
  color: var(--accent-color);
}

.project-description {
  color: #ffffff;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
}

.text-accent-bold {
  color: var(--accent-color);
  font-weight: 700;
}

/* Project showcase section */
.project-showcase {
  display: flex;
  gap: 2rem;
  
}

.project-image{
  width: 77%;
}

.showcase-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.project-details {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 23%;
}

.detail-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-title {
  color: var(--accent-color);
  font-size: 15px;
  font-family: "DM Serif Text", serif;
  text-transform: uppercase;
  font-weight: normal;
}

.detail-text {
  color: var(--text-color);
  font-size: 20px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 300;
}

.video-link {
  color: #000000;
  font-family: "Source Sans 3", sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 15px;
  border-radius: 9px;
  background-color: var(--accent-color);
  width: 190px;
  text-decoration: none;
}

.video-note {
  color: var(--text-color);
  font-family: "Source Sans 3", sans-serif;
  font-size: 10px;
  max-width: 184px;
  font-weight: 300;
}

/* Section styles */
.section-title {
  color: var(--secondary-text);
  font-family: "DM Serif Text", serif;
  font-size: 18px;
  font-weight: normal;
}

.project-objectives,
.key-features,
.vui-branding,
.ui-screens,
.vui-diagram {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.full-width-img {
  width: 100%;
  height: auto;
}

.full-width-imgs {
  position: relative;
  width: 120%;
  height: auto;
  margin-left: -10%;
}


/* Project objectives section */

.objectives-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* Ensure alignment */
}

.objective-row {
  display: flex;
  justify-content: center; /* Ensure proper spacing */
  gap: 50px; /* Adjust spacing between items */
  margin-bottom: 30px;
  flex-wrap: wrap;
  width: 100%;
}

.objective-item {
  text-align: center;
  flex: 1; /* Ensures equal spacing */
  min-width: 150px; /* Prevents shrinking too much */
}

.objective-item img {
  width: 203px;
  height: 94px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Responsive: Stack items vertically on smaller screens */
@media (max-width: 768px) {
  .objective-row {
      flex-direction: column;
      align-items: center;
      gap: 20px;
  }
}
.ui-screens-wrapper {
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgba(253, 93, 105, 0.15) 0%,
    rgba(253, 93, 105, 0) 100%
  );
}

.diagram-img {
  width: 554px;
  height: 268px;
  transform: rotate(90deg);
  margin: 0 auto;
}

/* Target audience section */
.target-audience {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.audience-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.audience-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.audience-marker {
  width: 5px;
  height: 31px;
  background: linear-gradient(to bottom, #ffffff, #fd5d69);
  border-radius: 9999px;
}

.audience-text {
  color: var(--text-color);
  font-family: "Source Sans 3", sans-serif;
  font-weight: 300;
  font-size: 20px;
}

/* User flow link */
.user-flow-link {
  color: var(--accent-color);
  font-family: "Source Sans 3", sans-serif;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
}

/* video section */

.phone-frame {
  position: relative; /* Establish positioning context */
  width: 268px; /* Adjust as needed */
  height: 554px; /* Adjust as needed */
  margin: auto;
}

.phone-frame video::-webkit-media-controls { /* Hide controls by default */
display: none;
}

.phone-frame:hover video::-webkit-media-controls { /* Show controls on hover */
display: block;
}

/* .phone-frame img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
} */

.phone-frame video {
  width: 100%; /* Adjust video size within the frame */
  height: auto;
  position: absolute;
  top: 10%; /* Adjust video position within the frame */
  left: 10%; /* Adjust video position within the frame */
  z-index: 3; /* Place video behind the frame */
}

.vui-diagram a{
  margin: auto;
  margin-top: 50px;
}

/* Documentation section */

.documentation-section {
width: 100%;
}
.documentation-button {
align-self: start;
border-radius: 9px;
background-color: #fd5d61;
margin-top: 101px;
padding: 15px;
font-family: "Source Sans 3", sans-serif;
font-size: 16px;
color: #000;
font-weight: 600;
display: inline-block;
text-decoration: none;
}

@media (max-width: 991px) {
.documentation-button {
  margin-left: 10px;
  margin-top: 40px;
}
}

.documentation-note {
color: #fff;
font-size: 10px;
font-family: "Source Sans 3", sans-serif;
font-weight: 300;
margin-top: 18px;
}

@media (max-width: 991px) {
.documentation-note {
  margin-left: 10px;
}
}

/* Contact form */
.contact-section {
  margin-top: 4rem;
}

.contact-form {
  background-color: var(--form-section-bg);
  border-radius: 35px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.form-input {
  color: var(--secondary-text);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  border-radius: 10px;
  background-color: var(--form-bg);
  padding: 1rem;
  border: none;
  width: 100%;
}

.form-textarea {
  color: var(--secondary-text);
  font-family: "Source Sans 3", sans-serif;
  font-size: 14px;
  margin-top: 2rem;
  border-radius: 10px;
  background-color: var(--form-bg);
  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: var(--accent-color);
  color: var(--background-color);
  text-align: center;
  font-family: "Source Sans 3", sans-serif;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Footer */
.main-footer {
  display: flex;
  margin-top: 100px;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .main-footer {
    margin-top: 40px;
  }
}

.footer-email {
  align-self: stretch;
  border-radius: 100px;
  border: 1px solid #fd5d61;
  padding: 8px 19px;
  font-family:
    "Mulish",
    -apple-system,
    Roboto,
    Helvetica,
    sans-serif;
  font-size: 15px;
  color: #fff;
  font-weight: 300;
  text-decoration: none;
}

.social-links {
  display: flex;
  align-items: stretch;
  gap: 30px;
  
}

.social-icon {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  width: 41px;
  flex-shrink: 0;
}

.social-icon:last-child {
  border-radius: 6px;
}

/* Accessibility enhancements */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.submit-button:hover {
  background-color: #e54d59;
}

.nav-item:hover,
.user-flow-link:hover,
.email-link:hover {
  text-decoration: underline;
}

.social-icon:hover {
  background-color: #e54d59;
}

#scroll-to-top {
  display: none;
  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/red.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;
    margin-top: 25px;
    padding: 15px 4%;
  }
  
  .logo, .portfolio-text {
    margin: 0;
  }
  
  nav {
    position: relative;
    width: 95%;
    height: auto;
    min-height: 60px;
    top: 0;
    right: 0;
    transform: none;
    margin: 15px auto;
    padding: 10px 0;
  }
  
  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 10px;
  }
  
  nav ul li {
    margin: 5px 0;
  }
  
  nav ul li a {
    font-size: 15px;
    padding: 7px 10px;
  }
  
  .hero {
    margin-top: 60px;
  }
  
  .hero h1 {
    font-size: 36px;
  }
  
  .btn {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 0.9rem;
  }
  
  .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;
  }

  .project-description {
    font-size: 14px;
    -webkit-line-clamp: 4;
  }
  
  .contact-section {
    margin-top: 100px;
    width: 90%;
  }

  .contact-form {
    padding: 1.5rem;
  }
  
  .skill-card {
    width: 45%;
  }
  
  .footer {
    flex-direction: column;
    gap: 30px;
    padding: 80px 20px 40px;
  }
  
  .social-links {
    width: 100%;
    justify-content: center;
  }

  .social-icon {
    width: 35px;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .logo, .portfolio-text {
    font-size: 17px;
  }
  
  nav {
    border-radius: 25px;
    min-height: 50px;
  }
  
  nav ul {
    gap: 10px;
  }
  
  nav ul li a {
    font-size: 14px;
    padding: 6px 8px;
  }
  
  .hero h1 {
    font-size: 28px;
  }

  .skill-card {
    width: 100%;
  }
  
  .project-cards {
    height: 180px;
  }
  
  .overlay-text {
    font-size: 24px;
  }

  .project-card {
    padding: 15px;
  }

  .project-tags {
    top: 15px;
    right: 15px;
  }

  .tag-icon {
    width: 20px;
  }

  .tag-icon-single {
    width: 20px;
  }

  .project-category {
    font-size: 12px;
  }

  .project-title {
    font-size: 20px;
  }
  
  .footer-email {
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 14px;
  }

  .form-input, .form-textarea {
    font-size: 13px;
  }

  .submit-button {
    width: 100px;
    font-size: 16px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}

/* Portrait phones */
@media (max-width: 375px) {
  header {
    padding: 15px 3%;
  }

  .logo, .portfolio-text {
    font-size: 15px;
  }

  nav {
    width: 97%;
    padding: 8px 0;
    margin: 10px auto;
    min-height: 45px;
  }

  nav ul {
    gap: 8px;
  }

  nav ul li a {
    font-size: 13px;
    padding: 5px 6px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .section-heading {
    font-size: 24px;
  }

  .about-text h3 {
    font-size: 1.3rem;
  }

  .project-description {
    -webkit-line-clamp: 3;
  }

  .social-icon {
    width: 30px;
  }
}
