/* ========================================
   FILE: css/index.css
   Index page specific styles only
   ======================================== */

/* Under Construction Banner */
.construction-banner {
  background: var(--gradient-primary);
  color: white;
  padding: 12px 0;
  text-align: center;
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.construction-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.construction-icon {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

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

/* Utility */
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero Section */
.hero {
  background: var(--gradient-dark);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(14, 165, 183, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 183, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #a8dadc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-cta .btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  backdrop-filter: blur(10px);
}

.hero-cta .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.section-header.centered {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Section */
.services-section {
  padding: var(--section-padding) 0;
  background: white;
  position: relative;
  margin-top: -40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-light);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-card > p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
}

.service-features li {
  padding: 8px 0 8px 24px;
  color: var(--ink-light);
  position: relative;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-badge {
  background: var(--bg-subtle);
  color: var(--muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--line-subtle);
}

/* About Section */
.about-section {
  padding: var(--section-padding) 0;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 20px;
  margin-top: 12px;
}

.lead {
  font-size: 1.2rem;
  color: var(--ink-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.expertise-list {
  display: grid;
  gap: 24px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-subtle);
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.expertise-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.expertise-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.expertise-item h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.expertise-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding) 0;
  background: var(--bg-subtle);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: white;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Login Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 46, 0.7);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  padding: 40px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-subtle);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.modal-header {
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--muted);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-light);
}

.checkbox-label input[type="checkbox"] {
  cursor: pointer;
}

.forgot-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.forgot-link:hover {
  text-decoration: underline;
}

.modal-footer {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.modal-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .construction-content {
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
  }
  
  .wrap {
    padding: 0 24px;
  }
  
  .hero {
    padding: 60px 0 50px;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .about-cta {
    flex-direction: column;
  }
  
  .contact-options {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
  background: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 100%);
  padding: var(--section-padding) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials-section .section-header {
  position: relative;
  z-index: 1;
  margin-bottom: 60px;
}

.testimonials-section h2 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(45, 27, 78, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.4);
}

.quote-icon {
  font-size: 4rem;
  line-height: 1;
  color: rgba(139, 92, 246, 0.4);
  font-family: Georgia, serif;
  margin-bottom: -10px;
}

.testimonial-card h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.testimonial-card > p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
  flex-grow: 1;
}

.rating {
  display: flex;
  gap: 4px;
  font-size: 1.2rem;
}

.star {
  color: #fbbf24;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.author-info h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.author-info p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Testimonials */
@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 60px 0;
  }
  
  .testimonials-section h2 {
    font-size: 2rem;
  }
  
  .testimonials-section .wrap {
    overflow: hidden;
  }
  
  .testimonials-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
  }
  
  .testimonial-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 32px 24px;
    margin: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
  
  .testimonial-card.active {
    display: flex;
    opacity: 1;
    position: relative;
  }
  
  .testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    position: relative;
    z-index: 2;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
  }
  
  .dot.active {
    background: rgba(139, 92, 246, 1);
    width: 28px;
    border-radius: 5px;
  }
}

/* Hide dots on desktop */
@media (min-width: 769px) {
  .testimonial-dots {
    display: none;
  }
}
