/*
  Carson Flood's AI Chat UI 2.0
  Professional, modern design with enhanced UX
*/

:root {
  /* Font family */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* ASU Colors - Updated for more modern palette */
  --asu-maroon: #8C1D40;
  --asu-maroon-dark: #6a1530;
  --asu-maroon-light: #a92d50;
  --asu-gold: #FFC627;
  --asu-gold-light: #ffd347;
  --asu-gold-dark: #e6b223;
  
  /* Neutral colors */
  --dark-bg: #141414;
  --dark-surface: #1d1d1d;
  --gray-100: #f7f7f7;
  --gray-200: #e9e9e9;
  --gray-300: #d1d1d1;
  --gray-400: #b4b4b4;
  --gray-500: #8e8e8e;
  --gray-600: #6e6e6e;
  --gray-700: #464646;
  --gray-800: #2c2c2c;
  --gray-900: #1a1a1a;
  
  /* Text colors */
  --text-light: #ffffff;
  --text-light-secondary: rgba(255, 255, 255, 0.75);
  --text-dark: #212529; 
  --text-dark-secondary: #4e4e4e;
  
  /* Container backgrounds */
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-bg-light: rgba(255, 255, 255, 0.12);
  --card-hover: rgba(255, 255, 255, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 15px rgba(255, 198, 39, 0.3);
  
  /* Spacing */
  --spacing-xxs: 0.25rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-xxl: 1.5rem;
  --radius-round: 999px;
  
  /* Z-index layers */
  --z-background: -1;
  --z-default: 1;
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
  --z-toast: 400;
  --z-max: 9999;
  --z-sticky: 1000;
}

/* Reset & Base Styles */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Removed smooth scrolling behavior that was causing auto-scrolling */
  /* scroll-behavior: smooth; */
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--text-light);
  background-color: var(--dark-bg);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-normal) ease;
}

button {
  cursor: pointer;
  font-family: var(--font-family);
  border: none;
  background: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes dots {
  0%, 20% { content: "Thinking"; }
  40% { content: "Thinking."; }
  60% { content: "Thinking.."; }
  80% { content: "Thinking..."; }
  100% { content: "Thinking"; }
}

/* Wave Animation */
@keyframes wave {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.8); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

/* Wave Animation Styles */
.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  overflow: hidden;
  z-index: 1;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1000 150" xmlns="http://www.w3.org/2000/svg"><path d="M0,100 C150,150 350,0 500,100 C650,200 850,50 1000,100 L1000,200 L0,200 Z" fill="%238C1D40" /></svg>') repeat-x;
  background-size: 50% 100%;
  background-position: 0 bottom;
  transform-origin: center bottom;
}

.wave1 {
  opacity: 0.9;
  animation: wave 18s linear infinite;
  z-index: 4;
  height: 90%;
}

.wave2 {
  opacity: 0.7;
  animation: wave 15s linear reverse infinite;
  z-index: 3;
  height: 80%;
}

.wave3 {
  opacity: 0.5;
  animation: wave 20s linear infinite;
  z-index: 2;
  height: 70%;
}

.section-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke-width="1" stroke="rgba(255,255,255,0.05)" fill="none" /></svg>'),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 25%);
  pointer-events: none;
  opacity: 0.8;
  z-index: var(--z-background);
}

.intro-content {
  max-width: 800px;
  z-index: var(--z-default);
  position: relative;
  padding: var(--spacing-xl);
}

.intro-container {
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin: 0 auto;
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.section-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.04em;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--text-light) 0%, var(--asu-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-intro p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-xl);
  color: var(--text-light-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.section-intro .highlight {
  color: var(--asu-gold);
  font-weight: 500;
}

.section-intro .badge {
  display: inline-block;
  background: var(--asu-gold);
  color: var(--asu-maroon-dark);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-round);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scroll-prompt {
  position: absolute;
  bottom: var(--spacing-lg);
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 80px; /* Fixed width to center it properly */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  opacity: 0.7;
  transition: opacity var(--transition-normal) ease, transform var(--transition-normal) ease;
  cursor: pointer;
  z-index: var(--z-default);
  animation: pulse 2s infinite;
  text-align: center;
}

.scroll-prompt:hover {
  opacity: 1;
  transform: translateY(5px);
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--text-light);
  border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg);
  margin: 0 auto;
}

.scroll-prompt span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  color: var(--text-light);
}

