/* ============================================
   MODERN DESIGN ENHANCEMENTS - APEX ASSETS
   Updated April 2026
   ============================================ */

/* Color Scheme */
:root {
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --primary-light: #3385d6;
  --accent: #ffa500;
  --accent-light: #ffb84d;
  --success: #27ae60;
  --danger: #e74c3c;
  --light-bg: #f8f9fa;
  --dark-text: #2c3e50;
  --medium-text: #5a6c7d;
  --light-text: #8b95a5;
  --border-color: #e0e6ed;
}

/* ============================================
   TYPOGRAPHY IMPROVEMENTS
   ============================================ */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark-text);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--medium-text);
  margin-bottom: 1rem;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.btn-primary, .btn-get-started {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  padding: 12px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover, .btn-get-started:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 102, 204, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: var(--light-bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 11px 31px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
#header {
  background: white;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  transition: all 0.3s ease;
}

#header.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

#header .logo a {
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

#header .logo a:hover {
  color: var(--primary-dark);
}

.navbar a {
  color: var(--dark-text);
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
  transition: all 0.3s ease;
}

.navbar a:hover,
.navbar .active {
  color: var(--primary);
}

.navbar .dropdown ul {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  top: calc(100% + 15px);
  border: none;
  border-top: 3px solid var(--primary);
}

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.9) 0%, rgba(0, 82, 163, 0.9) 100%),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23fff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="%23066" /><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -200px;
}

#hero::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  bottom: -150px;
  left: -150px;
}

#hero .carousel-container {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

#hero .carousel-content {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 30px;
  color: white;
}

#hero .carousel-content h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

#hero .carousel-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

#hero .carousel-content h3,
#hero .carousel-content h4 {
  color: white;
}

/* ============================================
   SECTION STYLING
   ============================================ */
section {
  padding: 80px 0;
  position: relative;
}

section.alt {
  background: var(--light-bg);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 20px;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: var(--dark-text) !important;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 15px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--medium-text);
  font-size: 1.1rem;
  margin: 0;
}

/* ============================================
   CARDS & FEATURES
   ============================================ */
.feature-card {
  background: white;
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0, 102, 204, 0.15);
  transform: translateY(-5px);
}

.feature-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: white;
}

.feature-card h4 {
  margin-bottom: 15px;
  color: var(--dark-text);
}

.feature-card p {
  color: var(--medium-text);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  background: white;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-content h3 {
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial-item {
  background: white;
  border-radius: 10px;
  padding: 30px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-item:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.testimonial-item h4 {
  color: var(--primary);
  margin-bottom: 10px;
}

.testimonial-item p {
  color: var(--medium-text);
  margin-bottom: 15px;
  font-style: italic;
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: linear-gradient(135deg, #1a3a52 0%, #0f1f2e 100%);
  color: #fff;
  padding: 60px 0 30px;
}

footer h5 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

footer p, footer li {
  color: rgba(255, 255, 255, 0.7);
}

footer a {
  color: var(--accent);
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 30px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 35px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  #hero .carousel-content {
    padding: 25px 20px;
  }
  
  #hero .carousel-content h2 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .about-content {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.1rem; }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  #hero {
    min-height: 500px;
  }
  
  #hero .carousel-content {
    padding: 20px 15px;
  }
  
  #hero .carousel-content h2 {
    font-size: 1.5rem;
  }
  
  #hero .carousel-content p {
    font-size: 0.95rem;
  }
  
  .btn-primary, .btn-get-started {
    padding: 10px 25px;
    font-size: 13px;
  }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--medium-text) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.bg-light {
  background: var(--light-bg) !important;
}

.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

.shadow-md {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ============================================
   ANIMATION
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   FORM STYLING
   ============================================ */
.form-control {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 12px 15px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  outline: none;
}

.form-label {
  color: var(--dark-text);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

/* ============================================
   PUBLIC PAGE RESPONSIVE REFINEMENTS
   ============================================ */
#header {
  min-height: 60px;
  padding: 8px 0 !important;
}

#header .container {
  min-height: 44px;
}

