/* Bodoni Moda - For Heading Text */

@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&display=swap");
@font-face {
	font-family: 'gothic';
	src: local('gothic'), url('../gothic.woff') format('woff');
}
* {
  padding: 0%;
  margin: 0%;
  box-sizing: border-box;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --Purple500: #63378d;
  --Purple900: #1c0a43;
  --Yellow500: #ffd364;
  --Teal500: #2f847d;
  --Teal900: #09303f;
  --Title-Font: "Bodoni Moda";
  --Body-Font: "Century Gothic", 'gothic';
}
body {
  overflow-x: hidden;

  font-weight: 400;
  font-style: normal;
  background-color: var(--Purple500);
  color: white;
  height: 100vh;
  width: 100%;
}
/* START -Scrollbar Styling */
body::-webkit-scrollbar {
  width: 1rem;
}

body::-webkit-scrollbar-track {
  background: yellow;
  width: 1rem;
}

body::-webkit-scrollbar-thumb {
  background: var(--Purple900);
}
/* END- Scrollbar styling */

.PageWrapper-Projects-MainPage {
  background-color: var(--Purple500);
  background-image: url(../Assets/BackgroundGradientLRG.jpg);
  display: flex;
  flex-direction: column;
  font-family: var(--Body-Font);
}
/* Hero Section */
.services-hero-section {
  height: 50vh;
  min-height: fit-content;
  background-color: var(--Purple900);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-bottom: 2rem;
}

.services-hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(99, 55, 141, 0.9) 0%,
    rgba(28, 10, 67, 0.9) 100%
  );
  z-index: 1;
}

.services-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.services-hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--Yellow500);
  font-family: var(--Title-Font);
}

.services-hero-content p {
  font-size: 1.5rem;
  font-family: var(--Body-Font);
}

/* Project Cards Grid - IMPROVED RESPONSIVE LAYOUT */
.Project-Grid-Container {
  display: flex;
  justify-content: center;
  padding: 2rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  gap: 2rem;
}

.Project-Column-1,
.Project-Column-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

/* Card Links from Main ProjectS page onto Sub pages
 showcasing full project details */
.Project-Page-LinkToProject {
  text-decoration: none;
  width: 100%;
  display: block;
}

/* Card Styling - IMPROVED RESPONSIVE DESIGN */
.Projects-MainPage-ProjectCardContainer {
  font-family: var(--Body-Font);
  border-radius: 2rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* Glassmorphism styling */
  background: rgba(133, 218, 195, 0.27);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(11.4px);
  -webkit-backdrop-filter: blur(11.4px);
  border: 1px solid rgba(133, 218, 195, 1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Projects-MainPage-ProjectCardContainer:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  /* To show full box on hover */
  overflow-y: visible;
}

.Projects-MainPage-CardImg {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}

.Projects-MainPage-CardImg > img {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
  object-fit: cover;
}

.Projects-MainPage-CardText {
  margin-top: 1rem;
  color: #f0daf9;
  width: 100%;
}

.Projects-MainPage-CardTextTitle {
  text-align: center;
}

.Projects-MainPage-CardTextTitle h2 {
  font-size: 1.5rem;
}

.Projects-MainPage-CardSubtitleText {
  font-style: italic;
  padding-top: 0.5rem;
  opacity: 0.75;
  text-align: center;
}

.Projects-MainPage-CardSubtitleText h4 {
  font-size: 1rem;
  font-weight: 400;
}

/* CTA Section */
.services-cta-section {
  padding: 5rem 2rem;
  background-color: var(--Teal900);
  color: white;
  text-align: center;
  overflow: hidden; /* Added to contain CTA button hover effects */
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--Yellow500);
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  font-family: var(--Body-Font);
}

/* Modified CTA buttons container to use flex */
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  padding: 0.5rem; /* Add padding to contain hover effects */
  font-family: var(--Body-Font);
}

/* Fixed CTA button hover effects to prevent scrollbar */
.primary-cta-button {
  display: inline-flex; /* Changed to inline-flex */
  align-items: center;
  justify-content: center;
  background-color: var(--Yellow500);
  color: var(--Purple900);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform; /* Optimize for animations */
  position: relative; /* Establish containing block */
  overflow: visible !important;
}

.primary-cta-button:hover {
  background-color: white;
  transform: scale(1.05) translateZ(0);
}

.secondary-cta-button {
  display: inline-flex; /* Changed to inline-flex */
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: white;
  text-decoration: none;
  padding: 0.9rem 2.4rem;
  border-radius: 2rem;
  font-weight: 600;
  border: 2px solid white;
  transition: all 0.3s ease;
  transform: translateZ(0); /* Force GPU acceleration */
  will-change: transform; /* Optimize for animations */
  position: relative; /* Establish containing block */
  overflow: visible !important;
}

.secondary-cta-button:hover {
  background-color: white;
  color: var(--Purple900);
  transform: scale(1.05) translateZ(0);
}

/* RESPONSIVE BREAKPOINTS - IMPROVED FOR MOBILE */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .Project-Grid-Container {
    padding: 1.5rem;
  }

  .Projects-MainPage-ProjectCardContainer {
    max-width: 25rem;
    padding: 1.25rem;
  }

  .services-hero-content h1 {
    font-size: 2.8rem;
  }

  .services-hero-content p {
    font-size: 1.2rem;
  }
}

/* Small Tablet Breakpoint */
@media (max-width: 768px) {
  .Project-Grid-Container {
    flex-direction: column;
    align-items: center;
  }

  .Project-Column-1,
  .Project-Column-2 {
    width: 100%;
  }

  .Projects-MainPage-ProjectCardContainer {
    max-width: 100%;
  }

  .services-hero-content h1 {
    font-size: 2.2rem;
  }

  .services-hero-content p {
    font-size: 1rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }
}

/* Mobile Breakpoint - Single Column Layout */
@media (max-width: 480px) {
  .Project-Grid-Container {
    padding: 1rem;
    gap: 1.5rem;
  }

  .Project-Column-1,
  .Project-Column-2 {
    gap: 1.5rem;
  }

  .Projects-MainPage-ProjectCardContainer {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .Projects-MainPage-CardImg > img {
    border-radius: 1rem;
  }

  .Projects-MainPage-CardTextTitle h2 {
    font-size: 1.25rem;
  }

  .Projects-MainPage-CardSubtitleText h4 {
    font-size: 0.9rem;
  }

  .services-hero-section {
    height: auto;
    padding: 3rem 0;
  }

  .services-hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .services-hero-content p {
    font-size: 0.9rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .primary-cta-button,
  .secondary-cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* Very Small Mobile Screens */
@media (max-width: 320px) {
  .Projects-MainPage-CardTextTitle h2 {
    font-size: 1.1rem;
  }

  .Projects-MainPage-CardSubtitleText h4 {
    font-size: 0.8rem;
  }

  .services-hero-content h1 {
    font-size: 1.5rem;
  }
}