/* Chat Section */
.section-chat {
  background: var(--dark-bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section-chat.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.chat-container {
  width: 100%;
  max-width: 960px;
  background: var(--dark-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--asu-maroon) 0%, var(--asu-gold) 50%, var(--asu-maroon) 100%);
  background-size: 200% 200%;
  animation: gradientBG 15s ease infinite;
  z-index: 2;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.chat-container h2 {
  color: var(--text-light);
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Chat Input Area */
.input-container {
  margin-bottom: var(--spacing-xl);
}

.input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-round);
  padding: 0.25rem 0.25rem 0.25rem 1.5rem;
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal) ease;
}

.input-group:focus-within {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  padding: 0.75rem 0;
  outline: none;
  font-family: var(--font-family);
  -webkit-appearance: none;
  appearance: none;
}

.input-group input::placeholder {
  color: var(--gray-500);
  opacity: 0.7;
}

.input-group button {
  background: var(--asu-maroon);
  color: var(--text-light);
  border-radius: var(--radius-round);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-normal) ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-group button:hover {
  background: var(--asu-maroon-light);
}

.input-group button:active {
  transform: scale(0.97);
}

.input-group button svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Suggestions */
.suggestions {
  margin-top: var(--spacing-md);
}

.suggestions-title {
  font-size: 0.875rem;
  color: var(--text-light-secondary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.suggestions-title svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.suggestion-chips {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.suggestion-chip {
  padding: var(--spacing-xs) var(--spacing-sm);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-round);
  font-size: 0.8rem;
  color: var(--text-light-secondary);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition-fast) ease;
}

.suggestion-chip:hover {
  background: rgba(255,255,255,0.2);
  color: var(--text-light);
  transform: translateY(-1px);
}

/* Answer Area */
.answer-container {
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.answer-header {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--asu-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: var(--spacing-sm);
  color: var(--asu-gold);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--asu-gold);
}

.answer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
}

.answer-area {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 150px;
  margin-bottom: var(--spacing-md);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.answer-area.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-style: italic;
  text-align: center;
  padding: var(--spacing-xxl);
}

.answer-area.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-style: italic;
}

.answer-area.loading::after {
  content: "Thinking...";
  display: inline-block;
  animation: dots 2s linear infinite;
  margin-left: 0.25rem;
}

/* Feedback */
.feedback-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  margin-top: var(--spacing-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-normal) ease, transform var(--transition-normal) ease;
}

.feedback-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.feedback-text {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-right: var(--spacing-md);
}

.feedback-buttons {
  display: flex;
  gap: var(--spacing-sm);
}

.feedback-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal) ease;
  color: var(--gray-400);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feedback-btn.positive:hover {
  color: #22c55e; /* Success green */
}

.feedback-btn.negative:hover {
  color: #ef4444; /* Error red */
}

.feedback-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.feedback-btn.positive svg {
  transform: rotate(0deg);
}

.feedback-btn.negative svg {
  transform: rotate(180deg);
}

.feedback-btn:hover svg {
  transform: scale(1.1);
}

.feedback-thanks {
  font-size: 0.9rem;
  color: var(--asu-gold);
  text-align: center;
  padding: var(--spacing-md);
  animation: fadeIn 0.5s ease forwards;
}

/* Chat History */
.chat-history {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.chat-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.chat-history h3 {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.chat-history h3 svg {
  width: 18px;
  height: 18px;
  opacity: 0.8;
}

.clear-history {
  font-size: 0.85rem;
  color: var(--gray-400);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-round);
  transition: all var(--transition-fast) ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.clear-history:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.clear-history svg {
  width: 14px;
  height: 14px;
}

.history-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  padding-right: var(--spacing-sm);
  scrollbar-width: thin;
  margin-top: var(--spacing-sm);
}

.history-list li {
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: var(--spacing-sm);
  font-size: 0.9rem;
  color: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-list li:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-light);
}

.history-list li:active {
  transform: scale(0.98);
}

.history-list li::before {
  content: "→";
  margin-right: var(--spacing-xs);
  opacity: 0.7;
  color: var(--asu-gold);
  display: inline-block;
}

.history-list .history-empty {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--gray-500);
  font-style: italic;
  background: transparent;
}

.history-list .history-empty::before {
  display: none;
}

.history-list .history-empty:hover {
  background: transparent;
}

.history-list::-webkit-scrollbar {
  width: 4px;
}

.history-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-round);
}

.history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-round);
}

/* Sticky Contact Bar */
.sticky-contact {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 0.75rem 0;
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.sticky-contact .contact-icons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.sticky-contact a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  display: inline-flex;
  align-items: center;
}

.sticky-contact a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--asu-gold);
  transition: width var(--transition-normal) ease;
  opacity: 0;
}

.sticky-contact a:hover::after {
  width: 100%;
  opacity: 1;
}

.sticky-contact svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-light);
  transition: all 0.2s ease;
}

