:root {
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  --color-1: #7c3aed;
  --color-2: #22d3ee;
  --color-3: #f472b6;

  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--color-1);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 300px;
  height: 300px;
  background: var(--color-2);
  top: 40%;
  right: -50px;
  animation-delay: -5s;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--color-3);
  bottom: -50px;
  left: 20%;
  animation-delay: -2s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(20px, 40px) scale(1.1);
  }
}

.navbar {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 100;

  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.logo span {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
}

.github-btn {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.github-btn i {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.github-btn:hover i {
  color: var(--text-main);
}

.main-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 20px 40px;
  position: relative;
  z-index: 10;
}

.timer-container {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 3rem 4rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 100%;
  margin-bottom: 2rem;

  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.timer-modes {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px;
  border-radius: 50px;
  display: inline-flex;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.timer-display {
  font-size: 7rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2.5rem;
  color: var(--text-main);
  letter-spacing: -2px;

  font-variant-numeric: tabular-nums;

  text-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.main-btn {
  background: linear-gradient(135deg, var(--color-1), var(--color-2));
  border: none;
  padding: 1rem 3rem;
  border-radius: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
}

.main-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(124, 58, 237, 0.5);
}

.main-btn:active {
  transform: translateY(-1px);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.task-input-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards;
}

.task-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  text-align: center;
  transition: border-color 0.3s;
}

.task-input:focus {
  outline: none;
  border-color: var(--color-2);
}

.task-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-content {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

.modal-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #f472b6;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-modal {
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  border: none;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #f472b6, #db2777);
  color: white;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 114, 182, 0.4);
}

.about-section {
  padding: 4rem 1.5rem 6rem;
  position: relative;
  z-index: 10;
}

.about-section .container {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 24px;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.info-card:hover {
  transform: translateY(-10px);
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: white;
}

.icon-violet {
  background: rgba(124, 58, 237, 0.2);
  color: var(--color-1);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.icon-cyan {
  background: rgba(34, 211, 238, 0.2);
  color: var(--color-2);
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.icon-pink {
  background: rgba(244, 114, 182, 0.2);
  color: var(--color-3);
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.icon-gradient {
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  border: none;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.info-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.info-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.main-footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--glass-border);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal-btn:hover {
  color: var(--text-main);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.input-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-group input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  width: 80px;
  text-align: center;
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  outline: none;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: var(--color-2);
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  .about-section {
    padding-top: 2rem;
  }
  .info-card {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .timer-container {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .timer-display {
    font-size: 5rem;
  }

  .main-btn {
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 70px;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .github-btn span {
    display: none;
  }

  .github-btn {
    padding: 0.6rem;
    border-radius: 50%;
    justify-content: center;
  }

  .github-btn i {
    margin: 0;
    color: var(--text-main);
  }
}
