@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&family=Montserrat:wght@500;600;700&family=Roboto+Mono&display=swap');

:root {
  --primary-dark: white;
  --secondary-dark: #f8f9fa;
  --text-primary: #2d3436;
  /* Dark gray for primary text */
  --text-secondary: #636e72;
  /* Medium gray for secondary text */
  --accent: #00BCD4;
  /* Keep the accent color */
  --accent-dark: #00ACC1;
  /* Keep the darker accent */
  --nav-height: 70px;
  --font-body: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--primary-dark);
  color: #fff;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a {
  font-family: var(--font-heading);
  /* rest of styles remain the same */
}

.nav-dropdown-content a {
  font-family: var(--font-heading);
  /* Was: 'Roboto Mono', monospace */
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  width: 75%;
  height: calc(100vh - var(--nav-height));
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.2rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.main-heading {
  font-family: var(--font-heading);
  /* rest of styles remain the same */
}

/* Existing Project Card Styles */
/* New Project Card Styles */
.project-card-new {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.project-card-new:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.project-image-new {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.project-image-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-new:hover .project-image-new img {
  transform: scale(1.05);
  /* Slight zoom on hover */
}

.project-content-new {
  padding: 0 8px;
}

.project-title-new {
  font-size: 1.5rem;
  color: #2d3436;
  /* Dark gray for titles */
  margin-bottom: 12px;
}

.project-description-new {
  color: #636e72;
  /* Medium gray for description text */
  margin-bottom: 16px;
  line-height: 1.5;
}

.project-tech-list-new {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.project-tech-list-new li {
  background: #f0f0f0;
  color: #666;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.project-tech-list-new span {
  background-color: #f0f0f0;
  color: #2d3436;    /* Dark gray for tech stack text */
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  display: inline-block;
  margin: 2px;
}

.section-title {
  font-family: var(--font-heading);
  color: #2d3436;
  /* Dark gray for section titles */
}

/* Existing Project Content Styles */
.project-content {
  grid-column: 1 / 8;
  grid-row: 1 / -1;
  position: relative;
  z-index: 2;
}

.project-image {
  grid-column: 8 / -1;
  grid-row: 1 / -1;
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.project-image img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(100%) contrast(1.1);
  transition: filter 0.3s ease;
}

/* Existing Modal Styles */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.modal-content {
  position: relative;
  background: #fff;
  margin: 5% auto;
  padding: 2rem;
  width: 80%;
  max-width: 1000px;
  border-radius: 8px;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 30px;
  background-color: #f1f1f1;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.close-modal:hover {
  color: #000;
  background-color: #ddd;
  transform: scale(1.1);
}

/* Existing About Section Styles */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 50px;
  padding: 0 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.about-image img {
  width: 75%;
  /* Resize to 40% of its original size (60% smaller) */
  height: auto;
  /* Maintain aspect ratio */
  max-width: none;
  /* Remove any max-width constraints */
  border-radius: 20px;
  /* Optional: Add some rounding to the corners */
}

/* Existing All Projects Page Styles */
.all-projects-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px;
}

.all-projects-page section {
  margin-bottom: 100px;
}

/* Existing Media Queries */
@media only screen and (hover: none) and (pointer: coarse) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-content,
  .project-card.project-left .project-content {
    grid-column: 1 / -1;
  }

  .project-image,
  .project-card.project-left .project-image {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .project-image img {
    max-height: 250px;
  }
}

/* Existing Styles for All Projects Button */
.all-projects-button-container {
  display: flex;
  justify-content: center;
  margin-top: 0rem;
  margin-bottom: 2rem;
}

.all-projects-button {
  display: inline-block;
  color: #fff;
  background: var(--accent);
  /* Use the accent color */
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.all-projects-button:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.all-projects-button:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
}

.all-projects-page .projects-grid {
    display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap: 24px;
      padding: 24px;
}

.all-projects-page .project-card {
  background: var(--secondary-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.all-projects-page .project-card:hover {
  transform: translateY(-5px);
}

/* Existing Project Details Modal Styles */
.project-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.details-modal-content {
  position: relative;
  background: white;
  padding: 30px 20px 20px;
  border-radius: 8px;
  width: 75%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1001;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.details-modal-content img {
  width: 100%; /* Make the image take the full width of the modal */
  max-width: 600px; /* Set a maximum width for the image */
  max-height: 75vh; /* Set a maximum height for the image */
  height: auto; /* Maintain aspect ratio */
  border-radius: 4px; /* Optional: Add some rounding to the corners */
  object-fit: contain; /* Ensure the image scales correctly */
}

.details-modal-content video {
  width: 100%; /* Make the video take the full width of the modal */
  max-width: 600px; /* Set a maximum width for the image */
  max-height: 75vh; /* Set a maximum height for the video */
  height: auto; /* Maintain aspect ratio */
  border-radius: 4px; /* Optional: Add some rounding to the corners */
  object-fit: contain; /* Ensure the video scales correctly */
}

/* Updated Carousel Styles */
.media-section {
  position: relative;
  max-height: 75vh;
  overflow: visible;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-inner {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
  cursor: grab;
}

.carousel-item {
  flex: 0 0 auto;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  transition: opacity 0.5s ease, transform 0.5s ease;
  opacity: 0.5;
  transform: scale(0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  /* Add height to ensure proper vertical centering */
  height: 65vh;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.carousel-item img,
.carousel-item video {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: 4px;
  /* Ensure the media is fully visible */
  margin: auto;
}

/* Carousel Controls */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-control:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 8px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #bbb;
  cursor: pointer;
  transition: background-color 0.3s;
}

.indicator.active {
  background-color: #333;
}

/* For mobile screens */
@media only screen and (hover: none) and (pointer: coarse) {
  .carousel-control {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .details-modal-content {
    width: 90%;
    padding: 15px;
  }

  .indicator {
    width: 8px;
    height: 8px;
  }
}

.github-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #333;
  /* GitHub color */
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.github-link:hover {
  background-color: #555;
  /* Darker shade on hover */
}

.contact-page {
  padding: 50px;
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--secondary-dark);
  border-radius: 8px;
  color: var(--text-primary);
}

.contact-page h2 {
  margin-bottom: 20px;
  color: var(--text-primary); /* Ensure heading color matches */
  font-family: var(--font-heading);
}

.contact-page label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.contact-page input,
.contact-page textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: var(--font-body);
}

.contact-page button {
  background-color: var(--accent);
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-heading);
}

.contact-page button:hover {
  background-color: #5cd1a0;
  /* Darker shade on hover */
}

/* For dark theme support */
/*@media (prefers-color-scheme: dark) {
    .close-modal {
        background-color: #444;
        color: #fff;
    }

    .close-modal:hover {
        background-color: #555;
    }

    .details-modal-content {
        background: #333;
        color: #fff;
    }
}*/

/* Improved List Styling in Modal Content */
.description-section ul {
  padding-left: 25px;
  margin: 10px 0;
  list-style-type: disc;
}

.description-section ul li {
  margin-bottom: 8px;
  position: relative;
  line-height: 1.5;
}

/* Styling for nested lists */
.description-section ul ul,
.description-section ul ol {
  margin-top: 8px;
  padding-left: 20px;
  list-style-type: circle;
}

/* Ensure list bullets are visible */
.description-section ul li::marker {
  color: black; /*var(--accent, #00BCD4);*/
}

/* Add proper spacing for paragraphs inside description */
.description-section p {
  margin-bottom: 15px;
}

/* Make sure the description text has good readability */
.description-section {
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

/* Dark mode support */
/*@media (prefers-color-scheme: dark) {
    .description-section {
        color: #f0f0f0;
    }

    .description-section ul li::marker {
        color: var(--accent, #4ecdc4);
    }
}*/

/* Mobile Responsive Styles for Project Details Modal */
@media only screen and (hover: none) and (pointer: coarse) {
    .details-modal-content {
        width: 95%;
        padding: 15px 10px;
        margin: 2% auto;
        gap: 10px;
    }

    .media-section {
        margin-bottom: 0.5rem;
    }

    .description-section {
        margin-top: 0.5rem;
    }

    .carousel-item {
        height: 40vh;
    }

    .carousel-item img,
    .carousel-item video {
        max-height: 40vh;
    }

    .carousel-control {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .carousel-indicators {
        margin-top: 8px;
        gap: 6px;
    }

    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* Mobile Responsive Styles */
@media only screen and (hover: none) and (pointer: coarse) {
    .hero-section {
        min-height: 80vh;
        margin-bottom: 0;
        padding: 1rem;
        justify-content: center;
        max-width: 100%;
        margin-top: calc(var(--nav-height) - 20px);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-top: -20px;
        padding: 0 0.5rem;
    }

    .mobile-menu {
        display: none;
        position: fixed;
        top: var(--nav-height);
        right: 0;
        width: 75%;
        height: calc(100vh - var(--nav-height));
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .mobile-menu a {
        display: block;
        color: var(--text-primary);
        text-decoration: none;
        font-family: 'Roboto Mono', monospace;
        font-size: 1.2rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        transition: color 0.3s ease;
    }

    /* Mobile dropdown styles */
    .mobile-menu .nav-dropdown {
        position: relative;
        display: block;
        width: 100%;
    }

    .mobile-menu .nav-dropdown-content {
        display: none;
        position: static;
        background: transparent;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0.5rem;
    }

    .mobile-menu .nav-dropdown-content a {
        font-size: 1.1rem;
        padding: 0.5rem 0;
        border-bottom: none;
    }

    .mobile-menu .nav-dropdown-content a:hover {
        color: var(--accent);
    }

    .mobile-menu .nav-dropdown.active .nav-dropdown-content {
        display: block;
    }
}
