@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@3.3.6/base.min.css';
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@3.3.6/components.min.css';
@import 'https://cdn.jsdelivr.net/npm/tailwindcss@3.3.6/utilities.min.css';

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 8.9%, 46.1%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 8.9%, 46.1%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(220, 8.9%, 46.1%);
  --primary: hsl(217.2, 91.2%, 59.8%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(210, 40%, 96%);
  --secondary-foreground: hsl(215.4, 16.3%, 46.9%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --accent: hsl(217.2, 91.2%, 59.8%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 100%, 50%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(214.3, 31.8%, 91.4%);
  --input: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(217.2, 91.2%, 59.8%);
  --chart-1: hsl(217.2, 91.2%, 59.8%);
  --chart-2: hsl(173, 58%, 39%);
  --chart-3: hsl(197, 37%, 24%);
  --chart-4: hsl(43, 74%, 66%);
  --chart-5: hsl(27, 87%, 67%);
  
  --glass-light: hsla(0, 0%, 100%, 0.1);
  --glass-border-light: hsla(0, 0%, 100%, 0.2);
  --glass-dark: hsla(220, 39%, 11%, 0.8);
  --glass-border-dark: hsla(217, 19%, 27%, 0.3);
  
  --font-sans: 'Inter', system-ui, sans-serif;
  --radius: 1rem;

  /* Chat Bubble Variables */
  --send-bg: #0B93F6;
  --send-color: white;
  --receive-bg: #E5E5EA;
  --receive-text: black;
}

.dark {
  --background: hsl(224, 71.4%, 4.1%);
  --foreground: hsl(210, 20%, 98%);
  --card: hsl(224, 71.4%, 4.1%);
  --card-foreground: hsl(210, 20%, 98%);
  --popover: hsl(224, 71.4%, 4.1%);
  --popover-foreground: hsl(210, 20%, 98%);
  --primary: hsl(217.2, 91.2%, 59.8%);
  --primary-foreground: hsl(222.2, 84%, 4.9%);
  --secondary: hsl(215, 27.9%, 16.9%);
  --secondary-foreground: hsl(210, 20%, 98%);
  --muted: hsl(215, 27.9%, 16.9%);
  --muted-foreground: hsl(217.9, 10.6%, 64.9%);
  --accent: hsl(217.2, 91.2%, 59.8%);
  --accent-foreground: hsl(210, 20%, 98%);
  --destructive: hsl(0, 62.8%, 30.6%);
  --destructive-foreground: hsl(210, 20%, 98%);
  --border: hsl(215, 27.9%, 16.9%);
  --input: hsl(215, 27.9%, 16.9%);
  --ring: hsl(217.2, 91.2%, 59.8%);
  --chart-1: hsl(217.2, 91.2%, 59.8%);
  --chart-2: hsl(173, 58%, 39%);
  --chart-3: hsl(197, 37%, 24%);
  --chart-4: hsl(43, 74%, 66%);
  --chart-5: hsl(27, 87%, 67%);

  /* Chat Bubble Variables Dark Mode */
  --receive-bg: #262626;
  --receive-text: white;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

.glass-card-apple {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
}

.dark .glass-card-apple {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

* {
  border-color: var(--border);
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
}

.glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card {
  background: var(--glass-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-light);
}

.dark .glass-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
}

.hero-3d {
  background: linear-gradient(45deg, #3B82F6, #8B5CF6, #06B6D4);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }
  100% { box-shadow: 0 0 40px rgba(59, 130, 246, 0.6); }
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

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

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-pulse-subtle {
    animation: pulse-subtle 2s infinite ease-in-out;
}

/* Coming Soon Page Styles */
.coming-soon-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--background);
}

.coming-soon-card {
  max-width: 28rem;
  width: 100%;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.coming-soon-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.coming-soon-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.coming-soon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--accent-foreground);
  text-decoration: none;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.coming-soon-button:hover {
  background: hsl(217.2, 91.2%, 54.8%);
  transform: translateY(-1px);
}

/* Basic utility classes for layout */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.text-center { text-align: center; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

/* Timer dropdown styles */
.timer-dropdown {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.picker-column {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.dark .picker-column {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.scrollbar-hide {
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Navbar icon hover effects */
nav button {
    transition: all 0.3s ease;
}

nav button:hover {
    color: #3b82f6;
}

nav button:hover svg {
    stroke: #3b82f6;
}

/* Physics Pro logo hover effect */
nav .flex-shrink-0 button:hover {
    color: #3b82f6 !important;
}

/* Smooth rotation for scroll arrow */
#scroll-bottom svg {
    transition: transform 0.3s ease;
}

/* iOS Timer Scroll Picker Styles */
.select-wrap {
    position: relative;
    height: 100%;
    text-align: center;
    overflow: hidden;
    perspective: 1200px;
    font-size: 16px;
    color: #666;
}

.select-options {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform-style: preserve-3d;
    margin: 0 auto;
    display: block;
    transform: translateZ(-60px) rotateX(0deg);
    list-style: none;
    padding: 0;
}

.select-option {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    line-height: 30px;
    color: #666;
    cursor: grab;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.dark .select-option {
    color: #ccc;
}

.highlight {
    position: absolute;
    top: 50%;
    transform: translate(0, -50%);
    width: 100%;
    height: 30px;
    background-color: rgba(59, 130, 246, 0.1);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    pointer-events: none;
    z-index: 10;
}

.dark .highlight {
    background-color: rgba(59, 130, 246, 0.2);
    border-top: 1px solid rgba(59, 130, 246, 0.4);
    border-bottom: 1px solid rgba(59, 130, 246, 0.4);
}

/* Liquid glass header */
.glass-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.glass-right {
  display: flex;
  gap: 12px;
}

.glass-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.22),
      rgba(255,255,255,0.08)
    );
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.35),
    0 8px 24px rgba(0,0,0,0.25);
}

.dark .glass-group {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.02)
    );
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.15),
    0 8px 24px rgba(0,0,0,0.45);
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
}

/* icon bubble sizing only */
.glass-icons > * {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

/* Match brand bubble height to icon/sign-out bubbles */
.glass-brand {
  min-height: 56px;
}

/* iOS-style accordion for videos page */
.accordion-card {
  background: var(--glass-light);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--glass-border-light);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.25),
    0 10px 30px rgba(0,0,0,0.08);
}
.dark .accordion-card {
  background: var(--glass-dark);
  border: 1px solid var(--glass-border-dark);
}
.accordion-header {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}
.dark .accordion-header {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
}
.accordion-header:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
}
.accordion-content {
  padding-top: 4px;
  padding-bottom: 10px;
}
.accordion-subsection {
  border-top: 1px solid var(--border);
}
.accordion-subheader {
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}
.accordion-subheader:hover {
  transform: translateY(-1px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
}
.accordion-subcontent {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
}
.dark .accordion-subcontent {
  background: rgba(0,0,0,0.15);
}
.video-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.video-item:hover {
  background: rgba(255,255,255,0.10);
  transform: translateX(2px);
}
.dark .video-item {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.12);
}
.dark .video-item:hover {
  background: rgba(0,0,0,0.35);
}

