/* ============================================== */
/*                    VARIABLES                   */
/* ============================================== */

:root {
  /* Primary Colors */
  --primary-color: #000000;
  --secondary-color: #808080;
  --accent-color: #373737;
  
  /* Background Colors */
  --body-bg: #ffffff;
  --card-bg: #fff;
  --form-bg: #F5F5F5;
  --results-bg: #f9f9f9;
  
  /* Text Colors */
  --text-primary: #000000;
  --text-secondary: #555;
  --text-light: #fff;
  
  /* Border Colors */
  --border-color: #E0E0E0;
  --focus-border: #808080;
  
  /* Shadow Colors */
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.2);
  --shadow-heavy: rgba(0,0,0,0.1);
  
  /* Spacing */
  --section-padding: 4rem;
  --card-padding: 1.5rem;
  --button-padding: 0.75rem 2rem;
  
  /* Typography */
  --font-family-main: 'Open Sans', sans-serif;
  --font-family-heading: 'Orbitron', sans-serif;
  --line-height: 1.6;
}

/* ============================================== */
/*                    RESET                       */
/* ============================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-main);
  background-color: var(--body-bg);
  color: var(--text-primary);
  line-height: var(--line-height);
  padding: 0 0rem;
}

h1, h2, h3 {
  font-family: var(--font-family-heading);
  margin-bottom: 1rem;
  margin-top: 1rem;
  text-align: center;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* ============================================== */
/*                   HEADER                       */
/* ============================================== */

header {
  position: sticky;
  top: 0;
  background: var(--card-bg);
  z-index: 10;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* ============================================== */
/*             RESPONSIVE MENU                    */
/* ============================================== */

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 4px 6px var(--shadow-heavy);
    transform: translateY(-40px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ============================================== */
/*                HERO SECTION                    */
/* ============================================== */

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero .btn {
  display: inline-block;
  margin: 0 auto;
}

/* ============================================== */
/*                SECTIONS                        */
/* ============================================== */

section {
  padding: var(--section-padding) 0;
  max-width: 900px;
  margin: auto;
}

.work-grid {
  text-align: center;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  padding: var(--card-padding);
  border: 1px solid var(--border-color);
  border-radius: 1px;
  transition: 0.3s ease;
  margin-bottom: 3rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.bio-section p {
  margin-bottom: 1rem;
}

.bio-section a {
  color: var(--text-primary);
  text-decoration: underline;
  position: relative;
}

.bio-section a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.bio-section a:hover::after {
  transform: scaleX(1);
}

.services ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.services li {
  margin: 1rem 0;
  position: relative;
  padding-left: 1.5rem;
  font-size: 1rem;
}

.services li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1rem;
}

.contact-section {
  text-align: center;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--form-bg);
  transition: border 0.3s ease;
}

.contact-section input:focus,
.contact-section textarea:focus {
  border-color: var(--focus-border);
  outline: none;
  background: var(--card-bg);
  box-shadow: 0 0 0 3px rgba(128, 128, 128, 0.2);
}

.contact-section button {
  width: auto;
}

.contact-info {
  margin-top: 2rem;
}

.contact-info a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.contact-info a:hover::after {
  transform: scaleX(1);
}

/* ============================================== */
/*                  BUTTONS                       */
/* ============================================== */

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: var(--button-padding);
  background: var(--primary-color);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  width: auto;
  text-align: center;
  
}

.btn:hover {
  background: var(--secondary-color);
}

#divider {
  padding: 0.60rem;
}

/* ============================================== */
/*                 FOOTER                         */
/* ============================================== */

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* ============================================== */
/*              RESULTS SHOWCASE                  */
/* ============================================== */

/*

.results-showcase {
  padding: var(--section-padding) 2rem;
  text-align: center;
  background-color: var(--results-bg);
}

.results-showcase h3 {
  font-family: var(--font-family-heading);
  margin-bottom: 2rem;
  color: #222;
}

.results-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.results-grid img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px var(--shadow-light);
  object-fit: cover;
}

*/

/* ============================================== */
/*              MEDIA QUERIES                     */
/* ============================================== */

/* Mobile Styles */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services li {
    font-size: 0.95rem;
  }

  .bio-section p {
    font-size: 0.95rem;
  }

  .contact-section input,
  .contact-section textarea {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .btn {
    width: 100%;
  }

  .contact-section button {
    align-self: center;
  }

  /* Results Showcase Mobile */
  .results-grid {
    flex-direction: column;
    align-items: center;
  }

  .results-grid img {
    max-width: 100%;
  }
}

/* Hover Support for Touch Devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--shadow-light);
  }

  .nav-links a:hover {
    color: var(--secondary-color);
  }
}

/**/

/* ============================================== */
/*                 LAYOUT                         */
/* ============================================== */

main {
  padding: 0 2rem;
}

/* ============================================== */
/*                 TESTIMONIAL CARD               */
/* ============================================== */

.card {
  background-color: rgba(243, 244, 246, 1);
  padding: 2rem;
  max-width: 30rem;
  margin-inline: auto;
  border-radius: 10px;
  box-shadow: 0 20px 30px -20px rgba(5, 5, 5, 0.24);
}

.header {
  display: flex;
  align-items: center;
  grid-gap: 1rem;
  gap: 1rem;
}

.header .image {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.test1 {
  background-image: url("images/anaspfp.jpg");
}

.test2 {
  background-image: url("images/sulopfp.jpg");
}

.test3 {
  background-image: url("images/logenpfp.jpg");
}

.name {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  --tw-text-opacity: 1;
  color: rgba(55, 65, 81, 1);
}

.message {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  margin-top: 1rem;
  color: rgba(107, 114, 128, 1);
}

/* ============================================== */
/*                 TESTIMONIAL AUDIO              */
/* ============================================== */

.audio-container {
  display: flex;
  align-items: center;
}

audio {
  width: 100%;
}

/* ============================================== */
/*                STORY / PRE BLOCK               */
/* ============================================== */

.story-block {
  background: var(--card-bg);
  padding: 2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 20px var(--shadow-light);
  white-space: pre-wrap;        /* preserves formatting */
  word-wrap: break-word;
  overflow-x: auto;             /* prevents overflow on mobile */
  font-family: var(--font-family-main);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  max-width: 900px;
  margin: 2rem auto;
}

/* Make it responsive */
@media (max-width: 768px) {
  .story-block {
    padding: 1.25rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
}
