/* ========================================
   FRONTEND STYLES
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background: var(--white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   HEADER
   ======================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 15px 0;
}

.main-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
}

.main-header.scrolled .logo {
  color: var(--dark);
}

.logo img {
  height: 40px;
}

.logo i {
  font-size: 32px;
  color: var(--primary);
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

.main-header.scrolled .main-nav a {
  color: var(--dark);
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--white);
  cursor: pointer;
}

.main-header.scrolled .mobile-menu-toggle {
  color: var(--dark);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: var(--transition);
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--dark);
}

.mobile-nav ul {
  list-style: none;
  padding: 20px 0;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.mobile-nav a:hover {
  background: var(--light);
  color: var(--primary);
}

.mobile-nav i {
  width: 20px;
  text-align: center;
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
}

.overlay.active {
  display: block;
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(99, 102, 241, 0.6) 100%);
}

.slide-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 700px;
  padding-top: 80px;
}

.slide-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 1s ease;
}

.slide-content h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 20px;
  opacity: 0.9;
  animation: fadeInUp 1s ease 0.2s both;
}

.slide-content p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.8;
  animation: fadeInUp 1s ease 0.4s both;
}

.slide-content .btn {
  animation: fadeInUp 1s ease 0.6s both;
}

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

/* Slider Navigation */
.slider-nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.slider-prev,
.slider-next {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
  background: var(--white);
  color: var(--dark);
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border: none;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
  width: 30px;
  border-radius: 6px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

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

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

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

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

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  background: transparent;
}

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

.btn-lg {
  padding: 15px 35px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: 100px 0;
}

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

.section-subtitle {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--dark);
}

.section-desc {
  font-size: 18px;
  color: var(--gray);
}

.section-footer {
  text-align: center;
  margin-top: 50px;
}

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

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

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-image::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}

.about-short {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text {
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 14px;
  color: var(--gray);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 25px;
  transition: var(--transition);
}

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

.service-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

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

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

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

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-section {
  background: var(--light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-info {
  padding: 25px;
}

.project-category {
  display: inline-block;
  padding: 5px 15px;
  background: var(--light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.project-client {
  color: var(--gray);
  font-size: 14px;
}

.project-client i {
  margin-right: 5px;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 80px 0;
  color: var(--white);
}

.stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-item i {
  font-size: 40px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.stat-number {
  font-size: 48px;
  font-weight: 800;
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* ========================================
   PRICING SECTION
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-light);
  position: relative;
  transition: var(--transition);
}

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

.pricing-card.featured {
  border-color: var(--primary);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5px 20px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.pricing-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.pricing-desc {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.pricing-price {
  margin-bottom: 30px;
}

.pricing-price .currency {
  font-size: 24px;
  font-weight: 600;
  vertical-align: top;
}

.pricing-price .amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--primary);
}

.pricing-price .period {
  color: var(--gray);
}

.pricing-features {
  list-style: none;
  margin-bottom: 30px;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

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

.pricing-features i {
  color: var(--success);
}

/* ========================================
   TEAM SECTION
   ======================================== */
.team-section {
  background: var(--light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.team-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-image img {
  transform: scale(1.1);
}

.team-social {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  transition: var(--transition);
}

.team-card:hover .team-social {
  bottom: 0;
}

.team-social a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.team-social a:hover {
  background: var(--white);
  color: var(--primary);
}

.team-info {
  padding: 25px;
  text-align: center;
}

.team-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.team-info p {
  color: var(--gray);
  font-size: 14px;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.news-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card:hover .news-image img {
  transform: scale(1.1);
}

.news-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
}

.news-content {
  padding: 25px;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 13px;
  color: var(--gray);
}

.news-meta i {
  margin-right: 5px;
  color: var(--primary);
}

.news-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.news-content p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

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

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

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

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

.cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0 0;
}

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

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

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

.footer-col ul {
  list-style: none;
}

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

.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

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

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

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
}

.contact-info i {
  color: var(--primary);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.admin-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.admin-link:hover {
  color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .slide-content h1 {
    font-size: 42px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image::before {
    display: none;
  }
  
  .services-grid,
  .projects-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: none;
  }
  
  .stats-section .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 32px;
  }
  
  .slide-content h2 {
    font-size: 20px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .services-grid,
  .projects-grid,
  .news-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .stats-section .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-content h2 {
    font-size: 28px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}
