/* 
 * Uzimate Custom Styles
 * Responsive, mobile-first design
 * Compatible with Bootstrap 5
 */

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

body {
  font-family: 'Poppins', 'Open Sans', 'Montserrat', sans-serif;
  color: var(--uzimate-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.display-heading {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
  .display-heading {
    font-size: 2rem;
  }
  
  .section-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .display-heading {
    font-size: 1.75rem;
  }
  
  .section-heading {
    font-size: 1.5rem;
  }
}

/* Header Styles */
.navbar-uzimate {
  background-color: var(--uzimate-purple);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-uzimate .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-uzimate .navbar-collapse {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar-uzimate .navbar-nav {
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
}

.navbar-uzimate .navbar-brand {
  text-decoration: none;
}

.navbar-uzimate .navbar-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uzimate-text-white);
  line-height: 1.2;
}

.navbar-uzimate .navbar-brand .brand-tagline {
  font-size: 0.75rem;
  color: var(--uzimate-text-white);
  line-height: 1;
  margin-top: 2px;
}

.navbar-uzimate .navbar-brand .logo-icon {
  width: 50px;
  height: 50px;
  background: var(--uzimate-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uzimate-purple);
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.navbar-uzimate .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.3);
}

.navbar-uzimate .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-uzimate .nav-link {
  color: var(--uzimate-text-white) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

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

.navbar-uzimate .nav-link.active {
  color: var(--uzimate-yellow) !important;
}

.navbar-uzimate .nav-link.dropdown-toggle::after {
  border-top-color: var(--uzimate-text-white);
  margin-left: 0.5rem;
}

.navbar-uzimate .nav-link.dropdown-toggle:hover::after {
  border-top-color: var(--uzimate-yellow);
}

.navbar-uzimate .dropdown-menu {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 0.5rem;
  background-color: var(--uzimate-bg-white);
  min-width: 750px;
  max-width: 900px;
  padding: 0;
  overflow: visible;
}

.navbar-uzimate .dropdown-header {
  padding: 1rem 1.5rem 0.5rem;
  background-color: transparent;
}

.navbar-uzimate .dropdown-header h6 {
  font-size: 1rem;
  font-weight: 700;
}

.navbar-uzimate .dropdown-divider {
  margin: 0;
  border-color: var(--uzimate-border-light);
}

.navbar-uzimate .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  color: var(--uzimate-purple);
  font-weight: 500;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
}

.navbar-uzimate .dropdown-menu .row {
  margin: 0;
  padding: 1rem 1.5rem;
}

.navbar-uzimate .dropdown-menu .row > [class*="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-uzimate .dropdown-menu .row > [class*="col-"]:first-child {
  padding-left: 0;
}

.navbar-uzimate .dropdown-menu .row > [class*="col-"]:last-child {
  padding-right: 0;
}

.navbar-uzimate .dropdown-menu .list-unstyled {
  margin: 0;
  padding: 0;
}

.navbar-uzimate .dropdown-menu .list-unstyled li {
  margin: 0;
  padding: 0;
}

/* Ensure dropdown doesn't get cut off and is properly positioned */
.navbar-uzimate .dropdown-hover {
  position: relative;
}

.navbar-uzimate .dropdown-hover .dropdown-menu {
  left: 0;
  right: auto;
  transform: none;
  margin-top: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-uzimate .dropdown-item:hover {
  background-color: var(--uzimate-purple-light);
  color: var(--uzimate-purple);
}

/* Hover dropdown functionality - improved for better hover experience */
.navbar-uzimate .dropdown-hover:hover > .dropdown-menu,
.navbar-uzimate .dropdown-hover .dropdown-menu:hover {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.navbar-uzimate .dropdown-hover .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: auto;
}

.navbar-uzimate .dropdown-hover:hover .dropdown-menu {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure there's no gap between dropdown trigger and menu */
.navbar-uzimate .dropdown-hover .dropdown-toggle::after {
  transition: transform 0.2s ease;
}

.navbar-uzimate .dropdown-hover:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.navbar-uzimate .dropdown-item img {
  vertical-align: middle;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--uzimate-purple-light) 0%, #FFFFFF 100%);
  padding: 5rem 0;
  min-height: 600px;
  display: flex;
  align-items: center;
}

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

.hero-content .highlight-yellow {
  color: var(--uzimate-yellow);
}

.hero-content .highlight-purple {
  color: var(--uzimate-purple);
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--uzimate-text-light);
  margin-bottom: 2rem;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--uzimate-text-dark);
}

.hero-features li i {
  color: var(--uzimate-success);
  font-size: 1.25rem;
}

/* Video Section */
.video-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: var(--uzimate-bg-white);
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

.video-languages {
  padding: 1rem;
  background: var(--uzimate-bg-white);
  border-radius: 0 0 12px 12px;
}

.lang-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--uzimate-purple);
  background: var(--uzimate-bg-white);
  color: var(--uzimate-purple);
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background: var(--uzimate-purple);
  color: var(--uzimate-text-white);
  border-color: var(--uzimate-purple);
}

/* Section Styles */
.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--uzimate-purple-light);
}

.section-dark {
  background-color: var(--uzimate-purple);
  color: var(--uzimate-text-white);
}

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

