/*
===========================================================
Custom CSS for a modern and professional design
===========================================================
*/
:root {
  --primary-color: #0056b3; /* A slightly darker blue for accents */
  --secondary-color: #e9f0f9; /* Light background for contrast */
  --dark-bg: #212529; /* Dark background for footer and text */
  --light-bg: #f8f9fa; /* General light background */
  --text-color: #495057; /* Default text color */
  --heading-font: 'Montserrat', sans-serif; /* Font for headings */
  --body-font: 'Poppins', sans-serif; /* Font for body text */
}
/* Universal box-sizing for consistent layout */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  font-family: var(--body-font);
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
  overflow-x: hidden; /* Prevents horizontal scrollbar */
}
/* --- Navbar Styling --- */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,.08); /* Soft shadow for depth */
  transition: all 0.3s ease; /* Smooth transition for sticky effect */
}
.navbar.scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
}
.navbar-brand img {
  max-height: 40px; /* Adjust logo height */
  transition: all 0.3s ease;
}
.navbar-brand:hover img {
  transform: scale(1.05); /* Slight scale effect on logo hover */
}
.nav-link {
  color: var(--dark-bg) !important;
  font-weight: 600;
  transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary-color) !important; /* Primary color on hover/active */
}
.logo-img {
  height: 30px;
  width: auto; /* This keeps your logo from getting distorted */
}
/* --- Hero Section Styling --- */
.hero-section {
  min-height: 100vh; /* Full viewport height */
  /* Layered backgrounds: first is the dot pattern, second is the linear gradient */
  background-image:
  radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0), /* Subtle white dots */
  linear-gradient(135deg, var(--primary-color) 0%, #002244 100%); /* Blue to dark blue gradient */
  background-size: 20px 20px, cover; /* Size for the repeating dots, cover for the gradient */
  background-position: 0 0, center; /* Position for dots (top-left), center for gradient */
  background-repeat: repeat, no-repeat; /* Repeat dots, no-repeat for gradient */
  color: white;
  display: flex; /* Flexbox for vertical centering of content */
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensures content stays within bounds */
}
.hero-section h1 {
  font-family: var(--heading-font);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5); /* Text shadow for readability */
}
.hero-section p {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

/* This is the key fix for the mobile display issue */
@media (max-width: 768px) {
    .hero-section {
        /* On mobile, use padding instead of strict min-height for better compatibility */
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 100px;
    }
    .hero-section h1 {
        font-size: 2.5rem; /* Smaller heading on mobile for better fit */
    }
    .section-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
    #testimonials .carousel-item {
        padding: 1rem;
    }
}
/* --- General Section Styling --- */
.section-padding {
  padding: 50px 0; /* Consistent vertical padding for sections */
}
.section-title {
  font-family: var(--heading-font);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 60px;
  text-align: center;
  color: var(--dark-bg);
  position: relative;
  display: inline-block;
  width: 100%;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0; /* Underline effect for titles */
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-primary:hover,
.btn-primary:active {
  background-color: #004595;
  border-color: #004595;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card {
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Lighter shadow for cards */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.card-title {
  font-family: var(--heading-font);
  font-size: 1.5rem;
}
.icon-box {
  background-color: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.icon-large {
  font-size: 3rem;
  color: var(--primary-color);
}
/* --- Hosting Section Styling --- */
.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 1rem;
  font-size: 2.25rem;
  border-radius: 12px 12px 0 0;
}
.price {
  font-family: var(--heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}
.price small {
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 400;
}
/* --- Portfolio Section Styling --- */
.portfolio-item img {
  transition: transform 0.3s ease;
}
.portfolio-item:hover img {
  transform: scale(1.05);
}
/* --- Testimonials Section Styling --- */
#testimonials {
  background: linear-gradient(135deg, #fff 0%, #fff 100%);
  position: relative;
  color: black;
}
#testimonials .carousel-inner {
  padding: 2rem 5rem; /* Padding for carousel content */
}
#testimonials .lead {
  font-style: italic;
}
#testimonials .carousel-control-prev-icon,
#testimonials .carousel-control-next-icon {
  background-color: var(--primary-color);
  border-radius: 50%; /* Rounded carousel navigation buttons */
}
/* --- Contact Section Styling --- */
.contact-form .form-control {
  border-radius: 8px; /* Rounded corners for form inputs */
  padding: 12px;
  box-shadow: none;
  transition: all 0.3s ease;
}
.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 86, 179, 0.25); /* Focus outline */
}
.contact-info i {
  color: var(--primary-color);
  min-width: 25px; /* Ensures consistent icon alignment */
}
/* --- Footer Styling --- */
.footer {
  background-color: var(--dark-bg);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.social-icons a {
  color: white;
  font-size: 1.6rem;
  margin: 0 12px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}