/* 
* nudefyVN.site Main Stylesheet
* Theme: Indigo-Purple
* Optimized for Vietnamese language and responsive design
*/

:root {
  --primary: #673AB7;
  --primary-light: #D1C4E9;
  --primary-dark: #4527A0;
  --secondary: #9C27B0;
  --secondary-light: #E1BEE7;
  --accent: #00BCD4;
  --text-dark: #212121;
  --text-light: #757575;
  --text-white: #FFFFFF;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F5;
  --bg-dark: #1A1A2E;
  --bg-gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
  background-color: var(--bg-light);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

ul {
  list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

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

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary);
}

p {
  margin-bottom: 1.5rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.text-gradient {
  background: var(--bg-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.primary-btn {
  background: var(--bg-gradient);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text-white);
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: 30px;
}

.menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

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

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at bottom right, var(--primary-light), transparent),
              radial-gradient(ellipse at top left, var(--secondary-light), transparent);
  display: flex;
  align-items: center;
  padding: 100px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-text {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-top: 2rem;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
}

.shape-1 {
  top: 10%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: var(--primary);
  animation: float 8s infinite ease-in-out;
}

.shape-2 {
  bottom: 20%;
  right: 10%;
  width: 80px;
  height: 80px;
  background: var(--secondary);
  animation: float 6s infinite ease-in-out reverse;
}

.shape-3 {
  top: 40%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: var(--accent);
  animation: float 10s infinite ease-in-out;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Features Section */
.features {
  padding: 100px 0;
  background-color: var(--bg-white);
}

.feature-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-box {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--bg-gradient);
  z-index: -1;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

/* Process Section */
.process {
  padding: 100px 0;
  background: var(--bg-dark);
  color: var(--text-white);
}

.process .section-title {
  color: var(--text-white);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
}

.process-step {
  flex-basis: 30%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}

.step-title {
  color: var(--accent);
  margin-bottom: 10px;
}

.step-description {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Testimonials Section */
.testimonials {
  padding: 100px 0;
  background: var(--bg-light);
}

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

.testimonial-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  position: relative;
}

.testimonial-card:last-child {
  margin-bottom: 0;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-text::before,
.testimonial-text::after {
  content: '"';
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: 15px;
}

.author-name {
  font-weight: 600;
}

.author-title {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* FAQ Section */
.faq {
  padding: 100px 0;
  background: var(--bg-white);
}

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

.faq-item {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  background: var(--bg-light);
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--primary-light);
}

.faq-answer {
  padding: 0 20px;
  height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  height: auto;
  padding: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-toggle {
  color: var(--primary);
  transition: var(--transition);
}

/* CTA Section */
.cta {
  padding: 100px 0;
  background: var(--bg-gradient);
  color: var(--text-white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  color: var(--text-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.cta-btn {
  background: var(--text-white);
  color: var(--primary);
  border: 2px solid var(--text-white);
}

.cta-btn:hover {
  background: transparent;
  color: var(--text-white);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 80px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.footer-about p {
  opacity: 0.7;
  font-size: 0.95rem;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-white);
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text-white);
  padding-left: 5px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 2.3rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-image {
    width: 30%;
    opacity: 0.7;
  }
  
  .process-steps {
    flex-direction: column;
    gap: 40px;
  }
  
  .process-step {
    flex-basis: 100%;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-white);
    padding: 20px;
    gap: 15px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .menu.active {
    transform: translateY(0);
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-image {
    display: none;
  }
  
  .feature-boxes {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
}
