/* ============================================
   ROOT & VARIABLES
   ============================================ */
:root {
  --primary-color: #0066ff;
  --secondary-color: #00d4ff;
  --dark-bg: #0a0e27;
  --dark-bg-secondary: #1a1f3a;
  --light-bg: #ffffff;
  --light-bg-secondary: #f5f7fa;
  --text-dark: #333333;
  --text-light: #ffffff;
  --text-muted: #666666;
  --border-color: #e0e0e0;
  --success-color: #28a745;
  --error-color: #dc3545;
  --transition: all 0.4s ease;
  --shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

body.dark-mode {
  --light-bg: #0a0e27;
  --light-bg-secondary: #1a1f3a;
  --text-dark: #ffffff;
  --text-muted: #b0b0b0;
  --border-color: #333333;
}

/* ============================================
   GENERAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
  transition: var(--transition);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
  background-color: var(--light-bg-secondary);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  order: 1;
}


.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  font-size: 18px;
  align-items: center;
  order: 2;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding-top: 10px;
  transition: all 0.6s ease-in;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.4s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  order: 3;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.theme-toggle {
  background: none;
  border: 1px solid var(--text-muted);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  order: 4;
}

.theme-toggle:hover {
  background-color: rgba(0, 102, 255, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 100px 20px;
  background: linear-gradient(
    135deg,
    rgba(0, 102, 255, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  min-height: calc(100vh - 90px);
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInLeft 0.8s ease;
}

.hero-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 15px;
  animation: slideInLeft 0.8s ease 0.1s backwards;
}

.hero-description {
  font-size: 16px;
  text-align: justify;
  color: var(--text-muted);
  margin-bottom: 30px;
  animation: slideInLeft 0.8s ease 0.2s backwards;
}

.hero-image {
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.6);
}

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

.hero-placeholder {
  font-size: 150px;
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
  padding: 80px 20px;
  background-color: var(--light-bg-secondary);
  transition: var(--transition);
}

.section-title {
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin-top: 100px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 50px;
}

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

.service-card {
  background-color: var(--light-bg);
  padding: 20px !important;
  border-radius: 10px;
  text-align: left !important;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  animation: fadeInUp 0.6s ease;
}

.service-card h3 {
  font-weight: 600;
}

.service-card .desc {
  text-align: justify;
}

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

.service-img {
  width: 100%;
  height: 300px;
  border-radius: 8px;
}

.service-card .btn {
  width: fit-content;
  border: 1px solid rgba(0, 102, 255, 0.4);
  background: rgba(171, 173, 173, 0.103);
  color: var(--text-dark);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.service-card .btn:hover {
  transform: scale(1.05);
}

.service-icon {
  font-size: 50px;
  margin-bottom: 20px;
  display: block;
  animation: scaleIn 0.6s ease;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.service-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: 80px 20px;
  background-color: var(--light-bg);
}

.about img {
  width: 100%;
  height: auto;
}

.about-placeholder {
  animation: bounce 6s ease-in-out infinite;
}

.about-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.about-content p {
  font-size: 16px;
  text-align: justify;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.stat {
  text-align: center;
  padding: 20px 10px;
  width: 200px;
  margin-right: 10px;
  background-color: var(--light-bg-secondary);
  border-radius: 10px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.stat:hover {
  transform: scale(1.05);
}

.count {
  font-size: 2.5rem;
  font-weight: bold;
  color: #0d6efd;
  transition: color 0.6s ease;
}
.count:hover {
  color: #198754;
}

.stat h3 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat p {
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: 10px 20px 80px;
  background-color: var(--light-bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.info-item {
  display: flex;
  gap: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  align-items: flex-start;
  transition: all 0.4s ease;
}

.info-item a{
  color: var(--text-muted);
  text-decoration: none;
}

.info-item:hover {
  border: 1px solid var(--primary-color);
}

.info-icon {
  font-size: 26px;
  min-width: 20px;
  text-align: center;
}

.info-item:nth-child(1) .info-icon i {
  color: var(--primary-color);
}

.info-item:nth-child(2) .info-icon i {
  color: var(--success-color);
}

.info-item:nth-child(3) .info-icon i {
  color: #dc3545;
}

.info-item h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.info-item p {
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  transition: all 0.4s ease;
}

.contact-form:hover {
  border: 1px solid var(--primary-color);
}

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

.form-group label {
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
  background-color: var(--light-bg);
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 102, 255, 0.3);
}

.error-message {
  color: var(--error-color);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  color: var(--success-color);
  font-size: 16px;
  text-align: center;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideDown 0.5s ease;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 30px 20px;
  text-align: center;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@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 scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px and down) */
@media (max-width: 768px) {
  .container {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    text-align: center;
    order: 2;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .theme-toggle {
    order: 1;
    margin-left: auto;
    margin-right: 10px;
    cursor: pointer;
    width: 40px;
    height: 40px;
  }
  .nav-menu {
    position: absolute;
    top: 55px;
    left: -100%;
    flex-direction: column;
    background-color: var(--light-bg-secondary);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    padding: 20px 0;
    gap: 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 20px;
  }

  .hero-placeholder {
    font-size: 100px;
  }

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

  .service-card .service-img {
    height: 250px;
  }

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

  .about-placeholder {
    font-size: 80px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    text-align: center;
    padding: 20px;
    width: 100%;
    background-color: var(--light-bg-secondary);
    border-radius: 10px;
    transition: var(--transition);
  }

  .stat p {
    text-align: center;
  }

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

  .section-title {
    font-size: 32px;
  }
}

/* Mobile (480px and down) */
@media (max-width: 480px) {
  .container {
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    width: 100%;
    text-align: center;
    order: 2;
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .theme-toggle {
    order: 1;
    margin-left: auto;
    margin-right: 10px;
    cursor: pointer;
    width: 35px;
    height: 35px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-placeholder {
    font-size: 80px;
  }

  .hero {
    padding: 50px 20px;
    min-height: auto;
  }

  .section-title {
    font-size: 24px;
    margin-top: 0px;
  }

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

  .service-card .service-img {
    height: 220px;
  }

  .about-content {
    text-align: justify;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stat {
    width: 100%;
  }

  .stat h3 {
    font-size: 24px;
  }

  .stat p {
    text-align: center;
  }

  .about-content h2 {
    font-size: 28px;
  }

  .nav-container {
    height: 60px;
  }

  .logo {
    font-size: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .contact{
    padding-top: 80px;
  }
}

/* Active Navigation Link */
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  width: 100%;
}