#header .logo {
  line-height: 1.1;
  max-width: 320px;
  text-transform: none;
}

#header .logo a {
  display: inline-block;
  font-size: 20px !important;
  letter-spacing: 0;
  line-height: 1.15;
  white-space: normal;
}

.navbar a,
.navbar a:focus {
  padding: 10px 0 10px 18px;
  font-size: 13px;
}

#hero {
  height: 680px;
  min-height: 640px;
  background: #071321;
}

#hero::before,
#hero::after {
  display: none;
}

#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item,
#hero .carousel-item::before {
  background-position: center center;
}

#hero .carousel-item::before {
  content: "";
  background: linear-gradient(90deg, rgba(4, 12, 24, 0.82), rgba(4, 12, 24, 0.54));
  z-index: 1;
}

#hero .carousel-container {
  align-items: center;
  justify-content: center;
  inset: 78px 7% 52px 7%;
  z-index: 2;
}

#hero .carousel-content {
  width: 560px;
  max-width: 100%;
  padding: 26px 28px;
  background: rgba(5, 15, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  text-align: center;
  margin: 0 auto;
}

#hero .carousel-content h3 {
  color: #fff;
  font-size: 32px;
  line-height: 1.18;
  margin: 0 0 14px;
}

#hero .carousel-content h4 {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  margin: 0 0 20px;
}

#hero .carousel-content .text-center {
  text-align: center !important;
}

#hero .carousel-control-next-icon,
#hero .carousel-control-prev-icon {
  width: 42px;
  height: 42px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.18);
}

#skills,
#services {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center center;
}

#skills::before,
#services::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 14, 25, 0.78);
  z-index: -1;
}

#skills .section-title h2,
#skills .section-title p,
#skills .skill,
#services h2,
#services .section-title h2,
#services .section-title p {
  color: #fff !important;
}

#services .icon-box {
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 1199px) {
  #header .logo {
    max-width: 260px;
  }

  #header .logo a {
    font-size: 18px !important;
  }

  .navbar a,
  .navbar a:focus {
    padding-left: 13px;
    font-size: 12px;
  }

  #hero {
    height: 620px;
    min-height: 600px;
  }

  #hero .carousel-content {
    width: 520px;
  }
}

@media (max-width: 991px) {
  #header {
    min-height: 56px;
    padding: 7px 0 !important;
  }

  #header .logo {
    max-width: calc(100% - 72px);
  }

  #header .logo a {
    font-size: 17px !important;
  }

  .mobile-nav-toggle {
    font-size: 26px;
  }

  #hero {
    height: 580px;
    min-height: 560px;
  }

  #hero .carousel-container {
    inset: 70px 22px 34px 22px;
    align-items: center;
    justify-content: center;
  }

  #hero .carousel-content {
    width: 100%;
    padding: 22px 20px;
  }

  #hero .carousel-content h3 {
    font-size: 25px;
  }

  #hero .carousel-content h4 {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 575px) {
  #header .logo a {
    font-size: 15px !important;
  }

  #google_translate_element {
    display: none;
  }

  #hero {
    height: 540px;
    min-height: 520px;
  }

  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item,
  #hero .carousel-item::before {
    background-position: center top;
  }

  #hero .carousel-container {
    inset: 66px 14px 28px 14px;
  }

  #hero .carousel-content {
    padding: 18px 16px;
  }

  #hero .carousel-content h3 {
    font-size: 21px;
  }

  #hero .carousel-content h4 {
    font-size: 13px;
    line-height: 1.48;
    margin-bottom: 14px;
  }

  #hero .carousel-control-prev,
  #hero .carousel-control-next {
    display: none;
  }

  #hero .btn-get-started {
    padding: 10px 20px;
    margin: 0;
  }
}
