/* My Notes App Website Styles */
:root {
  --primary-color: #085d64;
  --secondary-color: #b2c898;
  --accent-color: #fbbc04;
  --danger-color: #ea4335;
  --dark-color: #202124;
  --light-color: #f8f9fa;
  --gradient-primary: linear-gradient(135deg, #1096a3 0%, #9bb56f 100%);
}

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

body {
  font-family: "Google Sans", "Roboto", -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Section titles */
.section-title {
  font-weight: 700;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-icon {
  filter: brightness(0) saturate(100%) invert(25%) sepia(89%) saturate(1234%)
    hue-rotate(174deg) brightness(95%) contrast(94%);
  transition: filter 0.3s ease;
}

.navbar-brand:hover .navbar-icon {
  filter: brightness(0) saturate(100%) invert(25%) sepia(89%) saturate(1234%)
    hue-rotate(174deg) brightness(110%) contrast(100%);
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.75rem 1rem !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  position: relative;
  overflow: hidden;
  padding-top: 76px; /* Компенсуємо висоту navbar */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badges .badge {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
}

/* Hero App Icon */
.hero-app-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
}

.app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-icon-container {
  width: 300px;
  height: 300px;
  background: linear-gradient(145deg, #1d1a1a, #000000);
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.app-icon-container i {
  font-size: 6rem;
  color: var(--primary-color);
  text-shadow: 0 4px 8px rgba(66, 133, 244, 0.3);
}

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

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
}

.feature-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgba(66, 133, 244, 0.1),
    rgba(52, 168, 83, 0.1)
  );
  border-radius: 50%;
  z-index: -1;
}

.feature-card h4 {
  color: var(--dark-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-transform: none;
}

.btn-primary {
  background: #085d64;
  border: none;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px #056972;
}

.btn-outline-primary {
  border-color: white;
  color: white;
  background: transparent;
}

.btn-outline-primary:hover {
  background: white;
  color: var(--primary-color);
  border-color: white;
  transform: translateY(-2px);
}

.btn-light {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
}

.btn-light:hover {
  background: #f8f9fa;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Download Section */
.bg-primary {
  background: var(--gradient-primary) !important;
}

/* Footer */
footer a {
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .app-icon-container {
    width: 200px;
    height: 200px;
    border-radius: 35px;
  }

  .app-icon-container i {
    font-size: 4rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero-content .lead {
    font-size: 1rem;
    text-align: center;
  }

  .feature-card {
    padding: 1.8rem;
    margin-bottom: 1rem;
  }

  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero-app-icon {
    text-align: center;
    padding-left: 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  /* Мобільне меню */
  .navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    margin-top: 1rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .hero-content .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-badges {
    text-align: center;
    margin-top: 1.5rem;
  }

  .hero-badges .badge {
    display: inline-block;
    margin: 0.3rem;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .app-icon-container {
    width: 200px;
    height: 200px;
    border-radius: 25px;
  }

  .app-icon-container i {
    font-size: 3rem;
  }

  .feature-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .feature-icon {
    font-size: 2.5rem;
  }

  .feature-card h4 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  /* Кнопки на малих екранах */
  .d-flex.gap-3.flex-wrap {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem !important;
  }

  .d-flex.gap-3.flex-wrap .btn {
    width: 100%;
    max-width: 280px;
    margin-bottom: 0.5rem;
  }

  /* Футер */
  footer .row {
    text-align: center;
  }

  footer .col-md-6 {
    margin-bottom: 1rem;
  }

  footer .text-md-end {
    text-align: center !important;
  }
}

/* Animation for elements */
@media (prefers-reduced-motion: no-preference) {
  .feature-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
  }

  .feature-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .feature-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .feature-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .feature-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  .feature-card:nth-child(5) {
    animation-delay: 0.5s;
  }
  .feature-card:nth-child(6) {
    animation-delay: 0.6s;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Utility classes */
.text-primary {
  color: var(--primary-color) !important;
}