.sticky-contact a:hover svg {
  stroke: var(--asu-gold);
  transform: scale(1.1);
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: var(--spacing-lg) 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xxl: 2rem;
  }
  
  section {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .section-intro h1 {
    font-size: 2.5rem;
  }
  
  .section-intro p {
    font-size: 1rem;
  }
  
  .chat-container {
    padding: var(--spacing-lg);
  }
  
  .chat-container h2 {
    font-size: 1.5rem;
  }
  
  .input-group input {
    font-size: 0.95rem;
  }
  
  .answer-area {
    font-size: 0.95rem;
  }
  
  .sticky-contact {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.8rem;
  }
  
  .suggestion-chips {
    overflow-x: auto;
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .section-intro h1 {
    font-size: 2rem;
  }
  
  .section-intro p {
    font-size: 0.95rem;
  }
  
  .chat-container {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }
  
  .chat-container h2 {
    font-size: 1.25rem;
  }
  
  .input-group {
    flex-direction: column;
    padding: 0.25rem;
    background: transparent;
    border: none;
  }
  
  .input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .input-group button {
    width: 100%;
    justify-content: center;
  }
  
  .feedback-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .feedback-text {
    margin-right: 0;
  }
  
  .history-list {
    max-height: 150px;
  }
}

/* Feedback Widget */
.feedback-widget {
  position: fixed;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.feedback-widget-toggle {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  background: var(--asu-maroon);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal) ease;
  z-index: var(--z-max);
}

.feedback-widget-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--text-light);
  transition: transform var(--transition-normal) ease;
}

.feedback-widget-toggle:hover {
  background: var(--asu-maroon-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feedback-widget-toggle:hover svg {
  transform: rotate(15deg);
}

.feedback-widget-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 320px;
  background: var(--dark-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-lg);
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal) var(--transition-bounce);
  transform-origin: bottom right;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.feedback-widget-panel.active {
  transform: scale(1);
  opacity: 1;
  pointer-events: all;
  z-index: var(--z-toast);
}

.feedback-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-widget-header h4 {
  margin: 0;
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
}

.feedback-widget-close {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
  color: var(--gray-400);
}

.feedback-widget-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.feedback-widget-body {
  margin-bottom: var(--spacing-md);
}

.feedback-widget-body textarea {
  width: 100%;
  height: 100px;
  resize: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--text-light);
  padding: var(--spacing-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: all var(--transition-normal) ease;
  margin-bottom: var(--spacing-md);
}

.feedback-widget-body textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.feedback-widget-rating {
  margin-bottom: var(--spacing-md);
}

.feedback-widget-rating span {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  color: var(--gray-300);
}

.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: var(--gray-600);
  font-size: 1.5rem;
  padding: 0 0.1em;
  cursor: pointer;
}

.star-rating label::before {
  content: "★";
  transition: all var(--transition-fast) ease;
  display: inline-block;
}

.star-rating input:checked ~ label::before,
.star-rating label:hover::before,
.star-rating label:hover ~ label::before {
  color: var(--asu-gold);
}

.feedback-widget-submit {
  width: 100%;
  background: var(--asu-maroon);
  color: var(--text-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-normal) ease;
}

.feedback-widget-submit:hover {
  background: var(--asu-maroon-light);
}

.feedback-widget-submit:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .feedback-widget {
    bottom: var(--spacing-sm);
    right: var(--spacing-sm);
  }
  
  .feedback-widget-toggle {
    width: 45px;
    height: 45px;
  }
  
  .feedback-widget-toggle svg {
    width: 20px;
    height: 20px;
  }
  
  .feedback-widget-panel {
    width: 280px;
    max-width: calc(100vw - 40px);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s var(--transition-bounce) forwards;
}

.animate-slide-left {
  animation: slideLeft 0.6s var(--transition-bounce) forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Section Layouts */
section {
  /* Removed scroll-snap-align to prevent auto-scrolling */
  /* scroll-snap-align: start; */
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  overflow: hidden;
}

/* Parallax Section */
.section-intro {
  background: var(--asu-maroon);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: var(--z-background);
}

.parallax-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal) ease, opacity var(--transition-normal) ease;
}

.layer-bg {
  background: radial-gradient(
    ellipse at center,
    var(--asu-maroon) 0%,
    var(--asu-maroon-dark) 100%
  );
}

.layer-1, .layer-2, .layer-4 {
  color: var(--text-light);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.layer-1 {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.layer-2 {
  color: var(--asu-gold);
  font-size: 6.5rem;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.layer-3 {
  position: absolute;
  width: 100%;
  height: 50%;
  bottom: 0;
  overflow: hidden;
  z-index: 2;
}

.layer-4 {
  font-size: 4rem;
  opacity: 0.5;
  transform: translateY(30px);
} 