/* ========== GLOBAL VARIABLES ========== */
:root {
  --primary: #00ACEF;
  --primary-dark: #0095d0;
  --primary-light: #e0f3ff;
  --secondary: #908E8F;
  --secondary-dark: #6b696a;
  --white: #FFFFFF;
  --dark: #1a1a2e;
  --gray-light: #f8f9fa;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.custom-navbar {
  background: rgba(255, 255, 255, 0.98);
  padding: 0.8rem 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.custom-navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon i {
  font-size: 20px;
  color: white;
}

.navbar-brand span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
}

.navbar-brand .brand-primary {
  color: var(--primary);
}

.navbar-toggler {
  border: none;
  background: transparent;
}

.navbar-toggler-icon i {
  font-size: 24px;
  color: var(--dark);
}

.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  margin: 0 8px;
  position: relative;
  transition: var(--transition);
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 25px;
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  overflow: hidden;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(0,172,239,0.15), transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

.hero-text {
  animation: fadeInUp 1s ease;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.2rem;
  }
}

@media (min-width: 992px) {
  .hero-title {
    font-size: 3.5rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #5cb8e6, #00ACEF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 90%;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  padding-top: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Slideshow */
.hero-slideshow {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.slide-card {
  position: relative;
  height: 380px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .slide-card {
    height: 420px;
  }
}

.slide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide-card:hover img {
  transform: scale(1.05);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 25px 20px 15px;
  color: white;
}

.slide-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.slide-content p {
  font-size: 0.8rem;
  opacity: 0.9;
}

.hero-slideshow .swiper-button-next,
.hero-slideshow .swiper-button-prev {
  background: rgba(255, 255, 255, 0.9);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--primary);
}

.hero-slideshow .swiper-button-next:after,
.hero-slideshow .swiper-button-prev:after {
  font-size: 1rem;
  font-weight: bold;
}

.hero-slideshow .swiper-pagination-bullet {
  background: white;
  opacity: 0.7;
}

.hero-slideshow .swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* ========== FEATURE CARDS ========== */
.features-section {
  background: var(--white);
  padding: 60px 0;
}

.feature-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon-wrapper i {
  font-size: 30px;
  color: var(--primary);
  background: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.feature-link:hover {
  color: var(--primary-dark);
  padding-left: 5px;
}

/* ========== SERVICES SECTION ========== */
.services-section {
  background: var(--gray-light);
  padding: 60px 0;
}

.section-subtitle {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

.section-description {
  color: var(--secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 0.95rem;
}

.service-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-overlay i {
  font-size: 20px;
  color: white;
}

.service-body {
  padding: 20px;
}

.service-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-body p {
  color: var(--secondary);
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.service-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--primary-dark);
  padding-left: 5px;
}


/* ========== PORTFOLIO SECTION STYLES ========== */
.portfolio-section {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.portfolio-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

/* Portfolio Filter Buttons */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: transparent;
  border: 2px solid rgba(0, 172, 239, 0.2);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(0, 172, 239, 0.3);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
}

.portfolio-large {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .portfolio-large {
    grid-column: span 1;
  }
}

/* Portfolio Card */
.portfolio-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 172, 239, 0.15);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.portfolio-large .portfolio-image {
  aspect-ratio: 16/9;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.1);
}

/* Portfolio Overlay */
.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 172, 239, 0.95), rgba(0, 149, 208, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  transform: scale(0.9);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
  transform: scale(1);
}

.portfolio-content {
  text-align: center;
  color: white;
  padding: 30px;
  transform: translateY(20px);
  transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-content {
  transform: translateY(0);
}

.portfolio-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.portfolio-category {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
}

.portfolio-content h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.portfolio-content p {
  font-size: 0.85rem;
  margin-bottom: 15px;
  opacity: 0.95;
  line-height: 1.5;
}

.portfolio-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.portfolio-stats span {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.portfolio-stats i {
  font-size: 0.9rem;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.portfolio-btn:hover {
  background: var(--dark);
  color: white;
  gap: 12px;
  transform: translateY(-2px);
}

/* Portfolio Info (visible on card) */
.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
}

.portfolio-info h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.portfolio-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
}

/* Portfolio Item Animation */
.portfolio-item {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUpPortfolio 0.6s ease forwards;
}

@keyframes fadeInUpPortfolio {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Animation */
.portfolio-item {
  transition: all 0.4s ease;
}

.portfolio-item.hide {
  display: none;
  opacity: 0;
  transform: scale(0.8);
}

.portfolio-item.show {
  display: block;
  animation: fadeInUpPortfolio 0.6s ease forwards;
}

/* Hover Glow Effect */
.portfolio-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary), #5cb8e6, var(--primary));
  border-radius: 22px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.portfolio-card:hover::before {
  opacity: 1;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .filter-btn {
    padding: 6px 16px;
    font-size: 0.75rem;
  }
  
  .portfolio-content {
    padding: 20px;
  }
  
  .portfolio-content h4 {
    font-size: 1rem;
  }
  
  .portfolio-content p {
    font-size: 0.75rem;
  }
  
  .portfolio-stats {
    flex-direction: column;
    gap: 5px;
    align-items: center;
  }
  
  .portfolio-btn {
    padding: 8px 18px;
    font-size: 0.75rem;
  }
}


/* ========== CTA SECTION ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}

.cta-wrapper {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 30px;
  backdrop-filter: blur(10px);
}

.cta-wrapper h3 {
  font-size: 1.8rem;
}

@media (min-width: 768px) {
  .cta-wrapper h3 {
    font-size: 2rem;
  }
}

.btn-cta {
  background: white;
  color: var(--primary);
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
}

/* ========== ABOUT SECTION ========== */
.about-section {
  padding: 60px 0;
  background: var(--white);
}

.about-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 2rem;
  }
}

.about-text {
  color: var(--secondary);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.mission-card {
  background: var(--gray-light);
  padding: 25px;
  border-radius: 16px;
  transition: var(--transition);
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.mission-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
}

.mission-icon i {
  font-size: 24px;
  color: var(--primary);
}

.mission-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.mission-card p {
  color: var(--secondary);
  line-height: 1.5;
  font-size: 0.85rem;
}

/* ========== BUTTONS ========== */
.btn-primary-custom {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 172, 239, 0.3);
  color: white;
}

.btn-outline-light-custom {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-outline-light-custom:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-outline-secondary-custom {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-outline-secondary-custom:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: linear-gradient(135deg, var(--gray-light), white);
  padding: 50px 0;
}

.newsletter-wrapper {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.newsletter-icon {
  font-size: 40px;
  color: var(--primary);
}

.newsletter-form .form-control {
  border-radius: 50px;
  padding: 10px 18px;
  border: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.newsletter-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(0, 172, 239, 0.1);
}

/* ========== FOOTER ========== */
.footer-section {
  background: #0a0a1a;
  color: white;
  padding: 50px 0 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo i {
  font-size: 30px;
  color: var(--primary);
}

.footer-logo span {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-logo span span {
  color: var(--primary);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  font-size: 0.85rem;
}

.footer-section h5 {
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 1rem;
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.footer-contact i {
  color: var(--primary);
  margin-right: 8px;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-section hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 25px 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .hero-section {
    padding-top: 70px;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-text {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-description {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .slide-card {
    height: 320px;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .newsletter-wrapper {
    padding: 30px 20px;
  }
  
  .cta-wrapper {
    padding: 30px 20px;
  }
  
  .cta-wrapper h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-badge {
    font-size: 0.7rem;
  }
  
  .feature-card {
    padding: 20px 15px;
  }
  
  .service-body h3 {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 20px;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
}