/* 
  ВебДизайн Майстер - Main Stylesheet
  This file contains custom styles for the web design school website
  Author: ВебДизайн Майстер
  Version: 1.0
*/

/* ===== Variables ===== */
:root {
  /* Colors */
  --primary-color: #4e57d4; /* Custom primary blue color */
  --secondary-color: #ff6b6b; /* Secondary accent */
  --dark-color: #2d3748; /* Dark shade for text */
  --light-color: #f8f9fa; /* Light background */
  --gray-color: #6c757d; /* Gray for secondary text */
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  
  /* Typography */
  --body-font: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  
  /* Spacing */
  --section-spacing: 5rem;
  --element-spacing: 1.5rem;
  
  /* Border Radius */
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  
  /* Shadows */
  --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --box-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ===== Global Styles ===== */
body {
  font-family: var(--body-font);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #3842b9; /* Darker shade of primary color */
}

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

.text-primary {
  color: var(--primary-color) !important;
}

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

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

.btn-primary:hover, .btn-primary:focus {
  background-color: #3842b9;
  border-color: #3842b9;
}

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

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

/* ===== Header & Navigation ===== */
.navbar {
  box-shadow: var(--box-shadow-sm);
  padding: 1rem 0;
}

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

.nav-link {
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  position: relative;
}

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

.nav-link:not(.active)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

.nav-link:not(.active):hover::after {
  width: 80%;
  left: 10%;
}

/* ===== Hero Section ===== */
.hero {
  padding: 5rem 0;
  position: relative;
  background-color: #f8f9fa;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

.hero img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.5s ease;
}

.hero img:hover {
  transform: translateY(-5px);
}

/* ===== Page Header ===== */
.page-header {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Cards ===== */
.card {
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
  height: 220px;
  object-fit: cover;
}

.card-title {
  font-weight: 700;
}

.badge {
  font-weight: 600;
  padding: 0.5em 0.8em;
}

/* ===== Features Section ===== */
.features-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* ===== Testimonials ===== */
.testimonial-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== Portfolio ===== */
.portfolio-filter {
  cursor: pointer;
  transition: all 0.3s ease;
}

.portfolio-filter.active {
  background-color: var(--primary-color);
  color: white;
}

.portfolio-items .portfolio-item {
  margin-bottom: 2rem;
}

/* ===== Forms ===== */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(78, 87, 212, 0.25);
}

.form-control {
  padding: 0.75rem 1rem;
}

.form-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
footer {
  background-color: var(--dark-color);
  color: white;
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

footer a:hover {
  color: white;
}

footer .social-icons a {
  font-size: 1.25rem;
  margin-right: 1rem;
}

/* ===== Cookie Consent ===== */
.cookie-consent {
  z-index: 9999;
  display: none; /* Will be shown with JS */
}

/* ===== Pricing Tables ===== */
.pricing-card {
  text-align: center;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: var(--box-shadow);
  transform: translateY(-10px);
}

.pricing-card-header {
  padding: 2rem;
  background-color: var(--primary-color);
  color: white;
}

.pricing-card-price {
  font-size: 3rem;
  font-weight: 700;
}

.pricing-card-feature {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===== Accordion ===== */
.accordion-button:not(.collapsed) {
  background-color: rgba(78, 87, 212, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(78, 87, 212, 0.25);
  border-color: rgba(78, 87, 212, 0.5);
}

/* ===== Team Section ===== */
.team-member {
  text-align: center;
  margin-bottom: 2rem;
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 5px solid rgba(78, 87, 212, 0.1);
  transition: all 0.3s ease;
}

.team-member:hover img {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.team-member-social a {
  margin: 0 0.5rem;
  color: var(--gray-color);
  transition: all 0.3s ease;
}

.team-member-social a:hover {
  color: var(--primary-color);
}

/* ===== CTA Sections ===== */
.cta-section {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 0;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='rgba(255,255,255,.1)' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.15;
}

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

.animate-fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.animate-slide-up {
  animation: slideUp 0.5s ease-in-out;
}

/* ===== Media Queries ===== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero img {
    margin-top: 2rem;
  }
  
  .nav-link:not(.active)::after {
    display: none;
  }
  
  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 3rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .page-header {
    padding: 2rem 0;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  .card-img-top {
    height: 180px;
  }
  
  .team-member img {
    width: 120px;
    height: 120px;
  }
}

/* Add custom styles for specific elements here if needed */
