/* Avtoexclusive yagona dizayn uchun CSS */
:root {
  --primary: #1a237e;
  --primary-dark: #0d133d;
  --background: #fff;
  --background-alt: #f5f7fa;
  --accent: #1976d2;
  --text: #222;
  --menu-bg: #1a237e;
  --menu-text: #fff;
  --menu-hover: #1976d2;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  font-size: 0.85rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--menu-bg);
  padding: 16px 32px;
  color: var(--menu-text);
  box-shadow: 0 2px 8px rgba(26,35,126,0.05);
}
.navbar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--menu-text);
  white-space: nowrap;
}
.navbar nav {
  display: flex;
  gap: 18px;
}
.navbar a {
  color: var(--menu-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.navbar a:hover {
  color: var(--menu-hover);
  border-bottom: 2px solid var(--menu-hover);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--menu-text);
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar nav {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 70%;
  height: 100%;
  background: linear-gradient(135deg, cadetblue 0%, #19ccd2 100%);
  z-index: 1000;
  flex-direction: column;
  padding-top: 60px;
  transform: translateX(-100%);
  transition: transform 0.3s;
}
.mobile-menu.active {
  transform: translateX(0);
  display: flex;
}
.mobile-menu a {
  color: white;
  text-decoration: none;
  padding: 18px 32px;
  font-size: 1.2rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  min-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--background-alt);
  color: var(--primary-dark);
  text-align: center;
  padding: 32px 16px;
}
.hero h1 {
  font-size: 2 rem;
  margin-bottom: 12px;
  font-weight: 700;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 24px;
}
.hero .cta-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  transition: all 0.3s;
}
.hero .cta-btn:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.section {
  max-width: 1000px;
  margin: 40px auto;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(26,35,126,0.07);
}
.section h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.info .box {
  flex: 1 1 220px;
  background: var(--background-alt);
  padding: 12px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(26,35,126,0.05);
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  font-size: 0.97rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
 /* Login Modal Styles */
 .login-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.login-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideIn 0.4s ease;
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h2 {
  color: #333;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.login-header p {
  color: #666;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 15px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input-container {
  display: flex;
  align-items: center;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.phone-input-container:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-prefix {
  background: #f8f9fa;
  padding: 15px 12px;
  color: #666;
  font-weight: 600;
  border-right: 1px solid #e9ecef;
  font-size: 1rem;
}

.phone-input-container input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.phone-input-container input:focus {
  box-shadow: none;
}

.login-btn-submit {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.close-login {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.25);
  transition: all 0.2s;
  z-index: 10;
  border: 2px solid #fff;
}
.close-login:hover {
  transform: scale(1.1) rotate(90deg);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}
.close-login::before {
  content: '✕';
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 22px;
  line-height: 1;
}
.login-content {
  position: relative;
}

/* X belgisi uchun chiroyli stillar */
.close-login {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 2px solid white;
}

.close-login:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

/* Profile modal close button */
#closeProfile {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 2px solid white;
}

#closeProfile:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

#closeProfile::before {
  content: '✕';
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* Mobile close button improvements */
.mobile-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.mobile-menu .close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

/* Mobile close button X belgisi */
.mobile-menu .close-btn::before {
  content: '✕';
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

.error-message {
  background: #fff5f5;
  color: #dc3545;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #fed7d7;
  display: none;
}

.success-message {
  background: #f0fff4;
  color: #38a169;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid #c6f6d5;
  display: none;
}

/* Profile Info Modal Styles */
.profile-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e9ecef;
}

.profile-info-item:last-child {
  border-bottom: none;
}

.profile-info-item label {
  font-weight: 600;
  color: #333;
  min-width: 150px;
}

.profile-info-item span {
  color: #666;
  text-align: right;
  flex: 1;
  margin-left: 20px;
}

/* Mobile User Profile Styles */
.mobile-user-profile {
  padding: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.mobile-user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.mobile-user-details {
  flex: 1;
}

.mobile-user-name {
  font-weight: 600;
  color: white;
  font-size: 1rem;
}

.mobile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.mobile-nav-item:hover {
  background: #f8f9fa;
  color: #ff6b6b;
}

.mobile-nav-item.logout-btn {
  color: #dc3545;
  background: #fff5f5;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
}

.mobile-nav-item.logout-btn:hover {
  background: #ffe6e6;
  color: #dc3545;
}

.mobile-login-btn {
  width: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  margin-bottom: 15px;
  font-size: 0.9rem;
  align-self: flex-start;
}

.mobile-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.mobile-login-container {
  padding: 10px 15px;
  margin-bottom: 10px;
}

/* Mobile close button improvements */
.mobile-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
}

.mobile-menu .close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
  background: linear-gradient(135deg, #ee5a24, #ff6b6b);
}

/* Mobile close button X belgisi */
.mobile-menu .close-btn::before {
  content: '✕';
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
}

/* Mobile navigation indicators */
.mobile-menu .nav-item {
  position: relative;
  padding: 15px 20px;
  margin: 5px 0;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.mobile-menu .nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu .nav-item.active::before {
  opacity: 1;
}

.mobile-menu .nav-item.active {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b !important;
  font-weight: 600;
}

.mobile-menu .nav-item::after {
  display: none;
}

@media (max-width: 768px) {
  .hero-content h1 {
      font-size: 2.2rem;
  }
  
  .hero-content p {
      font-size: 1.1rem;
  }
  
  .features-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }
  
  .feature-card {
      padding: 30px 20px;
  }
  
  .gallery {
      gap: 15px;
  }
  
  .carousel-container {
      padding: 20px;
  }
  
  .single-video-container {
      padding: 20px;
      margin: 0 15px;
  }
  
  .video-info h3 {
      font-size: 1.3rem;
  }
  
  .video-info p {
      font-size: 0.95rem;
  }
  
  .play-button {
      width: 60px;
      height: 60px;
      font-size: 1.5rem;
  }
  
  .auth-container {
      gap: 10px;
  }
  
  .login-btn {
      padding: 8px 15px;
      font-size: 0.9rem;
  }


.video-fullscreen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 60vh;
  background: var(--background-alt);
  text-align: center;
  padding: 40px 0;
}
.video-fullscreen h2 {
  margin-bottom: 20px;
  font-size: 2rem;
  color: var(--primary-dark);
}
.video-fullscreen video {
  width: 80%;
  max-width: 900px;
  max-height: 500px;
  border-radius: 10px;
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.gallery img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(26,35,126,0.10);
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.05);
}

.footer {
  text-align: center;
  padding: 24px;
  background: var(--menu-bg);
  color: var(--menu-text);
  margin-top: 40px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* Formlar uchun zamonaviy dizayn */
.form-box {
  background: var(--background-alt);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26,35,126,0.07);
  padding: 32px 24px;
  margin: 0 auto;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1.5px solid #bfc7d1;
  border-radius: 7px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border: 1.5px solid var(--accent);
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 90px;
}
.btn-main {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(26,35,126,0.08);
}
.btn-main:hover {
  background: var(--accent);
}
.form-result {
  margin-top: 16px;
  font-weight: 500;
  color: var(--primary-dark);
  text-align: center;
}
/* Aloqa sahifasi uchun kontakt info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.contact-info div {
  background: #e3f2fd;
  padding: 14px 18px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(26,35,126,0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  color: var(--primary-dark);
}
.contact-info div i {
  font-size: 1.3em;
  color: var(--primary);
}
.form-section {
  margin-top: 32px;
}
@media (max-width: 600px) {
  .form-box {
    padding: 16px 6px;
  }
  .section {
    padding: 12px;
  }
  .gallery {
    gap: 6px !important;
  }
}

@media (max-width: 900px) {
  .navbar .logo {
    font-size: 1.15rem;
  }
  .navbar nav {
    gap: 10px;
  }
  .navbar a {
    font-size: 0.95rem;
  }
  .section {
    margin: 20px;
    padding: 20px;
  }
  .info {
    flex-direction: column;
    gap: 10px;
  }
  .info .box {
    padding: 10px 6px;
    font-size: 0.93rem;
  }
  .gallery img {
    width: 100%;
    height: 180px;
  }
  .form-box, .section {
    padding: 8px 2vw;
    font-size: 0.97rem;
  }
  .form-group input,
  .form-group textarea {
    font-size: 0.97rem;
    min-width: 0;
    max-width: 100%;
    word-break: break-word;
  }
  .form-group label {
    font-size: 0.97rem;
  }
  .btn-main {
    font-size: 0.97rem;
  }
  .contact-info div {
    font-size: 0.97rem;
    word-break: break-word;
  }
  .info .box {
    padding: 8px 2px;
    font-size: 0.91rem;
  }
} 

.login-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}
.login-modal .login-content {
  background: #fff;
  width: 92%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 22px 18px;
  position: relative;
}
.login-header h2 { margin: 0 0 4px 0; color: var(--primary); }
.login-header p { margin: 0 0 12px 0; color: #555; font-size: 0.95rem; }
.close-login {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  border: none; background: var(--background-alt); border-radius: 50%; cursor: pointer;
}
.phone-input-container { display: flex; align-items: center; gap: 6px; }
.phone-prefix { background: var(--background-alt); padding: 10px 12px; border-radius: 8px; border: 1px solid #bfc7d1; }
.login-btn-submit {
  width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 12px; font-weight: 600; cursor: pointer;
}
.login-btn-submit:hover { background: var(--accent); }
.error-message { color: #c62828; margin-bottom: 8px; font-weight: 600; }
.success-message { color: #2e7d32; margin-bottom: 8px; font-weight: 600; }
.profile-info-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #e0e0e0; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo img {
  height: 42px;
  width: 42px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
} 

.video-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
}
.carousel-thumb {
    width: 220px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,35,126,0.13);
    cursor: pointer;
    opacity: 0.7;
    transition: transform 0.4s, opacity 0.3s;
    border: 3px solid transparent;
}
.carousel-thumb.active, .carousel-thumb:hover {
    opacity: 1;
    transform: scale(1.08);
    border: 3px solid var(--primary);
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
    opacity: 0.85;
    transition: background 0.2s;
}
.carousel-btn.left { left: -50px; }
.carousel-btn.right { right: -50px; }
.carousel-btn:hover { background: var(--accent); }

.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(26,35,126,0.75);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s;
}
.video-modal.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 30px 20px 20px 20px;
    box-shadow: 0 8px 40px rgba(26,35,126,0.18);
    position: relative;
    animation: popIn 0.4s;
}
.close-modal {
    position: absolute;
    top: 12px; right: 18px;
    font-size: 2rem;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.close-modal:hover { color: var(--accent); }
#modal-video {
    width: 70vw;
    max-width: 900px;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
}
@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
}