/* 
 * PT Ali Telematika Nusantara - Landing Page Styles
 * Author: Developer
 * Version: 1.0
 */

/* ===== BASE STYLES ===== */
:root {
  /* Colors */
  --primary: #2f6df2;
  --primary-dark: #1a56d6;
  --primary-light: #5a8af5;
  --secondary: #ff6b35;
  --secondary-dark: #e55a2b;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  
  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-round: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary);
  margin: var(--spacing-sm) auto 0;
  border-radius: var(--radius-sm);
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--gray);
  margin-top: -1.5rem;
  margin-bottom: var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-light {
  background-color: var(--white);
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--light-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

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

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

.logo img {
  max-height: 60px;
  width: auto;
  margin-right: var(--spacing-sm);
}

.main-nav .nav-list {
  display: flex;
  gap: var(--spacing-lg);
}

.main-nav .nav-list a {
  color: var(--dark);
  font-weight: 500;
  position: relative;
}

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

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
  color: var(--primary);
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(80px + var(--spacing-xxl));
  padding-bottom: var(--spacing-xxl);
  background: linear-gradient(135deg, #f5f7ff 0%, #e8f0ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-round);
  background-color: rgba(47, 109, 242, 0.1);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-round);
  background-color: rgba(255, 107, 53, 0.1);
  z-index: 0;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

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

.hero-image img {
  max-width: 100%;
  height: auto;
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.hero p {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
}

/* ===== FEATURES SECTION ===== */
.features {
  background-color: var(--white);
}

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

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
}

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

.feature-icon {
  margin: 0 auto var(--spacing-md);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(47, 109, 242, 0.1);
  border-radius: var(--radius-round);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.feature-card p {
  color: var(--gray);
}

/* ===== PACKAGES SECTION ===== */
.packages {
  background-color: var(--light-gray);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  align-items: stretch;
}

.package-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.package-card.featured {
  border: 2px solid var(--primary);
  transform: scale(1.02);
}

.package-card.featured:hover {
  transform: scale(1.02) translateY(-10px);
}

.package-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-bottom-left-radius: var(--radius-md);
  z-index: 1;
}

.package-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-md) 0;
  background-color: var(--light-gray);
  transition: transform var(--transition-normal);
}

.package-card:hover .package-image {
  transform: scale(1.05);
}

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

.package-header {
  padding: var(--spacing-lg);
  background: linear-gradient(135deg, var(--primary) 0%, #1e5bb8 100%);
  color: var(--white);
  text-align: center;
  position: relative;
}

.package-icon {
  margin-bottom: var(--spacing-md);
  display: flex;
  justify-content: center;
}

.package-header h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.package-speed {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
  opacity: 0.9;
}

.package-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.currency {
  font-size: 1rem;
  font-weight: 500;
}

.amount {
  font-size: 2rem;
  font-weight: 700;
}

.period {
  font-size: 0.875rem;
  opacity: 0.8;
}

.package-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
}

.package-features {
  margin-bottom: var(--spacing-md);
  width: 100%;
  list-style: none;
  padding: 0;
}

.package-features li {
  padding: var(--spacing-xs) 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.9rem;
}

.icon-check::before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  font-size: 1rem;
}

.package-ideal {
  background-color: #f8f9fa;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
  font-size: 0.875rem;
  line-height: 1.4;
  border-left: 3px solid var(--primary);
}

.package-ideal strong {
  color: var(--primary);
}

/* Package Comparison Styles */
.package-comparison {
  margin-top: var(--spacing-xl);
  padding: var(--spacing-lg);
  background-color: #f8f9fa;
  border-radius: var(--radius-md);
}

.package-comparison h3 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--dark);
  font-size: 1.5rem;
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1px;
  background-color: #dee2e6;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.comparison-row {
  display: contents;
}

.comparison-cell {
  background-color: var(--white);
  padding: var(--spacing-sm);
  text-align: center;
  font-size: 0.875rem;
}

.comparison-row.header .comparison-cell {
  background-color: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.comparison-cell.featured {
  background-color: #e8f5e8;
  font-weight: 600;
  color: var(--primary);
}

.comparison-row.header .comparison-cell.featured {
  background-color: #4caf50;
  color: var(--white);
}

.package-features li:last-child {
  border-bottom: none;
}

.package-features strong {
  color: var(--primary);
}

/* ===== SERVICES SECTION ===== */
.services {
  background-color: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.service-icon {
  margin: 0 auto var(--spacing-md);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.service-icon img {
  max-width: 100%;
  height: auto;
  transition: transform var(--transition-normal);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
}

/* ===== ABOUT SECTION ===== */
.about {
  background-color: var(--light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-text p {
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

.about-stats {
  display: flex;
  justify-content: space-between;
  margin-top: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  padding: var(--spacing-md) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.testimonial-slider::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.testimonial-card {
  flex: 0 0 calc(33.333% - var(--spacing-lg));
  min-width: 300px;
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  scroll-snap-align: start;
  transition: transform var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  margin-bottom: var(--spacing-md);
}

.testimonial-content p {
  font-style: italic;
  color: var(--gray);
  position: relative;
  padding: 0 var(--spacing-md);
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  font-size: 2rem;
  color: var(--primary-light);
  position: absolute;
}

.testimonial-content p::before {
  left: 0;
  top: -10px;
}

.testimonial-content p::after {
  right: 0;
  bottom: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.author-avatar img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

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

/* ===== CTA SECTION ===== */
.cta {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xl) 0;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

/* ===== CONTACT SECTION ===== */
.contact {
  background-color: var(--light-gray);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.info-icon {
  background-color: rgba(47, 109, 242, 0.1);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-text h4 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: var(--dark);
}

.info-text p {
  color: var(--gray);
  margin-bottom: 0.25rem;
}

.contact-form {
  background-color: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding-top: var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  max-height: 80px;
  width: auto;
  margin-bottom: var(--spacing-sm);
}

.footer-logo h3 {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xs);
}

.footer-logo p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.footer-links-column h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

.footer-links-column ul li {
  margin-bottom: var(--spacing-sm);
}

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

.footer-links-column ul li a:hover {
  color: var(--white);
}

.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-round);
  color: var(--white);
  transition: all var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: var(--spacing-md) 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .package-card.featured {
    transform: scale(1.01);
  }

  .package-card.featured:hover {
    transform: scale(1.01) translateY(-10px);
  }
  
  .footer-content {
    grid-template-columns: 1fr 2fr;
  }
  
  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .main-nav .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    padding: 80px var(--spacing-lg) var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-normal);
    z-index: 1000;
  }
  
  .main-nav .nav-list.active {
    right: 0;
  }
  
  .hero .container,
  .about-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-content,
  .about-text {
    max-width: 100%;
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-image {
    margin-bottom: var(--spacing-xl);
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .about-stats {
    justify-content: center;
  }
  
  .packages-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .package-card.featured {
    transform: none;
  }

  .package-card.featured:hover {
    transform: translateY(-10px);
  }

  .comparison-table {
    grid-template-columns: 1fr;
    gap: var(--spacing-xs);
  }

  .comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
  }

  .comparison-row.header {
    display: none;
  }

  .comparison-cell {
    padding: var(--spacing-xs);
    border-radius: var(--radius-xs);
  }

  .comparison-cell:first-child {
    font-weight: 600;
    background-color: var(--primary) !important;
    color: var(--white) !important;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .features-grid,
  .packages-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .package-card.featured {
    transform: scale(1);
  }
  
  .package-card.featured:hover {
    transform: translateY(-10px);
  }
  
  .testimonial-card {
    flex: 0 0 calc(100% - var(--spacing-md));
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
}