/* ===========================================
   General Reset & Body
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  transition: background 0.5s, color 0.5s;
}

/* Dark mode */
body.dark-mode {
  background: #121212;
  color: #e0e0e0;
}

/* ===========================================
   Navbar
=========================================== */
.navbar-nav .nav-link {
  margin-right: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #ffdd57;
  transform: scale(1.05);
}

/* ===========================================
   Hero Section
=========================================== */
.hero {
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  margin: 1rem 0;
  animation: fadeInHero 1.5s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 1.25rem;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
}

/* Hero unique colors */
.home-hero { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.about-hero { background: linear-gradient(135deg, #43cea2, #185a9d); }
.services-hero { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.contact-hero { background: linear-gradient(135deg, #ff416c, #ff4b2b); }

/* Hero animation */
@keyframes fadeInHero {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   Boxes & Buttons
=========================================== */
.box {
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.success {
  background-color: #d4edda !important;
  color: #155724;
}

/* Buttons */
.btn {
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ===========================================
   jQuery UI Overrides
=========================================== */
.ui-widget {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ui-state-highlight {
  background: #ffe57f !important;
  color: #333 !important;
  border-radius: 10px !important;
  font-weight: bold;
  text-align: center;
  padding: 1rem !important;
}

.ui-state-hover {
  background: #ffd966 !important;
  border-radius: 10px;
}

/* Tabs Styling */
#tabs, #tabsAbout {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 1rem;
}

.ui-tabs-nav li a {
  font-weight: bold;
  color: #333;
  transition: background 0.3s, color 0.3s;
}

.ui-tabs-nav li.ui-tabs-active a {
  background: #ffdd57;
  color: #000;
  border-radius: 5px;
}

/* Accordion Styling */
#accordion, #accordionAbout {
  background: #f0f8ff;
  border-radius: 10px;
  padding: 0.5rem;
}

/* Slider Styling */
#slider, #serviceSlider {
  margin-top: 1rem;
  background: #ddd;
}

/* Progressbar */
#serviceProgress, #progressbar {
  height: 20px;
  border-radius: 10px;
  background: #ddd;
  margin-top: 0.5rem;
}

/* ===========================================
   Form Styling
=========================================== */
form .form-control {
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}

form .form-control:focus {
  border-color: #ffdd57;
  box-shadow: 0 0 10px rgba(255,221,87,0.5);
  outline: none;
}

/* ===========================================
   Dark Mode Overrides
=========================================== */
body.dark-mode .hero { filter: brightness(0.8); }
body.dark-mode .box { background: #1e1e1e; color: #e0e0e0; box-shadow: 0 5px 15px rgba(255,255,255,0.05); }
body.dark-mode .success { background-color: #2b4d2b !important; color: #b3ffb3; }
body.dark-mode .form-control { background: #2b2b2b; color: #e0e0e0; border: 1px solid #555; }
body.dark-mode .ui-tabs-panel { background: #2b2b2b; color: #e0e0e0; }

/* ===========================================
   Responsive
=========================================== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .box { font-size: 0.9rem; padding: 1rem; }
}