/* 
* Plinko Python - Main Stylesheet
* Website for Python education in Lviv, Ukraine
*/

:root {
  /* Ukrainian flag colors and Python blue */
  --ukraine-blue: #0057b7;
  --ukraine-yellow: #ffd700;
  --python-blue: #306998;
  --python-yellow: #FFE873;
  
  /* Dark shades */
  --dark-blue: #003c7e;
  --dark-text: #2a2a2a;
  
  /* Light shades */
  --light-blue: #4d8be0;
  --light-gray: #f8f9fa;
  --off-white: #f5f5f5;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  color: var(--python-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
}

/* Custom Button Styles */
.btn-primary {
  background-color: var(--python-blue);
  border-color: var(--python-blue);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--dark-blue);
  border-color: var(--dark-blue);
}

.btn-outline-primary {
  color: var(--python-blue);
  border-color: var(--python-blue);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background-color: var(--python-blue);
  border-color: var(--python-blue);
}

/* Navbar */
.navbar-brand {
  font-size: 1.5rem;
}

.navbar.bg-primary {
  background-color: var(--python-blue) !important;
}

.nav-link {
  font-weight: 500;
  padding: 0.8rem 1rem;
}

.nav-link.active {
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  background-color: var(--dark-blue);
  padding: 6rem 0;
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(135deg, rgba(0, 60, 126, 0.95), rgba(48, 105, 152, 0.95)), url('../images/python-classroom-1.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 0;
}

.hero-section .z-index-1 {
  z-index: 1;
  position: relative;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 1.2s ease;
}

.hero-subtitle {
  animation: fadeInUp 1.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.animated-logo {
  animation: bounce 2s infinite;
}

.img-cover {
  object-fit: cover;
  object-position: center;
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.img-overlay:hover {
  opacity: 1;
}

.video-btn {
  transform: scale(1);
  transition: transform 0.3s ease;
}

.video-btn:hover {
  transform: scale(1.2);
}

.video-placeholder {
  height: 100%;
  min-height: 300px;
}

.hero-feature-card {
  transform: translateY(0);
  transition: transform 0.5s ease;
  animation: fadeInUp 1s ease;
}

.hero-feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.decorative-element {
  z-index: 0;
  opacity: 0.1;
  pointer-events: none;
}

.code-element-1 {
  bottom: -20px;
  right: 10%;
  font-size: 0.8rem;
  transform: rotate(5deg);
}

.code-element-2 {
  top: 30%;
  left: 5%;
  font-size: 0.8rem;
  transform: rotate(-5deg);
}

.typed-text {
  border-right: 3px solid var(--ukraine-yellow);
  padding-right: 5px;
  animation: cursorBlink 0.7s infinite;
}

.pulse-button {
  box-shadow: 0 0 0 0 rgba(48, 105, 152, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(48, 105, 152, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(48, 105, 152, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(48, 105, 152, 0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes cursorBlink {
  0%, 100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--ukraine-yellow);
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 4rem;
  }
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Card Hover */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Team Section */
.team-avatar {
  color: var(--python-blue);
  margin-bottom: 1rem;
}

/* Contact Form */
.form-control:focus {
  border-color: var(--python-blue);
  box-shadow: 0 0 0 0.25rem rgba(48, 105, 152, 0.25);
}

/* Images */
img {
  max-width: 100%;
  height: auto;
}

/* Testimonials */
.text-warning {
  color: var(--ukraine-yellow) !important;
}

/* Footer */
footer {
  background-color: var(--dark-blue) !important;
}

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

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(33, 37, 41, 0.9);
  color: #fff;
  z-index: 1050;
  display: none;
}

.cookie-consent a {
  color: var(--ukraine-yellow);
}

.cookie-consent a:hover {
  color: var(--python-yellow);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(48, 105, 152, 0.1);
  color: var(--python-blue);
}

.accordion-button:focus {
  border-color: var(--python-blue);
  box-shadow: 0 0 0 0.25rem rgba(48, 105, 152, 0.25);
}

/* Privacy and Terms Pages */
.privacy-content h2,
.terms-content h2,
.cookie-policy-content h2 {
  color: var(--python-blue);
  margin-top: 2rem;
}

.privacy-content h3,
.terms-content h3,
.cookie-policy-content h3 {
  color: var(--dark-blue);
  margin-top: 1.5rem;
}

.privacy-content ul,
.terms-content ul,
.cookie-policy-content ul {
  margin-bottom: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
}

/* Badge Styles */
.badge.bg-primary {
  background-color: var(--python-blue) !important;
}

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

.fadeIn {
  animation: fadeIn 0.8s ease-in-out;
}

/* Improved accessibility */
.btn:focus,
a:focus {
  outline: 2px dashed var(--python-blue);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .cookie-consent,
  .navbar-toggler,
  .hero-section,
  footer {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
  }
  
  a[href]:after {
    content: " (" attr(href) ")";
  }
  
  abbr[title]:after {
    content: " (" attr(title) ")";
  }
}