/* Glass Card Apple Style */
.glass-card-apple {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.1);
}

.dark .glass-card-apple {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Snap Utilities */
.snap-x {
    scroll-snap-type: x mandatory;
}

.snap-center {
    scroll-snap-align: center;
}

.chat-bubble {
  position: relative;
  padding: 10px 20px;
  border-radius: 25px;
  word-wrap: break-word;
  line-height: 24px;
  margin-bottom: 12px;
}

.chat-bubble::before,
.chat-bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 25px;
}

/* Blue Send Bubble (Right side) */
.chat-send {
  color: var(--send-color);
  background: var(--send-bg);
}

.chat-send::before {
  right: -7px;
  width: 20px;
  background-color: var(--send-bg);
  border-bottom-left-radius: 16px 14px;
}

.chat-send::after {
  right: -26px;
  width: 26px;
  background-color: var(--background);
  border-bottom-left-radius: 10px;
}

/* Gray Receive Bubble (Left side) */
.chat-receive {
  background: var(--receive-bg);
  color: var(--receive-text);
}

.chat-receive::before {
  left: -7px;
  width: 20px;
  background-color: var(--receive-bg);
  border-bottom-right-radius: 16px 14px;
}

.chat-receive::after {
  left: -26px;
  width: 26px;
  background-color: var(--background);
  border-bottom-right-radius: 10px;
}

/* Gray Send Bubble (Right side, Gray color for "You") */
.chat-send-gray {
  color: var(--receive-text);
  background: var(--receive-bg);
}

.chat-send-gray::before {
  right: -7px;
  width: 20px;
  background-color: var(--receive-bg);
  border-bottom-left-radius: 16px 14px;
}

.chat-send-gray::after {
  right: -26px;
  width: 26px;
  background-color: var(--background);
  border-bottom-left-radius: 10px;
}

/* Typing Indicator Animation */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af; /* Gray-400 */
}

.dark .typing-dot {
  background: #6b7280; /* Gray-500 */
}

.typing-dot.one {
  animation: cycleOne 1s ease-in-out infinite;
}

.typing-dot.two {
  animation: cycleTwo 1s ease-in-out infinite;
}

.typing-dot.three {
  animation: cycleThree 1s ease-in-out infinite;
}

@keyframes cycleOne {
  0% { opacity: 0.4; }
  33.333% { opacity: 1; }
  66.6667% { opacity: 0.4; }
  100% { opacity: 0.4; }
}

