/* 
 * UndressAI India Website Styles
 * Responsive design with Hindi language optimization
 */

:root {
  --primary-color: #FF5722; /* Orange primary color */
  --secondary-color: #E91E63; /* Pink secondary color */
  --accent-color: #FFC107; /* Amber accent color */
  --dark-bg: #212121; /* Dark background */
  --light-bg: #FAFAFA; /* Light background */
  --text-color: #424242; /* Dark gray text */
  --light-text: #FFFFFF; /* Light text */
  --font-main: 'Noto Sans', 'Poppins', 'Hind', sans-serif; /* Fonts with good Hindi support */
  --transition: all 0.3s ease;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --radius: 4px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-size: 16px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

h1 span {
  color: var(--accent-color);
}

h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header styles */
header {
  background-color: #FFFFFF;
  box-shadow: var(--shadow);
}

.top-bar {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.nav-container {
  padding: 1rem 0;
}

.nav-container .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.logo-icon {
  width: 36px;
  height: 36px;
  margin-right: 0.5rem;
  fill: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-menu li {
  margin-left: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 5rem 0;
  color: var(--light-text);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image svg {
  width: 100%;
  height: auto;
  max-width: 400px;
}

.hero h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-group {
  display: flex;
  gap: 1rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--dark-bg);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #FFD54F;
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  display: inline-block;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
}

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

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

.section-header p {
  color: #757575;
  max-width: 600px;
  margin: 0 auto;
}

/* Features section */
.features {
  background-color: #FFFFFF;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.feature-card:hover::before {
  width: 100%;
  opacity: 0.05;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  margin-bottom: 1.5rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 87, 34, 0.1);
  border-radius: 50%;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-color);
}

/* How to section */
.howto {
  background-color: #F5F5F5;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.step-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-content h3 {
  margin-bottom: 1rem;
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}

/* FAQ section */
.faq {
  background-color: #FFFFFF;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border: 1px solid #EEEEEE;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background-color: #FFFFFF;
}

.accordion-header:hover {
  background-color: #F9F9F9;
}

.accordion-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
  padding: 0 1.5rem 1.5rem;
  max-height: 200px;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: #BDBDBD;
  padding: 4rem 0 1.5rem;
  margin-top: auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
  margin-right: 0.5rem;
  fill: white;
}

.footer-logo h4 {
  color: white;
  font-size: 1.3rem;
  margin: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 0.8rem;
}

.footer-links-column a {
  color: #BDBDBD;
}

.footer-links-column a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .footer-main {
    grid-template-columns: 1fr;
  }
  
  .footer-brand {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }
  
  .nav-menu.active {
    max-height: 300px;
  }
  
  .nav-menu li {
    margin: 1rem 0;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .cta-group {
    flex-direction: column;
  }
  
  .feature-card, .step-card {
    padding: 1.5rem;
  }
}

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

.feature-card, .step-card {
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(2), .step-card:nth-child(2) {
  animation-delay: 0.2s;
}

.feature-card:nth-child(3), .step-card:nth-child(3) {
  animation-delay: 0.4s;
}

.feature-card:nth-child(4), .step-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Special styles for Hindi text */
[lang="en-IN"] {
  line-height: 1.7; /* More space for Hindi characters */
  word-break: break-word;
}
