/* 
 * Main Stylesheet for aitransporn.pw
 * Unique pink/indigo color scheme
 * Mobile-first responsive design
 */

:root {
  --color-primary: #FF4081;
  --color-secondary: #3F51B5;
  --color-accent: #7C4DFF;
  --color-light: #f8f9fa;
  --color-dark: #212121;
  --color-gray: #757575;
  --color-light-gray: #e0e0e0;
  --gradient: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--color-dark);
  background-color: var(--color-light);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

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

ul {
  list-style-type: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--gradient);
  color: white;
  font-weight: 600;
  text-align: center;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 64, 129, 0.25);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
  background: var(--color-secondary);
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.75rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo svg {
  margin-right: 0.75rem;
}

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

.nav-list {
  display: none;
}

.nav-item {
  margin: 0 0.75rem;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem;
  position: relative;
}

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

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

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 1rem;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }
}

.nav-list.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  z-index: 100;
}

.nav-list.active .nav-item {
  margin: 0.5rem 0;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: var(--color-light);
  clip-path: polygon(0 0, 100% 100%, 100% 100%, 0% 100%);
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

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

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* Card Styles */
.card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  margin-top: auto;
}

/* Feature Box */
.feature-box {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 100%;
}

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

.feature-box:hover::before {
  width: 100%;
}

.feature-box:hover {
  color: white;
}

.feature-box:hover .feature-title {
  color: white;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  color: var(--color-primary);
  transition: var(--transition);
}

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

section:nth-child(even) {
  background-color: #f9f9f9;
}

/* Process Steps */
.process-steps {
  position: relative;
}

.process-step {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 3rem;
}

.process-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.process-step:nth-child(1)::before {
  content: '1';
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step:nth-child(2)::before {
  content: '2';
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step:nth-child(3)::before {
  content: '3';
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  width: 2px;
  height: calc(100% + 20px);
  background: var(--color-light-gray);
  z-index: 0;
}

.process-step:last-child::after {
  display: none;
}

.process-title {
  color: var(--color-primary);
}

/* Testimonial */
.testimonial {
  padding: 2rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.author-info {
  margin-left: 1rem;
}

.author-name {
  font-weight: 700;
  color: var(--color-primary);
}

.author-title {
  font-size: 0.875rem;
  color: var(--color-gray);
}

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

.accordion-item {
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 1.5rem;
  background: white;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-primary);
  transition: var(--transition);
}

.accordion-header.active {
  background: var(--gradient);
  color: white;
}

.accordion-header.active::after {
  content: '−';
  color: white;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

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

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.footer {
  background: #212121;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col {
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.footer-logo svg {
  margin-right: 0.75rem;
}

.footer-links-title {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-links-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 50px;
  height: 3px;
  background: var(--gradient);
}

.footer-links {
  margin-bottom: 2rem;
}

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

.footer-links a {
  color: #bdbdbd;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
  color: #9e9e9e;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Adjustments */
@media (min-width: 576px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  
  h2 {
    font-size: 2.75rem;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
}

@media (min-width: 992px) {
  h1 {
    font-size: 4rem;
  }
  
  .hero {
    padding: 10rem 0 7rem;
  }
}
