/*
ANDI-TECH WEBSITE STYLESHEET
*/

/* ----------------------------------
   1. Google Fonts & Root Variables
   ---------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
    --primary-color: #2C5AA0; /* Main Blue from Proposal */
    --secondary-color: #6C757D; /* Modern Gray */
    --accent-color: #28A745; /* Tech Green */
    --text-color: #343A40; /* Dark Gray */
    --light-gray: #f8f9fa;
    --white-color: #FFFFFF;
    --baby-blue: #ADD8E6; /* Baby Blue for overlays */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
}

/* ----------------------------------
   2. General Body & Typography
   ---------------------------------- */
body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}

.section-padding {
    padding: 80px 0;
}

/* ----------------------------------
   3. Buttons & Links
   ---------------------------------- */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-family: var(--heading-font);
    padding: 12px 28px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e4278; /* Darker blue */
    border-color: #1e4278;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: var(--heading-font);
    padding: 10px 28px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e4278;
}

/* ----------------------------------
   4. Header / Navigation
   ---------------------------------- */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar .nav-link {
    font-family: var(--heading-font);
    color: var(--text-color);
    font-weight: 600;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--primary-color);
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* ----------------------------------
   5. Hero Section (UPDATED - Adjusted Position)
   ---------------------------------- */
.hero-section {
    background: url('../images/hero-background.webp') no-repeat center top;
    background-size: cover;
    color: var(--white-color);
    padding: 150px 0;
    position: relative;
    min-height: 80vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 90, 160, 0.8); /* Blue overlay */
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white-color);
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-section .lead {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem;
}

/* Responsive background positioning for mobile */
@media (max-width: 768px) {
    .hero-section {
        background-position: center center;
        padding: 100px 0;
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        background-position: center center;
        padding: 80px 0;
        min-height: 60vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

/* ----------------------------------
   6. Service Section Background Images (UPDATED)
   ---------------------------------- */

/* Base styling for all service sections - FIXED: Added #system-admin */
section[id^="service"], 
section[id="cloud"], 
section[id="network"], 
section[id="cybersecurity"], 
section[id="migration"],
section[id="system-admin"] {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 10px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Semi-transparent overlay for better text readability - FIXED: Added #system-admin */
section[id^="service"]::before, 
section[id="cloud"]::before, 
section[id="network"]::before, 
section[id="cybersecurity"]::before, 
section[id="migration"]::before,
section[id="system-admin"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* White overlay with 85% opacity */
    z-index: 1;
    transition: all 0.3s ease;
}

/* Ensure content stays above the overlay - FIXED: Added #system-admin */
section[id^="service"] > *, 
section[id="cloud"] > *, 
section[id="network"] > *, 
section[id="cybersecurity"] > *, 
section[id="migration"] > *,
section[id="system-admin"] > * {
    position: relative;
    z-index: 2;
}

/* Individual background images for each service section */
#service-desk {
    background-image: url('../images/service-desk.webp');
}

#cloud {
    background-image: url('../images/microsoft-cloud.webp');
}

#network {
    background-image: url('../images/network-solutions.webp');
}

#cybersecurity {
    background-image: url('../images/cybersecurity.webp');
}

#system-admin {
    background-image: url('../images/systems-admin.webp');
}

#migration {
    background-image: url('../images/cloud-migration.webp');
}

/* Hover effects for service sections - FIXED: Added #system-admin */
section[id^="service"]:hover::before, 
section[id="cloud"]:hover::before, 
section[id="network"]:hover::before, 
section[id="cybersecurity"]:hover::before, 
section[id="migration"]:hover::before,
section[id="system-admin"]:hover::before {
    background: rgba(255, 255, 255, 0.75); /* More transparent on hover */
}

section[id^="service"]:hover, 
section[id="cloud"]:hover, 
section[id="network"]:hover, 
section[id="cybersecurity"]:hover, 
section[id="migration"]:hover,
section[id="system-admin"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* UPDATED: More specific targeting for list items - Baby Blue Background */
#service-desk .list-group-item,
#cloud .list-group-item,
#network .list-group-item,
#cybersecurity .list-group-item,
#system-admin .list-group-item,
#migration .list-group-item {
    background-color: rgba(173, 216, 230, 0.8) !important;
    border: 1px solid rgba(173, 216, 230, 0.9) !important;
    border-radius: 6px !important;
    margin-bottom: 8px !important;
    padding: 12px 16px !important;
    color: var(--text-color) !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Override Bootstrap list-group-flush styles */
.list-group-flush #service-desk .list-group-item,
.list-group-flush #cloud .list-group-item,
.list-group-flush #network .list-group-item,
.list-group-flush #cybersecurity .list-group-item,
.list-group-flush #system-admin .list-group-item,
.list-group-flush #migration .list-group-item {
    background-color: rgba(173, 216, 230, 0.8) !important;
    border: 1px solid rgba(173, 216, 230, 0.9) !important;
}

/* Hover effects for list items */
#service-desk .list-group-item:hover,
#cloud .list-group-item:hover,
#network .list-group-item:hover,
#cybersecurity .list-group-item:hover,
#system-admin .list-group-item:hover,
#migration .list-group-item:hover {
    background-color: rgba(135, 206, 235, 0.9) !important;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Style for list items within service sections - Baby Blue Background - FIXED: Added #system-admin */
