* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, Arial;
  background: linear-gradient(
    135deg,
    #949fe9 0%,
    #424988 30%,
    #0f0f3d 60%,
    #1a0f3f 100%
  );
  color: #e5e7eb;
  min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
  background: linear-gradient(90deg, #949fe9 0%, rgba(26, 31, 75, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(5, 150, 213, 0.05);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 8px 32px rgba(56, 189, 248, 0.15);
  background: linear-gradient(90deg, #949fe9 0% rgba(26, 31, 75, 0.98) 100%);
}

.navbar-logo {
  height: 55px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar-logo:hover {
  transform: scale(1.1) rotateZ(5deg);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.navbar-brand {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  cursor: pointer;
}

.navbar-brand:hover {
  filter: brightness(1.2);
}

.nav-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  margin: 0 8px;
  font-weight: 500;
  padding: 8px 12px !important;
  border-radius: 6px;
}

.nav-link:hover {
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
  width: calc(100% - 24px);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

/* styling for call-to-action inside hero */
.hero .btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

@media (max-width: 768px) {
  .hero .btn-primary {
    width: 100%;
    margin-top: 20px;
  }
}

.hero-slider {
  width: 100%;
  position: relative;
}

.slider-container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.slider-item {
  display: none;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  animation: fadeIn 0.8s ease;
}

.slider-item.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-item h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.slider-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.slider-control:hover {
  background: rgba(56, 189, 248, 0.4);
  border-color: #38bdf8;
  transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
  left: 20px;
}

.slider-control.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.6);
}

.dot.active {
  width: 30px;
  border-radius: 6px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border-color: #38bdf8;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

/* ===== SERVICES WITH WATER BLUR ===== */
.card-blur {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-blur::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(40px);
  transition: all 0.4s ease;
}

.card-blur:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-15px);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.15);
}

.card-blur:hover::before {
  top: 0;
  right: 0;
}

.service-icon {
  font-size: 50px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.card-blur:hover .service-icon {
  transform: scale(1.15) rotate(10deg);
}

.card-blur h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #e5e7eb;
}

/* ===== TEAM SECTION ===== */
.team-card-blur {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card-blur:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.15);
  transform: translateY(-10px);
  background: rgba(30, 41, 59, 0.6);
}

.team-card-blur img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.team-info h4 {
  color: #e5e7eb;
  margin-bottom: 5px;
}

.team-info .text-info {
  color: #38bdf8;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

/* when inside header row, remove extra top margin */
.team-header .social-links {
  margin-top: 0;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 0.9rem;
}

/* additional layout for team cards */
.team-header {
  width: 100%;
  margin-bottom: 0.75rem;
}

.team-header h4 {
  margin: 0;
}

.skills i {
  font-size: 1.25rem;
  color: #38bdf8;
  margin-right: 0.6rem;
  vertical-align: middle;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
}

.social-btn:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: white;
  transform: translateY(-3px) scale(1.1);
  border-color: #38bdf8;
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
}

/* ===== PORTFOLIO ===== */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 150, 213, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 2px solid white;
}

.portfolio-btn:hover {
  background: white;
  color: #0a0e27;
  transform: scale(1.15);
}

/* ===== FORMS ===== */
.form-control {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e5e7eb;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(229, 231, 235, 0.5);
}

.form-control:focus {
  background: rgba(30, 41, 59, 0.7);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  color: #e5e7eb;
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, #0ea5e9, #06b6d4);
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-primary.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(90deg, #494e70 0%, rgba(26, 31, 75, 0.95) 100%);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(5, 150, 213, 0.05);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  padding: 40px 0;
  margin-top: 80px;
}

.footer a {
  color: #e5e7eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #38bdf8;
}

.footer ul li {
  margin: 8px 0;
}

.footer hr {
  border-color: rgba(56, 189, 248, 0.2);
  margin: 20px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-logo {
    height: 40px;
    max-width: 45px;
  }

  .navbar-brand {
    font-size: 1.2rem;
  }

  .nav-link {
    margin: 0 5px;
    font-size: 0.95rem;
  }

  .slider-control {
    width: 35px;
    height: 35px;
    font-size: 0.8rem;
  }

  .slider-control.prev {
    left: 10px;
  }

  .slider-control.next {
    right: 10px;
  }

  .slider-item h1 {
    font-size: 2rem;
  }

  .slider-item img {
    max-height: 300px;
    object-fit: cover;
  }

  .portfolio-item img {
    height: 200px;
  }

  .portfolio-overlay {
    gap: 15px;
  }

  .portfolio-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .service-icon {
    font-size: 35px;
  }

  .team-card-blur img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0;
  }

  .navbar-logo {
    height: 35px;
    max-width: 40px;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .nav-link {
    margin: 0 3px;
    font-size: 0.9rem;
  }

  .slider-item h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .slider-item .lead {
    font-size: 0.95rem;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .slider-dots {
    bottom: 15px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .dot.active {
    width: 20px;
  }

  .portfolio-item img {
    height: 250px;
  }

  .team-card-blur img {
    height: 380px;
  }

  h2 {
    font-size: 1.8rem;
  }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #38bdf8, #0ea5e9);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0ea5e9, #06b6d4);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
