/*
Theme Name: Deltacom Solutions
Author: VEVILO
Version: 1.0
Description: Custom theme for Deltacom Solutions website
*/

/* === RESET & BASE === */
html, body {
  margin: 0 !important;
  padding: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: #2f3542;
  line-height: 1.6;
  overflow-x: hidden;
  overscroll-behavior: none;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === CONTAINER === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === TOPBAR === */
.topbar {
  background-color: rgb(51, 51, 51);
  color: white;
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.topbar-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left a,
.topbar-right a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.topbar-left a i {
  font-size: 16px;
  margin-right: 6px;
  line-height: 1;
}

.topbar-left a:hover,
.topbar-right a:hover {
  color: rgb(211, 24, 46);
}

.topbar-right a i {
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 767px) {
  .topbar-left a span {
    display: none;
  }
}

/* === NAVIGATION === */
.desktop-nav {
  display: none;
  background-color: rgb(47, 53, 66);
  position: sticky;
  top: 0;
  z-index: 998;
  width: 100%;
  border-bottom: 2px solid rgb(211, 24, 46);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.desktop-nav.transparent {
  background: rgba(47, 53, 66, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .desktop-nav .nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
  }

  .desktop-nav .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    color: white;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400 !important;
    font-style: normal;
    transition: color 0.3s ease, font-weight 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
  }

  .desktop-nav .nav-links a i {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
    font-size: 16px;
  }

  .desktop-nav .nav-links a:hover,
  .desktop-nav.transparent .nav-links a:hover {
    color: rgb(211, 24, 46);
    font-weight: 700 !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.514);
  }

  .desktop-nav .nav-links a:hover i {
    opacity: 1;
    transform: translateY(0);
    color: rgb(211, 24, 46);
  }

  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .mobile-nav {
    display: flex !important;
  }

  .desktop-nav {
    display: none !important;
  }
}

/* === MOBILE NAV === */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgb(47, 53, 66);
  z-index: 998;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
}

.mobile-nav-links {
  display: flex;
  justify-content: space-around;
  width: 100%;
  list-style: none;
}

.mobile-nav-links li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 12px;
}

