/* Fonts and icon CSS: loaded in <head> via non-blocking links to improve render performance */

/* Accessibility: skip-link (visible on keyboard focus) */
.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 9999;
  border-radius: 6px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.35);
}

/* Responsive image defaults to avoid layout shift */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.gallery-item img,
.gallery-item picture,
.project-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Base Reset & Variables */
:root {
  --primary-color: #38bdf8;
  --primary-dark: #0ea5e9;
  --text-dark: #0f172a;
  --text-light: #cbd5e1;
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --border-color: #334155;
  --shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Space Grotesk", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Make the main content area flexible so footer can be pushed to the bottom */
.page-content {
  flex: 1 1 auto;
  display: block;
  width: 100%;
}

/* Header & Navigation */
.header {
  background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.1);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  width: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Logo Section */
.logo-section {
  flex-shrink: 0;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-small span {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  background: linear-gradient(
    135deg,
    var(--text-dark) 0%,
    var(--primary-color) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.slogan {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: var(--text-dark);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropbtn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropbtn {
  color: var(--primary-color);
}

.dropdown:hover .dropbtn i {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  z-index: 1000;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  color: var(--text-dark);
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: var(--bg-light);
  padding-left: 1.5rem;
}

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

/* Right Section */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 0.8rem;
}

.social-icons a {
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.social-icons a:hover {
  color: var(--bg-light);
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--primary-color);
  background: rgba(56, 189, 248, 0.1);
}

/* Active state for current page */
.nav-links li a.active {
  color: var(--primary-color);
}

.nav-links li a.active::after {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .main-nav {
    gap: 1.5rem;
  }

  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header {
    padding: 0.8rem 1.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    gap: 0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    display: block;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: none;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .social-icons {
    display: none;
  }

  .social-icons.mobile-visible {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 0.8rem 1rem;
  }

  .logo-small span {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 0.7rem;
  }

  .main-nav {
    gap: 1rem;
  }
}

/* Services Tabs Section - Fixed */
.services-tabs-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  margin: 0;
}

.site-footer,
.services-tabs-section {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* Cybersecurity Theme */
.services-tabs-section.cybersecurity-theme {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
}

.cybersecurity-theme .tab-header h2,
.cybersecurity-theme .tab-content h3,
.cybersecurity-theme .feature-item h4 {
  color: #38bdf8;
}

.cybersecurity-theme .tab-header p,
.cybersecurity-theme .service-description,
.cybersecurity-theme .feature-item p {
  color: #cbd5e1;
}

.cybersecurity-theme .tab-button {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
  color: #e2e8f0;
}

.cybersecurity-theme .tab-button:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
}

.cybersecurity-theme .tab-button.active {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0f172a;
  border-color: #38bdf8;
}

/* Tab Header */
.tab-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.tab-header h2 {
  font-size: 3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 700;
}

.tab-header p {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.6;
}

/* Tab Buttons */
.tab-buttons-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 80px; /* Below header */
  z-index: 100;
  width: 100%;
}

.cybersecurity-theme .tab-buttons-container {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid #334155;
}

.tab-buttons {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  overflow-x: auto;
}

.tab-buttons::-webkit-scrollbar {
  display: none;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: center;
}

.tab-button:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-button.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.3);
}

.tab-button i {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Tab Content */
.tab-content {
  display: none;
  min-height: calc(100vh - 200px);
  padding: 2rem 0 4rem;
  width: 100%;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.6s ease;
}

.tab-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-main {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding-bottom: 2rem;
}

.tab-content h3 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.service-description {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.7;
  max-width: 800px;
}

/* Service Features */
.service-features {
  margin: 2rem 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  text-align: center;
}

.cybersecurity-theme .feature-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #334155;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.feature-item h4 {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Service Images */
.service-images {
  margin-top: 3rem;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design for Horizontal Tabs */
@media (max-width: 1024px) {
  .tab-buttons {
    padding: 1rem;
    gap: 0.5rem;
  }

  .tab-button {
    padding: 0.875rem 1rem;
    font-size: 0.85rem;
  }

  .tab-button i {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .tab-buttons-container {
    top: 70px;
  }

  .tab-buttons {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .tab-button {
    flex: 0 0 auto;
    min-width: 160px;
    padding: 0.75rem 1rem;
  }

  .tab-content {
    min-height: calc(100vh - 180px);
    padding: 1.5rem 0 3rem;
  }

  .tab-content-wrapper {
    padding: 0 1.5rem;
  }

  .tab-header h2 {
    font-size: 2.5rem;
  }

  .tab-content h3 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .tab-buttons-container {
    top: 60px;
  }

  .tab-button {
    min-width: 140px;
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
  }

  .tab-button i {
    font-size: 0.8rem;
  }

  .tab-content {
    min-height: calc(100vh - 160px);
    padding: 1rem 0 2rem;
  }

  .tab-content-wrapper {
    padding: 0 1rem;
  }

  .tab-header {
    padding: 3rem 1rem 1.5rem;
  }

  .tab-header h2 {
    font-size: 2rem;
  }

  .tab-header p {
    font-size: 1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 4rem 2rem 0;
  color: #cbd5e1;
  border-top: 1px solid #334155;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 1rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 350px;
  margin: 0;
}

.footer-slogan {
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  margin-top: 0.5rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f8fafc;
  font-weight: 600;
  position: relative;
}

.footer-links h4::after,
.footer-social h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background: #38bdf8;
  border-radius: 1px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a::before {
  content: "▸";
  color: #38bdf8;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: #38bdf8;
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-social .social-icons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-social a {
  color: #cbd5e1;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  padding: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

.footer-social a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #64748b;
  padding: 2rem 0;
  border-top: 1px solid #334155;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(15, 23, 42, 0.95);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-copyright {
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #38bdf8;
}

/* Ensure footer stays at bottom */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-footer {
  flex-shrink: 0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    text-align: center;
    align-items: center;
  }

  .footer-brand p {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 3rem 1.5rem 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-links h4::after,
  .footer-social h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a {
    justify-content: center;
  }

  .footer-social .social-icons {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-social a {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 2rem 1rem 0;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-logo {
    font-size: 1.8rem;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .footer-links h4,
  .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .footer-social a {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
    padding: 0.6rem;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding: 1.5rem 0;
  }

  .footer-copyright {
    font-size: 0.85rem;
  }

  .footer-legal {
    gap: 1rem;
  }

  .footer-legal a {
    font-size: 0.8rem;
  }
}

/* Additional utility for very small screens */
@media (max-width: 360px) {
  .footer-social .social-icons {
    gap: 0.5rem;
  }

  .footer-social a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Fix any potential z-index issues */
.header {
  z-index: 1000;
}

.tab-buttons-container {
  z-index: 999;
}

.tab-content {
  z-index: 1;
}

.site-footer {
  z-index: 2;
}

/* Ensure images don't cause overflow */
.gallery-item img {
  max-width: 100%;
  height: auto;
}

.feature-item {
  word-wrap: break-word;
}

/* Additional fixes for mobile responsiveness */
@media (max-width: 320px) {
  .tab-button {
    min-width: 120px;
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
  }

  .tab-button i {
    font-size: 0.7rem;
  }

  .feature-item {
    padding: 1.5rem;
  }

  .gallery-item span {
    padding: 0.75rem;
    font-size: 0.9rem;
  }
}
.service-description {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 2rem;
}
