/* =========================================
   PROJECT: AI Engagement Platform Case Study
   AUTHOR: Miguel Rodriguez
   ========================================= */

/* =========================================
   VARIABLES
   ========================================= */
:root {
  --bg-light: #fdfdfd;
  --bg-light-alt: #f5f5f5;
  --text-dark: #121212;
  --text-dark-muted: #555555;
  --accent-color: #007AFF;
  --font-headline: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-medium: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition-fast: 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
  --shadow-subtle: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-medium: 0 6px 18px rgba(0,0,0,0.15);
  --shadow-strong: 0 10px 30px rgba(0,0,0,0.25);
}

/* =========================================
   BASE STYLES
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-light);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.light-mode {
  --bg-primary: var(--bg-light);
  --bg-secondary: var(--bg-light-alt);
  --text-primary: var(--text-dark);
  --text-secondary: var(--text-dark-muted);
  cursor: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: rgba(0, 122, 255, 0.7);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
}

/* =========================================
   NAVIGATION
   ========================================= */
.case-study-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 2rem;
  background-color: rgba(253, 253, 253, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
  color: var(--accent-color);
  text-transform: uppercase;
}

.nav-logo:after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition-medium);
}

.nav-logo:hover:after {
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 3.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: var(--text-dark);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link:hover:after {
  width: 100%;
}

/* =========================================
   HERO SECTION
   ========================================= */
.case-study-hero {
  padding: 12rem 0 6rem;
  position: relative;
  text-align: center;
}

.case-study-title {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.case-study-title .line {
  display: block;
  opacity: 0;
}

.case-study-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  max-width: 650px;
  margin: 0 auto 3rem;
  opacity: 0.8;
  color: var(--text-dark-muted);
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-indicator:before {
  content: "";
  position: absolute;
  left: -3.5rem;
  width: 3rem;
  height: 1px;
  background-color: var(--accent-color);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.scroll-indicator:after {
  content: "";
  position: absolute;
  right: -3.5rem;
  width: 3rem;
  height: 1px;
  background-color: var(--accent-color);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 1px solid rgba(0, 122, 255, 0.4);
  border-radius: 60px;
  position: relative;
  margin: 0 auto 0.5rem auto;
}

.wheel {
  width: 3px;
  height: 6px;
  background: var(--accent-color);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
  animation: mouse-wheel 1.5s ease-in-out infinite;
}

@keyframes mouse-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

/* =========================================
   MAIN CONTENT STYLES
   ========================================= */
.mockup-container {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0 4rem;
  transition: transform 0.5s ease;
}

.mockup-container:hover {
  transform: translateY(-5px);
}

.mockup-container.full-width {
  max-width: 100%;
}

.full-width-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.grid-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.metadata-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 2rem;
  background-color: var(--bg-light-alt);
  border-radius: 12px;
}

.metadata-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--text-dark-muted);
  font-weight: 600;
}

.metadata-item p {
  font-size: 1.1rem;
  font-weight: 500;
}

.section-heading {
  font-family: var(--font-headline);
  font-size: 2.5rem;
  margin: 5rem 0 2rem;
  font-weight: 700;
}

.text-block {
  max-width: 800px;
  margin: 0 auto 3rem;
}

.text-block p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.text-block ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.text-block li {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.7;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.process-list {
  list-style: none;
  padding-left: 0;
}

.process-list li {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  position: relative;
}

.process-list li:before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.results-card {
  background: linear-gradient(145deg, #ffffff, #f5f5f5);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.results-card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2.5rem;
}

.return-link {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--accent-color);
  text-decoration: none;
  margin: 5rem 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.return-link:hover {
  transform: translateX(-5px);
}

.return-link svg {
  margin-right: 0.5rem;
  width: 20px;
  height: 20px;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: var(--spacing-lg) 0;
  background: var(--bg-light-alt);
  position: relative;
}

.copyright {
  text-align: center;
  color: var(--text-dark-muted);
  font-size: 0.875rem;
  opacity: 0.7;
}

/* =========================================
   ANIMATION CLASSES (for JS integration)
   ========================================= */
[data-animation="text-reveal"] {
  opacity: 0;
}

[data-animation="fade-in"] {
  opacity: 0;
}

[data-animation="image-reveal"] {
  opacity: 0;
  transform: translateY(20px);
}

[data-animation="paragraph-reveal"] {
  opacity: 0;
  transform: translateY(10px);
}

[data-animation="stagger-fade"] > * {
  opacity: 0;
}

/* =========================================
   RESPONSIVE STYLES
   ========================================= */
@media (max-width: 768px) {
  .case-study-hero {
    padding: 6rem 0 2rem;
    min-height: 40vh;
  }
  
  .metadata-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .results-grid {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .metadata-grid {
    grid-template-columns: 1fr;
  }
}

/* Disclaimer Styling */
.disclaimer-section {
  background-color: rgba(0, 0, 0, 0.03);
  padding: 1.5rem 0;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.disclaimer-section .container {
  max-width: 900px;
}

.disclaimer-content {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.disclaimer-content h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

@media screen and (max-width: 768px) {
  .disclaimer-section {
    padding: 1.25rem 0;
  }
  
  .disclaimer-content {
    font-size: 0.8rem;
  }
}

/* STANDARDIZED FOOTER STYLES */
.site-footer {
  background-color: #000;
  color: #fff;
  padding: 3rem 2rem;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contact, .footer-socials {
  flex: 1 1 300px;
}

.footer-contact h3,
.footer-socials h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.footer-contact input,
.footer-contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.footer-contact textarea {
  min-height: 100px;
  resize: vertical;
}

.footer-contact button {
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-contact button:hover {
  background-color: #ccc;
}

.footer-socials ul {
  list-style: none;
  padding: 0;
}

.footer-socials ul li {
  margin-bottom: 0.5rem;
}

.footer-socials ul li a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-socials ul li a:hover {
  color: #aaa;
}

.footer-disclaimer {
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #aaa;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #666;
}
