:root {
  --primary-color: #0055FF;
  --primary-light: #3378FF;
  --primary-dark: #0044CC;
  --accent-color: #FF3860;
  --background: #f9f9f9;
  --surface: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  background: var(--surface);
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-link:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--primary-color);
  color: white;
}

.custom-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  position: relative;
}

.timer-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-circle-container {
  width: 300px;
  height: 300px;
  margin-bottom: 40px;
  position: relative;
}

@media (max-width: 500px) {
  .timer-circle-container {
    width: 250px;
    height: 250px;
  }
}

.timer-circle {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-circle-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f0f0f0;
  box-shadow: var(--shadow-medium);
}

.timer-circle-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--primary-color) 0%, transparent 0%);
  transition: background var(--transition-medium);
}

.timer-display {
  position: relative;
  z-index: 10;
  text-align: center;
  background: var(--surface);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-light);
}

.time {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -1px;
  transition: all var(--transition-medium);
}

.status {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.control-btn {
  background: var(--surface);
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.start-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
}

.pause-btn {
  background: var(--accent-color);
  color: white;
}

.control-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.hide {
  display: none;
}

footer {
  padding: 40px 0 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.feature svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color);
}

/* Custom Timer Modal */
.custom-timer-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-medium);
}

.custom-timer-modal.active {
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: var(--surface);
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-heavy);
  transform: translateY(-20px);
  transition: transform var(--transition-medium);
}

.custom-timer-modal.active .modal-content {
  transform: translateY(0);
}

.modal-content h3 {
  margin-bottom: 20px;
  text-align: center;
  color: var(--text-primary);
}

.time-inputs {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.input-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.input-group input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 18px;
  text-align: center;
}

.input-group label {
  margin-top: 5px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.modal-buttons {
  display: flex;
  gap: 15px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cancel-btn {
  background: #f1f1f1;
  color: var(--text-secondary);
}

.confirm-btn {
  background: var(--primary-color);
  color: white;
}

.modal-buttons button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Completed overlay */
.completed-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-medium);
}

.completed-overlay.active {
  visibility: visible;
  opacity: 1;
}

.completed-content {
  background: var(--surface);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-heavy);
  transform: scale(0.9);
  transition: all var(--transition-medium);
}

.completed-overlay.active .completed-content {
  transform: scale(1);
}

.completed-content h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.restart-btn {
  margin-top: 25px;
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.restart-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

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

.pulse {
  animation: pulse 1s infinite;
}

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

.fadeIn {
  animation: fadeIn 0.5s forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .time {
    font-size: 2.8rem;
  }
  
  .controls {
    gap: 10px;
  }
  
  .control-btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* Content Section Styles */
.content-section {
  padding: 60px 0 40px;
  background: var(--background);
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 40px;
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-secondary);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.info-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
}

.info-column {
  flex: 1;
  min-width: 280px;
}

.info-column h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 10px;
}

.info-column h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.info-column ul {
  padding-left: 20px;
}

.info-column li {
  margin-bottom: 12px;
  position: relative;
}

.technique-highlight {
  background: #f5f7ff;
  padding: 30px;
  border-radius: 15px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-light);
}

.technique-highlight h3 {
  margin-bottom: 20px;
  color: var(--primary-dark);
}

.technique-highlight p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.technique-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.technique-card {
  flex: 1;
  min-width: 200px;
  background: var(--surface);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-light);
  transition: transform var(--transition-fast);
}

.technique-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.technique-card h4 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section Styles */
.faq-section {
  max-width: 800px;
  margin: 60px auto 20px;
  padding: 0 20px;
}

.faq-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-primary);
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-light);
}

.faq-question {
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  margin: 0;
  color: var(--text-primary);
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: #f9f9ff;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 25px 20px;
}

.faq-answer p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.faq-answer ul, 
.faq-answer ol {
  padding-left: 20px;
  margin-bottom: 15px;
}

.faq-answer li {
  margin-bottom: 8px;
}

/* Responsive adjustments for content */
@media (max-width: 768px) {
  .content-section h2 {
    font-size: 1.7rem;
  }
  
  .intro-text {
    font-size: 1rem;
  }
  
  .technique-cards {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .main-nav {
    gap: 5px;
  }
  
  .nav-link {
    padding: 10px 15px;
    font-size: 12px;
  }
  
  .timer-circle-container {
    width: 220px;
    height: 220px;
  }
  
  .time {
    font-size: 2.5rem;
  }
  
  .content-section {
    padding: 40px 0 20px;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  
  .faq-answer {
    padding: 0 20px 15px;
  }
}
