/* Reset / Basic */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Helvetica Neue', sans-serif; }
body, html { width: 100%; height: 100%; overflow-x: hidden; }

/* Video Background */
#bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.75) blur(1px);
}

#overlay {
  position: fixed;
  top:0; left:0;
  width:100vw; height:100vh;
  background-color: rgba(255,255,255,0.15);
  z-index:0;
}

/* Header Navigation */
header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #333333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  color: #333333;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: #D988A0;
}

/* Main Content */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  color: #333333;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

.subtitle {
  font-size: 1.2rem;
  color: #333333;
  margin-bottom: 40px;
}

/* Breathing Container */
.breathing-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 30px auto;
}

/* Breath Ball */
.breath-ball {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #F5A5C0, #D988A0);
  box-shadow: 0 0 40px rgba(217, 136, 160, 0.6),
              inset 0 0 30px rgba(255, 255, 255, 0.3);
  transition: all 4s ease-in-out;
}

.breath-ball.inhale {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, #E8AEB7, #5CA4A9);
  box-shadow: 0 0 60px rgba(92, 164, 169, 0.8),
              inset 0 0 40px rgba(255, 255, 255, 0.4);
}

.breath-ball.hold {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 30% 30%, #E8AEB7, #5CA4A9);
  box-shadow: 0 0 60px rgba(92, 164, 169, 0.8),
              inset 0 0 40px rgba(255, 255, 255, 0.4);
  transition: all 0.5s ease;
}

.breath-ball.exhale {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #F5A5C0, #D988A0);
  box-shadow: 0 0 40px rgba(217, 136, 160, 0.6),
              inset 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Instruction Text */
.instruction {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  z-index: 10;
  pointer-events: none;
}

/* Timer Display */
.timer-display {
  margin-top: 30px;
  font-size: 3rem;
  font-weight: bold;
  color: #D988A0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  min-height: 60px;
}

/* Info Box */
.info-box {
  margin: 30px auto;
  width: 80%;
  max-width: 500px;
  padding: 25px;
  background: rgba(255, 245, 248, 0.75);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 2px solid rgba(217, 136, 160, 0.3);
  color: #4d3b3b;
  font-size: 1rem;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-box h3 {
  color: #D988A0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Controls */
.controls {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  background-color: #D988A0;
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 1rem;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: 0.3s;
}

button:hover { 
  background-color: #E8AEB7;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}