/* ==========================================================================
   Reset and Global Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Roboto, Arial, sans-serif;
  background-color: #304d6d;
  color: #d9e8f5;
  line-height: 1.6;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  margin: 10px;
  text-align: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

.header-left,
.header-center,
.header-right {
  text-align: center;
  flex: 1;
  min-width: 200px;
}

.logo,
.osibytes-logo {
  width: 100%;
  max-width: 30%;
  height: auto;
  display: block;
  border: 0.5px solid white;
  border-radius: 5px;
  margin: 0 auto 10px;
}

.slideshow-container {
  position: relative;
  width: 100%;
  height: 200px; /* Adjust height as needed */
  overflow: hidden;
  border-radius: 5px;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
a {
  color: #d9e8f5;
}
.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0.7; /* Slight transparency for tagline readability */
}

.tagline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1;
  font-size: 2em;
}

/* Buttons */
.cta-button {
  display: inline-block;
  background-color: #4caf50;
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.cta-button:hover {
  background-color: #e04e2c;
  box-shadow: 0 0 15px rgba(255, 87, 51, 0.7);
}

.quote-button,
.contact-button,
.start-button,
.scan-button {
  background-color: #4caf50;
}
.quote-button:hover,
.contact-button:hover,
.start-button:hover,
.scan-button:hover {
  background-color: #45a049;
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 10px;
  }
  .header-left,
  .header-center,
  .header-right {
    margin-bottom: 20px;
  }
  .logo,
  .osibytes-logo {
    max-width: 50%;
  }
  .slideshow-container {
    height: 150px; /* Smaller height on mobile */
  }
  .tagline {
    font-size: 1.5em;
  }
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.subnav-content a {
  color: white;
  padding: 10px 15px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.contact-section a {
  color: #a6caec;
  text-decoration: none;
}

.navbar {
  background-color: #a7cced;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content {
  max-width: 80%;
}

.navbar a,
.subnavbtn {
  font-size: 20px;
  color: #304d6d;
  text-decoration: none;
  margin: 0 10px;
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
  position: relative;
  flex-grow: 1;
}

.navbar a:hover,
.navbar a.active,
.subnav:hover .subnavbtn {
  background-color: #545e75;
  color: white;
  box-shadow: 0 0 15px rgba(99, 173, 242, 0.7);
}

/* Subnavigation */
.subnav {
  position: relative;
  display: flex;
}

.subnav-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #63adf2;
  width: 100%;
  z-index: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  animation: slideIn 0.3s ease-in-out;
}

.subnav:hover .subnav-content {
  display: block;
}

.subnav-content a:hover {
  background-color: #545e75;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-icon {
  width: 20px;
  height: auto;
  vertical-align: middle;
  margin-right: 5px;
  transition: transform 0.3s ease;
}

.subnav-content a:hover .nav-icon {
  transform: scale(1.2);
}

/* Animation Keyframes */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Main Layout (3-Block Structure)
   ========================================================================== */
main {
  margin-top: 10px;
  padding: 0 10px;
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#ad-left,
#ad-right {
  width: 15%;
  min-width: 120px;
  margin: 0;
}

.center-content {
  width: 70%;
  margin: 0 10px;
}

#ad-left ins,
#ad-right ins {
  display: block;
  width: 100%;
}

/* Ad Column (Moved from Inline) */
.ad-column {
  margin: 0 10px;
}

.ad-pod {
  margin: 20px 0;
  text-align: center;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 0 5px;
  }
  #ad-left,
  #ad-right {
    width: 100%;
    margin: 10px 0;
  }
  .center-content {
    width: 100%;
    margin: 0;
  }
  .ad-column {
    display: none;
  }
}

/* ==========================================================================
   Intro Section
   ========================================================================== */
.intro {
  background-color: #3b5978;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.intro h1 {
  color: #a6caec;
  font-size: 2.5em;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intro h3 {
  color: #a6caec;
  margin-bottom: 10px;
}

.intro p {
  color: #a6caec;
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* ==========================================================================
   Consent Banner (Moved from Inline)
   ========================================================================== */
.consent-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #333333;
  color: white;
  padding: 20px;
  text-align: center;
  z-index: 1000;
  display: none;
}

.consent-content p {
  margin: 0 0 10px;
}

.consent-buttons button {
  margin: 0 10px;
  padding: 8px 16px;
  cursor: pointer;
}

.consent-buttons #accept-btn {
  background: #4caf50;
  color: white;
  border: none;
}

.consent-buttons #accept-btn:hover {
  background: #45a049;
}

.consent-buttons #decline-btn {
  background: #f44336;
  color: white;
  border: none;
}

.consent-buttons #decline-btn:hover {
  background: #d32f2f;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services,
.services-section {
  padding: 20px 0;
  margin: 20px 0;
}

.services h2,
.services-section h2 {
  color: #a6caec;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.service-item {
  background-color: #4975a4;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s;
}

.service-item:hover {
  transform: scale(1.05);
}

.service-item img {
  max-width: 60%;
  height: auto;
  border-radius: 5px;
}

.service-item h3 {
  color: #a6caec;
  margin: 10px 0;
}

.service-item p {
  color: #a6caec;
}

.service-box {
  border: 2px solid #333333;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
  background-color: #f9f9f9;
  text-align: center;
}