.mobile-nav-links img {
  width: 24px;
  height: 24px;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.mobile-nav-links a:hover img {
  filter: brightness(0) saturate(100%) sepia(100%) hue-rotate(-10deg) saturate(500%) brightness(1.2);
}

.mobile-nav-links a:hover span {
  color: rgb(211, 24, 46);
}

/* === SECTION STYLING === */
.section {
  padding: 80px 0;
}

/* === HERO SECTION === */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.hero-bg-blur img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: blur(4px) brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-logo {
  width: 550px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.hero-logo:hover {
  transform: scale(1.05);
}

.cta-button {
  background-color: rgb(211, 24, 46);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  margin-top: 30px;
  display: inline-block;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #b31324;
  transform: scale(1.05);
}

/* === ABOUT SECTION === */
.about-section {
  background-color: white;
  color: #2f3542;
  padding: 80px 20px;
}

.about-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.about-highlights {
  list-style: none;
  padding: 0;
}

.about-highlights li {
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgb(47, 53, 66);
}

.about-highlights i {
  color: rgb(211, 24, 46);
}

@media (min-width: 768px) {
  .about-inner {
    flex-direction: row;
    align-items: center;
  }
  .about-image, .about-content {
    flex: 1;
  }
}

/* === SERVICES SECTION === */
.services-section {
  background-color: #f5f5f5;
  color: #2f3542;
  padding: 80px 20px;
}

.services-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.services-section .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.services-section .service-card {
  background-color: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.services-section .service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-card .service-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.service-card .service-header img {
  width: 40px;
  height: 40px;
}

.service-card .service-header h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 600;
  color: rgb(47, 53, 66);
}

.service-card p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #555;
}

.service-btn {
  display: inline-block;
  margin-top: auto;
  align-self: flex-start;
  background-color: rgb(211, 24, 46);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.service-btn:hover {
  background-color: #a51321;
}


/* === PORTFOLIO SECTION === */
.portfolio-section {
  background-color: white;
  color: #2f3542;
  padding: 80px 20px;
}

.portfolio-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.portfolio-section .portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.portfolio-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.portfolio-card h3 {
  font-size: 20px;
  margin: 16px;
  font-weight: 600;
  color: rgb(47, 53, 66);
}

.portfolio-card p {
  font-size: 14px;
  margin: 0 16px 20px;
  color: #555;
  line-height: 1.5;
}


/* === REVIEWS SECTION === */
.reviews-section {
  background-color: #f5f5f5;
  color: #2f3542;
  padding: 80px 20px;
}

.reviews-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: white;
  padding: 25px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 600;
  color: rgb(47, 53, 66);
}

.review-stars {
  color: gold;
  font-size: 16px;
}

.review-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.review-comment {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* === CONTACT SECTION === */
.contact-section {
  background-color: #ffffff;
  color: #2f3542;
  padding: 80px 20px;
}

.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-form {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #fdfdfd;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  color: rgb(47, 53, 66);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex-grow: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  background: #f9f9f9;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgb(211, 24, 46);
  box-shadow: 0 0 0 2px rgba(211, 24, 46, 0.2);
  outline: none;
}

.contact-form button {
  padding: 14px 24px;
  background-color: rgb(211, 24, 46);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #b51224;
  transform: translateY(-2px);
}

.form-success {
  background: #e6ffed;
  border-left: 4px solid #2ecc71;
  padding: 20px;
  border-radius: 6px;
  font-size: 16px;
}

.form-success button {
  margin-top: 15px;
  background-color: #2ecc71;
  border: none;
  padding: 10px 20px;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.contact-map {
  flex: 1;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 auto;
}

.contact-map h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: #2f3542;
  text-align: center;
}

.contact-map iframe {
  width: 100%;
  height: 330px;
  border-radius: 10px;
  border: none;
}

.contact-info {
  margin-top: 15px;
  font-size: 14px;
  color: #2f3542;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
}

.contact-info i {
  color: rgb(211, 24, 46);
  margin-right: 8px;
}

@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0;
  }

  .contact-map {
    margin-top: 66px;
  }
}


/* === FOOTER === */
.site-footer {
  background-color: rgb(47, 53, 66);
  color: white;
  padding: 40px 20px 20px;
  font-size: 14px;
  border-top: 4px solid rgb(211, 24, 46);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
}

/* Footer Brand */
.footer-brand {
  text-align: center;
}

.footer-brand img {
  width: 400px;
  margin-bottom: 10px;
}

.footer-slogan {
  font-style: italic;
  color: #ccc;
  font-size: 14px;
}

/* Footer Links + Contact */
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: rgb(211, 24, 46);
}

.footer-contact p {
  margin: 0;
}

.footer-contact i {
  margin-right: 8px;
  color: rgb(211, 24, 46);
}

/* Social Links */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.footer-social a {
  color: white;
  font-size: 20px;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: rgb(211, 24, 46);
}

/* Footer Bottom Text */
.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: #bbb;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-bottom: 10px;
}

/* PixelPal Credit */
.pixelpal-credit {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: white;
  text-align: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pixelpal-credit img {
  width: 50px;
  height: auto;
  display: block;
}

.pixelpal-credit:hover {
  color: rgb(211, 24, 46);
}

/* === DESKTOP VIEW === */
@media (min-width: 768px) {
  .footer-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    align-items: flex-start;
  }

  .footer-brand,
  .footer-links,
  .footer-contact,
  .footer-social {
    text-align: left;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 30px;
  }

  .pixelpal-credit {
    display: flex;
  }
}

@media (max-width: 767px) {
  .hero-logo {
    width: 90vw !important;
    max-width: 3200px !important;
    height: auto !important;
  }
}

.hero-section.slim-hero {
  background-color: #2f3542;
  color: white;
  min-height: auto !important;
  display: block !important;
  padding: 30px 0;
}


.hero-section.slim-hero .container {
  text-align: center;
  padding: 30px 0;
}

.hero-section.slim-hero h1 {
  margin: 0;
}

.hero-section.slim-hero p {
  margin-top: 10px;
  margin-bottom: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