/* Feature Cards */
.feature-card {
  background: var(--uzimate-purple);
  color: var(--uzimate-text-white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(92, 45, 145, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(92, 45, 145, 0.3);
}

.feature-card-icon {
  font-size: 2.5rem;
  color: var(--uzimate-yellow);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  color: var(--uzimate-text-white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Mobile Mockup */
.mobile-mockup {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-mockup img {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
  border-radius: 0;
  object-fit: contain;
}

/* Calculator/Form Section */
.revenue-calculator {
  background: var(--uzimate-bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.revenue-display {
  text-align: center;
  padding: 3rem 2rem;
}

.revenue-display h2 {
  font-size: 3rem;
  color: var(--uzimate-purple);
  margin-bottom: 0.5rem;
}

.revenue-display p {
  color: var(--uzimate-text-light);
  font-size: 1.125rem;
}

.form-label {
  font-weight: 600;
  color: var(--uzimate-text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 1px solid var(--uzimate-border-medium);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--uzimate-purple);
  box-shadow: 0 0 0 0.2rem rgba(92, 45, 145, 0.25);
}

/* Footer */
.footer-uzimate {
  background-color: var(--uzimate-purple);
  color: var(--uzimate-text-white);
  padding: 4rem 0 2rem;
}

.footer-uzimate h5 {
  color: var(--uzimate-text-white);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-uzimate .footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--uzimate-yellow);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-uzimate .footer-links {
  list-style: none;
  padding: 0;
}

.footer-uzimate .footer-links li {
  margin-bottom: 0.75rem;
}

.footer-uzimate .footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-uzimate .footer-links a:hover {
  color: var(--uzimate-yellow);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uzimate-text-white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--uzimate-yellow);
  color: var(--uzimate-purple);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-bottom a:hover {
  color: var(--uzimate-yellow);
}

/* App Store Badges */
.app-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.app-badge {
  height: 50px;
  transition: transform 0.3s ease;
}

.app-badge:hover {
  transform: scale(1.05);
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .navbar-uzimate .navbar-nav {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  
  .navbar-uzimate .navbar-collapse {
    align-items: center;
  }
}

@media (max-width: 1200px) {
  .navbar-uzimate .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.9rem;
  }
  
  .navbar-uzimate .brand-name {
    font-size: 1.25rem;
  }
  
  .navbar-uzimate .brand-tagline {
    font-size: 0.7rem;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding: 3rem 0;
    min-height: auto;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .navbar-uzimate .nav-link {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.85rem;
  }
  
  .navbar-uzimate .d-flex.align-items-center {
    gap: 0.5rem !important;
  }
  
  .navbar-uzimate .btn-uzimate-yellow {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
  
  .video-container iframe {
    height: 350px;
  }
  
  .hero-content {
    margin-bottom: 2rem;
  }
}

@media (min-width: 993px) and (max-width: 1400px) {
  .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .navbar-uzimate .nav-link {
    padding: 0.5rem 0.6rem !important;
    font-size: 0.9rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .video-container iframe {
    height: 380px;
  }
  
  .mobile-mockup {
    max-width: 450px;
  }
  
  .mobile-mockup img {
    max-width: 450px;
  }
}

@media (min-width: 1401px) {
  .mobile-mockup {
    max-width: 600px;
  }
  
  .mobile-mockup img {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .navbar-uzimate {
    padding: 0.75rem 0;
  }
  
  .navbar-uzimate .navbar-brand .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .navbar-uzimate .navbar-brand .brand-name {
    font-size: 1.25rem;
  }
  
  .navbar-uzimate .navbar-brand .brand-tagline {
    font-size: 0.65rem;
  }
  
  .navbar-uzimate .navbar-nav {
    text-align: center;
    margin-top: 1rem;
    background-color: rgba(92, 45, 145, 0.95);
    padding: 1rem;
    border-radius: 8px;
  }
  
  .navbar-uzimate .navbar-nav .nav-link {
    padding: 0.75rem 1rem !important;
  }
  
  .navbar-uzimate .d-flex.align-items-center {
    flex-direction: column;
    gap: 0.5rem !important;
    width: 100%;
    margin-top: 1rem;
  }
  
  .navbar-uzimate .d-flex.align-items-center .dropdown,
  .navbar-uzimate .d-flex.align-items-center .nav-link {
    width: 100%;
    text-align: center;
  }
  
  .navbar-uzimate .btn-uzimate-yellow {
    width: 100%;
  }
  
  .hero-content {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .video-container iframe {
    height: 250px;
  }
  
  .revenue-display h2 {
    font-size: 2rem;
  }
  
  .feature-card {
    margin-bottom: 1.5rem;
  }
  
  .app-badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .revenue-calculator {
    padding: 1.5rem;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
  }
}

/* About Page Specific Styles */
.section-dark {
  background-color: var(--uzimate-purple);
  color: var(--uzimate-text-white);
}

.section-dark .btn-light {
  background-color: var(--uzimate-bg-white);
  color: var(--uzimate-purple);
  border: none;
}

.section-dark .btn-light:hover {
  background-color: var(--uzimate-yellow);
  color: var(--uzimate-purple);
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--uzimate-purple) 0%, var(--uzimate-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-uzimate {
  box-shadow: 0 5px 15px rgba(92, 45, 145, 0.2);
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Login Page Specific Styles */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-form-section {
  background: var(--uzimate-bg-white);
  padding: 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.login-brand-section {
  background: var(--uzimate-purple);
  padding: 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-brand-section::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  top: -50%;
  right: -50%;
  opacity: 0.3;
}

.login-brand-section::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--uzimate-purple-dark);
  border-radius: 50%;
  top: -250px;
  right: -250px;
  opacity: 0.3;
}

.login-brand-content {
  position: relative;
  z-index: 1;
  color: var(--uzimate-text-white);
}

.login-brand-content .logo-icon {
  width: 60px;
  height: 60px;
  background: var(--uzimate-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--uzimate-purple);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.login-brand-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--uzimate-text-white);
}

.login-brand-content .tagline {
  color: var(--uzimate-yellow);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.login-brand-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .login-form-section,
  .login-brand-section {
    min-height: auto;
    padding: 2rem;
  }
  
  .login-brand-content h1 {
    font-size: 2rem;
  }
}