.service-box h3 {
  font-size: 1.4em;
  color: #000000;
  margin: 10px 0;
}

.service-box p {
  line-height: 1.6;
  margin: 10px 0;
  color: #000000;
}

.service-box img {
  max-width: 60%;
  height: auto;
  margin-bottom: 10px;
}

/* ==========================================================================
   Tool Section
   ========================================================================== */
.tool-section {
  margin: 20px 0;
}

#calculator,
#dns-lookup,
#scanner,
#ip-details,
#port-scanner,
#whois-lookup,
#traceroute,
#ping-tool,
#ssl-checker,
#headers-inspector {
  width: 100%;
  padding: 20px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  background-color: #3b5978;
  margin-bottom: 20px;
}

.tool-section h2 {
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

.tool-section label {
  display: block;
  margin: 10px 0 5px;
  color: white;
}

.tool-section input[type="text"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #cccccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.tool-section button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

#results,
#scan-results,
#ip-results,
#port-results,
#whois-results,
#trace-results,
#ping-results,
#ssl-results,
#header-results {
  margin-top: 20px;
  font-family: monospace;
  white-space: pre-wrap;
  color: #a6caec;
  border: 1px solid #cccccc;
  padding: 15px;
  min-height: 100px;
  background-color: #222d3d;
  font-size: 14px;
  line-height: 1.6;
  width: 100%;
}

/* ==========================================================================
   Spinner Animation
   ========================================================================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #a6caec;
  border-top: 3px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  text-align: center;
  padding: 20px 0;
  background-color: #3b5978;
  color: #a6caec;
  width: 100%;
}

/* ==========================================================================
   Page-Specific Styles
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.team-member {
  background-color: #4975a4;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.team-member img {
  max-width: 60%;
  height: auto;
  border-radius: 5px;
}

.team-member h3 {
  color: #a6caec;
  margin: 10px 0;
}

.team-member p {
  color: #a6caec;
}

.contact-section {
  text-align: center;
  padding: 20px;
  background-color: #4975a4;
  border-radius: 10px;
}

.importance {
  width: 100%;
  margin-bottom: 20px;
  padding: 2%;
  border-radius: 10px;
  border: 1px solid #cccccc;
}
.contact-section a:hover {
  color: #63adf2;
}

.techtips-section .tip {
  background-color: #4975a4;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.techtips-section h3 {
  color: white;
  margin-bottom: 10px;
}

.techtips-section p {
  color: white;
}

.careers-section {
  text-align: center;
  padding: 20px;
  background-color: #4975a4;
  border-radius: 10px;
}

.careers-section h2 {
  color: white;
  margin-bottom: 15px;
}

.careers-section p {
  color: white;
  margin-bottom: 20px;
}

.careers-section a {
  color: white;
  text-decoration: none;
}

.careers-section a:hover {
  color: #63adf2;
}

.benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.benefits-list li {
  margin: 10px 0;
  color: white;
}

/* ==========================================================================
   Tool Icons
   ========================================================================== */
.tool-icon {
  text-align: center;
  background-color: #4975a4;
  border: 1px solid #cccccc;
  border-radius: 10px;
  padding: 15px;
  transition: transform 0.3s;
}

.tool-icon:hover {
  transform: scale(1.05);
}

.tool-icon a {
  text-decoration: none;
  color: #a6caec;
  display: block;
}

.tool-icon img {
  max-width: 50%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

.tool-icon p {
  margin: 0;
  font-size: 1.1em;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  main {
    flex-direction: column;
    padding: 0 5px;
  }
  #ad-left,
  #ad-right {
    width: 100%;
    margin: 10px 0;
  }
  .center-content {
    width: 100%;
    margin: 0;
  }
  .navbar {
    flex-direction: column;
    padding: 5px;
  }
  .navbar a,
  .subnav {
    display: block;
    width: 100%;
    margin: 5px 0;
  }
  .subnav-content {
    position: relative;
    top: 0;
    width: 100%;
  }
  .intro,
  .tool-section {
    width: 100%;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Firewall Section
   ========================================================================== */
.firewall-section {
  padding: 20px 0;
  margin: 20px 0;
}

.firewall-section h2 {
  color: #a6caec;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.firewall-section p {
  color: #a6caec;
  margin-bottom: 15px;
}

.firewall-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #3b5978;
  border: 1px solid #cccccc;
  border-radius: 5px;
}

.firewall-table th,
.firewall-table td {
  padding: 10px;
  text-align: center;
  color: #a6caec;
  border: 1px solid #cccccc;
}

.firewall-table th {
  background-color: #4975a4;
  font-weight: bold;
}

.firewall-table tr:nth-child(even) {
  background-color: #324e6f;
}

.firewall-table tr:hover {
  background-color: #545e75;
  transition: background-color 0.3s ease;
}

#card-element {
  background-color: #ffffff;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

#submit-payment {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#submit-payment:hover {
  background-color: #45a049;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

.sector {
  padding: 2%;
  max-width: 90%;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
  text-align: left;
}

.regulation {
  padding: 2%;
  justify-content: center;
}

#map {
  height: 600px;
  width: 100%;
}

/* Ensure Lazy-Loaded Images Display Properly */
img[loading="lazy"] {
  max-width: 100%;
  height: auto;
}
