/* 
  Style for KHALID Y M LTD (Premium Car Wash & Detailing)
  Colors: #0f172a (Navy Background), #ffffff (White Sections), #3b82f6 (Premium Blue Accent)
  Design: Modern, Premium, Large rounded corners, Glassmorphism, Smooth animations
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary-bg: #0f172a;
  --secondary-bg: #1e293b;
  --accent-color: #3b82f6;
  --accent-hover: #2563eb;
  --text-light: #f8fafc;
  --text-gray: #94a3b8;
  --white: #ffffff;
  --black: #020617;
  
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--primary-bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover {
  color: var(--text-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* Typography */
.section-title {
  text-align: center;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  max-width: 700px;
  margin: 0 auto 4rem;
  font-size: 1.25rem;
}

.highlight {
  color: var(--accent-color);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background-color: var(--accent-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  border: 2px solid var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--primary-bg);
}

/* Header */
header {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo span {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  color: var(--text-gray);
  font-weight: 500;
  font-size: 1.1rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--white);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 4rem;
}

.floating-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 15px 30px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 500;
}

.stat-icon {
  color: var(--accent-color);
}

/* Sections */
section {
  padding: 8rem 0;
}

.bg-white-section {
  background-color: var(--white);
  color: var(--black);
  border-radius: var(--radius-xl);
  margin: 0 20px;
  padding: 8rem 0;
}

.bg-white-section .section-title {
  color: var(--black);
}

.bg-white-section .section-subtitle {
  color: #64748b;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--secondary-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 15px;
}

.service-card p {
  color: var(--text-gray);
  margin-bottom: 0;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-box {
  text-align: center;
}

.feature-box .icon {
  width: 80px;
  height: 80px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.feature-box:hover .icon {
  background: var(--accent-color);
  color: var(--white);
}

.feature-box h3 {
  color: var(--black);
  font-size: 1.5rem;
}

.feature-box p {
  color: #64748b;
}

/* Process Timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--glass-border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary-bg);
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.process-step h3 {
  font-size: 1.4rem;
  color: var(--white);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 40px 30px 20px;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  color: var(--white);
  margin: 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--secondary-bg);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.stars {
  color: #fbbf24;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 30px;
  font-style: italic;
}

.customer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.customer-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
}

.customer-info h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--white);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  background: var(--secondary-bg);
  padding: 50px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h4 {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-item p {
  color: var(--text-gray);
  font-size: 1.1rem;
}

.contact-buttons {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.btn-whatsapp {
  background-color: #25D366;
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: transparent;
  color: #25D366;
}

.contact-form {
  background: var(--white);
  padding: 50px;
  border-radius: var(--radius-lg);
}

.contact-form h3 {
  color: var(--black);
  font-size: 2rem;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: var(--black);
  font-weight: 600;
  margin-bottom: 10px;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--black);
  transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--white);
}

#form-message {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 12px;
  display: none;
  font-weight: 600;
  text-align: center;
}

.success-msg {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Footer */
footer {
  background: var(--black);
  padding: 6rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 4rem;
}

.footer-col p {
  color: var(--text-gray);
  margin-top: 20px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 15px;
}

.footer-links a {
  color: var(--text-gray);
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-gray);
}

/* Text Pages */
.text-page {
  background: var(--secondary-bg);
  padding: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  max-width: 900px;
  margin: 0 auto;
}

.text-page h2 {
  color: var(--accent-color);
  margin-top: 40px;
}

.text-page p, .text-page ul {
  color: var(--text-gray);
  margin-bottom: 20px;
}

.text-page ul {
  padding-left: 20px;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.page-header h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.4rem;
  color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 { font-size: 4rem; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-grid::before { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero-buttons { flex-direction: column; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--secondary-bg);
    flex-direction: column;
    padding: 30px 0;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-btn { display: block; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .contact-buttons { flex-direction: column; }
}