section[id^="service"] .list-group-item,
section[id="cloud"] .list-group-item,
section[id="network"] .list-group-item,
section[id="cybersecurity"] .list-group-item,
section[id="migration"] .list-group-item,
section[id="system-admin"] .list-group-item {
    background-color: rgba(173, 216, 230, 0.7) !important; /* Transparent baby blue */
    border: 1px solid rgba(173, 216, 230, 0.8) !important;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    border-radius: 5px !important;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

/* Hover effect for list items - FIXED: Added #system-admin */
section[id^="service"] .list-group-item:hover,
section[id="cloud"] .list-group-item:hover,
section[id="network"] .list-group-item:hover,
section[id="cybersecurity"] .list-group-item:hover,
section[id="migration"] .list-group-item:hover,
section[id="system-admin"] .list-group-item:hover {
    background-color: rgba(173, 216, 230, 0.85) !important; /* Slightly more opaque on hover */
    transform: translateX(5px);
}

/* ----------------------------------
   7. Page-Specific Sections
   ---------------------------------- */
.stats-banner {
    background-color: var(--light-gray);
}
.stats-banner .stat-item {
    padding: 20px;
}
.stats-banner .stat-item h3 {
    margin-bottom: 0;
    font-size: 2.5rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-card {
    background-color: var(--light-gray);
    border-left: 5px solid var(--primary-color);
    padding: 2rem;
}
.testimonial-card p.lead {
    font-style: italic;
    margin-bottom: 1.5rem;
}
.testimonial-card .author {
    font-weight: 700;
    font-family: var(--heading-font);
}

.founder-img {
    max-width: 300px;
    border-radius: 50%;
    border: 5px solid var(--light-gray);
}

/* Service Cards with Background Images */
.service-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Background overlay for better text readability */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85); /* White overlay with 85% opacity */
    z-index: 1;
    transition: all 0.3s ease;
}

/* Ensure content stays above the overlay */
.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Make overlay slightly more transparent on hover to show more of the background */
.service-card:hover::before {
    background: rgba(255, 255, 255, 0.75);
}

/* Individual background images for each service card */
.col-lg-4:nth-child(1) .service-card {
    background-image: url('../images/service-desk.webp');
}

.col-lg-4:nth-child(2) .service-card {
    background-image: url('../images/microsoft-cloud.webp');
}

.col-lg-4:nth-child(3) .service-card {
    background-image: url('../images/network-solutions.webp');
}

.col-lg-4:nth-child(4) .service-card {
    background-image: url('../images/cybersecurity.webp');
}

.col-lg-4:nth-child(5) .service-card {
    background-image: url('../images/systems-admin.webp');
}

.col-lg-4:nth-child(6) .service-card {
    background-image: url('../images/cloud-migration.webp');
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 15px;
}

.country-flags img {
    width: 30px;
    margin: 0 5px;
}

/* ----------------------------------
   8. Flag Icons Styling
   ---------------------------------- */
.flag-icon {
    width: 24px;
    height: 18px;
    margin: 0 5px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ----------------------------------
   9. Footer
   ---------------------------------- */
.footer {
    background-color: var(--text-color);
    color: var(--white-color);
    padding: 60px 0;
}

.footer h5 {
    color: var(--white-color);
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white-color);
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer .social-icons a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-bottom {
    background-color: #222;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------
   10. Blog Thumbnail (force override)
   ------------------------------ */
.card-img-top.blog-thumb {
    display: block;
    width: 100% !important;
    height: 160px !important;     /* change height if you want larger/smaller */
    object-fit: cover !important; /* crop image without distortion */
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
    background-color: var(--light-gray);
}

/* small responsive adjustments */
@media (max-width: 768px) {
  .card-img-top.blog-thumb { height: 150px !important; }
}
@media (max-width: 480px) {
  .card-img-top.blog-thumb { height: 130px !important; }
}

/* ------------------------------
   Blog Thumbnail (force override)
   ------------------------------ */

/* Primary rule: force thumbnail height & crop */
.card-img-top.blog-thumb {
    display: block;
    width: 100% !important;
    height: 160px !important;        /* adjust if you want taller/shorter */
    object-fit: cover !important;    /* crop image without distortion */
    border-top-left-radius: 0.75rem !important;
    border-top-right-radius: 0.75rem !important;
    background-color: var(--light-gray) !important;
}

/* Slightly smaller thumbs on tablets/phones */
@media (max-width: 768px) {
  .card-img-top.blog-thumb { height: 150px !important; }
}
@media (max-width: 480px) {
  .card-img-top.blog-thumb { height: 130px !important; }
}

/* ------------------------------
   Pricing Hero (FIXED)
------------------------------ */

.pricing-hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background-color: #0b1c2d;
  overflow: hidden;
}

/* Image */
.pricing-hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 1;
}

/* 🔑 Overlay MUST be absolute */
.pricing-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(11, 28, 45, 0.55),
    rgba(11, 28, 45, 0.15)
  );
  display: flex;
  align-items: flex-start;
}

/* Text */
.pricing-hero .hero-content {
  max-width: 640px;
  padding-top: 90px; /* navbar clearance */
  color: #ffffff;
}

.pricing-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.pricing-hero p {
  font-size: 1.1rem;
  margin-top: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ------------------------------
   Mobile FIX (CRITICAL)
------------------------------ */

@media (max-width: 768px) {
  .pricing-hero {
    min-height: 70vh;
  }

  .pricing-hero .hero-overlay {
    align-items: flex-start;
  }

  .pricing-hero .hero-content {
    padding-top: 70px;
    padding-left: 16px;
    padding-right: 16px;
    text-align: left;
  }

  .pricing-hero h1 {
    font-size: 2.1rem;
  }
}

/* ------------------------------
   Pricing Hero
   ------------------------------ */
   


