/* ============================================
   Modern Solve the Web - Main Stylesheet
   ============================================ */

:root {
  --primary-color: #0b5bae;
  --primary-dark: #063260;
  --accent-color: #ff8c00;
  --accent-light: #ff9600;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --border-color: #ddd;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  min-height: 100vh;
}

/* ============================================
   Header & Navigation
   ============================================ */

header.site-header {
  background: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.site-branding {
  display: flex;
  align-items: center;
}

#logo {
  display: flex;
  align-items: center;
}

#logo img {
  height: auto;
  max-width: 280px;
  display: block;
}

.site-description {
  display: none;
}

/* Social header */
.social-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social {
  display: flex;
  gap: 1rem;
}

/* Navigation */
nav.navbar {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* mobile toggle hidden by default */
.navbar-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger-svg {
  width: 28px;
  height: 28px;
  stroke: white;
  color: white;
  display: block;
}

/* collapse behavior */
.navbar-collapse {
  display: flex;
  align-items: center;
}
.navbar-collapse.in {
  display: block;
}

.navbar-toggle:hover {
  opacity: 0.8;
}

.navbar-collapse {
  background: inherit;
  padding: 0;
}

.nav {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav > li > a {
  color: white;
  padding: 12px 20px;
  text-decoration: none;
  transition: var(--transition);
  display: block;
  position: relative;
}

.nav > li > a:hover {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  color: white;
}

.nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.nav > li > a:hover::after {
  width: 100%;
}

/* ============================================
   Hero Carousel (Swiper)
   ============================================ */

.hero-carousel {
  width: 100%;
  height: 400px;
  background: #000;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* darker overlay to make text readable on bright images */
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
  color: white;
  padding: 3rem 2rem 2rem;
  text-align: left;
  z-index: 1110;
  /* add subtle text shadow for additional contrast */
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.carousel-caption p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.carousel-caption .btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.carousel-caption .btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  z-index: 20;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.8);
}

.swiper-pagination {
  bottom: 15px;
  z-index: 20;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--accent-color);
}

/* ============================================
   Content Container
   ============================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.site-content {
  padding: 3rem 0;
  background: white;
  margin: 2rem 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Services Section
   ============================================ */

#ServicesSection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

#ServicesSection .service-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

#ServicesSection .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-left-color: var(--primary-color);
}

#ServicesSection h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#ServicesSection ul {
  list-style: none;
  padding: 0;
}

#ServicesSection ul li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

#ServicesSection ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
  font-size: 1.2rem;
}

#ServicesSection ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

#ServicesSection ul li a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ============================================
   Portfolio Section
   ============================================ */

.portfolio-carousel {
  width: 100%;
  padding: 2rem 0;
}

.portfolio-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  padding: 1.5rem;
  text-align: center;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.portfolio-item h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.portfolio-item a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.portfolio-item a:hover {
  color: var(--accent-light);
  text-decoration: underline;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.portfolio-grid .portfolio-item {
  padding: 1.5rem;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  header.site-header {
    padding: 0.75rem 0;
  }

  #logo img {
    max-width: 200px;
  }

  .social-header {
    justify-content: center;
    margin-top: 1rem;
  }

  .hero-carousel {
    height: 300px;
  }

  .carousel-caption h2 {
    font-size: 1.5rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-caption {
    padding: 2rem 1rem 1rem;
  }

  .site-content {
    margin: 1rem 0;
    padding: 1.5rem;
  }

  #ServicesSection {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* mobile nav tweaks */
  .navbar-toggle {
    display: block;
    cursor: pointer;
    padding: 10px;
  }
  .navbar-collapse {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  }
  .navbar-collapse.in {
    display: block;
  }
  .nav {
    flex-direction: column;
    gap: 0;
  }
  .nav > li > a {
    padding: 10px 20px;
    font-size: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 200px;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
  }

  .carousel-caption p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .carousel-caption .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 40px;
    height: 40px;
  }

  #ServicesSection h2 {
    font-size: 1.25rem;
  }
}

/* ============================================
   Contact Form Styles
   ============================================ */

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(11, 91, 174, 0.1);
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form button[type="submit"] {
  width: 100%;
  padding: 0.8rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.contact-form button[type="submit"]:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

/* ============================================
   Responsive Contact Form
   ============================================ */

@media (max-width: 768px) {
  /* Contact page grid becomes single column */
  /* CSS will naturally stack due to grid properties */
}



footer.site-footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

footer.site-footer a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

footer.site-footer a:hover {
  color: white;
  text-decoration: underline;
}

.site-info {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  text-align: center;
}

.site-info ul {
  list-style: none;
  padding: 0;
}

.site-info ul li {
  padding: 0.5rem 0;
}

/* ============================================
   Typography & Others
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.3;
}

article h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.entry-title {
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.clear {
  clear: both;
}

.topPad {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(11, 91, 174, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

/* ============================================
   Utility Classes
   ============================================ */

.col-md-4,
.col-md-6,
.col-md-8,
.col-md-12,
.col-sm-12 {
  float: left;
  padding: 0 15px;
}

.col-md-4 {
  width: 33.33%;
}

.col-md-6 {
  width: 50%;
}

.col-md-8 {
  width: 66.66%;
}

.col-md-12,
.col-sm-12 {
  width: 100%;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

@media (max-width: 768px) {
  .col-md-4,
  .col-md-6,
  .col-md-8 {
    width: 100%;
  }
}

.btn-info {
  background-color: var(--primary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: 2px solid var(--primary-color);
}

.btn-info:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
