/* Modern Styles CSS - Bookevo */

/* CSS Variables */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --dark: #1a1a2e;
  --text: #2d3748;
  --text-light: #718096;
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --success: #48bb78;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hover: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  transition: opacity 0.5s ease;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Header */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.top-bar {
  background: var(--gradient);
  color: white;
  padding: 10px 0;
  font-size: 0.875rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info i {
  font-size: 0.875rem;
}

/* Navigation */
.main-nav {
  padding: 1rem 0;
}

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

.nav-brand a {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .logo {
  height: 45px;
  width: auto;
  border-radius: 8px;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
}

.nav-link i {
  font-size: 0.75rem;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  padding: 8px;
  margin-top: 8px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  transform: translateX(5px);
}

.dropdown-menu i {
  font-size: 1rem;
  width: 20px;
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  margin-top: 108px;
  padding: 80px 0 100px;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.8s ease 0.8s both;
}

.stat-item {
  text-align: left;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 5px;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}

.hero-image {
  position: relative;
  animation: fadeInRight 0.8s ease 0.4s both;
}

.hero-image-wrapper {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.floating-card {
  position: absolute;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 1.5rem;
  color: var(--primary);
}

.floating-card span {
  font-weight: 600;
  color: var(--text);
  font-size: 0.875rem;
}

.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 30%;
  left: -15%;
  animation-delay: 1s;
}

.card-3 {
  bottom: 10%;
  right: 10%;
  animation-delay: 2s;
}

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

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* Services Section */
.services-overview {
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.service-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(102, 126, 234, 0.05);
  transition: var(--transition);
}

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

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

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

.service-card:hover .service-number {
  color: rgba(102, 126, 234, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  transform: rotateY(360deg);
}

.service-icon i {
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
}

.service-card:hover .service-icon i {
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 15px;
}

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

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
}

.service-link i {
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Why Choose Us Section */
.why-choose-us {
  background: white;
}

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

.features-list {
  margin-top: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--success);
}

.feature-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
}

.feature-content p {
  color: var(--text-light);
}

/* Team Section */
.team-section {
  background: var(--light-bg);
}

/* CTA Section */
.cta-section {
  background: var(--gradient);
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  color: white;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
  padding: 80px 0 0;
}

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

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

.footer-logo img {
  height: 40px;
  border-radius: 8px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

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

.social-link:hover {
  background: var(--gradient);
  transform: translateY(-3px);
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 25px;
  font-weight: 700;
}

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

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

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.contact-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.team-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 12px;
  transition: var(--transition);
}

.team-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.team-badge i {
  color: var(--accent);
  flex-shrink: 0;
}

.team-badge span {
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content,
  .why-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .floating-card {
    display: none;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .features-list {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .contact-info {
    flex-direction: column;
    gap: 10px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 576px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Page Hero (generic pages) */
.page-hero {
  margin-top: 108px;
  padding: 80px 0;
  background: var(--gradient);
  color: white;
}

.page-hero .page-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero .page-hero-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
}

/* Two-column service overview */
.service-overview .service-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.service-overview .service-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.service-overview .service-text p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.service-overview .service-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

/* Features grid (cards) */
.service-features .features-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(102,126,234,.12), rgba(118,75,162,.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card .feature-icon i { color: var(--primary); font-size: 1.5rem; }

.feature-card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); }

/* Benefits list */
.benefits-list { display: grid; gap: 18px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; background: white; border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.benefit-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(102,126,234,.12); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.benefit-icon i { color: var(--success); }
.benefit-content h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.benefit-content p { color: var(--text-light); }

/* Contact page */
.contact-section .contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; }
.contact-form-container, .contact-info-container { background: white; border-radius: 16px; padding: 28px; box-shadow: var(--shadow-sm); }
.contact-form-container h2, .contact-info-container h2 { margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.form-group label { font-weight: 600; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 10px; outline: none; font-family: inherit; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(102,126,234,.15); }
.form-group.full-width { grid-column: 1 / -1; }

/* Map section */
.map-section .map-container { overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-md); }

/* Team pages */
.team-overview .team-intro { color: var(--text-light); line-height: 1.8; display: grid; gap: 12px; }
.team-section .team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.team-member { background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); display:flex; flex-direction: column; }
.team-member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.member-image img { width: 100%; height: 260px; object-fit: cover; }
.member-info { padding: 18px; }
.member-title { color: var(--text-light); margin: 6px 0 10px; font-size: .9375rem; }
.member-description { color: var(--text-light); }
.member-social { display: flex; gap: 10px; margin-top: 12px; }
.member-social .social-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(102,126,234,.12); display:flex; align-items:center; justify-content:center; transition: var(--transition); }
.member-social .social-icon:hover { background: var(--gradient); color: white; transform: translateY(-3px); }

/* Certifications bodies list */
.certification-bodies { display: grid; gap: 16px; }
.certification-body { background: white; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }

/* Responsive adjustments */
@media (max-width: 992px) {
  .service-overview .service-content { grid-template-columns: 1fr; }
  .contact-section .contact-grid { grid-template-columns: 1fr; }
}