@keyframes cycleTwo {
  0% { opacity: 0.4; }
  33.333% { opacity: 0.4; }
  66.6667% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes cycleThree {
  0% { opacity: 0.4; }
  33.333% { opacity: 0.4; }
  66.6667% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Enhanced Glass Material */
 .GlassContainer { 
     --corner-radius: 999px; 
     --base-strength: 14px; 
     --extra-blur: 2px; 
     --softness: 12px; 
     --tint-amount: 0; 
     --tint-saturation: 2; 
     --tint-hue: 180deg; 
     --contrast: 1; 
     --brightness: 1; 
     --invert: 10%; 
 
     --total-strength: calc(var(--base-strength) + var(--extra-blur)); 
     --edge-width: calc(0.3px + (var(--softness) * 0.1)); 
     --emboss-width: calc((var(--softness) * 0.38)); 
     --refraction-width: calc((var(--softness) * 0.3)); 
 
     position: relative; 
     overflow: visible; 
     pointer-events: none; 
 } 
 .GlassContent { 
     position: relative; 
     display: block; 
     z-index: 100; 
     overflow: hidden; 
     border-radius: var(--corner-radius); 
     pointer-events: auto; 
 } 
 .GlassMaterial { 
     position: absolute; 
     inset: 0; 
     z-index: 1; 
     overflow: visible; 
     pointer-events: none; 
 } 
 .GlassMaterial:after { 
     content: ''; 
     display: block; 
     position: absolute; 
     inset: 0; 
     z-index: 3; 
     overflow: hidden; 
     border-radius: var(--corner-radius); 
     background-color: rgba(128, 128, 128, 0); 
 } 
 .GlassMaterial > div { 
     position: absolute; 
     inset: 0; 
     box-sizing: border-box; 
     border-radius: var(--corner-radius); 
     z-index: 2; 
     overflow: hidden; 
 } 
 .GlassMaterial .GlassEdgeReflection { 
     z-index: 4; 
     margin: calc(var(--total-strength) * -1); 
     border-radius: calc(var(--corner-radius) + var(--total-strength)); 
     backdrop-filter: blur(var(--total-strength)) brightness(1.2) saturate(1.2); 
     padding: var(--edge-width); 
     border: var(--total-strength) solid transparent; 
     mask: 
         linear-gradient(white 0 0) padding-box, 
         linear-gradient(white 0 0) content-box; 
     mask-composite: exclude, exclude; 
 } 
 .GlassMaterial .GlassEmbossReflection { 
     backdrop-filter: blur(calc(var(--total-strength) * 1.5)) invert(0.25) brightness(1.11) saturate(1.2) hue-rotate(-10deg) contrast(2.3); 
     padding: var(--emboss-width); 
     border: 0 solid transparent; 
     mask: 
         linear-gradient(white 0 0) padding-box, 
         linear-gradient(white 0 0) content-box; 
     mask-composite: exclude, exclude; 
 } 
 .GlassMaterial .GlassRefraction { 
     backdrop-filter: invert(0.1) brightness(1.2) contrast(1.5); 
     padding: var(--refraction-width); 
     border: calc(var(--emboss-width)) solid transparent; 
     mask: 
         linear-gradient(white 0 0) padding-box, 
         linear-gradient(white 0 0) content-box; 
     mask-composite: exclude, exclude; 
 } 
 .GlassMaterial .GlassBlur { 
     backdrop-filter: blur(var(--extra-blur)) brightness(1.25); 
     border-radius: calc(var(--corner-radius) - (var(--emboss-width) + var(--refraction-width))); 
     margin: calc(var(--emboss-width) + var(--refraction-width)); 
 } 
 .GlassMaterial .BlendLayers { 
     z-index: 3; 
     backdrop-filter: blur(calc((var(--softness) * 0.2) + (var(--extra-blur) * 0.2))); 
 } 
 .GlassMaterial .BlendEdge { 
     z-index: 8; 
     backdrop-filter: blur(calc(var(--edge-width) * 0.4)) contrast(1.6) saturate(1.5); 
 } 
 .GlassContainer:before { 
     content: ''; 
     position: absolute; 
     inset: 0; 
     z-index: 20; 
     display: block; 
     border-radius: var(--corner-radius); 
     backdrop-filter: invert(var(--invert)); 
 } 
 .GlassMaterial:before { 
     content: ''; 
     position: absolute; 
     inset: 0; 
     z-index: 11; 
     display: block; 
     border-radius: var(--corner-radius); 
     padding: 1px; 
     border: 0 solid transparent; 
     background: linear-gradient(155deg, hsla(0, 0%, 100%, 0.15) 0%, hsla(0, 0%, 0%, 0.2) 50%, hsla(0, 0%, 100%, 0.15) 100%); 
     backdrop-filter: invert(0.15) opacity(1); 
     mask: 
         linear-gradient(white 0 0) padding-box, 
         linear-gradient(white 0 0) content-box; 
     mask-composite: exclude, exclude; 
 } 
 .GlassMaterial .Highlight { 
     z-index: 12; 
     display: block; 
     border-radius: var(--corner-radius); 
     padding: 1px; 
     border: 0 solid transparent; 
     backdrop-filter: brightness(1.2) contrast(1.6) saturate(1.2) opacity(1); 
     mask: 
         linear-gradient(white 0 0) padding-box, 
         linear-gradient(white 0 0) content-box; 
     mask-composite: exclude, exclude; 
 }